@umijs/bundler-utils 4.0.64 → 4.0.66

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/dist/index.d.ts CHANGED
@@ -10,3 +10,14 @@ export declare function isDepPath(path: string): boolean;
10
10
  export * from './https';
11
11
  export * from './proxy';
12
12
  export * from './types';
13
+ declare type Errors = {
14
+ location?: {
15
+ line: number;
16
+ column: number;
17
+ };
18
+ text: string;
19
+ }[];
20
+ export declare function prettyPrintEsBuildErrors(errors: Errors | undefined, opts: {
21
+ content: string;
22
+ path: string;
23
+ }): void;
package/dist/index.js CHANGED
@@ -32,7 +32,8 @@ var src_exports = {};
32
32
  __export(src_exports, {
33
33
  isDepPath: () => isDepPath,
34
34
  parseModule: () => parseModule,
35
- parseModuleSync: () => parseModuleSync
35
+ parseModuleSync: () => parseModuleSync,
36
+ prettyPrintEsBuildErrors: () => prettyPrintEsBuildErrors
36
37
  });
37
38
  module.exports = __toCommonJS(src_exports);
38
39
  var import_utils = require("@umijs/utils");
@@ -100,5 +101,6 @@ ${message}
100
101
  0 && (module.exports = {
101
102
  isDepPath,
102
103
  parseModule,
103
- parseModuleSync
104
+ parseModuleSync,
105
+ prettyPrintEsBuildErrors
104
106
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/bundler-utils",
3
- "version": "4.0.64",
3
+ "version": "4.0.66",
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": {
@@ -19,7 +19,7 @@
19
19
  "regenerate": "^1.4.2",
20
20
  "regenerate-unicode-properties": "10.1.0",
21
21
  "spdy": "^4.0.2",
22
- "@umijs/utils": "4.0.64"
22
+ "@umijs/utils": "4.0.66"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@babel/code-frame": "7.18.6",