@contentauth/c2pa-web 0.12.0 → 0.12.1

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,22 @@
1
+ /**
2
+ * Copyright 2026 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this file in
6
+ * accordance with the terms of the Adobe license agreement accompanying
7
+ * it.
8
+ */
9
+ /**
10
+ * Rebuilds the manifest store's manifests map as a null-prototype object so
11
+ * that reserved property names like "__proto__" are safe to use as keys.
12
+ *
13
+ * serde_wasm_bindgen uses bracket assignment when serializing HashMap entries.
14
+ * For the key "__proto__", `obj["__proto__"] = value` triggers [[SetPrototypeOf]]
15
+ * instead of creating an own property, putting that manifest in the prototype
16
+ * chain rather than the object itself. postMessage's structured clone only
17
+ * copies own properties, so it would disappear in transit. We detect this by
18
+ * checking whether the prototype was changed, and restore the manifest as an
19
+ * own property before the value leaves the worker.
20
+ */
21
+ export declare function sanitizeManifestStore(store: any): any;
22
+ //# sourceMappingURL=sanitizeManifestStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sanitizeManifestStore.d.ts","sourceRoot":"","sources":["../../../src/lib/worker/sanitizeManifestStore.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;;;;;;;;;GAWG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,GAAG,GAAG,GAAG,CAerD"}
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentauth/c2pa-web",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -33,8 +33,8 @@
33
33
  "dependencies": {
34
34
  "highgain": "^0.1.0",
35
35
  "ts-deepmerge": "^7.0.3",
36
- "@contentauth/c2pa-wasm": "0.9.0",
37
- "@contentauth/c2pa-types": "0.7.0"
36
+ "@contentauth/c2pa-types": "0.7.0",
37
+ "@contentauth/c2pa-wasm": "0.9.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@playwright/test": "^1.60.0",