immediate-error 5.1.0 → 5.1.1
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/index.js +2 -2
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -12,7 +12,7 @@ const { throwop } = require('yanoop')
|
|
|
12
12
|
const throwError = require('throw-error')
|
|
13
13
|
const bail = esmRequire('bail').bail
|
|
14
14
|
const If = require('if')
|
|
15
|
-
const
|
|
15
|
+
const picocolors = require('picocolors')
|
|
16
16
|
const isError = require('is-error')
|
|
17
17
|
const assert = require('assert-fn')
|
|
18
18
|
const nativeAssert = require('node:assert')
|
|
@@ -96,7 +96,7 @@ exports.immediateError = function immediateError(message = 'ERROR!', errorType =
|
|
|
96
96
|
rand: Math.random(),
|
|
97
97
|
If,
|
|
98
98
|
console,
|
|
99
|
-
|
|
99
|
+
picocolors,
|
|
100
100
|
bail
|
|
101
101
|
}
|
|
102
102
|
vm.createContext(context)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "immediate-error",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.1",
|
|
4
4
|
"description": "Throw errors, better.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -26,7 +26,6 @@
|
|
|
26
26
|
"always-four": "^1.0.0",
|
|
27
27
|
"assert-fn": "^1.0.1",
|
|
28
28
|
"bail": "^2.0.2",
|
|
29
|
-
"cli-color": "^2.0.4",
|
|
30
29
|
"es-errors": "^1.3.0",
|
|
31
30
|
"esm-wallaby": "^3.2.30",
|
|
32
31
|
"five": "^0.8.0",
|
|
@@ -35,6 +34,7 @@
|
|
|
35
34
|
"none": "^1.0.0",
|
|
36
35
|
"number-six": "^1.0.1",
|
|
37
36
|
"numeric-constant-three": "^1.0.0",
|
|
37
|
+
"picocolors": "^1.1.1",
|
|
38
38
|
"the-number-one": "^1.0.1",
|
|
39
39
|
"throw-error": "^1.0.0",
|
|
40
40
|
"two": "^1.0.7",
|