@elliemae/pui-cli 8.42.0-alpha.4 → 8.42.0-alpha.5

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.
@@ -39,7 +39,7 @@ const getCertOptions = () => {
39
39
  const __filename = (0, import_url.fileURLToPath)(import_meta.url);
40
40
  const __dirname = import_path.default.dirname(__filename);
41
41
  return {
42
- pfx: import_fs.default.readFileSync(import_path.default.join(__dirname, "./certs/uiplatform.pfx")),
43
- passPhrase: "uiplatform"
42
+ pfx: import_fs.default.readFileSync(import_path.default.join(__dirname, "./certs/cert.pfx")),
43
+ passphrase: "uiplatform"
44
44
  };
45
45
  };
Binary file
@@ -32,7 +32,6 @@ __export(webpack_dev_babel_exports, {
32
32
  });
33
33
  module.exports = __toCommonJS(webpack_dev_babel_exports);
34
34
  var import_node_path = __toESM(require("node:path"), 1);
35
- var import_node_fs = __toESM(require("node:fs"), 1);
36
35
  var import_node_url = require("node:url");
37
36
  var import_webpack = __toESM(require("webpack"), 1);
38
37
  var import_html_webpack_plugin = __toESM(require("html-webpack-plugin"), 1);
@@ -47,9 +46,9 @@ var import_helpers = require("./helpers.js");
47
46
  var import_webpack_base_babel = require("./webpack.base.babel.js");
48
47
  var import_utils = require("../server/utils.js");
49
48
  var import_wsServer = require("../server/wsServer.js");
49
+ var import_cert = require("../server/cert.js");
50
50
  const import_meta = {};
51
51
  const __filename = (0, import_node_url.fileURLToPath)(import_meta.url);
52
- const __dirname = import_node_path.default.dirname(__filename);
53
52
  const {
54
53
  appVersion,
55
54
  buildPath,
@@ -155,12 +154,7 @@ const devConfig = {
155
154
  port: process.env.PORT || "auto",
156
155
  server: {
157
156
  type: "https",
158
- options: {
159
- pfx: import_node_fs.default.readFileSync(
160
- import_node_path.default.join(__dirname, "../server/certs/uiplatform.pfx")
161
- ),
162
- passphrase: "uiplatform"
163
- }
157
+ options: (0, import_cert.getCertOptions)()
164
158
  },
165
159
  setupMiddlewares: (middlewares, devServer) => {
166
160
  (0, import_interceptor_middleware.addCSPNonceMiddleware)(middlewares);
@@ -5,8 +5,8 @@ const getCertOptions = () => {
5
5
  const __filename = fileURLToPath(import.meta.url);
6
6
  const __dirname = path.dirname(__filename);
7
7
  return {
8
- pfx: fs.readFileSync(path.join(__dirname, "./certs/uiplatform.pfx")),
9
- passPhrase: "uiplatform"
8
+ pfx: fs.readFileSync(path.join(__dirname, "./certs/cert.pfx")),
9
+ passphrase: "uiplatform"
10
10
  };
11
11
  };
12
12
  export {
Binary file
@@ -1,5 +1,4 @@
1
1
  import path from "node:path";
2
- import fs from "node:fs";
3
2
  import { fileURLToPath } from "node:url";
4
3
  import webpack from "webpack";
5
4
  import HtmlWebpackPlugin from "html-webpack-plugin";
@@ -18,8 +17,8 @@ import {
18
17
  import { baseConfig } from "./webpack.base.babel.js";
19
18
  import { wsPort } from "../server/utils.js";
20
19
  import { createWSServer } from "../server/wsServer.js";
20
+ import { getCertOptions } from "../server/cert.js";
21
21
  const __filename = fileURLToPath(import.meta.url);
22
- const __dirname = path.dirname(__filename);
23
22
  const {
24
23
  appVersion,
25
24
  buildPath,
@@ -125,12 +124,7 @@ const devConfig = {
125
124
  port: process.env.PORT || "auto",
126
125
  server: {
127
126
  type: "https",
128
- options: {
129
- pfx: fs.readFileSync(
130
- path.join(__dirname, "../server/certs/uiplatform.pfx")
131
- ),
132
- passphrase: "uiplatform"
133
- }
127
+ options: getCertOptions()
134
128
  },
135
129
  setupMiddlewares: (middlewares, devServer) => {
136
130
  addCSPNonceMiddleware(middlewares);
@@ -1,4 +1,4 @@
1
1
  export declare const getCertOptions: () => {
2
2
  pfx: Buffer;
3
- passPhrase: string;
3
+ passphrase: string;
4
4
  };