Comparing version 0.0.7 to 0.0.8
@@ -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
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
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
99949
14
1154