@contentauth/c2pa-node 0.1.0 → 0.1.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/dist/Builder.js +199 -0
- package/dist/Builder.spec.js +308 -0
- package/dist/IdentityAssertion.js +94 -0
- package/dist/IdentityAssertion.spec.js +177 -0
- package/dist/Reader.js +108 -0
- package/dist/Reader.spec.js +244 -0
- package/dist/Signer.js +117 -0
- package/dist/Signer.spec.js +132 -0
- package/dist/Trustmark.js +79 -0
- package/dist/Trustmark.spec.js +184 -0
- package/dist/index.node +0 -0
- package/dist/types/Builder.d.ts +22 -0
- package/dist/types/Builder.spec.d.ts +1 -0
- package/dist/types/IdentityAssertion.d.ts +17 -0
- package/dist/types/IdentityAssertion.spec.d.ts +1 -0
- package/dist/types/Reader.d.ts +14 -0
- package/dist/types/Reader.spec.d.ts +1 -0
- package/dist/types/Signer.d.ts +23 -0
- package/dist/types/Signer.spec.d.ts +1 -0
- package/dist/types/Trustmark.d.ts +8 -0
- package/dist/types/Trustmark.spec.d.ts +1 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/index.node.d.ts +16 -0
- package/dist/types/types.d.ts +893 -0
- package/package.json +16 -19
package/package.json
CHANGED
|
@@ -4,15 +4,12 @@
|
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "git+https://github.com/contentauth/c2pa-node-v2.git"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.1.
|
|
7
|
+
"version": "0.1.2",
|
|
8
8
|
"description": "Node.js bindings for C2PA",
|
|
9
9
|
"main": "dist/index.js",
|
|
10
|
-
"types": "dist/
|
|
10
|
+
"types": "dist/types/index.d.ts",
|
|
11
11
|
"files": [
|
|
12
|
-
"dist
|
|
13
|
-
"dist/src",
|
|
14
|
-
"dist/Cargo.toml",
|
|
15
|
-
"dist/Cargo.lock"
|
|
12
|
+
"dist"
|
|
16
13
|
],
|
|
17
14
|
"engines": {
|
|
18
15
|
"node": ">=18.20.2"
|
|
@@ -21,25 +18,25 @@
|
|
|
21
18
|
"license": "MIT",
|
|
22
19
|
"devDependencies": {
|
|
23
20
|
"@changesets/cli": "^2.29.5",
|
|
24
|
-
"@eslint/js": "^9.
|
|
21
|
+
"@eslint/js": "^9.33.0",
|
|
25
22
|
"@neon-rs/cli": "0.1.82",
|
|
26
23
|
"@types/debug": "^4.1.12",
|
|
27
24
|
"@types/fs-extra": "^11.0.4",
|
|
28
25
|
"@types/jest": "^29.5.14",
|
|
29
|
-
"@types/node": "^22.
|
|
30
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
31
|
-
"@typescript-eslint/parser": "^8.
|
|
26
|
+
"@types/node": "^22.17.1",
|
|
27
|
+
"@typescript-eslint/eslint-plugin": "^8.39.1",
|
|
28
|
+
"@typescript-eslint/parser": "^8.39.1",
|
|
32
29
|
"cpy-cli": "^5.0.0",
|
|
33
|
-
"eslint": "^9.
|
|
34
|
-
"fs-extra": "^11.3.
|
|
30
|
+
"eslint": "^9.33.0",
|
|
31
|
+
"fs-extra": "^11.3.1",
|
|
35
32
|
"jest": "^29.7.0",
|
|
36
33
|
"npm-run-all": "^4.1.5",
|
|
37
34
|
"rimraf": "^6.0.1",
|
|
38
35
|
"sharp": "^0.34.3",
|
|
39
|
-
"ts-jest": "^29.
|
|
40
|
-
"typedoc": "^0.28.
|
|
41
|
-
"typedoc-plugin-markdown": "^4.8.
|
|
42
|
-
"typescript": "^5.
|
|
36
|
+
"ts-jest": "^29.4.1",
|
|
37
|
+
"typedoc": "^0.28.10",
|
|
38
|
+
"typedoc-plugin-markdown": "^4.8.1",
|
|
39
|
+
"typescript": "^5.9.2"
|
|
43
40
|
},
|
|
44
41
|
"keywords": [
|
|
45
42
|
"c2pa"
|
|
@@ -49,15 +46,15 @@
|
|
|
49
46
|
},
|
|
50
47
|
"homepage": "https://github.com/contentauth/c2pa-node-v2#readme",
|
|
51
48
|
"dependencies": {
|
|
52
|
-
"debug": "^4.4.
|
|
49
|
+
"debug": "^4.4.1"
|
|
53
50
|
},
|
|
54
51
|
"scripts": {
|
|
55
52
|
"build": "run-s build:rust build:ts build:docs",
|
|
56
53
|
"build:debug": "run-s build:rust-debug build:ts",
|
|
57
|
-
"build:docs": "typedoc --plugin typedoc-plugin-markdown --readme none --out docs js-src/index.ts",
|
|
54
|
+
"build:docs": "rimraf docs && typedoc --plugin typedoc-plugin-markdown --readme none --out docs js-src/index.ts",
|
|
58
55
|
"build:rust": "pnpm run build:rust-debug --release",
|
|
59
56
|
"build:rust-debug": "cargo build --message-format=json-render-diagnostics > cargo.log",
|
|
60
|
-
"build:ts": "tsc -b && cpy index.node dist",
|
|
57
|
+
"build:ts": "tsc -b && cpy index.node dist && cpy --flat js-src/types.d.ts dist/types && node scripts/fix-types.js",
|
|
61
58
|
"changeset:publish": "changeset publish",
|
|
62
59
|
"ci": "run-s build:rust-debug build:ts test",
|
|
63
60
|
"clean": "rimraf dist generated target",
|