@nanorail/sdk 0.1.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 +21 -0
- package/README.md +66 -0
- package/dist/index.d.ts +488 -0
- package/dist/index.mjs +1668 -0
- package/dist/nanorail.js +1668 -0
- package/package.json +67 -0
package/package.json
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@nanorail/sdk",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "MPP-native metering SDK: turn data-nanorail-* attributes into agent-readable, policy-bounded paid content chunks with discovery, receipts, and Tempo settlement.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "NanoRail",
|
|
7
|
+
"homepage": "https://github.com/gopimehta/NanoRail#readme",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/gopimehta/NanoRail.git",
|
|
11
|
+
"directory": "packages/nanorail-sdk"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/gopimehta/NanoRail/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"mpp",
|
|
18
|
+
"machine-payments",
|
|
19
|
+
"micropayments",
|
|
20
|
+
"tempo",
|
|
21
|
+
"agents",
|
|
22
|
+
"paywall",
|
|
23
|
+
"metering",
|
|
24
|
+
"x402",
|
|
25
|
+
"stablecoin"
|
|
26
|
+
],
|
|
27
|
+
"type": "module",
|
|
28
|
+
"sideEffects": false,
|
|
29
|
+
"engines": {
|
|
30
|
+
"node": ">=20"
|
|
31
|
+
},
|
|
32
|
+
"main": "./dist/index.mjs",
|
|
33
|
+
"module": "./dist/index.mjs",
|
|
34
|
+
"types": "./dist/index.d.ts",
|
|
35
|
+
"exports": {
|
|
36
|
+
".": {
|
|
37
|
+
"types": "./dist/index.d.ts",
|
|
38
|
+
"import": "./dist/index.mjs"
|
|
39
|
+
},
|
|
40
|
+
"./nanorail.js": {
|
|
41
|
+
"default": "./dist/nanorail.js"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"files": [
|
|
45
|
+
"dist/index.mjs",
|
|
46
|
+
"dist/index.d.ts",
|
|
47
|
+
"dist/nanorail.js",
|
|
48
|
+
"README.md",
|
|
49
|
+
"LICENSE"
|
|
50
|
+
],
|
|
51
|
+
"publishConfig": {
|
|
52
|
+
"access": "public"
|
|
53
|
+
},
|
|
54
|
+
"scripts": {
|
|
55
|
+
"build": "node build.mjs && npm run build:dts",
|
|
56
|
+
"build:dts": "dts-bundle-generator -o dist/index.d.ts --no-check --project tsconfig.dts.json --external-inlines @nanorail/shared -- src/index.ts",
|
|
57
|
+
"watch": "node build.mjs --watch",
|
|
58
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
59
|
+
"prepublishOnly": "npm run build"
|
|
60
|
+
},
|
|
61
|
+
"devDependencies": {
|
|
62
|
+
"@nanorail/shared": "*",
|
|
63
|
+
"@noble/ed25519": "^2.1.0",
|
|
64
|
+
"dts-bundle-generator": "^9.5.1",
|
|
65
|
+
"esbuild": "^0.24.0"
|
|
66
|
+
}
|
|
67
|
+
}
|