@adobe/helix-deploy 11.0.6 → 11.0.8

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 CHANGED
@@ -1,3 +1,17 @@
1
+ ## [11.0.8](https://github.com/adobe/helix-deploy/compare/v11.0.7...v11.0.8) (2024-03-04)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **cloudflare:** suffix should contain only the requested document path, not full URI ([0c02fc7](https://github.com/adobe/helix-deploy/commit/0c02fc774c10070822515155282b949ec3646c9e))
7
+
8
+ ## [11.0.7](https://github.com/adobe/helix-deploy/compare/v11.0.6...v11.0.7) (2024-03-02)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **deps:** update external fixes ([#675](https://github.com/adobe/helix-deploy/issues/675)) ([abe299c](https://github.com/adobe/helix-deploy/commit/abe299c34ad9616970eb23f12b4009d5a543ec28))
14
+
1
15
  ## [11.0.6](https://github.com/adobe/helix-deploy/compare/v11.0.5...v11.0.6) (2024-02-24)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-deploy",
3
- "version": "11.0.6",
3
+ "version": "11.0.8",
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",
@@ -40,12 +40,12 @@
40
40
  "@adobe/fastly-native-promises": "3.0.6",
41
41
  "@adobe/fetch": "4.1.1",
42
42
  "@adobe/helix-shared-process-queue": "3.0.1",
43
- "@aws-sdk/client-apigatewayv2": "3.521.0",
44
- "@aws-sdk/client-lambda": "3.521.0",
45
- "@aws-sdk/client-s3": "3.521.0",
46
- "@aws-sdk/client-secrets-manager": "3.521.0",
47
- "@aws-sdk/client-ssm": "3.521.0",
48
- "@aws-sdk/client-sts": "3.521.0",
43
+ "@aws-sdk/client-apigatewayv2": "3.525.0",
44
+ "@aws-sdk/client-lambda": "3.525.0",
45
+ "@aws-sdk/client-s3": "3.525.0",
46
+ "@aws-sdk/client-secrets-manager": "3.525.0",
47
+ "@aws-sdk/client-ssm": "3.525.0",
48
+ "@aws-sdk/client-sts": "3.525.0",
49
49
  "@fastly/js-compute": "3.8.3",
50
50
  "@google-cloud/functions": "3.2.0",
51
51
  "@google-cloud/secret-manager": "5.1.0",
@@ -55,7 +55,7 @@
55
55
  "@rollup/plugin-json": "6.1.0",
56
56
  "@rollup/plugin-node-resolve": "15.2.3",
57
57
  "@rollup/plugin-terser": "0.4.4",
58
- "archiver": "6.0.1",
58
+ "archiver": "6.0.2",
59
59
  "chalk-template": "1.1.0",
60
60
  "constants-browserify": "1.0.0",
61
61
  "dotenv": "16.4.5",
@@ -81,9 +81,9 @@
81
81
  "mocha": "10.3.0",
82
82
  "mocha-junit-reporter": "2.2.1",
83
83
  "mocha-multi-reporters": "1.5.1",
84
- "nock": "13.5.3",
84
+ "nock": "13.5.4",
85
85
  "semantic-release": "22.0.12",
86
- "yauzl": "3.1.0"
86
+ "yauzl": "3.1.1"
87
87
  },
88
88
  "engines": {
89
89
  "node": ">=12.0"
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Copyright 2024 Adobe. All rights reserved.
3
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License. You may obtain a copy
5
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ *
7
+ * Unless required by applicable law or agreed to in writing, software distributed under
8
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ * OF ANY KIND, either express or implied. See the License for the specific language
10
+ * governing permissions and limitations under the License.
11
+ */
12
+ /* eslint-env serviceworker */
13
+
14
+ export function extractPathFromURL(request) {
15
+ const suffixMatches = /^https?:\/\/[^/]+([^?]+)/.exec(request.url);
16
+ return suffixMatches ? suffixMatches[1] : request.url.replace(/\?.*/, '');
17
+ }
@@ -11,6 +11,8 @@
11
11
  */
12
12
  /* eslint-env serviceworker */
13
13
 
14
+ const { extractPathFromURL } = require('./adapter-utils.js');
15
+
14
16
  async function handler(event) {
15
17
  // console.log(event);
16
18
  const { request } = event;
@@ -19,7 +21,7 @@ async function handler(event) {
19
21
  const context = {
20
22
  resolver: null,
21
23
  pathInfo: {
22
- suffix: request.url.replace(/\?.*/, ''),
24
+ suffix: extractPathFromURL(request.url),
23
25
  },
24
26
  runtime: {
25
27
  name: 'cloudflare-workers',
@@ -12,6 +12,8 @@
12
12
  /* eslint-env serviceworker */
13
13
  /* global Dictionary */
14
14
 
15
+ import { extractPathFromURL } from './adapter-utils.js';
16
+
15
17
  export function getEnvInfo(req, env) {
16
18
  const serviceVersion = env('FASTLY_SERVICE_VERSION');
17
19
  const requestId = env('FASTLY_TRACE_ID');
@@ -51,7 +53,7 @@ async function handler(event) {
51
53
  const context = {
52
54
  resolver: null,
53
55
  pathInfo: {
54
- suffix: request.url.match(/^https?:\/\/[^/]+([^?]+)/)[1],
56
+ suffix: extractPathFromURL(request),
55
57
  },
56
58
  runtime: {
57
59
  name: 'compute-at-edge',