typed-error
Advanced tools
Comparing version 3.0.0 to 3.0.1-updates-9666bcd609ac07662fe099183df328acc37d0b67
@@ -7,2 +7,7 @@ # Change Log | ||
## v3.0.1 - 2018-10-29 | ||
* Update dev dependencies [Pagan Gazzard] | ||
* Update to typescript 3 [Pagan Gazzard] | ||
## v3.0.0 - 2018-04-17 | ||
@@ -9,0 +14,0 @@ |
{ | ||
"name": "typed-error", | ||
"version": "3.0.0", | ||
"version": "3.0.1-updates-9666bcd609ac07662fe099183df328acc37d0b67", | ||
"license": "Apache-2.0", | ||
@@ -9,6 +9,6 @@ "description": "A class designed to enable easily extending the built-in javascript Error, allowing typed errors.", | ||
"scripts": { | ||
"lint": "resin-lint --typescript src/ test/ && tslint --format stylish --project .", | ||
"lintfix": "tslint --fix --format stylish --project .", | ||
"lint": "npm run lintfix && resin-lint --typescript src/ test/", | ||
"lintfix": "prettier --config ./node_modules/resin-lint/config/.prettierrc --write \"{src,test,typings}/**/*.ts\"", | ||
"build": "tsc --pretty --project ./tsconfig.dist.json", | ||
"test": "mocha --require ts-node/register/type-check test/*.ts && mocha --require coffeescript/register test/*.coffee", | ||
"test": "mocha", | ||
"pretest": "npm run build", | ||
@@ -22,16 +22,15 @@ "prepare": "npm run build" | ||
"devDependencies": { | ||
"@types/bluebird": "^3.5.8", | ||
"@types/chai": "^4.1.2", | ||
"@types/bluebird": "^3.5.24", | ||
"@types/chai": "^4.1.7", | ||
"@types/chai-as-promised": "^7.1.0", | ||
"@types/mocha": "^5.0.0", | ||
"@types/node": "^9.6.2", | ||
"bluebird": "^3.5.0", | ||
"chai": "^4.1.0", | ||
"@types/mocha": "^5.2.5", | ||
"@types/node": "^8.10.36", | ||
"bluebird": "^3.5.2", | ||
"chai": "^4.2.0", | ||
"chai-as-promised": "^7.1.1", | ||
"coffeescript": "^2.2.4", | ||
"mocha": "^5.0.5", | ||
"resin-lint": "^1.5.0", | ||
"ts-node": "^5.0.1", | ||
"tslint": "^5.9.1", | ||
"typescript": "2.8.1" | ||
"coffeescript": "^2.3.2", | ||
"mocha": "^5.2.0", | ||
"resin-lint": "^2.0.1", | ||
"ts-node": "^7.0.1", | ||
"typescript": "^3.1.3" | ||
}, | ||
@@ -45,3 +44,6 @@ "author": "Pagan Gazzard <page@resin.io>", | ||
}, | ||
"homepage": "https://github.com/resin-io/typed-error" | ||
"homepage": "https://github.com/resin-io/typed-error", | ||
"dependencies": { | ||
"prettier": "^1.14.3" | ||
} | ||
} |
@@ -18,3 +18,3 @@ import * as Promise from 'bluebird'; | ||
throw new MyError(); | ||
} catch(err) { | ||
} catch (err) { | ||
e = err; | ||
@@ -30,3 +30,3 @@ } | ||
throw new MyError(); | ||
} catch(err) { | ||
} catch (err) { | ||
e = err; | ||
@@ -42,3 +42,3 @@ } | ||
throw new MyError(); | ||
} catch(err) { | ||
} catch (err) { | ||
e = err; | ||
@@ -57,5 +57,5 @@ } | ||
}) | ||
.return(false) | ||
.catch(MyError, () => true) | ||
.catch(() => false) | ||
.return(false) | ||
.catch(MyError, () => true) | ||
.catch(() => false), | ||
).to.eventually.equal(true); | ||
@@ -70,5 +70,5 @@ }); | ||
}) | ||
.return(false) | ||
.catch(MyErrorName, () => true) | ||
.catch(() => false) | ||
.return(false) | ||
.catch(MyErrorName, () => true) | ||
.catch(() => false), | ||
).to.eventually.equal(true); | ||
@@ -78,3 +78,4 @@ }); | ||
it('constructor.name', () => { | ||
const MyErrorConstructorName = (e: Error) => e.constructor.name === 'MyError'; | ||
const MyErrorConstructorName = (e: Error) => | ||
e.constructor.name === 'MyError'; | ||
expect( | ||
@@ -84,5 +85,5 @@ Promise.try(() => { | ||
}) | ||
.return(false) | ||
.catch(MyErrorConstructorName, () => true) | ||
.catch(() => false) | ||
.return(false) | ||
.catch(MyErrorConstructorName, () => true) | ||
.catch(() => false), | ||
).to.eventually.equal(true); | ||
@@ -89,0 +90,0 @@ }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
26889
13
225
0
1
1
+ Addedprettier@^1.14.3
+ Addedprettier@1.19.1(transitive)