@contentauth/c2pa-node 0.9.2 → 0.9.4
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/dist/Builder.spec.js +1 -1
- package/dist/IdentityAssertion.spec.js +1 -1
- package/dist/Reader.spec.js +1 -1
- package/dist/Settings.js +1 -1
- package/dist/Settings.spec.js +1 -1
- package/dist/Signer.spec.js +1 -1
- package/dist/Trustmark.spec.js +1 -1
- package/dist/assetSize.js +1 -1
- package/dist/index.node +0 -0
- package/package.json +3 -3
package/dist/Builder.spec.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
|
|
4
4
|
// or the MIT license (http://opensource.org/licenses/MIT),
|
|
5
5
|
// at your option.
|
|
6
|
-
import
|
|
6
|
+
import fs from "fs-extra";
|
|
7
7
|
import path from "path";
|
|
8
8
|
import * as crypto from "crypto";
|
|
9
9
|
import { isActionsAssertion } from "./assertions.js";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
|
|
4
4
|
// or the MIT license (http://opensource.org/licenses/MIT),
|
|
5
5
|
// at your option.
|
|
6
|
-
import
|
|
6
|
+
import fs from "fs-extra";
|
|
7
7
|
import * as crypto from "crypto";
|
|
8
8
|
import { encode } from "cbor2";
|
|
9
9
|
class TestSigner {
|
package/dist/Reader.spec.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// or the MIT license (http://opensource.org/licenses/MIT),
|
|
5
5
|
// at your option.
|
|
6
6
|
import path from "path";
|
|
7
|
-
import
|
|
7
|
+
import fs from "fs-extra";
|
|
8
8
|
import { AssetTooLargeError } from "@contentauth/c2pa-utilities";
|
|
9
9
|
import { Reader } from "./Reader.js";
|
|
10
10
|
import { MAX_SIZE_IN_BYTES } from "./assetSize.js";
|
package/dist/Settings.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// implied. See the LICENSE-MIT and LICENSE-APACHE files for the
|
|
10
10
|
// specific language governing permissions and limitations under
|
|
11
11
|
// each license.
|
|
12
|
-
import
|
|
12
|
+
import fs from "fs-extra";
|
|
13
13
|
/**
|
|
14
14
|
* This file contains only Settings functions that are unique to the Node SDK.
|
|
15
15
|
*
|
package/dist/Settings.spec.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
|
|
4
4
|
// or the MIT license (http://opensource.org/licenses/MIT),
|
|
5
5
|
// at your option.
|
|
6
|
-
import
|
|
6
|
+
import fs from "fs-extra";
|
|
7
7
|
import * as path from "path";
|
|
8
8
|
import * as os from "os";
|
|
9
9
|
import { loadSettingsFromFile } from "./Settings.js";
|
package/dist/Signer.spec.js
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
// specific language governing permissions and limitations under
|
|
11
11
|
// each license.
|
|
12
12
|
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
|
13
|
-
import
|
|
13
|
+
import fs from "fs-extra";
|
|
14
14
|
import * as crypto from "crypto";
|
|
15
15
|
import { CallbackSigner } from "./Signer.js";
|
|
16
16
|
import { Builder } from "./Builder.js";
|
package/dist/Trustmark.spec.js
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
// specific language governing permissions and limitations under
|
|
11
11
|
// each license.
|
|
12
12
|
import path from "path";
|
|
13
|
-
import
|
|
13
|
+
import fs from "fs-extra";
|
|
14
14
|
import sharp from "sharp";
|
|
15
15
|
import { Trustmark } from "./Trustmark.js";
|
|
16
16
|
const tempDir = path.join(__dirname, "..", "tmp");
|
package/dist/assetSize.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// implied. See the LICENSE-MIT and LICENSE-APACHE files for the
|
|
10
10
|
// specific language governing permissions and limitations under
|
|
11
11
|
// each license.
|
|
12
|
-
import
|
|
12
|
+
import fs from "fs-extra";
|
|
13
13
|
import { validateAssetSize } from "@contentauth/c2pa-utilities";
|
|
14
14
|
// c2pa-node runs server-side, so it can reasonably support larger assets than c2pa-web,
|
|
15
15
|
// and may be less resource-constrained in comparison.
|
package/dist/index.node
CHANGED
|
Binary file
|
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.
|
|
8
|
+
"version": "0.9.4",
|
|
9
9
|
"description": "Node.js bindings for C2PA",
|
|
10
10
|
"main": "dist/index.js",
|
|
11
11
|
"type": "module",
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
"pkg-dir": "^8.0.0",
|
|
65
65
|
"pretty-bytes": "^6.1.1",
|
|
66
66
|
"unzipper": "^0.10.14",
|
|
67
|
-
"@contentauth/c2pa-
|
|
68
|
-
"@contentauth/c2pa-
|
|
67
|
+
"@contentauth/c2pa-utilities": "0.2.2",
|
|
68
|
+
"@contentauth/c2pa-types": "0.7.4"
|
|
69
69
|
},
|
|
70
70
|
"nx": {
|
|
71
71
|
"tags": [
|