@bigcommerce/stencil-cli 3.12.0 → 3.13.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/CHANGELOG.md +4 -0
- package/package-lock.json +1 -1
- package/package.json +1 -1
- package/server/index.js +2 -0
- package/server/plugins/router/router.module.js +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
### Draft
|
|
2
2
|
|
|
3
|
+
### 3.13.0 (2022-04-08)
|
|
4
|
+
|
|
5
|
+
- feat: strf-9718 Add OAuth token to headers ([903](https://github.com/bigcommerce/stencil-cli/pull/903))
|
|
6
|
+
|
|
3
7
|
### 3.12.0 (2022-03-29)
|
|
4
8
|
|
|
5
9
|
- feat: allow .css-files imports within SCSS files ([882](https://github.com/bigcommerce/stencil-cli/pull/882))
|
package/package-lock.json
CHANGED
package/package.json
CHANGED
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 = {
|
|
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
|
}),
|