Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gromit

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gromit - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

lib/util/ExtendableError.js

29

lib/GromitError.js

@@ -29,4 +29,16 @@ 'use strict';

var _ExtendableError2 = require('./util/ExtendableError');
var _ExtendableError3 = _interopRequireDefault(_ExtendableError2);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
*
* @module Gromit
*
*/
// This implementation is based roughly on Boom: https://github.com/hapijs/boom
var STATUS_CODE_MAP = {

@@ -94,10 +106,2 @@ '100': { message: 'Continue', name: 'CONTINUE' },

*
* @module Gromit
*
*/
// This implementation is based roughly on Boom: https://github.com/hapijs/boom
/**
*
* Gromit Error Object

@@ -107,4 +111,5 @@ * @extends Error

*/
var GromitError = function (_Error) {
(0, _inherits3.default)(GromitError, _Error);
// $FlowFixMe: flow complains about the hacky extending from a function here but it is needed for browser support
var GromitError = function (_ExtendableError) {
(0, _inherits3.default)(GromitError, _ExtendableError);

@@ -256,3 +261,3 @@ /**

if (typeof Error.captureStackTrace === 'function') {
Error.captureStackTrace(error, GromitError.create);
Error.captureStackTrace(error, GromitError);
}

@@ -769,4 +774,4 @@

return GromitError;
}(Error);
}(_ExtendableError3.default);
exports.default = GromitError;

@@ -7,3 +7,3 @@ {

"name": "gromit",
"version": "0.0.7",
"version": "0.0.8",
"description": "",

@@ -37,7 +37,7 @@ "license": "UNLICENSED",

"ava": "^0.21.0",
"babel-cli": "^6.23.0",
"babel-core": "^6.23.0",
"babel-cli": "^6.24.1",
"babel-core": "^6.25.0",
"babel-plugin-istanbul": "^4.1.4",
"babel-preset-blueflag": "^0.6.0",
"babel-register": "^6.23.0",
"babel-register": "^6.24.1",
"dotenv": "4.0.0",

@@ -44,0 +44,0 @@ "eslint": "^4.2.0",

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