@salesforce/pwa-kit-dev 3.4.0 → 3.5.0-alpha.1
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/pwa-kit-dev",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0-alpha.1",
|
|
4
4
|
"description": "Build tools for pwa-kit",
|
|
5
5
|
"homepage": "https://github.com/SalesforceCommerceCloud/pwa-kit/tree/develop/packages/pwa-kit-dev#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@loadable/server": "^5.15.3",
|
|
59
59
|
"@loadable/webpack-plugin": "^5.15.2",
|
|
60
60
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.10",
|
|
61
|
-
"@salesforce/pwa-kit-runtime": "3.
|
|
61
|
+
"@salesforce/pwa-kit-runtime": "3.5.0-alpha.1",
|
|
62
62
|
"@typescript-eslint/eslint-plugin": "^5.57.0",
|
|
63
63
|
"@typescript-eslint/parser": "^5.57.0",
|
|
64
64
|
"archiver": "1.3.0",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"eslint-plugin-react": "^7.32.2",
|
|
80
80
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
81
81
|
"eslint-plugin-use-effect-no-deps": "^1.1.2",
|
|
82
|
-
"express": "^4.
|
|
82
|
+
"express": "^4.19.2",
|
|
83
83
|
"fs-extra": "^11.1.1",
|
|
84
84
|
"git-rev-sync": "^3.0.2",
|
|
85
85
|
"glob": "7.2.3",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"webpack": "^5.76.3",
|
|
108
108
|
"webpack-bundle-analyzer": "^4.8.0",
|
|
109
109
|
"webpack-cli": "^4.10.0",
|
|
110
|
-
"webpack-dev-middleware": "^5.3.
|
|
110
|
+
"webpack-dev-middleware": "^5.3.4",
|
|
111
111
|
"webpack-hot-middleware": "^2.25.3",
|
|
112
112
|
"webpack-hot-server-middleware": "^0.6.1",
|
|
113
113
|
"webpack-notifier": "^1.15.0",
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
"@types/node": "~16.0.3",
|
|
122
122
|
"@types/node-fetch": "~2.6.3",
|
|
123
123
|
"@types/validator": "~13.7.14",
|
|
124
|
-
"internal-lib-build": "3.
|
|
124
|
+
"internal-lib-build": "3.5.0-alpha.1",
|
|
125
125
|
"nock": "^13.3.0",
|
|
126
126
|
"nodemon": "^2.0.22",
|
|
127
127
|
"superagent": "^6.1.0",
|
|
@@ -147,5 +147,5 @@
|
|
|
147
147
|
"publishConfig": {
|
|
148
148
|
"directory": "dist"
|
|
149
149
|
},
|
|
150
|
-
"gitHead": "
|
|
150
|
+
"gitHead": "2df9f520e6de6585926743fb72bf8e77d515dcf1"
|
|
151
151
|
}
|
|
@@ -113,6 +113,14 @@ const DevServerMixin = exports.DevServerMixin = {
|
|
|
113
113
|
app.use(config.cachingPath, config.cachingProxy);
|
|
114
114
|
});
|
|
115
115
|
},
|
|
116
|
+
/**
|
|
117
|
+
* @private
|
|
118
|
+
*/
|
|
119
|
+
|
|
120
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
121
|
+
_handleMissingSlasPrivateEnvVar(app) {
|
|
122
|
+
throw new Error(`Server cannot start. Environment variable PWA_KIT_SLAS_CLIENT_SECRET not set. Please set this environment variable to proceed.`);
|
|
123
|
+
},
|
|
116
124
|
/**
|
|
117
125
|
* @private
|
|
118
126
|
*/
|
|
@@ -643,4 +643,13 @@ describe('DevServer serveStaticFile', () => {
|
|
|
643
643
|
app.use('/test', NoWebpackDevServerFactory.serveStaticFile('static/IDoNotExist.ico'));
|
|
644
644
|
return (0, _supertest.default)(app).get('/test').expect(404);
|
|
645
645
|
}));
|
|
646
|
+
});
|
|
647
|
+
describe('SLAS private client proxy', () => {
|
|
648
|
+
test('should throw error if PWA_KIT_SLAS_CLIENT_SECRET env var not set', () => {
|
|
649
|
+
expect(() => {
|
|
650
|
+
NoWebpackDevServerFactory._createApp(opts({
|
|
651
|
+
useSLASPrivateClient: true
|
|
652
|
+
}));
|
|
653
|
+
}).toThrow();
|
|
654
|
+
});
|
|
646
655
|
});
|