@geeqdev/geeq-sdk 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -2
- package/dist/browser/geeq_core_bg.wasm +0 -0
- package/dist/browser/index.js +12468 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/node/geeq_core_bg.wasm +0 -0
- package/dist/node/index.cjs +12559 -0
- package/dist/node/index.cjs.map +1 -0
- package/dist/node/index.js +12469 -0
- package/dist/node/index.js.map +1 -0
- package/dist/types/index.d.cts +2224 -0
- package/dist/types/index.d.ts +2224 -0
- package/package.json +8 -3
- package/.idea/geeq_sdk.iml +0 -12
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
- package/.nvmrc +0 -1
- package/CONTRIBUTING.md +0 -20
- package/example/.env.example +0 -4
- package/example/README.md +0 -304
- package/example/USAGE.md +0 -74
- package/example/index.html +0 -12
- package/example/package-lock.json +0 -1557
- package/example/package.json +0 -25
- package/example/scripts/browser-check.mjs +0 -1421
- package/example/scripts/match-derivation.mjs +0 -65
- package/example/src/App.vue +0 -138
- package/example/src/components/AuthorityPanel.vue +0 -277
- package/example/src/components/ChainPanel.vue +0 -267
- package/example/src/components/ChainState.vue +0 -59
- package/example/src/components/CopyButton.vue +0 -25
- package/example/src/components/CreateAssetPanel.vue +0 -313
- package/example/src/components/DigitalAssetsPanel.vue +0 -68
- package/example/src/components/EvidencePanel.vue +0 -396
- package/example/src/components/ExplorerPanel.vue +0 -119
- package/example/src/components/KeypairPanel.vue +0 -182
- package/example/src/components/PhrasePanel.vue +0 -105
- package/example/src/components/SocketWarning.vue +0 -18
- package/example/src/components/StepGate.vue +0 -24
- package/example/src/components/TransferPanel.vue +0 -416
- package/example/src/components/TxDeadline.vue +0 -19
- package/example/src/components/TxFee.vue +0 -31
- package/example/src/components/TxStatus.vue +0 -105
- package/example/src/composables/useSocketConnection.ts +0 -80
- package/example/src/env.d.ts +0 -12
- package/example/src/main.ts +0 -5
- package/example/src/pennies.ts +0 -7
- package/example/src/style.css +0 -149
- package/example/tsconfig.json +0 -19
- package/example/vite.config.ts +0 -26
- package/jest.config.js +0 -18
- package/scripts/copy-wasm.mjs +0 -21
- package/scripts/smoke.mjs +0 -382
- package/tsconfig.build.json +0 -8
- package/tsconfig.json +0 -21
- package/tsup.config.ts +0 -60
package/README.md
CHANGED
|
@@ -511,12 +511,22 @@ isGeeqReady(); // true
|
|
|
511
511
|
Functions ending in `Sync` need the engine loaded first. Phrases, hashing, hex and base64
|
|
512
512
|
don't need it at all.
|
|
513
513
|
|
|
514
|
-
**Vite** needs
|
|
514
|
+
**Vite** needs this config:
|
|
515
515
|
|
|
516
516
|
```ts
|
|
517
|
-
export default defineConfig({
|
|
517
|
+
export default defineConfig({
|
|
518
|
+
optimizeDeps: {
|
|
519
|
+
exclude: ["@geeqdev/geeq-sdk"],
|
|
520
|
+
include: ["@geeqdev/geeq-sdk > capnp-ts"],
|
|
521
|
+
},
|
|
522
|
+
});
|
|
518
523
|
```
|
|
519
524
|
|
|
525
|
+
`exclude` keeps Vite from moving the SDK, so it still finds the engine file next to it.
|
|
526
|
+
`include` pre-bundles `capnp-ts`, a CommonJS dependency of the SDK that the browser cannot
|
|
527
|
+
import as is. Without it the dev server fails with "does not provide an export named
|
|
528
|
+
'Message'".
|
|
529
|
+
|
|
520
530
|
Webpack 5, Rollup and Parcel work without config. To load the engine from your own URL:
|
|
521
531
|
`initGeeq({ wasm: "/assets/geeq_core_bg.wasm" })`.
|
|
522
532
|
|
|
Binary file
|