update smarterror

This commit is contained in:
Philipp Kunz 2017-06-09 15:30:50 +02:00
parent f2804920fb
commit a11696a170
6 changed files with 36 additions and 1 deletions

View File

@ -1 +1,2 @@
import 'typings-global'; import 'typings-global';
export { };

View File

@ -1,4 +1,6 @@
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
require("typings-global"); require("typings-global");
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRlcnJvci5wbHVnaW5zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnRlcnJvci5wbHVnaW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMEJBQXVCIn0= const sourceMapSupport = require("source-map-support");
sourceMapSupport.install();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRlcnJvci5wbHVnaW5zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnRlcnJvci5wbHVnaW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMEJBQXVCO0FBRXZCLHVEQUFzRDtBQUN0RCxnQkFBZ0IsQ0FBQyxPQUFPLEVBQUUsQ0FBQSJ9

View File

@ -13,6 +13,8 @@
"tapbundle": "^1.0.13" "tapbundle": "^1.0.13"
}, },
"dependencies": { "dependencies": {
"clean-stack": "^1.3.0",
"source-map-support": "^0.4.15",
"typings-global": "^1.0.16" "typings-global": "^1.0.16"
} }
} }

View File

@ -1,3 +1,11 @@
import * as smarterror from '../dist/index' import * as smarterror from '../dist/index'
import { expect, tap } from 'tapbundle' 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()

View File

@ -1 +1,9 @@
import 'typings-global' import 'typings-global'
import * as cleanStack from 'clean-stack'
import * as sourceMapSupport from 'source-map-support'
sourceMapSupport.install()
export {
cleanStack
}

View File

@ -75,6 +75,10 @@ check-error@^1.0.2:
version "1.0.2" version "1.0.2"
resolved "https://registry.yarnpkg.com/check-error/-/check-error-1.0.2.tgz#574d312edd88bb5dd8912e9286dd6c0aed4aac82" 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: concat-map@0.0.1:
version "0.0.1" version "0.0.1"
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" 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" typed-promisify "^0.3.0"
typings-global "^1.0.14" 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: tapbundle@^1.0.13:
version "1.0.14" version "1.0.14"
resolved "https://registry.yarnpkg.com/tapbundle/-/tapbundle-1.0.14.tgz#75827e335fcb02216f0267a26a26d702ddc02e3c" resolved "https://registry.yarnpkg.com/tapbundle/-/tapbundle-1.0.14.tgz#75827e335fcb02216f0267a26a26d702ddc02e3c"