@contentauth/c2pa-node 0.1.2 → 0.2.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/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/contentauth/c2pa-node-v2.git"
6
6
  },
7
- "version": "0.1.2",
7
+ "version": "0.2.0",
8
8
  "description": "Node.js bindings for C2PA",
9
9
  "main": "dist/index.js",
10
10
  "types": "dist/types/index.d.ts",
@@ -18,6 +18,7 @@
18
18
  "license": "MIT",
19
19
  "devDependencies": {
20
20
  "@changesets/cli": "^2.29.5",
21
+ "@contentauth/c2pa-types": "^0.2.1",
21
22
  "@eslint/js": "^9.33.0",
22
23
  "@neon-rs/cli": "0.1.82",
23
24
  "@types/debug": "^4.1.12",
@@ -26,17 +27,19 @@
26
27
  "@types/node": "^22.17.1",
27
28
  "@typescript-eslint/eslint-plugin": "^8.39.1",
28
29
  "@typescript-eslint/parser": "^8.39.1",
30
+ "@vitest/ui": "^3.2.4",
31
+ "cbor2": "^2.0.1",
29
32
  "cpy-cli": "^5.0.0",
30
33
  "eslint": "^9.33.0",
31
34
  "fs-extra": "^11.3.1",
32
- "jest": "^29.7.0",
33
35
  "npm-run-all": "^4.1.5",
34
36
  "rimraf": "^6.0.1",
35
37
  "sharp": "^0.34.3",
36
38
  "ts-jest": "^29.4.1",
37
39
  "typedoc": "^0.28.10",
38
40
  "typedoc-plugin-markdown": "^4.8.1",
39
- "typescript": "^5.9.2"
41
+ "typescript": "^5.9.2",
42
+ "vitest": "^3.2.4"
40
43
  },
41
44
  "keywords": [
42
45
  "c2pa"
@@ -46,15 +49,16 @@
46
49
  },
47
50
  "homepage": "https://github.com/contentauth/c2pa-node-v2#readme",
48
51
  "dependencies": {
49
- "debug": "^4.4.1"
52
+ "debug": "^4.4.1",
53
+ "node-fetch": "^3.3.2"
50
54
  },
51
55
  "scripts": {
52
- "build": "run-s build:rust build:ts build:docs",
56
+ "build": "run-s build:rust build:ts",
53
57
  "build:debug": "run-s build:rust-debug build:ts",
54
58
  "build:docs": "rimraf docs && typedoc --plugin typedoc-plugin-markdown --readme none --out docs js-src/index.ts",
55
59
  "build:rust": "pnpm run build:rust-debug --release",
56
60
  "build:rust-debug": "cargo build --message-format=json-render-diagnostics > cargo.log",
57
- "build:ts": "tsc -b && cpy index.node dist && cpy --flat js-src/types.d.ts dist/types && node scripts/fix-types.js",
61
+ "build:ts": "tsc -b && cpy index.node dist && cpy index.node js-src && cpy --flat js-src/types.d.ts dist/types",
58
62
  "changeset:publish": "changeset publish",
59
63
  "ci": "run-s build:rust-debug build:ts test",
60
64
  "clean": "rimraf dist generated target",
@@ -65,7 +69,8 @@
65
69
  "postbuild:rust-debug": "neon dist < cargo.log",
66
70
  "postcross-build": "neon dist -m /target < cross.log",
67
71
  "release": "run-s build changeset:publish",
68
- "test": "jest",
69
- "test:watch": "jest --watch --runInBand --detectOpenHandles --forceExit"
72
+ "test": "pnpm build:debug && vitest run",
73
+ "test:watch": "pnpm build:debug && vitest",
74
+ "test:ui": "pnpm build:debug && vitest --ui"
70
75
  }
71
76
  }