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"
66import { Transform } from "stream"
77import { URL } from "url"
88import { CancellationToken } from "./CancellationToken"
9- import { newError } from "./index "
9+ import { newError } from "./error "
1010import { ProgressCallbackTransform , ProgressInfo } from "./ProgressCallbackTransform"
1111
1212const debug = _debug ( "electron-builder" )
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ export { UUID } from "./uuid"
3535export { ProgressCallbackTransform , ProgressInfo } from "./ProgressCallbackTransform"
3636export { parseXml , XElement } from "./xml"
3737export { BlockMap } from "./blockMapApi"
38+ export { newError } from "./error"
3839
3940// nsis
4041export const CURRENT_APP_INSTALLER_FILE_NAME = "installer.exe"
@@ -50,9 +51,3 @@ export function asArray<T>(v: null | undefined | T | Array<T>): Array<T> {
5051 return [ v ]
5152 }
5253}
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 11import { createHash , randomBytes } from "crypto"
2- import { newError } from "./index "
2+ import { newError } from "./error "
33
44const invalidName = "options.name must be either a string or a Buffer"
55
Original file line number Diff line number Diff line change 11import * as sax from "sax"
2- import { newError } from "./index "
2+ import { newError } from "./error "
33
44export class XElement {
55 value = ""
You can’t perform that action at this time.
0 commit comments