@contentauth/c2pa-web 0.5.0 → 0.5.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/{c2pa-ebBVH9UY.js → c2pa-Bt96SIPM.js} +114 -89
- package/dist/index.js +1 -1
- package/dist/inline.js +3 -3
- package/dist/lib/c2pa.d.ts.map +1 -1
- package/dist/lib/settings.d.ts +16 -6
- package/dist/lib/settings.d.ts.map +1 -1
- package/dist/resources/c2pa_bg.wasm +0 -0
- package/package.json +4 -3
package/dist/lib/c2pa.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"c2pa.d.ts","sourceRoot":"","sources":["../../src/lib/c2pa.ts"],"names":[],"mappings":"AASA,OAAO,EAAuB,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjE,OAAO,EAAE,QAAQ,EAAsB,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAwB,MAAM,cAAc,CAAC;AAEpE,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,OAAO,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC;IAErC;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,MAAM,EAAE,aAAa,CAAC;IAEtB;;OAEG;IACH,OAAO,EAAE,cAAc,CAAC;IAExB;;OAEG;IACH,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,wBAAsB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"c2pa.d.ts","sourceRoot":"","sources":["../../src/lib/c2pa.ts"],"names":[],"mappings":"AASA,OAAO,EAAuB,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjE,OAAO,EAAE,QAAQ,EAAsB,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAwB,MAAM,cAAc,CAAC;AAEpE,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,OAAO,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC;IAErC;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,MAAM,EAAE,aAAa,CAAC;IAEtB;;OAEG;IACH,OAAO,EAAE,cAAc,CAAC;IAExB;;OAEG;IACH,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,wBAAsB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAgBjE"}
|
package/dist/lib/settings.d.ts
CHANGED
|
@@ -24,20 +24,28 @@ export interface Settings {
|
|
|
24
24
|
export interface TrustSettings {
|
|
25
25
|
/**
|
|
26
26
|
* "User" trust anchors. Any asset validated off of this trust list will will have a "signingCredential.trusted" result with an explanation noting the trust source is a "User" anchor.
|
|
27
|
+
*
|
|
28
|
+
* Possible values are: the text content of a .pem file, a URL to fetch a .pem file from, or an array of URLs that will be fetched and concatenated.
|
|
27
29
|
*/
|
|
28
|
-
userAnchors?: string;
|
|
30
|
+
userAnchors?: string | string[];
|
|
29
31
|
/**
|
|
30
32
|
* "System" trust anchors. Any asset validated off of this trust list will will have a "signingCredential.trusted" result with an explanation noting the trust source is a "System" anchor.
|
|
33
|
+
*
|
|
34
|
+
* Possible values are: the text content of a .pem file, a URL to fetch a .pem file from, or an array of URLs that will be fetched and concatenated.
|
|
31
35
|
*/
|
|
32
|
-
trustAnchors?: string;
|
|
36
|
+
trustAnchors?: string | string[];
|
|
33
37
|
/**
|
|
34
38
|
* Trust store
|
|
39
|
+
*
|
|
40
|
+
* Possible values are: the text content of a .cfg file, a URL to fetch a .cfg file from, or an array of URLs that will be fetched and concatenated.
|
|
35
41
|
*/
|
|
36
|
-
trustConfig?: string;
|
|
42
|
+
trustConfig?: string | string[];
|
|
37
43
|
/**
|
|
38
44
|
* End-entity certificates.
|
|
45
|
+
*
|
|
46
|
+
* Possible values are: the text content of a end-entity cert file, a URL to fetch a end-entity cert file from, or an array of URLs that will be fetched and concatenated.
|
|
39
47
|
*/
|
|
40
|
-
allowedList?: string;
|
|
48
|
+
allowedList?: string | string[];
|
|
41
49
|
}
|
|
42
50
|
export interface CawgTrustSettings extends TrustSettings {
|
|
43
51
|
/**
|
|
@@ -55,7 +63,9 @@ export interface BuilderSettings {
|
|
|
55
63
|
generateC2paArchive: boolean;
|
|
56
64
|
}
|
|
57
65
|
/**
|
|
58
|
-
*
|
|
66
|
+
* Resolves any trust list URLs and serializes the resulting object into a JSON string of the structure expected by c2pa-rs.
|
|
67
|
+
*
|
|
68
|
+
* @param settings
|
|
59
69
|
*/
|
|
60
|
-
export declare function settingsToWasmJson(settings: Settings): string
|
|
70
|
+
export declare function settingsToWasmJson(settings: Settings): Promise<string>;
|
|
61
71
|
//# sourceMappingURL=settings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../src/lib/settings.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAC9B,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,OAAO,CAAC,EAAE,eAAe,CAAC;CAC3B;AAED,MAAM,WAAW,aAAa;IAC5B
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../src/lib/settings.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAC9B,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,OAAO,CAAC,EAAE,eAAe,CAAC;CAC3B;AAED,MAAM,WAAW,aAAa;IAC5B;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAChC;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACjC;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAChC;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CACjC;AAED,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACtD;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,eAAe;IAC9B,mBAAmB,EAAE,OAAO,CAAC;CAC9B;AAYD;;;;GAIG;AACH,wBAAsB,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,mBAgB1D"}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentauth/c2pa-web",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -25,13 +25,14 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"highgain": "^0.1.0",
|
|
27
27
|
"ts-deepmerge": "^7.0.3",
|
|
28
|
-
"@contentauth/c2pa-
|
|
29
|
-
"@contentauth/c2pa-
|
|
28
|
+
"@contentauth/c2pa-types": "0.4.1",
|
|
29
|
+
"@contentauth/c2pa-wasm": "0.4.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@playwright/test": "^1.55.0",
|
|
33
33
|
"@types/ssri": "^7.1.5",
|
|
34
34
|
"@vitest/browser": "^3.2.4",
|
|
35
|
+
"msw": "^2.12.1",
|
|
35
36
|
"rimraf": "^6.0.1",
|
|
36
37
|
"typedoc": "^0.28.12",
|
|
37
38
|
"vite-tsconfig-paths": "^5.1.4"
|