@liquality/errors
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -1,2 +0,2 @@ | ||
module.exports=function(r){var e={};function t(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return r[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=r,t.c=e,t.d=function(r,e,n){t.o(r,e)||Object.defineProperty(r,e,{enumerable:!0,get:n})},t.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},t.t=function(r,e){if(1&e&&(r=t(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var o in r)t.d(n,o,function(e){return r[e]}.bind(null,o));return n},t.n=function(r){var e=r&&r.__esModule?function(){return r.default}:function(){return r};return t.d(e,"a",e),e},t.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},t.p="",t(t.s=2)}([function(r,e){r.exports=require("http")},function(r,e){r.exports=require("standard-error")},function(r,e,t){r.exports=t(3)},function(r,e,t){"use strict";t.r(e),t.d(e,"StandardError",function(){return d}),t.d(e,"ProviderNotFoundError",function(){return c}),t.d(e,"InvalidProviderError",function(){return a}),t.d(e,"DuplicateProviderError",function(){return l}),t.d(e,"NoProviderError",function(){return s}),t.d(e,"UnsupportedMethodError",function(){return f}),t.d(e,"UnimplementedMethodError",function(){return p}),t.d(e,"InvalidProviderResponseError",function(){return v}),t.d(e,"WalletError",function(){return E}),t.d(e,"NodeError",function(){return b}),t.d(e,"RpcError",function(){return m});var n=t(0),o=t(1),u=t.n(o);function i(r){class e extends u.a{}return e.prototype.name=r,e}const d=i("StandardError"),c=i("ProviderNotFoundError"),a=i("InvalidProviderError"),l=i("DuplicateProviderError"),s=i("NoProviderError"),f=i("UnsupportedMethodError"),p=i("UnimplementedMethodError"),v=i("InvalidProviderResponseError"),E=i("WalletError"),b=i("NodeError");class m extends d{constructor(r,e,t={}){if("number"!=typeof r)throw new TypeError("Non-numeric HTTP code");"object"==typeof e&&null!==e&&(t=e,e=null),t.code=r,super(e||n.STATUS_CODES[r],t)}get status(){return this.code}set status(r){Object.defineProperty(this,"status",{configurable:!0,enumerable:!0,value:r,writable:!0})}toString(){return`${this.name}: ${this.code} ${this.message}`}}m.prototype.name="RpcError"}]); | ||
module.exports=function(r){var e={};function t(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return r[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=r,t.c=e,t.d=function(r,e,n){t.o(r,e)||Object.defineProperty(r,e,{enumerable:!0,get:n})},t.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},t.t=function(r,e){if(1&e&&(r=t(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var o in r)t.d(n,o,function(e){return r[e]}.bind(null,o));return n},t.n=function(r){var e=r&&r.__esModule?function(){return r.default}:function(){return r};return t.d(e,"a",e),e},t.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},t.p="",t(t.s=3)}([function(r,e){r.exports=require("http")},function(r,e){r.exports=require("standard-error")},function(r){r.exports={a:"0.2.0"}},function(r,e,t){"use strict";t.r(e),t.d(e,"StandardError",function(){return c}),t.d(e,"ProviderNotFoundError",function(){return a}),t.d(e,"InvalidProviderError",function(){return s}),t.d(e,"DuplicateProviderError",function(){return f}),t.d(e,"NoProviderError",function(){return l}),t.d(e,"UnsupportedMethodError",function(){return p}),t.d(e,"UnimplementedMethodError",function(){return v}),t.d(e,"InvalidProviderResponseError",function(){return E}),t.d(e,"WalletError",function(){return b}),t.d(e,"NodeError",function(){return m}),t.d(e,"RpcError",function(){return y}),t.d(e,"version",function(){return P});var n=t(0),o=t(1),u=t.n(o),i=t(2);function d(r){class e extends u.a{}return e.prototype.name=r,e}const c=d("StandardError"),a=d("ProviderNotFoundError"),s=d("InvalidProviderError"),f=d("DuplicateProviderError"),l=d("NoProviderError"),p=d("UnsupportedMethodError"),v=d("UnimplementedMethodError"),E=d("InvalidProviderResponseError"),b=d("WalletError"),m=d("NodeError");class y extends c{constructor(r,e,t={}){if("number"!=typeof r)throw new TypeError("Non-numeric HTTP code");"object"==typeof e&&null!==e&&(t=e,e=null),t.code=r,super(e||n.STATUS_CODES[r],t)}get status(){return this.code}set status(r){Object.defineProperty(this,"status",{configurable:!0,enumerable:!0,value:r,writable:!0})}toString(){return`${this.name}: ${this.code} ${this.message}`}}y.prototype.name="RpcError";const P=i.a}]); | ||
//# sourceMappingURL=index.cjs.js.map |
import { STATUS_CODES } from 'http' | ||
import BaseError from 'standard-error' | ||
import { version as v } from '../package.json' | ||
function createError (name) { | ||
@@ -56,1 +58,3 @@ class CALError extends BaseError {} | ||
RpcError.prototype.name = 'RpcError' | ||
export const version = v |
{ | ||
"name": "@liquality/errors", | ||
"umdName": "CALErrors", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "", | ||
@@ -13,9 +13,5 @@ "module": "lib/index.js", | ||
"scripts": { | ||
"build:dev:node": "webpack --config ../../webpack/webpack.node.config.js", | ||
"build:dev:browser": "webpack --config ../../webpack/webpack.browser.config.js", | ||
"build:dev": "webpack --config ../../webpack/webpack.config.js", | ||
"watch": "WEBPACK_WATCH=true webpack --config ../../webpack/webpack.config.js", | ||
"build:node": "cross-env NODE_ENV=production BABEL_ENV=production npm run build:dev:node", | ||
"build:browser": "cross-env NODE_ENV=production BABEL_ENV=production npm run build:dev:browser", | ||
"build": "cross-env NODE_ENV=production BABEL_ENV=production npm run build:dev" | ||
"build:node": "webpack --config ../../webpack/webpack.node.config.js", | ||
"build:browser": "webpack --config ../../webpack/webpack.browser.config.js", | ||
"build": "webpack --config ../../webpack/webpack.config.js" | ||
}, | ||
@@ -42,3 +38,3 @@ "author": "Liquality <info@liquality.io>", | ||
}, | ||
"gitHead": "2c402490422fa0ffe4fee6aac1e54083f7fb9ff4" | ||
"gitHead": "911a631b4828b22c7fc8fe6872caa7a46e0f73fb" | ||
} |
Sorry, the diff of this file is too big to display
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
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
488484
410