@geeqdev/geeq-sdk 0.2.1 → 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.
Files changed (52) hide show
  1. package/README.md +12 -2
  2. package/dist/browser/geeq_core_bg.wasm +0 -0
  3. package/dist/browser/index.js +12468 -0
  4. package/dist/browser/index.js.map +1 -0
  5. package/dist/node/geeq_core_bg.wasm +0 -0
  6. package/dist/node/index.cjs +12559 -0
  7. package/dist/node/index.cjs.map +1 -0
  8. package/dist/node/index.js +12469 -0
  9. package/dist/node/index.js.map +1 -0
  10. package/dist/types/index.d.cts +2224 -0
  11. package/dist/types/index.d.ts +2224 -0
  12. package/package.json +8 -3
  13. package/.nvmrc +0 -1
  14. package/CONTRIBUTING.md +0 -20
  15. package/example/.env.example +0 -4
  16. package/example/README.md +0 -304
  17. package/example/USAGE.md +0 -74
  18. package/example/index.html +0 -12
  19. package/example/package-lock.json +0 -1557
  20. package/example/package.json +0 -25
  21. package/example/scripts/browser-check.mjs +0 -1421
  22. package/example/scripts/match-derivation.mjs +0 -65
  23. package/example/src/App.vue +0 -138
  24. package/example/src/components/AuthorityPanel.vue +0 -277
  25. package/example/src/components/ChainPanel.vue +0 -267
  26. package/example/src/components/ChainState.vue +0 -59
  27. package/example/src/components/CopyButton.vue +0 -25
  28. package/example/src/components/CreateAssetPanel.vue +0 -313
  29. package/example/src/components/DigitalAssetsPanel.vue +0 -68
  30. package/example/src/components/EvidencePanel.vue +0 -396
  31. package/example/src/components/ExplorerPanel.vue +0 -119
  32. package/example/src/components/KeypairPanel.vue +0 -182
  33. package/example/src/components/PhrasePanel.vue +0 -105
  34. package/example/src/components/SocketWarning.vue +0 -18
  35. package/example/src/components/StepGate.vue +0 -24
  36. package/example/src/components/TransferPanel.vue +0 -416
  37. package/example/src/components/TxDeadline.vue +0 -19
  38. package/example/src/components/TxFee.vue +0 -31
  39. package/example/src/components/TxStatus.vue +0 -105
  40. package/example/src/composables/useSocketConnection.ts +0 -80
  41. package/example/src/env.d.ts +0 -12
  42. package/example/src/main.ts +0 -5
  43. package/example/src/pennies.ts +0 -7
  44. package/example/src/style.css +0 -149
  45. package/example/tsconfig.json +0 -19
  46. package/example/vite.config.ts +0 -26
  47. package/jest.config.js +0 -18
  48. package/scripts/copy-wasm.mjs +0 -21
  49. package/scripts/smoke.mjs +0 -382
  50. package/tsconfig.build.json +0 -8
  51. package/tsconfig.json +0 -21
  52. package/tsup.config.ts +0 -60
package/tsup.config.ts DELETED
@@ -1,60 +0,0 @@
1
- import { defineConfig } from 'tsup'
2
- import type { Plugin } from 'esbuild'
3
- import { fileURLToPath } from 'node:url'
4
-
5
- const abs = (p: string) => fileURLToPath(new URL(p, import.meta.url))
6
-
7
- /**
8
- * The Node build reads the engine off disk; the browser build fetches it as a
9
- * bundler asset. Both targets share every other line of source, so the only
10
- * difference is which loader module `runtime/init.ts` ends up importing.
11
- */
12
- const useNodeWasmLoader: Plugin = {
13
- name: 'geeq-node-wasm-loader',
14
- setup(build) {
15
- build.onResolve({ filter: /wasm-loader\.browser$/ }, () => ({
16
- path: abs('src/runtime/wasm-loader.node.ts'),
17
- }))
18
- },
19
- }
20
-
21
- const shared = {
22
- entry: { index: 'src/index.ts' },
23
- dts: false, // the types-only build below owns declarations
24
- sourcemap: true,
25
- clean: true,
26
- treeshake: true,
27
- target: 'es2022',
28
- // The Geeq WASM engine (src/wasm) and the Cap'n Proto schemas (src/capnp) are
29
- // vendored source, so they are bundled in and neither Bitbucket nor a private
30
- // registry is needed. The public runtime libraries stay external and are deduped
31
- // by the consumer.
32
- external: ['@noble/hashes', '@scure/bip39', 'capnp-ts'],
33
- } as const
34
-
35
- export default defineConfig([
36
- {
37
- ...shared,
38
- format: ['esm'],
39
- outDir: 'dist/browser',
40
- platform: 'browser',
41
- },
42
- {
43
- ...shared,
44
- format: ['esm', 'cjs'],
45
- outDir: 'dist/node',
46
- platform: 'node',
47
- esbuildPlugins: [useNodeWasmLoader],
48
- },
49
- // Declarations rolled up into one file per module format: index.d.ts for import and
50
- // index.d.cts for require. A single file has no relative imports for Node16 resolution
51
- // to reject, and the .d.cts tells TypeScript the require build is CommonJS.
52
- {
53
- entry: shared.entry,
54
- format: ['esm', 'cjs'],
55
- outDir: 'dist/types',
56
- clean: true,
57
- dts: { only: true },
58
- tsconfig: 'tsconfig.build.json',
59
- },
60
- ])