@bigcommerce/stencil-cli 8.9.1 → 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.1",
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",
@@ -62,8 +62,9 @@
62
62
  "ajv": "^6.12.5",
63
63
  "archiver": "^5.0.2",
64
64
  "async": "^3.2.3",
65
- "axios": "^0.28.0",
66
- "browser-sync": "^2.27.9",
65
+ "axios": "^1.11.0",
66
+ "axios-mock-adapter": "^2.1.0",
67
+ "browser-sync": "^3.0.4",
67
68
  "cheerio": "^1.0.0",
68
69
  "colors": "1.4.0",
69
70
  "commander": "^6.1.0",
@@ -98,19 +99,17 @@
98
99
  "yauzl": "^2.10.0"
99
100
  },
100
101
  "devDependencies": {
101
- "@commitlint/cli": "^17.1.2",
102
- "@commitlint/config-conventional": "^17.1.0",
103
- "@semantic-release/changelog": "^6.0.1",
104
- "@semantic-release/commit-analyzer": "^9.0.2",
105
- "@semantic-release/git": "^10.0.1",
106
- "@semantic-release/github": "^11.0.0",
107
- "@semantic-release/npm": "^9.0.1",
108
- "@semantic-release/release-notes-generator": "^10.0.3",
109
- "axios-mock-adapter": "^1.21.2",
102
+ "@commitlint/cli": "^19.8.1",
103
+ "@commitlint/config-conventional": "^19.8.1",
104
+ "@semantic-release/changelog": "^6.0.3",
105
+ "@semantic-release/commit-analyzer": "^13.0.1",
106
+ "@semantic-release/github": "^11.0.3",
107
+ "@semantic-release/npm": "^12.0.2",
108
+ "@semantic-release/release-notes-generator": "^14.0.3",
110
109
  "conventional-changelog-cli": "^2.2.2",
111
110
  "eslint": "^7.10.0",
112
- "eslint-config-airbnb-base": "^14.2.0",
113
- "eslint-config-prettier": "^6.11.0",
111
+ "eslint-config-airbnb-base": "^15.0.0",
112
+ "eslint-config-prettier": "^6.15.0",
114
113
  "eslint-plugin-import": "^2.26.0",
115
114
  "eslint-plugin-jest": "^24.0.2",
116
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;