@aws-sdk/cloudfront-signer 3.1087.0 → 3.1088.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/dist-cjs/index.js +1 -1
- package/dist-es/sign.js +1 -1
- package/dist-types/ts3.4/sign.d.ts +1 -3
- package/package.json +27 -27
package/dist-cjs/index.js
CHANGED
|
@@ -276,7 +276,7 @@ class CloudfrontSignBuilder {
|
|
|
276
276
|
}));
|
|
277
277
|
}
|
|
278
278
|
createCloudfrontAttribute() {
|
|
279
|
-
if (!
|
|
279
|
+
if (!this.policy) {
|
|
280
280
|
throw new Error("Invalid policy");
|
|
281
281
|
}
|
|
282
282
|
const signature = this.signPolicy(this.policy, this.privateKey, this.passphrase);
|
package/dist-es/sign.js
CHANGED
|
@@ -275,7 +275,7 @@ class CloudfrontSignBuilder {
|
|
|
275
275
|
}));
|
|
276
276
|
}
|
|
277
277
|
createCloudfrontAttribute() {
|
|
278
|
-
if (!
|
|
278
|
+
if (!this.policy) {
|
|
279
279
|
throw new Error("Invalid policy");
|
|
280
280
|
}
|
|
281
281
|
const signature = this.signPolicy(this.policy, this.privateKey, this.passphrase);
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
export type CloudfrontSignInput =
|
|
2
|
-
| CloudfrontSignInputWithParameters
|
|
3
|
-
| CloudfrontSignInputWithPolicy;
|
|
1
|
+
export type CloudfrontSignInput = CloudfrontSignInputWithParameters | CloudfrontSignInputWithPolicy;
|
|
4
2
|
export type CloudfrontSignerAlgorithm = "SHA1" | "SHA256";
|
|
5
3
|
export type CloudfrontSignerCredentials = {
|
|
6
4
|
keyPairId: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/cloudfront-signer",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1088.0",
|
|
4
|
+
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/cloudfront-signer",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "AWS SDK for JavaScript Team",
|
|
8
|
+
"url": "https://aws.amazon.com/sdk-for-javascript/"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/aws/aws-sdk-js-v3.git",
|
|
13
|
+
"directory": "packages/cloudfront-signer"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist-*/**"
|
|
17
|
+
],
|
|
18
|
+
"sideEffects": false,
|
|
19
|
+
"main": "./dist-cjs/index.js",
|
|
20
|
+
"module": "./dist-es/index.js",
|
|
21
|
+
"types": "./dist-types/index.d.ts",
|
|
22
|
+
"typesVersions": {
|
|
23
|
+
"<4.5": {
|
|
24
|
+
"dist-types/*": [
|
|
25
|
+
"dist-types/ts3.4/*"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
},
|
|
4
29
|
"scripts": {
|
|
5
30
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
6
31
|
"build:cjs": "node ../../scripts/compilation/inline",
|
|
@@ -17,22 +42,10 @@
|
|
|
17
42
|
"test:e2e": "yarn g:vitest run -c vitest.config.e2e.mts",
|
|
18
43
|
"test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.mts"
|
|
19
44
|
},
|
|
20
|
-
"main": "./dist-cjs/index.js",
|
|
21
|
-
"module": "./dist-es/index.js",
|
|
22
|
-
"types": "./dist-types/index.d.ts",
|
|
23
|
-
"sideEffects": false,
|
|
24
|
-
"author": {
|
|
25
|
-
"name": "AWS SDK for JavaScript Team",
|
|
26
|
-
"url": "https://aws.amazon.com/sdk-for-javascript/"
|
|
27
|
-
},
|
|
28
|
-
"license": "Apache-2.0",
|
|
29
45
|
"dependencies": {
|
|
30
|
-
"@smithy/core": "^3.29.
|
|
46
|
+
"@smithy/core": "^3.29.4",
|
|
31
47
|
"tslib": "^2.6.2"
|
|
32
48
|
},
|
|
33
|
-
"files": [
|
|
34
|
-
"dist-*/**"
|
|
35
|
-
],
|
|
36
49
|
"devDependencies": {
|
|
37
50
|
"@tsconfig/recommended": "1.0.1",
|
|
38
51
|
"concurrently": "7.0.0",
|
|
@@ -42,18 +55,5 @@
|
|
|
42
55
|
},
|
|
43
56
|
"engines": {
|
|
44
57
|
"node": ">=20.0.0"
|
|
45
|
-
},
|
|
46
|
-
"typesVersions": {
|
|
47
|
-
"<4.5": {
|
|
48
|
-
"dist-types/*": [
|
|
49
|
-
"dist-types/ts3.4/*"
|
|
50
|
-
]
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/cloudfront-signer",
|
|
54
|
-
"repository": {
|
|
55
|
-
"type": "git",
|
|
56
|
-
"url": "https://github.com/aws/aws-sdk-js-v3.git",
|
|
57
|
-
"directory": "packages/cloudfront-signer"
|
|
58
58
|
}
|
|
59
59
|
}
|