@bigcommerce/stencil-cli 8.9.2 → 8.9.3

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.
@@ -2,6 +2,7 @@ import async from 'async';
2
2
  import stencilPushUtils from './stencil-push.utils.js';
3
3
  import stencilPullUtils from './stencil-pull.utils.js';
4
4
 
5
+ // eslint-disable-next-line default-param-last
5
6
  function stencilPull(options = {}, callback) {
6
7
  async.waterfall(
7
8
  [
@@ -1,6 +1,7 @@
1
1
  import async from 'async';
2
2
  import utils from './stencil-push.utils.js';
3
3
 
4
+ // eslint-disable-next-line default-param-last
4
5
  function stencilPush(options = {}, callback) {
5
6
  async.waterfall(
6
7
  [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigcommerce/stencil-cli",
3
- "version": "8.9.2",
3
+ "version": "8.9.3",
4
4
  "type": "module",
5
5
  "description": "CLI tool to run BigCommerce Stores locally for theme development.",
6
6
  "main": "index.js",
@@ -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": "^2.27.9",
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": "^14.2.0",
112
- "eslint-config-prettier": "^6.11.0",
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",
@@ -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 = new RegExp('</body>');
76
+ const bodyRegex = /<\/body>/;
77
77
  updatedContent = content.replace(bodyRegex, `${debugBar}\n</body>`);
78
78
  }
79
79
  return updatedContent;