@contentauth/c2pa-web 0.13.4 → 0.14.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 +6 -4
- package/dist/{c2pa-Di8FrHc6.js → c2pa-ClWjHDBi.js} +361 -251
- package/dist/common.d.ts +0 -1
- package/dist/common.d.ts.map +1 -1
- package/dist/index.d.ts +1 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +23 -3
- package/dist/inline.js +12 -12
- package/dist/lib/builder.d.ts +1 -1
- package/dist/lib/builder.d.ts.map +1 -1
- package/dist/lib/c2pa.d.ts +14 -1
- package/dist/lib/c2pa.d.ts.map +1 -1
- package/dist/lib/error.d.ts +0 -3
- package/dist/lib/error.d.ts.map +1 -1
- package/dist/lib/reader.d.ts +1 -1
- package/dist/lib/reader.d.ts.map +1 -1
- package/dist/lib/signer.d.ts +2 -9
- package/dist/lib/signer.d.ts.map +1 -1
- package/dist/resources/c2pa_bg.wasm +0 -0
- package/package.json +29 -6
- package/LICENSE +0 -21
- package/dist/lib/settings.d.ts +0 -106
- package/dist/lib/settings.d.ts.map +0 -1
package/dist/common.d.ts
CHANGED
|
@@ -11,6 +11,5 @@ export type { Reader, ReaderFactory } from './lib/reader.js';
|
|
|
11
11
|
export type { Builder, BuilderFactory, ManifestAndAssetBytes } from './lib/builder.js';
|
|
12
12
|
export type { Signer, SigningAlg } from './lib/signer.js';
|
|
13
13
|
export { isSupportedReaderFormat, READER_SUPPORTED_FORMATS } from './lib/supportedFormats.js';
|
|
14
|
-
export type { Settings, VerifySettings, TrustSettings, BuilderSettings, CawgTrustSettings } from './lib/settings.js';
|
|
15
14
|
export type * from '@contentauth/c2pa-types';
|
|
16
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,mBAAmB,eAAe,CAAC;AAEnC,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAE7D,YAAY,EACV,OAAO,EACP,cAAc,EACd,qBAAqB,EACtB,MAAM,kBAAkB,CAAC;AAE1B,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE1D,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACzB,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,mBAAmB,eAAe,CAAC;AAEnC,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAE7D,YAAY,EACV,OAAO,EACP,cAAc,EACd,qBAAqB,EACtB,MAAM,kBAAkB,CAAC;AAE1B,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE1D,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACzB,MAAM,2BAA2B,CAAC;AAGnC,mBAAmB,yBAAyB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -6,19 +6,7 @@
|
|
|
6
6
|
* accordance with the terms of the Adobe license agreement accompanying
|
|
7
7
|
* it.
|
|
8
8
|
*/
|
|
9
|
-
/**
|
|
10
|
-
* Creates a new instance of c2pa-web by setting up a web worker and preparing a WASM binary.
|
|
11
|
-
*
|
|
12
|
-
* @param config - SDK configuration object.
|
|
13
|
-
* @returns An object providing access to factory methods for creating new reader objects.
|
|
14
|
-
*
|
|
15
|
-
* @example Creating a new SDK instance and reader:
|
|
16
|
-
* ```
|
|
17
|
-
* const c2pa = await createC2pa({ wasmSrc: 'url/hosting/wasm/binary' });
|
|
18
|
-
*
|
|
19
|
-
* const reader = await c2pa.reader.fromBlob(imageBlob.type, imageBlob);
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
9
|
export { createC2pa } from './lib/c2pa.js';
|
|
23
10
|
export * from './common.js';
|
|
11
|
+
export * from '@contentauth/c2pa-utilities';
|
|
24
12
|
//# 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;
|
|
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,cAAc,aAAa,CAAC;AAC5B,cAAc,6BAA6B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,26 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as e, D as t, a as r, b as E, c as _, d as S, e as T, R as A, f as R, g as i, h as o, i as g, j as n, k as D, l as F, m as L, n as M, o as l, r as U, p as c, s as f, q as I, v as Y } from "./c2pa-ClWjHDBi.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
e as AssetTooLargeError,
|
|
4
|
+
t as DEFAULT_INITIAL_RETRY_DELAY_MS,
|
|
5
|
+
r as DEFAULT_MAX_RESPONSE_BYTES,
|
|
6
|
+
E as DEFAULT_MAX_RETRIES,
|
|
7
|
+
_ as DEFAULT_MAX_RETRY_AFTER_MS,
|
|
8
|
+
S as DEFAULT_MAX_RETRY_DELAY_MS,
|
|
9
|
+
T as DEFAULT_MAX_SIZE_IN_BYTES,
|
|
10
|
+
A as READER_SUPPORTED_FORMATS,
|
|
4
11
|
R as createC2pa,
|
|
5
|
-
|
|
12
|
+
i as createCawgTrustSettings,
|
|
13
|
+
o as createTrustSettings,
|
|
14
|
+
g as createVerifySettings,
|
|
15
|
+
n as defaultIsRetryableStatus,
|
|
16
|
+
D as fetchWithRetry,
|
|
17
|
+
F as fetchWithRetryRaw,
|
|
18
|
+
L as isSupportedReaderFormat,
|
|
19
|
+
M as loadSettingsFromUrl,
|
|
20
|
+
l as mergeSettings,
|
|
21
|
+
U as resolveSettings,
|
|
22
|
+
c as resolveTrustSettings,
|
|
23
|
+
f as settingsToJson,
|
|
24
|
+
I as snakeCaseify,
|
|
25
|
+
Y as validateAssetSize
|
|
6
26
|
};
|