Socket
Socket
Sign inDemoInstall

typed-error

Package Overview
Dependencies
Maintainers
4
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typed-error - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1-updates-9666bcd609ac07662fe099183df328acc37d0b67

5

CHANGELOG.md

@@ -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 @@

36

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc