-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DO NOT MERGE experiment: what if we rebuild yarn.lock
- Loading branch information
Showing
10 changed files
with
3,042 additions
and
2,709 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
diff --git a/node_modules/commander/lib/error.js b/node_modules/commander/lib/error.js | ||
index e7cde9c..3a1b078 100644 | ||
--- a/node_modules/commander/lib/error.js | ||
+++ b/node_modules/commander/lib/error.js | ||
@@ -16,7 +16,12 @@ class CommanderError extends Error { | ||
super(message); | ||
// properly capture stack trace in Node.js | ||
Error.captureStackTrace(this, this.constructor); | ||
- this.name = this.constructor.name; | ||
+ Object.defineProperty(this, 'name', { | ||
+ value: this.constructor.name, | ||
+ writable: true, | ||
+ enumerable: true, | ||
+ configurable: true | ||
+ }); | ||
this.code = code; | ||
this.exitCode = exitCode; | ||
this.nestedError = undefined; | ||
@@ -37,7 +42,12 @@ class InvalidArgumentError extends CommanderError { | ||
super(1, 'commander.invalidArgument', message); | ||
// properly capture stack trace in Node.js | ||
Error.captureStackTrace(this, this.constructor); | ||
- this.name = this.constructor.name; | ||
+ Object.defineProperty(this, 'name', { | ||
+ value: this.constructor.name, | ||
+ writable: true, | ||
+ enumerable: true, | ||
+ configurable: true | ||
+ }); | ||
} | ||
} | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
diff --git a/node_modules/follow-redirects/index.js b/node_modules/follow-redirects/index.js | ||
index 3e199c1..c0335aa 100644 | ||
--- a/node_modules/follow-redirects/index.js | ||
+++ b/node_modules/follow-redirects/index.js | ||
@@ -578,15 +578,35 @@ function createErrorType(code, message, baseClass) { | ||
// Create constructor | ||
function CustomError(properties) { | ||
Error.captureStackTrace(this, this.constructor); | ||
- Object.assign(this, properties || {}); | ||
+ Object.defineProperties( | ||
+ this, | ||
+ Object.getOwnPropertyDescriptors(properties || {}) | ||
+ ); | ||
this.code = code; | ||
- this.message = this.cause ? message + ": " + this.cause.message : message; | ||
+ Object.defineProperty(this, 'message', { | ||
+ value: this.cause ? message + ": " + this.cause.message : message, | ||
+ writable: true, | ||
+ enumerable: true, | ||
+ configurable: true | ||
+ }); | ||
} | ||
|
||
// Attach constructor and set default properties | ||
CustomError.prototype = new (baseClass || Error)(); | ||
- CustomError.prototype.constructor = CustomError; | ||
- CustomError.prototype.name = "Error [" + code + "]"; | ||
+ Object.defineProperties(CustomError.prototype, { | ||
+ constructor: { | ||
+ value: CustomError, | ||
+ writable: true, | ||
+ enumerable: true, | ||
+ configurable: true | ||
+ }, | ||
+ name: { | ||
+ value: "Error [" + code + "]", | ||
+ writable: true, | ||
+ enumerable: true, | ||
+ configurable: true | ||
+ } | ||
+ }); | ||
return CustomError; | ||
} | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
diff --git a/node_modules/readable-stream/errors.js b/node_modules/readable-stream/errors.js | ||
index 8471526..34307f3 100644 | ||
--- a/node_modules/readable-stream/errors.js | ||
+++ b/node_modules/readable-stream/errors.js | ||
@@ -21,6 +21,12 @@ function createErrorType(code, message, Base) { | ||
} | ||
} | ||
|
||
+ Object.defineProperty(NodeError.prototype, 'name', { | ||
+ value: Base.name, | ||
+ writable: true, | ||
+ enumerable: true, | ||
+ configurable: true | ||
+ }); | ||
NodeError.prototype.name = Base.name; | ||
NodeError.prototype.code = code; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.