@contentauth/c2pa-web 0.15.5 → 0.16.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/README.md +4 -63
- package/dist/c2pa-CqMzdYCb.js +968 -0
- package/dist/c2pa_worker.js +154 -130
- package/dist/common.d.ts +2 -1
- package/dist/common.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +26 -24
- package/dist/inline.d.ts +1 -1
- package/dist/inline.d.ts.map +1 -1
- package/dist/inline.js +5 -4
- package/dist/lib/builder.d.ts +10 -0
- package/dist/lib/builder.d.ts.map +1 -1
- package/dist/lib/reader.d.ts +2 -2
- package/dist/lib/reader.d.ts.map +1 -1
- package/dist/lib/signer.d.ts +24 -0
- package/dist/lib/signer.d.ts.map +1 -1
- package/dist/lib/worker/rpc.d.ts +5 -1
- package/dist/lib/worker/rpc.d.ts.map +1 -1
- package/dist/resources/c2pa_bg.wasm +0 -0
- package/package.json +5 -5
- package/dist/c2pa-DX8BGA0J.js +0 -932
package/dist/common.d.ts
CHANGED
|
@@ -7,8 +7,9 @@
|
|
|
7
7
|
* it.
|
|
8
8
|
*/
|
|
9
9
|
export type { Config, C2pa } from './lib/c2pa.js';
|
|
10
|
+
export { encodeSignerPayload } from './lib/signer.js';
|
|
10
11
|
export type { ManifestAndAssetBytes, BuilderFactory } from './lib/builder.js';
|
|
11
12
|
export type { ReaderFactory } from './lib/reader.js';
|
|
12
|
-
export type { Signer, SigningAlg, HashedUri, SignerPayload, CredentialHolder, IdentityAssertion, SignOptions } from './lib/signer.js';
|
|
13
|
+
export type { Signer, SigningAlg, HashedUri, SignerPayload, SignerPayloadInput, CredentialHolder, IdentityAssertion, SignOptions } from './lib/signer.js';
|
|
13
14
|
export type * from '@contentauth/c2pa-types';
|
|
14
15
|
//# 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;
|
|
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,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAE9E,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,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.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export { createC2pa } from './lib/c2pa.js';
|
|
10
10
|
export { Reader } from './lib/reader.js';
|
|
11
|
-
export { Builder } from './lib/builder.js';
|
|
11
|
+
export { Builder, type ClaimVersion, type ManifestProperty } from './lib/builder.js';
|
|
12
12
|
export * from './common.js';
|
|
13
13
|
export * from '@contentauth/c2pa-utilities';
|
|
14
14
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,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"}
|
package/dist/index.js
CHANGED
|
@@ -1,29 +1,31 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as a, B as t, C as r, D as S, a as E, b as T, c as _, d as i, e as A, f as n, R as o, g as R, h as g, i as l, j as D, k as L, l as d, m as f, n as u, o as F, p as I, r as M, q as c, s as U, t as y, u as Y, v as h, w as C } from "./c2pa-CqMzdYCb.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
a as AssetTooLargeError,
|
|
4
4
|
t as Builder,
|
|
5
5
|
r as Context,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
f as
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
6
|
+
S as DEFAULT_INITIAL_RETRY_DELAY_MS,
|
|
7
|
+
E as DEFAULT_MAX_RESPONSE_BYTES,
|
|
8
|
+
T as DEFAULT_MAX_RETRIES,
|
|
9
|
+
_ as DEFAULT_MAX_RETRY_AFTER_MS,
|
|
10
|
+
i as DEFAULT_MAX_RETRY_DELAY_MS,
|
|
11
|
+
A as DEFAULT_MAX_SIZE_IN_BYTES,
|
|
12
|
+
n as DEFAULT_SETTINGS,
|
|
13
|
+
o as Reader,
|
|
14
|
+
R as createC2pa,
|
|
15
|
+
g as createCawgTrustSettings,
|
|
16
|
+
l as createTrustSettings,
|
|
17
|
+
D as createVerifySettings,
|
|
18
|
+
L as defaultIsRetryableStatus,
|
|
19
|
+
d as encodeSignerPayload,
|
|
20
|
+
f as fetchWithRetry,
|
|
21
|
+
u as fetchWithRetryRaw,
|
|
22
|
+
F as loadSettingsFromUrl,
|
|
23
|
+
I as mergeSettings,
|
|
24
|
+
M as resolveConfiguredMaxSizeInBytes,
|
|
25
|
+
c as resolveSettings,
|
|
26
|
+
U as resolveTrustSettings,
|
|
27
|
+
y as settingsToJson,
|
|
26
28
|
Y as snakeCaseify,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
+
h as validateAssetSize,
|
|
30
|
+
C as withDefaultSettings
|
|
29
31
|
};
|
package/dist/inline.d.ts
CHANGED
|
@@ -17,6 +17,6 @@ export type InlineConfig = Omit<Config, 'wasmSrc'>;
|
|
|
17
17
|
*/
|
|
18
18
|
export declare function createC2pa(config?: InlineConfig): Promise<import('./common.js').C2pa>;
|
|
19
19
|
export { Reader } from './lib/reader.js';
|
|
20
|
-
export { Builder } from './lib/builder.js';
|
|
20
|
+
export { Builder, type ClaimVersion, type ManifestProperty } from './lib/builder.js';
|
|
21
21
|
export * from './common.js';
|
|
22
22
|
//# 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,
|
|
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"}
|