@sprucelabs/error 5.0.0 → 5.0.4
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/build/esm/index.d.ts
CHANGED
package/build/index.d.ts
CHANGED
|
@@ -93,18 +93,18 @@ class ConvertingToAndFromStringTest extends test_1.default {
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
__decorate([
|
|
96
|
-
test_1.test()
|
|
96
|
+
(0, test_1.test)()
|
|
97
97
|
], ConvertingToAndFromStringTest, "convertingToAndFromString", null);
|
|
98
98
|
__decorate([
|
|
99
|
-
test_1.test()
|
|
99
|
+
(0, test_1.test)()
|
|
100
100
|
], ConvertingToAndFromStringTest, "convertingToAndFromObject", null);
|
|
101
101
|
__decorate([
|
|
102
|
-
test_1.test()
|
|
102
|
+
(0, test_1.test)()
|
|
103
103
|
], ConvertingToAndFromStringTest, "handlesFailedConversion", null);
|
|
104
104
|
__decorate([
|
|
105
|
-
test_1.test()
|
|
105
|
+
(0, test_1.test)()
|
|
106
106
|
], ConvertingToAndFromStringTest, "canStringifyOriginalErrorAsSpruceError", null);
|
|
107
107
|
__decorate([
|
|
108
|
-
test_1.test()
|
|
108
|
+
(0, test_1.test)()
|
|
109
109
|
], ConvertingToAndFromStringTest, "canStringifyOriginalErrorAsError", null);
|
|
110
110
|
exports.default = ConvertingToAndFromStringTest;
|
|
@@ -61,18 +61,18 @@ class SpruceErrorTests {
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
__decorate([
|
|
64
|
-
test_1.test()
|
|
64
|
+
(0, test_1.test)()
|
|
65
65
|
], SpruceErrorTests.prototype, "createError", null);
|
|
66
66
|
__decorate([
|
|
67
|
-
test_1.test()
|
|
67
|
+
(0, test_1.test)()
|
|
68
68
|
], SpruceErrorTests.prototype, "errorToObjectIncludesStack", null);
|
|
69
69
|
__decorate([
|
|
70
|
-
test_1.test()
|
|
70
|
+
(0, test_1.test)()
|
|
71
71
|
], SpruceErrorTests.prototype, "errorPrettyPrintIncludesStack", null);
|
|
72
72
|
__decorate([
|
|
73
|
-
test_1.test()
|
|
73
|
+
(0, test_1.test)()
|
|
74
74
|
], SpruceErrorTests.prototype, "errorToObjectWithoutStackHasNoStackProp", null);
|
|
75
75
|
__decorate([
|
|
76
|
-
test_1.test()
|
|
76
|
+
(0, test_1.test)()
|
|
77
77
|
], SpruceErrorTests.prototype, "errorToObjectWithoutStackHasNoFalseStackProp", null);
|
|
78
78
|
exports.default = SpruceErrorTests;
|
package/package.json
CHANGED
|
@@ -1,92 +1,101 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
"name": "@sprucelabs/error",
|
|
3
|
+
"publishConfig": {
|
|
4
|
+
"access": "public"
|
|
5
|
+
},
|
|
6
|
+
"version": "5.0.4",
|
|
7
|
+
"skill": {
|
|
8
|
+
"namespace": "spruce-error",
|
|
9
|
+
"upgradeIgnoreList": [
|
|
10
|
+
"@sprucelabs/resolve-path-aliases",
|
|
11
|
+
"@sprucelabs/spruce-test-fixtures",
|
|
12
|
+
"@sprucelabs/test-utils",
|
|
13
|
+
"@types/node",
|
|
14
|
+
"ts-node"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"build"
|
|
19
|
+
],
|
|
20
|
+
"main": "./build/index.js",
|
|
21
|
+
"types": "./build/index.d.ts",
|
|
22
|
+
"module": "./build/esm/index.js",
|
|
23
|
+
"sideEffects": false,
|
|
24
|
+
"description": "Error reporting that's really, really helpful. 💡",
|
|
25
|
+
"keywords": [
|
|
26
|
+
"node",
|
|
27
|
+
"components",
|
|
28
|
+
"sprucebot",
|
|
29
|
+
"sprucelabs"
|
|
30
|
+
],
|
|
31
|
+
"homepage": "https://github.com/sprucelabsai/spruce-error",
|
|
32
|
+
"bugs": {
|
|
33
|
+
"url": "https://github.com/sprucelabsai/spruce-error/issues"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build.ci": "yarn build.tsc",
|
|
37
|
+
"build.copy-files": "mkdir -p build && rsync -avzq --exclude='*.ts' ./src/ ./build/",
|
|
38
|
+
"build.dev": "yarn build.tsc --sourceMap",
|
|
39
|
+
"build.dist": "yarn build.tsc && tsc --project tsconfig.dist.json && yarn build.esm-postbuild",
|
|
40
|
+
"build.esm-postbuild": "esm-postbuild --target build/esm --patterns '**/*.js'",
|
|
41
|
+
"build.resolve-paths": "true",
|
|
42
|
+
"build.tsc": "yarn build.copy-files && tsc",
|
|
43
|
+
"build.types": "tsc --emitDeclarationOnly && echo PASS",
|
|
44
|
+
"clean": "yarn clean.build",
|
|
45
|
+
"clean.all": "yarn clean.dependencies && yarn clean.build",
|
|
46
|
+
"clean.build": "rm -rf build/",
|
|
47
|
+
"clean.dependencies": "rm -rf node_modules/ package-lock.json yarn.lock",
|
|
48
|
+
"fix.lint": "eslint --fix --cache '**/*.ts'",
|
|
49
|
+
"lint": "eslint --cache '**/*.ts'",
|
|
50
|
+
"lint.tsc": "tsc -p . --noEmit",
|
|
51
|
+
"test": "jest",
|
|
52
|
+
"post.watch.build": "yarn build.copy-files",
|
|
53
|
+
"rebuild": "yarn clean.all && yarn && yarn build.dev",
|
|
54
|
+
"release": "semantic-release",
|
|
55
|
+
"resolve-paths.lint": "yarn build.resolve-paths ; yarn lint",
|
|
56
|
+
"update.dependencies": "yarn clean.dependencies && yarn",
|
|
57
|
+
"upgrade.packages": "yarn-upgrade-all && rm -f yarn.lock ; yarn ; yarn fix.lint | true",
|
|
58
|
+
"upgrade.packages.all": "yarn install && yarn upgrade.packages",
|
|
59
|
+
"upgrade.packages.test": "yarn upgrade.packages.all && yarn lint && yarn build.dev && yarn test",
|
|
60
|
+
"watch.build.dev": "tsc-watch --sourceMap --onCompilationComplete 'yarn post.watch.build'",
|
|
61
|
+
"watch.test": "jest --watch",
|
|
62
|
+
"watch.lint": "concurrently 'yarn lint' \"chokidar 'src/**/*' -c 'yarn lint.tsc'\"",
|
|
63
|
+
"watch.rebuild": "yarn clean.all && yarn && yarn watch.build.dev",
|
|
64
|
+
"watch.tsc": "tsc -w"
|
|
65
|
+
},
|
|
66
|
+
"devDependencies": {
|
|
67
|
+
"@sprucelabs/esm-postbuild": "^1.0.48",
|
|
68
|
+
"@sprucelabs/jest-json-reporter": "^6.0.41",
|
|
69
|
+
"@sprucelabs/semantic-release": "^4.0.6",
|
|
70
|
+
"@sprucelabs/test": "^7.7.62",
|
|
71
|
+
"chokidar-cli": "^3.0.0",
|
|
72
|
+
"concurrently": "^6.2.1",
|
|
73
|
+
"eslint": "^7.32.0",
|
|
74
|
+
"eslint-config-spruce": "^10.10.10",
|
|
75
|
+
"jest": "^27.2.0",
|
|
76
|
+
"jest-circus": "^27.2.0",
|
|
77
|
+
"prettier": "^2.4.1",
|
|
78
|
+
"tsc-watch": "^4.5.0",
|
|
79
|
+
"typescript": "^4.4.3"
|
|
80
|
+
},
|
|
81
|
+
"peerDependencies": {},
|
|
82
|
+
"dependencies": {},
|
|
83
|
+
"jest": {
|
|
84
|
+
"maxWorkers": 4,
|
|
85
|
+
"testTimeout": 120000,
|
|
86
|
+
"testEnvironment": "node",
|
|
87
|
+
"testPathIgnorePatterns": [
|
|
88
|
+
"<rootDir>/tmp/",
|
|
89
|
+
"<rootDir>/src/",
|
|
90
|
+
"<rootDir>/node_modules/",
|
|
91
|
+
"<rootDir>/build/__tests__/testDirsAndFiles/",
|
|
92
|
+
"<rootDir>/build/esm/"
|
|
9
93
|
],
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
"module": "./build/esm/index.js",
|
|
13
|
-
"sideEffects": false,
|
|
14
|
-
"description": "Error reporting that's really, really helpful. 💡",
|
|
15
|
-
"keywords": [
|
|
16
|
-
"node",
|
|
17
|
-
"components",
|
|
18
|
-
"sprucebot",
|
|
19
|
-
"sprucelabs"
|
|
94
|
+
"testMatch": [
|
|
95
|
+
"**/__tests__/**/*.test.js?(x)"
|
|
20
96
|
],
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
"url": "https://github.com/sprucelabsai/spruce-error/issues"
|
|
24
|
-
},
|
|
25
|
-
"scripts": {
|
|
26
|
-
"build.ci": "yarn build.tsc",
|
|
27
|
-
"build.dev": "yarn build.tsc --sourceMap",
|
|
28
|
-
"build.dist": "yarn build.tsc && tsc --project tsconfig.dist.json && yarn build.esm-postbuild",
|
|
29
|
-
"build.esm-postbuild": "esm-postbuild --target build/esm --patterns '**/*.js'",
|
|
30
|
-
"build.tsc": "tsc",
|
|
31
|
-
"build.types": "tsc --emitDeclarationOnly && echo PASS",
|
|
32
|
-
"clean": "yarn clean.build",
|
|
33
|
-
"clean.all": "yarn clean.dependencies && yarn clean.build",
|
|
34
|
-
"clean.build": "rm -rf build/",
|
|
35
|
-
"clean.dependencies": "rm -rf node_modules/ package-lock.json yarn.lock",
|
|
36
|
-
"fix.lint": "eslint --fix '**/*.ts'",
|
|
37
|
-
"lint": "eslint --cache '**/*.ts'",
|
|
38
|
-
"test": "jest",
|
|
39
|
-
"rebuild": "yarn clean.all && yarn && yarn build.dev",
|
|
40
|
-
"release": "semantic-release",
|
|
41
|
-
"update.dependencies": "yarn clean.dependencies && yarn",
|
|
42
|
-
"upgrade.packages": "yarn-upgrade-all && rm -f yarn.lock ; yarn ; yarn fix.lint | true",
|
|
43
|
-
"upgrade.packages.all": "yarn install && yarn upgrade.packages",
|
|
44
|
-
"upgrade.packages.test": "yarn upgrade.packages.all && yarn lint && yarn build.dev && yarn test",
|
|
45
|
-
"watch.build.dev": "concurrently 'yarn build.dev -w' 'yarn lint -w'",
|
|
46
|
-
"watch.test": "jest --watch"
|
|
47
|
-
},
|
|
48
|
-
"devDependencies": {
|
|
49
|
-
"@sprucelabs/esm-postbuild": "latest",
|
|
50
|
-
"@sprucelabs/jest-json-reporter": "latest",
|
|
51
|
-
"@sprucelabs/semantic-release": "latest",
|
|
52
|
-
"@sprucelabs/test": "latest",
|
|
53
|
-
"chokidar-cli": "^2.1.0",
|
|
54
|
-
"concurrently": "^5.3.0",
|
|
55
|
-
"eslint": "^7.11.0",
|
|
56
|
-
"eslint-config-spruce": "latest",
|
|
57
|
-
"jest": "^26.5.3",
|
|
58
|
-
"jest-circus": "^26.6.3",
|
|
59
|
-
"prettier": "^2.1.2",
|
|
60
|
-
"ts-node": "^9.0.0",
|
|
61
|
-
"typescript": "^4.0.3"
|
|
62
|
-
},
|
|
63
|
-
"peerDependencies": {},
|
|
64
|
-
"dependencies": {},
|
|
65
|
-
"jest": {
|
|
66
|
-
"maxWorkers": 4,
|
|
67
|
-
"testTimeout": 120000,
|
|
68
|
-
"testEnvironment": "node",
|
|
69
|
-
"testPathIgnorePatterns": [
|
|
70
|
-
"<rootDir>/tmp/",
|
|
71
|
-
"<rootDir>/src/",
|
|
72
|
-
"<rootDir>/node_modules/",
|
|
73
|
-
"<rootDir>/build/__tests__/testDirsAndFiles/",
|
|
74
|
-
"<rootDir>/build/esm/"
|
|
75
|
-
],
|
|
76
|
-
"testMatch": [
|
|
77
|
-
"**/__tests__/**/*.test.js?(x)"
|
|
78
|
-
],
|
|
79
|
-
"moduleNameMapper": {
|
|
80
|
-
"^#spruce/(.*)$": "<rootDir>/build/.spruce/$1"
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
"yarn-upgrade-all": {
|
|
84
|
-
"ignore": [
|
|
85
|
-
"@sprucelabs/esm-postbuild",
|
|
86
|
-
"@sprucelabs/jest-json-reporter",
|
|
87
|
-
"@sprucelabs/semantic-release",
|
|
88
|
-
"@sprucelabs/test",
|
|
89
|
-
"eslint-config-spruce"
|
|
90
|
-
]
|
|
97
|
+
"moduleNameMapper": {
|
|
98
|
+
"^#spruce/(.*)$": "<rootDir>/build/.spruce/$1"
|
|
91
99
|
}
|
|
100
|
+
}
|
|
92
101
|
}
|