@adobe/helix-deploy 6.2.14 → 6.2.17
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/CHANGELOG.md +21 -0
- package/package.json +12 -12
- package/src/gateway/FastlyGateway.js +17 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
## [6.2.17](https://github.com/adobe/helix-deploy/compare/v6.2.16...v6.2.17) (2022-03-25)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** update external fixes ([#391](https://github.com/adobe/helix-deploy/issues/391)) ([e9b4bd4](https://github.com/adobe/helix-deploy/commit/e9b4bd4a59ff1b7721d7ff271b700de78233d87e))
|
|
7
|
+
|
|
8
|
+
## [6.2.16](https://github.com/adobe/helix-deploy/compare/v6.2.15...v6.2.16) (2022-03-14)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **deps:** update external fixes ([4241e3f](https://github.com/adobe/helix-deploy/commit/4241e3f5da3f0f7cc2872b4429025ce18eea7b8a))
|
|
14
|
+
|
|
15
|
+
## [6.2.15](https://github.com/adobe/helix-deploy/compare/v6.2.14...v6.2.15) (2022-03-14)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* **gateway:** clean up old and outdated tokens when token dictionary is full ([f5adc57](https://github.com/adobe/helix-deploy/commit/f5adc5757595311192d724235fa83b9db703acf9))
|
|
21
|
+
|
|
1
22
|
## [6.2.14](https://github.com/adobe/helix-deploy/compare/v6.2.13...v6.2.14) (2022-03-05)
|
|
2
23
|
|
|
3
24
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-deploy",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.17",
|
|
4
4
|
"description": "Library and Commandline Tools to build and deploy OpenWhisk Actions",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/adobe/helix-deploy#readme",
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@adobe/fastly-native-promises": "2.0.4",
|
|
41
41
|
"@adobe/helix-fetch": "3.0.6",
|
|
42
|
-
"@aws-sdk/client-apigatewayv2": "3.
|
|
43
|
-
"@aws-sdk/client-lambda": "3.
|
|
44
|
-
"@aws-sdk/client-s3": "3.
|
|
45
|
-
"@aws-sdk/client-secrets-manager": "3.
|
|
46
|
-
"@aws-sdk/client-ssm": "3.
|
|
42
|
+
"@aws-sdk/client-apigatewayv2": "3.56.0",
|
|
43
|
+
"@aws-sdk/client-lambda": "3.56.0",
|
|
44
|
+
"@aws-sdk/client-s3": "3.56.0",
|
|
45
|
+
"@aws-sdk/client-secrets-manager": "3.56.0",
|
|
46
|
+
"@aws-sdk/client-ssm": "3.56.0",
|
|
47
47
|
"@fastly/js-compute": "0.2.4",
|
|
48
48
|
"@google-cloud/functions": "1.2.0",
|
|
49
49
|
"@google-cloud/secret-manager": "3.11.0",
|
|
@@ -60,15 +60,15 @@
|
|
|
60
60
|
"form-data": "4.0.0",
|
|
61
61
|
"fs-extra": "10.0.1",
|
|
62
62
|
"get-stream": "6.0.1",
|
|
63
|
-
"isomorphic-git": "1.
|
|
63
|
+
"isomorphic-git": "1.16.0",
|
|
64
64
|
"openwhisk": "3.21.6",
|
|
65
65
|
"proxyquire": "2.1.3",
|
|
66
|
-
"rollup": "2.
|
|
66
|
+
"rollup": "2.70.1",
|
|
67
67
|
"rollup-plugin-terser": "7.0.2",
|
|
68
68
|
"semver": "7.3.5",
|
|
69
69
|
"tar": "6.1.11",
|
|
70
70
|
"webpack": "5.70.0",
|
|
71
|
-
"yargs": "17.
|
|
71
|
+
"yargs": "17.4.0"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@adobe/eslint-config-helix": "1.3.2",
|
|
@@ -81,12 +81,12 @@
|
|
|
81
81
|
"chai": "4.3.6",
|
|
82
82
|
"chai-http": "4.3.0",
|
|
83
83
|
"codecov": "3.8.3",
|
|
84
|
-
"eslint": "8.
|
|
84
|
+
"eslint": "8.11.0",
|
|
85
85
|
"eslint-plugin-header": "3.1.1",
|
|
86
86
|
"eslint-plugin-import": "2.25.4",
|
|
87
87
|
"husky": "7.0.4",
|
|
88
|
-
"lint-staged": "12.3.
|
|
89
|
-
"mocha": "9.2.
|
|
88
|
+
"lint-staged": "12.3.7",
|
|
89
|
+
"mocha": "9.2.2",
|
|
90
90
|
"mocha-junit-reporter": "2.0.2",
|
|
91
91
|
"mocha-multi-reporters": "1.5.1",
|
|
92
92
|
"nock": "13.2.4",
|
|
@@ -87,7 +87,23 @@ export default class FastlyGateway {
|
|
|
87
87
|
if (packageparams.length !== 0) {
|
|
88
88
|
await this._fastly.bulkUpdateDictItems(undefined, 'packageparams', ...packageparams);
|
|
89
89
|
}
|
|
90
|
-
|
|
90
|
+
|
|
91
|
+
try {
|
|
92
|
+
await this._fastly.updateDictItem(undefined, 'tokens', this.cfg.packageToken, `${Math.floor(Date.now() / 1000) + (365 * 24 * 3600)}`);
|
|
93
|
+
} catch (fe) {
|
|
94
|
+
if (fe.message.match('Exceeding max_dictionary_items')) {
|
|
95
|
+
const dictinfo = await this._fastly.readDictItems(undefined, 'tokens');
|
|
96
|
+
const items = dictinfo.data;
|
|
97
|
+
const outdated = items
|
|
98
|
+
.filter((item) => parseInt(item.item_value, 10) < new Date().getTime() / 1000);
|
|
99
|
+
const olds = items.slice(0, 5);
|
|
100
|
+
// cleanup all old and outdated tokens
|
|
101
|
+
await Promise.all([...outdated, ...olds].map((item) => this._fastly.deleteDictItem(undefined, 'tokens', item.item_key)));
|
|
102
|
+
// try again
|
|
103
|
+
await this._fastly.updateDictItem(undefined, 'tokens', this.cfg.packageToken, `${Math.floor(Date.now() / 1000) + (365 * 24 * 3600)}`);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
91
107
|
this._fastly.discard();
|
|
92
108
|
this.log.info(chalk`{green ok:} updating app (package) parameters on Fastly gateway.`);
|
|
93
109
|
}
|