@umijs/bundler-utils 4.0.41 → 4.0.43

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.
@@ -1 +1 @@
1
- {"name":"less","author":{"name":"Alexis Sellier","email":"self@cloudhead.net"},"license":"Apache-2.0"}
1
+ {"name":"less","version":"4.1.3","author":{"name":"Alexis Sellier","email":"self@cloudhead.net"},"license":"Apache-2.0"}
package/dist/https.js CHANGED
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
16
16
  }
17
17
  return to;
18
18
  };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
+ mod
22
+ ));
20
23
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
24
 
22
25
  // src/https.ts
@@ -55,15 +58,19 @@ async function resolveHttpsConfig(httpsConfig) {
55
58
  console.log(import_utils.chalk.green("$ mkcert -install"));
56
59
  break;
57
60
  case "win32":
58
- console.log(import_utils.chalk.green("Checkout https://github.com/FiloSottile/mkcert#windows"));
61
+ console.log(
62
+ import_utils.chalk.green("Checkout https://github.com/FiloSottile/mkcert#windows")
63
+ );
59
64
  break;
60
65
  case "linux":
61
- console.log(import_utils.chalk.green("Checkout https://github.com/FiloSottile/mkcert#linux"));
66
+ console.log(
67
+ import_utils.chalk.green("Checkout https://github.com/FiloSottile/mkcert#linux")
68
+ );
62
69
  break;
63
70
  default:
64
71
  break;
65
72
  }
66
- throw new Error(`[HTTPS] mkcert not found.`);
73
+ throw new Error(`[HTTPS] mkcert not found.`, { cause: e });
67
74
  }
68
75
  hosts = hosts || defaultHttpsHosts;
69
76
  key = (0, import_path.join)(__dirname, "umi.https.key.pem");
@@ -96,10 +103,13 @@ function hasHostsChanged(jsonFile, hosts) {
96
103
  async function createHttpsServer(app, httpsConfig) {
97
104
  import_utils.logger.wait("[HTTPS] Starting service in https mode...");
98
105
  const { key, cert } = await resolveHttpsConfig(httpsConfig);
99
- return import_spdy.default.createServer({
100
- key: (0, import_fs.readFileSync)(key, "utf-8"),
101
- cert: (0, import_fs.readFileSync)(cert, "utf-8")
102
- }, app);
106
+ return import_spdy.default.createServer(
107
+ {
108
+ key: (0, import_fs.readFileSync)(key, "utf-8"),
109
+ cert: (0, import_fs.readFileSync)(cert, "utf-8")
110
+ },
111
+ app
112
+ );
103
113
  }
104
114
  // Annotate the CommonJS export names for ESM import in node:
105
115
  0 && (module.exports = {
package/dist/index.js CHANGED
@@ -66,15 +66,19 @@ function prettyPrintEsBuildErrors(errors = [], opts) {
66
66
  var _a, _b;
67
67
  for (const error of errors) {
68
68
  if (((_a = error.location) == null ? void 0 : _a.line) && ((_b = error.location) == null ? void 0 : _b.column)) {
69
- const message = (0, import_code_frame.codeFrameColumns)(opts.content, {
70
- start: {
71
- line: error.location.line,
72
- column: error.location.column
69
+ const message = (0, import_code_frame.codeFrameColumns)(
70
+ opts.content,
71
+ {
72
+ start: {
73
+ line: error.location.line,
74
+ column: error.location.column
75
+ }
76
+ },
77
+ {
78
+ message: error.text,
79
+ highlightCode: true
73
80
  }
74
- }, {
75
- message: error.text,
76
- highlightCode: true
77
- });
81
+ );
78
82
  console.log(`
79
83
  ${opts.path}:
80
84
  ${message}
package/dist/proxy.js CHANGED
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
16
16
  }
17
17
  return to;
18
18
  };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
+ mod
22
+ ));
20
23
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
24
 
22
25
  // src/proxy.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/bundler-utils",
3
- "version": "4.0.41",
3
+ "version": "4.0.43",
4
4
  "homepage": "https://github.com/umijs/umi/tree/master/packages/bundler-utils#readme",
5
5
  "bugs": "https://github.com/umijs/umi/issues",
6
6
  "repository": {
@@ -20,50 +20,51 @@
20
20
  "dev": "umi-scripts father dev"
21
21
  },
22
22
  "dependencies": {
23
- "@umijs/utils": "4.0.41",
24
- "esbuild": "0.15.18",
23
+ "@umijs/utils": "4.0.43",
24
+ "esbuild": "0.16.17",
25
25
  "regenerate": "^1.4.2",
26
26
  "regenerate-unicode-properties": "10.0.1",
27
27
  "spdy": "^4.0.2"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@babel/code-frame": "7.18.6",
31
- "@babel/core": "7.18.9",
32
- "@babel/generator": "7.18.9",
31
+ "@babel/core": "7.20.12",
32
+ "@babel/generator": "7.20.7",
33
33
  "@babel/helper-module-imports": "7.18.6",
34
- "@babel/parser": "7.18.9",
34
+ "@babel/parser": "7.20.7",
35
35
  "@babel/plugin-proposal-class-properties": "7.18.6",
36
- "@babel/plugin-proposal-decorators": "7.18.9",
36
+ "@babel/plugin-proposal-decorators": "7.20.7",
37
37
  "@babel/plugin-proposal-do-expressions": "7.18.6",
38
- "@babel/plugin-proposal-export-default-from": "7.18.9",
38
+ "@babel/plugin-proposal-export-default-from": "7.18.10",
39
39
  "@babel/plugin-proposal-export-namespace-from": "7.18.9",
40
40
  "@babel/plugin-proposal-function-bind": "7.18.9",
41
41
  "@babel/plugin-proposal-partial-application": "7.18.9",
42
42
  "@babel/plugin-proposal-pipeline-operator": "7.18.9",
43
43
  "@babel/plugin-proposal-private-methods": "7.18.6",
44
- "@babel/plugin-proposal-private-property-in-object": "7.18.6",
44
+ "@babel/plugin-proposal-private-property-in-object": "7.20.5",
45
45
  "@babel/plugin-proposal-record-and-tuple": "7.18.6",
46
- "@babel/plugin-transform-runtime": "7.18.9",
47
- "@babel/preset-env": "7.18.9",
46
+ "@babel/plugin-transform-runtime": "7.19.6",
47
+ "@babel/preset-env": "7.20.2",
48
48
  "@babel/preset-react": "7.18.6",
49
49
  "@babel/preset-typescript": "7.18.6",
50
50
  "@babel/register": "7.18.9",
51
- "@babel/template": "7.18.6",
52
- "@babel/traverse": "7.18.9",
53
- "@babel/types": "7.18.9",
51
+ "@babel/template": "7.20.7",
52
+ "@babel/traverse": "7.20.12",
53
+ "@babel/types": "7.20.7",
54
54
  "@types/babel__code-frame": "7.0.3",
55
- "@types/babel__core": "7.1.19",
55
+ "@types/babel__core": "7.1.20",
56
56
  "@types/babel__generator": "7.6.4",
57
57
  "@types/babel__parser": "7.1.1",
58
58
  "@types/babel__template": "7.4.1",
59
- "@types/babel__traverse": "7.17.1",
59
+ "@types/babel__traverse": "7.18.3",
60
+ "@types/express": "4.17.15",
60
61
  "@types/less": "3.0.3",
61
62
  "@types/spdy": "^3.4.5",
62
63
  "cjs-module-lexer": "1.2.2",
63
64
  "es-module-lexer": "0.10.5",
64
- "express": "4.18.1",
65
- "http-proxy-middleware": "2.0.4",
66
- "less": "4.1.2",
65
+ "express": "4.18.2",
66
+ "http-proxy-middleware": "2.0.6",
67
+ "less": "4.1.3",
67
68
  "tapable": "2.2.1"
68
69
  },
69
70
  "publishConfig": {