@contentauth/c2pa-node 0.9.6 → 0.9.7

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/Cargo.toml CHANGED
@@ -11,7 +11,7 @@ crate-type = ["cdylib"]
11
11
 
12
12
  [dependencies]
13
13
  async-trait = "0.1.77"
14
- ciborium = "0.2.2"
14
+ c2pa_cbor = "0.78.0"
15
15
  c2pa = { workspace = true, features = ["file_io", "add_thumbnails"] }
16
16
  futures = "0.3"
17
17
  image = "0.25.6"
package/dist/index.node CHANGED
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/dist/index.node
3
- size: 49144704 bytes
4
- sha256: 5544def93faf8bb2a10888a015e4ec2f01d4d2bf8583b4cf871a8c48643dfdbe
3
+ size: 49170696 bytes
4
+ sha256: 6f1e7f72bb6e00aff6f77477d9f4961a022a98912016820b86f72cdcced88e8a
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "url": "git+https://github.com/contentauth/c2pa-js.git",
6
6
  "directory": "packages/c2pa-node"
7
7
  },
8
- "version": "0.9.6",
8
+ "version": "0.9.7",
9
9
  "description": "Node.js bindings for C2PA",
10
10
  "main": "dist/index.js",
11
11
  "type": "module",
@@ -183,7 +183,7 @@ fn finalize_identity_assertion(
183
183
  };
184
184
 
185
185
  let mut assertion_cbor: Vec<u8> = vec![];
186
- ciborium::into_writer(&ia, &mut assertion_cbor)
186
+ c2pa_cbor::to_writer(&mut assertion_cbor, &ia)
187
187
  .map_err(|e| c2pa::Error::BadParam(e.to_string()))?;
188
188
  // TO DO: Think through how errors map into crate::Error.
189
189
 
@@ -195,7 +195,7 @@ fn finalize_identity_assertion(
195
195
  ia.pad1 = vec![0u8; assertion_size - assertion_cbor.len() - 15];
196
196
 
197
197
  assertion_cbor.clear();
198
- ciborium::into_writer(&ia, &mut assertion_cbor)
198
+ c2pa_cbor::to_writer(&mut assertion_cbor, &ia)
199
199
  .map_err(|e| c2pa::Error::BadParam(e.to_string()))?;
200
200
 
201
201
  ia.pad2 = Some(ByteBuf::from(vec![
@@ -204,7 +204,7 @@ fn finalize_identity_assertion(
204
204
  ]));
205
205
 
206
206
  assertion_cbor.clear();
207
- ciborium::into_writer(&ia, &mut assertion_cbor)
207
+ c2pa_cbor::to_writer(&mut assertion_cbor, &ia)
208
208
  .map_err(|e| c2pa::Error::BadParam(e.to_string()))?;
209
209
  assert_eq!(assertion_size, assertion_cbor.len());
210
210
  }