@fabricorg/sdui-release 0.3.0 → 0.6.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.
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../node-crypto.ts"],"sourcesContent":["import { createHash, verify, type KeyObject } from \"node:crypto\";\nimport type { ReleaseCryptoPort } from \"./contracts\";\n\n/** Node.js ES256 adapter for signed experience release and pointer verification. */\nexport function createNodeReleaseCrypto(): ReleaseCryptoPort {\n\treturn {\n\t\tasync verify(input) {\n\t\t\tif (input.algorithm !== \"ES256\") return false;\n\t\t\ttry {\n\t\t\t\treturn verify(\n\t\t\t\t\t\"sha256\",\n\t\t\t\t\tinput.signingInput,\n\t\t\t\t\t{ key: input.key as KeyObject, dsaEncoding: \"ieee-p1363\" },\n\t\t\t\t\tinput.signature,\n\t\t\t\t);\n\t\t\t} catch {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t},\n\t\tasync digestSha256(bytes) {\n\t\t\treturn new Uint8Array(createHash(\"sha256\").update(bytes).digest());\n\t\t},\n\t};\n}\n"],"mappings":";AAAA,SAAS,YAAY,cAA8B;AAI5C,SAAS,0BAA6C;AAC5D,SAAO;AAAA,IACN,MAAM,OAAO,OAAO;AACnB,UAAI,MAAM,cAAc,QAAS,QAAO;AACxC,UAAI;AACH,eAAO;AAAA,UACN;AAAA,UACA,MAAM;AAAA,UACN,EAAE,KAAK,MAAM,KAAkB,aAAa,aAAa;AAAA,UACzD,MAAM;AAAA,QACP;AAAA,MACD,QAAQ;AACP,eAAO;AAAA,MACR;AAAA,IACD;AAAA,IACA,MAAM,aAAa,OAAO;AACzB,aAAO,IAAI,WAAW,WAAW,QAAQ,EAAE,OAAO,KAAK,EAAE,OAAO,CAAC;AAAA,IAClE;AAAA,EACD;AACD;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fabricorg/sdui-release",
3
- "version": "0.3.0",
3
+ "version": "0.6.0",
4
4
  "description": "Versioned SDUI document, fragment, token-set, component-pack, and promoted release contracts validated independently of any renderer.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -17,6 +17,30 @@
17
17
  "types": "./dist/index.d.cts",
18
18
  "default": "./dist/index.cjs"
19
19
  }
20
+ },
21
+ "./contracts": {
22
+ "browser": {
23
+ "types": "./dist/contracts.d.ts",
24
+ "default": "./dist/contracts.js"
25
+ },
26
+ "import": {
27
+ "types": "./dist/contracts.d.ts",
28
+ "default": "./dist/contracts.js"
29
+ },
30
+ "require": {
31
+ "types": "./dist/contracts.d.cts",
32
+ "default": "./dist/contracts.cjs"
33
+ }
34
+ },
35
+ "./node-crypto": {
36
+ "import": {
37
+ "types": "./dist/node-crypto.d.ts",
38
+ "default": "./dist/node-crypto.js"
39
+ },
40
+ "require": {
41
+ "types": "./dist/node-crypto.d.cts",
42
+ "default": "./dist/node-crypto.cjs"
43
+ }
20
44
  }
21
45
  },
22
46
  "files": [
@@ -25,21 +49,21 @@
25
49
  "CHANGELOG.md"
26
50
  ],
27
51
  "dependencies": {
28
- "@fabricorg/assembly": "^0.3.0",
29
- "@fabricorg/gen-capability": "^0.5.0"
52
+ "@fabricorg/assembly": "^0.4.0",
53
+ "@fabricorg/gen-capability": "^0.5.1"
30
54
  },
31
55
  "peerDependencies": {
32
- "@fabricorg/platform": "^1.2.0"
56
+ "@fabricorg/platform": "^1.3.0"
33
57
  },
34
58
  "devDependencies": {
35
59
  "@types/node": "^22.10.0",
36
60
  "tsup": "^8.5.0",
37
61
  "typescript": "^5.7.3",
38
62
  "vitest": "^4.1.5",
39
- "@fabricorg/assembly": "^0.3.0",
40
- "@fabricorg/gen-capability": "^0.5.0",
41
- "@fabricorg/platform": "^1.2.0",
42
- "@fabricorg/experience-contracts": "^1.0.1"
63
+ "@fabricorg/assembly": "^0.4.0",
64
+ "@fabricorg/gen-capability": "^0.5.1",
65
+ "@fabricorg/experience-contracts": "^1.0.1",
66
+ "@fabricorg/platform": "^1.3.0"
43
67
  },
44
68
  "engines": {
45
69
  "node": ">=20"