@pega/dx-component-builder-sdk 0.1.25 → 0.1.26

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/auth.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/dx-component-builder-sdk",
3
- "version": "0.1.25",
3
+ "version": "0.1.26",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": "./bin/index.js",
6
6
  "scripts": {
package/src/auth.js CHANGED
@@ -285,10 +285,10 @@ class PegaAuth {
285
285
  const nSlash = redirectUri.indexOf('/', nLocalhost + 10);
286
286
  const nPort = parseInt(redirectUri.substring(nLocalhost + 10, nSlash));
287
287
  if (-1 !== nLocalhost) {
288
- const options = isHttp ? {} : {
288
+ const options = key && cert && !isHttp ? {
289
289
  key: fs.readFileSync(key),
290
290
  cert: fs.readFileSync(cert)
291
- };
291
+ } : {};
292
292
  const server = (isHttp ? http : https).createServer(options, (req, res) => {
293
293
  const { method, url } = req;
294
294
  const { winTitle, winBodyHtml } = this.config;