Skip to content

Commit

Permalink
Merge pull request #3 from hkwtf/master
Browse files Browse the repository at this point in the history
fix(cess-js-sdk): add @polkadot/util as dependency (#5)
  • Loading branch information
lanmeng656 authored Oct 25, 2023
2 parents 13db36a + 83d91d7 commit f357ac4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ main()

More examples are in the [**examples**](./examples) directory.

To run them one by one, try:
To run them all, run the command:

```bash
pnpm examples
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"dependencies": {
"@polkadot/api": "^10.9.1",
"@polkadot/extension-dapp": "^0.46.5",
"@polkadot/util": "^12.5.1",
"axios": "^1.4.0",
"bs58": "^5.0.0",
"lodash": "^4.17.21",
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 1 addition & 7 deletions src/examples/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,7 @@ import { execFile } from "node:child_process";

// These files are relative to the script path. Surely we can use glob, but let's do it
// meticulously here, enabling our examples one-by-one.
const EXAMPLE_FILES = [
"authorize.js",
"bucket.js",
"file.cjs", // note: need help from CESS team on looking into file.cjs upload/download
"space.cjs",
"space.mjs",
];
const EXAMPLE_FILES = ["authorize.js", "bucket.js", "file.cjs", "space.cjs", "space.mjs"];

const execAsync = promisify(execFile);

Expand Down

0 comments on commit f357ac4

Please sign in to comment.