@contentauth/c2pa-web 0.16.1 → 0.17.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.
- package/README.md +11 -10
- package/dist/builder-CaTgrAW1.js +617 -0
- package/dist/c2pa_worker.js +9 -3
- package/dist/common.d.ts +1 -2
- package/dist/common.d.ts.map +1 -1
- package/dist/index.js +5 -29
- package/dist/inline.d.ts +1 -0
- package/dist/inline.d.ts.map +1 -1
- package/dist/inline.js +4 -3
- package/dist/lib/builder.d.ts +1 -32
- package/dist/lib/builder.d.ts.map +1 -1
- package/dist/lib/c2pa.d.ts +0 -16
- package/dist/lib/c2pa.d.ts.map +1 -1
- package/dist/lib/reader.d.ts +1 -25
- package/dist/lib/reader.d.ts.map +1 -1
- package/dist/resources/c2pa_bg.wasm +0 -0
- package/package.json +4 -4
- package/dist/c2pa-DSuogpt7.js +0 -1086
package/dist/c2pa_worker.js
CHANGED
|
@@ -767,6 +767,12 @@ var fe = $((ge, C) => {
|
|
|
767
767
|
__wbg_now_aa4ccb83129e9e55: function() {
|
|
768
768
|
return Date.now();
|
|
769
769
|
},
|
|
770
|
+
__wbg_now_e7c6795a7f81e10f: function(e) {
|
|
771
|
+
return e.now();
|
|
772
|
+
},
|
|
773
|
+
__wbg_performance_3fcf6e32a7e1ed0a: function(e) {
|
|
774
|
+
return e.performance;
|
|
775
|
+
},
|
|
770
776
|
__wbg_process_44c7a14e11e9f69e: function(e) {
|
|
771
777
|
return e.process;
|
|
772
778
|
},
|
|
@@ -930,15 +936,15 @@ var fe = $((ge, C) => {
|
|
|
930
936
|
};
|
|
931
937
|
}
|
|
932
938
|
function Y(r, e) {
|
|
933
|
-
o.
|
|
939
|
+
o.wasm_bindgen_cb414c02e4f83cd6___convert__closures_____invoke_______true_(r, e);
|
|
934
940
|
}
|
|
935
941
|
function K(r, e, t) {
|
|
936
|
-
const n = o.
|
|
942
|
+
const n = o.wasm_bindgen_cb414c02e4f83cd6___convert__closures_____invoke___wasm_bindgen_cb414c02e4f83cd6___JsValue__core_d941ad8722425d2e___result__Result_____wasm_bindgen_cb414c02e4f83cd6___JsError___true_(r, e, t);
|
|
937
943
|
if (n[1])
|
|
938
944
|
throw d(n[0]);
|
|
939
945
|
}
|
|
940
946
|
function Q(r, e, t, n) {
|
|
941
|
-
o.
|
|
947
|
+
o.wasm_bindgen_cb414c02e4f83cd6___convert__closures_____invoke___js_sys_1746cd361478c686___Function_fn_wasm_bindgen_cb414c02e4f83cd6___JsValue_____wasm_bindgen_cb414c02e4f83cd6___sys__Undefined___js_sys_1746cd361478c686___Function_fn_wasm_bindgen_cb414c02e4f83cd6___JsValue_____wasm_bindgen_cb414c02e4f83cd6___sys__Undefined_______true_(r, e, t, n);
|
|
942
948
|
}
|
|
943
949
|
const Z = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"], ee = ["omit", "same-origin", "include"], te = ["same-origin", "no-cors", "cors", "navigate"], z = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
944
950
|
}, unregister: () => {
|
package/dist/common.d.ts
CHANGED
|
@@ -8,8 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export type { Config, C2pa } from './lib/c2pa.js';
|
|
10
10
|
export { encodeSignerPayload } from './lib/signer.js';
|
|
11
|
-
export type { ManifestAndAssetBytes
|
|
12
|
-
export type { ReaderFactory } from './lib/reader.js';
|
|
11
|
+
export type { ManifestAndAssetBytes } from './lib/builder.js';
|
|
13
12
|
export type { Signer, SigningAlg, HashedUri, SignerPayload, SignerPayloadInput, CredentialHolder, IdentityAssertion, SignOptions } from './lib/signer.js';
|
|
14
13
|
export type * from '@contentauth/c2pa-types';
|
|
15
14
|
//# sourceMappingURL=common.d.ts.map
|
package/dist/common.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD,YAAY,EAAE,qBAAqB,EAAE,
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD,YAAY,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAE9D,YAAY,EACV,MAAM,EACN,UAAU,EACV,SAAS,EACT,aAAa,EACb,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACZ,MAAM,iBAAiB,CAAC;AAGzB,mBAAmB,yBAAyB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,32 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as r, R as o, c as d, e as s } from "./builder-CaTgrAW1.js";
|
|
2
|
+
export * from "@contentauth/c2pa-utilities";
|
|
2
3
|
export {
|
|
3
|
-
|
|
4
|
-
t as Builder,
|
|
5
|
-
r as Context,
|
|
6
|
-
i as DEFAULT_INITIAL_RETRY_DELAY_MS,
|
|
7
|
-
S as DEFAULT_MAX_RESPONSE_BYTES,
|
|
8
|
-
E as DEFAULT_MAX_RETRIES,
|
|
9
|
-
T as DEFAULT_MAX_RETRY_AFTER_MS,
|
|
10
|
-
_ as DEFAULT_MAX_RETRY_DELAY_MS,
|
|
11
|
-
A as DEFAULT_MAX_SIZE_IN_BYTES,
|
|
12
|
-
n as DEFAULT_SETTINGS,
|
|
4
|
+
r as Builder,
|
|
13
5
|
o as Reader,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
l as createTrustSettings,
|
|
17
|
-
D as createVerifySettings,
|
|
18
|
-
L as defaultIsRetryableStatus,
|
|
19
|
-
d as encodeSignerPayload,
|
|
20
|
-
F as fetchWithRetry,
|
|
21
|
-
c as fetchWithRetryRaw,
|
|
22
|
-
f as loadSettingsFromUrl,
|
|
23
|
-
u as mergeSettings,
|
|
24
|
-
I as resolveConfiguredMaxSizeInBytes,
|
|
25
|
-
M as resolveSettings,
|
|
26
|
-
h as resolveTrustSettings,
|
|
27
|
-
y as settingsToJson,
|
|
28
|
-
U as snakeCaseify,
|
|
29
|
-
Y as validateAssetSize,
|
|
30
|
-
v as validateFetchWithRetryOptions,
|
|
31
|
-
C as withDefaultSettings
|
|
6
|
+
d as createC2pa,
|
|
7
|
+
s as encodeSignerPayload
|
|
32
8
|
};
|
package/dist/inline.d.ts
CHANGED
|
@@ -19,4 +19,5 @@ export declare function createC2pa(config?: InlineConfig): Promise<import('./com
|
|
|
19
19
|
export { Reader } from './lib/reader.js';
|
|
20
20
|
export { Builder, type ClaimVersion, type ManifestProperty } from './lib/builder.js';
|
|
21
21
|
export * from './common.js';
|
|
22
|
+
export * from '@contentauth/c2pa-utilities';
|
|
22
23
|
//# sourceMappingURL=inline.d.ts.map
|
package/dist/inline.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline.d.ts","sourceRoot":"","sources":["../src/inline.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAgC,MAAM,EAAE,MAAM,eAAe,CAAC;AAGrE,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;AAEnD;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,UAAU,CAAC,MAAM,CAAC,EAAE,YAAY,uCAOrD;AAED,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EACL,OAAO,EACP,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACtB,MAAM,kBAAkB,CAAC;AAC1B,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"inline.d.ts","sourceRoot":"","sources":["../src/inline.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAgC,MAAM,EAAE,MAAM,eAAe,CAAC;AAGrE,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;AAEnD;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,UAAU,CAAC,MAAM,CAAC,EAAE,YAAY,uCAOrD;AAED,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EACL,OAAO,EACP,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACtB,MAAM,kBAAkB,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,6BAA6B,CAAC"}
|