@bigcommerce/stencil-cli 3.12.0 → 4.1.0

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/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@bigcommerce/stencil-cli",
3
- "version": "3.12.0",
3
+ "version": "4.1.0",
4
4
  "description": "CLI tool to run BigCommerce Stores locally for theme development.",
5
5
  "main": "index.js",
6
6
  "engines": {
7
- "node": "^10.17 || ^12",
8
- "npm": ">=v6.11.3 <7.0.0"
7
+ "node": ">=12.0.0 <15.0.0",
8
+ "npm": ">=v6.11.3 <9.0.0"
9
9
  },
10
10
  "scripts": {
11
11
  "lint": "eslint . && prettier --check . --ignore-unknown",
@@ -46,7 +46,7 @@
46
46
  ],
47
47
  "dependencies": {
48
48
  "@bigcommerce/stencil-paper": "3.0.5",
49
- "@bigcommerce/stencil-styles": "2.1.2",
49
+ "@bigcommerce/stencil-styles": "3.0.0",
50
50
  "@hapi/boom": "^8.0.1",
51
51
  "@hapi/glue": "^6.2.0",
52
52
  "@hapi/h2o2": "^8.3.2",
@@ -97,7 +97,7 @@
97
97
  "eslint-plugin-node": "^11.1.0",
98
98
  "eslint-plugin-prettier": "^3.1.4",
99
99
  "husky": "^4.3.0",
100
- "jest": "^26.4.2",
100
+ "jest": "^27.5.1",
101
101
  "lint-staged": "^10.4.0",
102
102
  "prettier": "2.1.2"
103
103
  },
package/server/index.js CHANGED
@@ -20,6 +20,8 @@ function buildManifest(srcManifest, options) {
20
20
  pluginsByName['./plugins/router/router.module'].apiKey = options.dotStencilFile.apiKey;
21
21
  pluginsByName['./plugins/router/router.module'].port = options.dotStencilFile.port;
22
22
  pluginsByName['./plugins/router/router.module'].stencilCliVersion = options.stencilCliVersion;
23
+ pluginsByName['./plugins/router/router.module'].accessToken =
24
+ options.dotStencilFile.accessToken;
23
25
  pluginsByName['./plugins/renderer/renderer.module'].useCache = options.useCache;
24
26
  pluginsByName['./plugins/renderer/renderer.module'].username = options.dotStencilFile.username;
25
27
  pluginsByName['./plugins/renderer/renderer.module'].token = options.dotStencilFile.token;
@@ -119,7 +119,10 @@ internals.registerRoutes = (server) => {
119
119
  )}`;
120
120
  const urlParams = req.url.search || '';
121
121
  const uri = `${host}${req.path}${urlParams}`;
122
- const headers = { 'stencil-cli': internals.options.stencilCliVersion };
122
+ const headers = {
123
+ 'stencil-cli': internals.options.stencilCliVersion,
124
+ 'x-auth-token': internals.options.accessToken,
125
+ };
123
126
  return { uri, headers };
124
127
  },
125
128
  passThrough: true,
@@ -167,6 +170,8 @@ internals.registerRoutes = (server) => {
167
170
  {
168
171
  origin: internals.options.storeUrl,
169
172
  host: internals.options.storeUrl.replace(/http[s]?:\/\//, ''),
173
+ 'stencil-cli': internals.options.stencilCliVersion,
174
+ 'x-auth-token': internals.options.accessToken,
170
175
  },
171
176
  ),
172
177
  }),