File tree Expand file tree Collapse file tree 6 files changed +14
-9
lines changed
packages/builder-util-runtime/src Expand file tree Collapse file tree 6 files changed +14
-9
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " builder-util-runtime " : patch
3
+ ---
4
+
5
+ Refactored to resolve circular dependency, eliminating warnings from tools such as Rollup
Original file line number Diff line number Diff line change
1
+ export function newError ( message : string , code : string ) {
2
+ const error = new Error ( message )
3
+ ; ( error as NodeJS . ErrnoException ) . code = code
4
+ return error
5
+ }
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { Socket } from "net"
6
6
import { Transform } from "stream"
7
7
import { URL } from "url"
8
8
import { CancellationToken } from "./CancellationToken"
9
- import { newError } from "./index "
9
+ import { newError } from "./error "
10
10
import { ProgressCallbackTransform , ProgressInfo } from "./ProgressCallbackTransform"
11
11
12
12
const debug = _debug ( "electron-builder" )
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ export { UUID } from "./uuid"
35
35
export { ProgressCallbackTransform , ProgressInfo } from "./ProgressCallbackTransform"
36
36
export { parseXml , XElement } from "./xml"
37
37
export { BlockMap } from "./blockMapApi"
38
+ export { newError } from "./error"
38
39
39
40
// nsis
40
41
export const CURRENT_APP_INSTALLER_FILE_NAME = "installer.exe"
@@ -50,9 +51,3 @@ export function asArray<T>(v: null | undefined | T | Array<T>): Array<T> {
50
51
return [ v ]
51
52
}
52
53
}
53
-
54
- export function newError ( message : string , code : string ) {
55
- const error = new Error ( message )
56
- ; ( error as NodeJS . ErrnoException ) . code = code
57
- return error
58
- }
Original file line number Diff line number Diff line change 1
1
import { createHash , randomBytes } from "crypto"
2
- import { newError } from "./index "
2
+ import { newError } from "./error "
3
3
4
4
const invalidName = "options.name must be either a string or a Buffer"
5
5
Original file line number Diff line number Diff line change 1
1
import * as sax from "sax"
2
- import { newError } from "./index "
2
+ import { newError } from "./error "
3
3
4
4
export class XElement {
5
5
value = ""
You can’t perform that action at this time.
0 commit comments