Skip to content

Commit

Permalink
Add simple encoding test
Browse files Browse the repository at this point in the history
Fix export decl
Switch to wharkit
Unify control set apis to single set_chain
Include client class
Bump version
  • Loading branch information
guilledk committed Aug 13, 2024
1 parent fd2ed19 commit aa1a7dc
Show file tree
Hide file tree
Showing 10 changed files with 977 additions and 228 deletions.
11 changes: 11 additions & 0 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extension": [
"ts"
],
"spec": "src/tests/*.spec.ts",
"loader": "ts-node/esm",
"require": [
"ts-node/register"
],
"recursive": true
}
25 changes: 19 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,48 @@
{
"name": "leap-mock",
"name": "@guilledk/leap-mock",
"repository": "guilledk/leap-mock",
"version": "0.2.2",
"version": "0.3.0",
"description": "",
"main": "./build/shipMocker.js",
"types": "./build/index.d.ts",
"exports": {
".": {
"import": "./build/shipMocker.js"
"import": "./build/index.js"
},
"./esm": {
"import": "./build/index.js"
}
},
"type": "module",
"scripts": {
"start": "node build/shipMocker.js",
"build": "tsc && node scripts/create-dist-packages.mjs",
"build": "yarn && tsc && node scripts/create-dist-packages.mjs",
"test": "mocha",
"docker-build": "docker build -t guilledk/leap-mock:latest ."
},
"author": "",
"license": "ISC",
"dependencies": {
"@greymass/eosio": "0.6.11",
"@types/express": "^4.17.20",
"@types/ws": "^8.5.8",
"@wharfkit/antelope": "^1.0.10",
"async": "^3.2.4",
"axios": "^1.7.3",
"commander": "^11.1.0",
"express": "^4.18.2",
"ws": "^8.14.2"
"node-fetch": "^3.3.2",
"ws": "^8.14.2",
"zod": "^3.23.8"
},
"devDependencies": {
"@types/async": "^3.2.16",
"@types/chai": "^4.3.17",
"@types/mocha": "^10.0.7",
"@types/node": "^18.11.13",
"chai": "^5.1.1",
"mocha": "^10.7.3",
"nodemon": "^2.0.22",
"ts-node": "^10.9.2",
"tsx": "^3.12.7",
"typescript": "^5.2.2"
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/create-dist-packages.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { writeFileSync, copyFileSync } from 'node:fs';
import { copyFileSync } from 'node:fs';
import { fileURLToPath } from 'node:url';
import path from 'path';

Expand Down
Loading

0 comments on commit aa1a7dc

Please sign in to comment.