@bigcommerce/stencil-cli 8.9.2 → 8.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/lib/stencil-pull.js
CHANGED
package/lib/stencil-push.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigcommerce/stencil-cli",
|
|
3
|
-
"version": "8.9.
|
|
3
|
+
"version": "8.9.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "CLI tool to run BigCommerce Stores locally for theme development.",
|
|
6
6
|
"main": "index.js",
|
|
@@ -52,11 +52,11 @@
|
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@bigcommerce/stencil-paper": "5.1.6",
|
|
54
54
|
"@bigcommerce/stencil-styles": "^6.1.1",
|
|
55
|
-
"@hapi/boom": "^10.0.
|
|
55
|
+
"@hapi/boom": "^10.0.1",
|
|
56
56
|
"@hapi/glue": "^9.0.1",
|
|
57
|
-
"@hapi/h2o2": "^
|
|
58
|
-
"@hapi/hapi": "^
|
|
59
|
-
"@hapi/inert": "^
|
|
57
|
+
"@hapi/h2o2": "^10.0.4",
|
|
58
|
+
"@hapi/hapi": "^21.4.2",
|
|
59
|
+
"@hapi/inert": "^7.1.0",
|
|
60
60
|
"@jest/globals": "^29.7.0",
|
|
61
61
|
"@octokit/rest": "^21.0.2",
|
|
62
62
|
"ajv": "^6.12.5",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"async": "^3.2.3",
|
|
65
65
|
"axios": "^1.11.0",
|
|
66
66
|
"axios-mock-adapter": "^2.1.0",
|
|
67
|
-
"browser-sync": "^
|
|
67
|
+
"browser-sync": "^3.0.4",
|
|
68
68
|
"cheerio": "^1.0.0",
|
|
69
69
|
"colors": "1.4.0",
|
|
70
70
|
"commander": "^6.1.0",
|
|
@@ -108,8 +108,8 @@
|
|
|
108
108
|
"@semantic-release/release-notes-generator": "^14.0.3",
|
|
109
109
|
"conventional-changelog-cli": "^2.2.2",
|
|
110
110
|
"eslint": "^7.10.0",
|
|
111
|
-
"eslint-config-airbnb-base": "^
|
|
112
|
-
"eslint-config-prettier": "^6.
|
|
111
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
112
|
+
"eslint-config-prettier": "^6.15.0",
|
|
113
113
|
"eslint-plugin-import": "^2.26.0",
|
|
114
114
|
"eslint-plugin-jest": "^24.0.2",
|
|
115
115
|
"eslint-plugin-node": "^11.1.0",
|
package/server/lib/utils.js
CHANGED
|
@@ -7,9 +7,7 @@ const uuidRegExp = '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-([0-9a-f]{12
|
|
|
7
7
|
*/
|
|
8
8
|
function stripDomainFromCookies(cookies) {
|
|
9
9
|
return cookies.map((val) =>
|
|
10
|
-
val
|
|
11
|
-
.replace(/(?:;\s)?domain=(?:.+?)(;|$)/gi, '$1')
|
|
12
|
-
.replace(new RegExp('; SameSite=none', 'gi'), ''),
|
|
10
|
+
val.replace(/(?:;\s)?domain=(?:.+?)(;|$)/gi, '$1').replace(/; SameSite=none/gi, ''),
|
|
13
11
|
);
|
|
14
12
|
}
|
|
15
13
|
/**
|
|
@@ -73,7 +73,7 @@ const makeDecorator = (request, context) => (content) => {
|
|
|
73
73
|
if (request.query.debug === 'bar') {
|
|
74
74
|
const contextStr = escapeHtml(JSON.stringify(context, null, 2));
|
|
75
75
|
const debugBar = `<pre style="background-color:#EEE; word-wrap:break-word;"> ${contextStr} </pre>`;
|
|
76
|
-
const bodyRegex =
|
|
76
|
+
const bodyRegex = /<\/body>/;
|
|
77
77
|
updatedContent = content.replace(bodyRegex, `${debugBar}\n</body>`);
|
|
78
78
|
}
|
|
79
79
|
return updatedContent;
|