@contentauth/c2pa-web 0.16.1 → 0.17.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 +11 -10
- package/dist/builder-EizXw-Lf.js +617 -0
- package/dist/c2pa_worker.js +6 -0
- 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/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-EizXw-Lf.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"}
|