@nokinc-flur/sdk 0.1.7 → 1.0.0
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/LICENSE +26 -15
- package/README.md +229 -198
- package/dist/index.cjs +2294 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1593 -0
- package/dist/index.d.ts +1309 -2
- package/dist/index.js +1459 -7
- package/dist/index.js.map +1 -1
- package/package.json +76 -50
package/package.json
CHANGED
|
@@ -1,50 +1,76 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@nokinc-flur/sdk",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Flur Wallet SDK (sprint 1 scaffold)",
|
|
5
|
-
"license": "
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@nokinc-flur/sdk",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Flur Wallet SDK (sprint 1 scaffold)",
|
|
5
|
+
"license": "UNLICENSED",
|
|
6
|
+
"private": false,
|
|
7
|
+
"type": "module",
|
|
8
|
+
"packageManager": "pnpm@9.15.0",
|
|
9
|
+
"main": "dist/index.cjs",
|
|
10
|
+
"module": "dist/index.js",
|
|
11
|
+
"types": "dist/index.d.ts",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"default": "./dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
"require": {
|
|
19
|
+
"types": "./dist/index.d.cts",
|
|
20
|
+
"default": "./dist/index.cjs"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"dist",
|
|
26
|
+
"openapi",
|
|
27
|
+
"README.md",
|
|
28
|
+
"LICENSE"
|
|
29
|
+
],
|
|
30
|
+
"scripts": {
|
|
31
|
+
"lint": "eslint .",
|
|
32
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
33
|
+
"test": "vitest run",
|
|
34
|
+
"test:vectors": "vitest run test/nqr/vectors.test.ts",
|
|
35
|
+
"test:contract": "vitest run test/e2e.health.test.ts test/e2e.send-money.test.ts",
|
|
36
|
+
"e2e:bootstrap": "node scripts/bootstrap-e2e-sendmoney.mjs",
|
|
37
|
+
"build": "tsup src/index.ts --format esm,cjs --dts --sourcemap",
|
|
38
|
+
"build:dev": "tsup src/index.ts --format esm,cjs --dts --sourcemap",
|
|
39
|
+
"build:prod": "tsup src/index.ts --format esm,cjs --dts --minify",
|
|
40
|
+
"gen": "openapi-typescript openapi/flur.openapi.json -o src/gen/openapi-types.ts",
|
|
41
|
+
"prod:release": "pwsh -NoProfile -ExecutionPolicy Bypass -File ./scripts/prod-build-publish-npm.ps1",
|
|
42
|
+
"prod:release:publish": "pwsh -NoProfile -ExecutionPolicy Bypass -File ./scripts/prod-build-publish-npm.ps1 -Publish",
|
|
43
|
+
"release:patch": "pwsh -NoProfile -ExecutionPolicy Bypass -File ./scripts/release.ps1 -Bump patch",
|
|
44
|
+
"release:minor": "pwsh -NoProfile -ExecutionPolicy Bypass -File ./scripts/release.ps1 -Bump minor",
|
|
45
|
+
"release:major": "pwsh -NoProfile -ExecutionPolicy Bypass -File ./scripts/release.ps1 -Bump major",
|
|
46
|
+
"prepare": "husky"
|
|
47
|
+
},
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"@noble/curves": "^1.9.7",
|
|
50
|
+
"@noble/hashes": "^1.8.0",
|
|
51
|
+
"zod": "^3.23.8"
|
|
52
|
+
},
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"@types/node": "^20.11.30",
|
|
55
|
+
"@typescript-eslint/eslint-plugin": "^7.7.1",
|
|
56
|
+
"@typescript-eslint/parser": "^7.7.1",
|
|
57
|
+
"eslint": "^8.57.0",
|
|
58
|
+
"eslint-config-prettier": "^9.1.0",
|
|
59
|
+
"husky": "^9.1.7",
|
|
60
|
+
"lint-staged": "^16.4.0",
|
|
61
|
+
"openapi-typescript": "^7.5.1",
|
|
62
|
+
"prettier": "^3.2.5",
|
|
63
|
+
"tsup": "^8.0.2",
|
|
64
|
+
"typescript": "~5.5.4",
|
|
65
|
+
"vitest": "^1.5.0"
|
|
66
|
+
},
|
|
67
|
+
"lint-staged": {
|
|
68
|
+
"*.{ts,tsx}": [
|
|
69
|
+
"prettier --write",
|
|
70
|
+
"eslint --fix --max-warnings 0"
|
|
71
|
+
],
|
|
72
|
+
"*.{js,jsx,json,md,cjs,mjs}": [
|
|
73
|
+
"prettier --write"
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
}
|