Socket
Socket
Sign inDemoInstall

httperrors

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

httperrors - npm Package Compare versions

Comparing version 0.6.1 to 0.7.0

2

dist/httpErrors.js

@@ -1,1 +0,1 @@

!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.httpErrors=e()}}(function(){var e;return function t(e,r,n){function o(i,u){if(!r[i]){if(!e[i]){var d="function"==typeof require&&require;if(!u&&d)return d(i,!0);if(a)return a(i,!0);var f=new Error("Cannot find module '"+i+"'");throw f.code="MODULE_NOT_FOUND",f}var c=r[i]={exports:{}};e[i][0].call(c.exports,function(t){var r=e[i][1][t];return o(r?r:t)},c,c.exports,t,e,r,n)}return r[i].exports}for(var a="function"==typeof require&&require,i=0;i<n.length;i++)o(n[i]);return o}({1:[function(e,t){var r=e("createerror"),n={400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Time-out",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Large",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Time-out",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"},o=t.exports=function(e){return"undefined"==typeof e?e={}:"number"==typeof e&&(e={statusCode:e}),e.status=e.statusCode,(o[e.statusCode]||o.Unknown)(e)};o.Unknown=r({name:"Unknown"}),Object.keys(n).forEach(function(e){e=+e;var t=n[e];if(!(400>e)){var a=t.replace(/ ([a-z])/gi,function(e,t){return t.toUpperCase()}).replace(/[^a-z]/gi,"");o[a]=o[e]=r({statusCode:e,status:e,name:a})}})},{createerror:2}],2:[function(t,r,n){!function(t,o){"object"==typeof n?r.exports=o():"function"==typeof e&&e.amd?e(o):t.createError=o()}(this,function(){function e(e){for(var t=1;t<arguments.length;t++)for(var r=arguments[t],n=Object.keys(r),o=0;o<n.length;o++){var a=n[o];e[a]=r[a]}return e}function t(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}return function(r,n){function o(t){var a;return t instanceof Error?a=t:("string"==typeof t&&(t={message:t}),a=new Error,a.__proto__=o.prototype,Error.captureStackTrace&&Error.captureStackTrace(a,o)),n&&n.call(a,a),e(a,r),"object"==typeof t&&t&&e(a,t),a}return r=r||{},t(o,n||Error),r.name&&(o.name=r.name,r[r.name]=!0),o}})},{}]},{},[1])(1)});
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.httpErrors=e()}}(function(){var e;return function t(e,r,n){function o(i,u){if(!r[i]){if(!e[i]){var d="function"==typeof require&&require;if(!u&&d)return d(i,!0);if(a)return a(i,!0);var f=new Error("Cannot find module '"+i+"'");throw f.code="MODULE_NOT_FOUND",f}var c=r[i]={exports:{}};e[i][0].call(c.exports,function(t){var r=e[i][1][t];return o(r?r:t)},c,c.exports,t,e,r,n)}return r[i].exports}for(var a="function"==typeof require&&require,i=0;i<n.length;i++)o(n[i]);return o}({1:[function(e,t){var r=e("createerror"),n={400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Time-out",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Large",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Time-out",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"},o=t.exports=function(e){return"undefined"==typeof e?e={}:"number"==typeof e&&(e={statusCode:e}),e.status=e.statusCode,(o[e.statusCode]||o.Unknown)(e)};o.Unknown=r({name:"Unknown"}),Object.keys(n).forEach(function(e){e=+e;var t=n[e];if(!(400>e)){var a=t.replace(/ ([a-z])/gi,function(e,t){return t.toUpperCase()}).replace(/[^a-z]/gi,"");o[a]=o[e]=r({statusCode:e,status:e,name:a})}})},{createerror:2}],2:[function(t,r,n){!function(t,o){"object"==typeof n?r.exports=o():"function"==typeof e&&e.amd?e(o):t.createError=o()}(this,function(){function e(e){for(var t=1;t<arguments.length;t++)for(var r=arguments[t],n=Object.keys(r),o=0;o<n.length;o++){var a=n[o];e[a]=r[a]}return e}function t(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}return function(r,n){function o(t){var a;return t instanceof Error?a=t:("string"==typeof t&&(t={message:t}),a=new Error,a.__proto__=o.prototype,Error.captureStackTrace&&Error.captureStackTrace(a,o)),n&&n.call(a,a),e(a,r),"object"==typeof t&&t&&("data"in t&&(t=e({},t),a.data=a.data||{},e(a.data,t.data),delete t.data),e(a,t)),a}return r=r||{},t(o,n||Error),r.name&&(o.name=r.name,r[r.name]=!0),o}})},{}]},{},[1])(1)});

@@ -15,3 +15,3 @@ {

],
"version": "0.6.1",
"version": "0.7.0",
"repository": {

@@ -26,3 +26,3 @@ "type": "git",

"dependencies": {
"createerror": "0.4.1"
"createerror": "0.5.0"
},

@@ -29,0 +29,0 @@ "devDependencies": {

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