update smarterror
This commit is contained in:
parent
f2804920fb
commit
a11696a170
1
dist/smarterror.plugins.d.ts
vendored
1
dist/smarterror.plugins.d.ts
vendored
@ -1 +1,2 @@
|
||||
import 'typings-global';
|
||||
export { };
|
||||
|
4
dist/smarterror.plugins.js
vendored
4
dist/smarterror.plugins.js
vendored
@ -1,4 +1,6 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
require("typings-global");
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRlcnJvci5wbHVnaW5zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnRlcnJvci5wbHVnaW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMEJBQXVCIn0=
|
||||
const sourceMapSupport = require("source-map-support");
|
||||
sourceMapSupport.install();
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRlcnJvci5wbHVnaW5zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnRlcnJvci5wbHVnaW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMEJBQXVCO0FBRXZCLHVEQUFzRDtBQUN0RCxnQkFBZ0IsQ0FBQyxPQUFPLEVBQUUsQ0FBQSJ9
|
@ -13,6 +13,8 @@
|
||||
"tapbundle": "^1.0.13"
|
||||
},
|
||||
"dependencies": {
|
||||
"clean-stack": "^1.3.0",
|
||||
"source-map-support": "^0.4.15",
|
||||
"typings-global": "^1.0.16"
|
||||
}
|
||||
}
|
||||
|
@ -1,3 +1,11 @@
|
||||
import * as smarterror from '../dist/index'
|
||||
|
||||
import { expect, tap } from 'tapbundle'
|
||||
|
||||
tap.test('should create a valid error', async () => {
|
||||
let myError = new smarterror.SmartError('wow')
|
||||
expect(myError).to.be.instanceof(Error)
|
||||
console.log(myError.stack)
|
||||
})
|
||||
|
||||
tap.start()
|
||||
|
@ -1 +1,9 @@
|
||||
import 'typings-global'
|
||||
|
||||
import * as cleanStack from 'clean-stack'
|
||||
import * as sourceMapSupport from 'source-map-support'
|
||||
sourceMapSupport.install()
|
||||
|
||||
export {
|
||||
cleanStack
|
||||
}
|
||||
|
14
yarn.lock
14
yarn.lock
@ -75,6 +75,10 @@ check-error@^1.0.2:
|
||||
version "1.0.2"
|
||||
resolved "https://registry.yarnpkg.com/check-error/-/check-error-1.0.2.tgz#574d312edd88bb5dd8912e9286dd6c0aed4aac82"
|
||||
|
||||
clean-stack@^1.3.0:
|
||||
version "1.3.0"
|
||||
resolved "https://registry.yarnpkg.com/clean-stack/-/clean-stack-1.3.0.tgz#9e821501ae979986c46b1d66d2d432db2fd4ae31"
|
||||
|
||||
concat-map@0.0.1:
|
||||
version "0.0.1"
|
||||
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
|
||||
@ -229,6 +233,16 @@ smartq@^1.1.1:
|
||||
typed-promisify "^0.3.0"
|
||||
typings-global "^1.0.14"
|
||||
|
||||
source-map-support@^0.4.15:
|
||||
version "0.4.15"
|
||||
resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.15.tgz#03202df65c06d2bd8c7ec2362a193056fef8d3b1"
|
||||
dependencies:
|
||||
source-map "^0.5.6"
|
||||
|
||||
source-map@^0.5.6:
|
||||
version "0.5.6"
|
||||
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.6.tgz#75ce38f52bf0733c5a7f0c118d81334a2bb5f412"
|
||||
|
||||
tapbundle@^1.0.13:
|
||||
version "1.0.14"
|
||||
resolved "https://registry.yarnpkg.com/tapbundle/-/tapbundle-1.0.14.tgz#75827e335fcb02216f0267a26a26d702ddc02e3c"
|
||||
|
Loading…
Reference in New Issue
Block a user