@contentauth/c2pa-web 0.13.4 → 0.14.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 CHANGED
@@ -81,6 +81,8 @@ console.log(manifestStore);
81
81
  await reader.free();
82
82
  ```
83
83
 
84
+ `Reader.fromBlob` rejects assets larger than 1 GB, throwing `AssetTooLargeError`. `Reader.fromBlobFragment` reject assets where any fragment is larger than 1 GB, also throwing `AssetTooLargeError`.
85
+
84
86
  ### Building C2PA manifests with ingredients
85
87
 
86
88
  Use the `Builder` API to create C2PA manifests and add ingredients (source assets) to document the provenance chain.
@@ -89,8 +91,8 @@ Use the `Builder` API to create C2PA manifests and add ingredients (source asset
89
91
 
90
92
  The builder intent describes the type of operation being performed on the asset. This influences how the manifest is structured and what assertions are automatically added. Use one of these intents:
91
93
 
92
- - `create`: Indicates the asset is a new digital creation, a DigitalSourceType is required. The Manifest must not have have a parent ingredient. A `c2pa.created` action will be added if not provided.
93
- - `edit`: Indicates the asset is an edit of a pre-existing parent asset. The Manifest must have a parent ingredient. A parent ingredient will be generated from the source stream if not otherwise provided. A `c2pa.opened action will be tied to the parent ingredient.
94
+ - `create`: Indicates the asset is a new digital creation, a `DigitalSourceType` is required. The manifest must not have a parent ingredient. A `c2pa.created` action will be added if not provided.
95
+ - `edit`: Indicates the asset is an edit of a pre-existing parent asset. The manifest must have a parent ingredient. A parent ingredient will be generated from the source stream if not otherwise provided. A `c2pa.opened` action will be tied to the parent ingredient.
94
96
  - `update`: A restricted version of `edit` for non-editorial changes. There must be only one ingredient, as a parent. No changes can be made to the hashed content of the parent. There are additional restrictions on the types of changes that can be made.
95
97
 
96
98
  ```typescript
@@ -291,7 +293,7 @@ For the full list, see the [API reference](https://contentauth.github.io/c2pa-js
291
293
  Ensure the repo-wide prerequisites are installed:
292
294
 
293
295
  - [Node.js](https://nodejs.org/) v22.22+
294
- - [NX](https://nx.dev/getting-started/intro)
296
+ - [Nx](https://nx.dev/getting-started/intro)
295
297
  - [pnpm](https://pnpm.io/)
296
298
 
297
299
  See the [c2pa-js README](../../README.md#prerequisites) for details.
@@ -316,6 +318,6 @@ pnpm exec playwright install
316
318
 
317
319
  To run the tests:
318
320
 
319
- ```
321
+ ```sh
320
322
  nx test c2pa-web
321
323
  ```