Socket
Socket
Sign inDemoInstall

@verdaccio/commons-api

Package Overview
Dependencies
Maintainers
4
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@verdaccio/commons-api - npm Package Compare versions

Comparing version 8.2.0 to 8.3.0

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [8.3.0](https://github.com/verdaccio/monorepo/compare/v8.2.0...v8.3.0) (2019-10-27)
### Features
* add http-status-codes dep ([#212](https://github.com/verdaccio/monorepo/issues/212)) ([00b66af](https://github.com/verdaccio/monorepo/commit/00b66af))
# [8.2.0](https://github.com/verdaccio/monorepo/compare/v8.2.0-next.0...v8.2.0) (2019-10-23)

@@ -8,0 +19,0 @@

28

lib/index.js

@@ -19,2 +19,4 @@ "use strict";

var _httpStatusCodes = _interopRequireDefault(require("http-status-codes"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -25,15 +27,15 @@

const HTTP_STATUS = {
OK: 200,
CREATED: 201,
MULTIPLE_CHOICES: 300,
NOT_MODIFIED: 304,
BAD_REQUEST: 400,
UNAUTHORIZED: 401,
FORBIDDEN: 403,
NOT_FOUND: 404,
CONFLICT: 409,
UNSUPPORTED_MEDIA: 415,
BAD_DATA: 422,
INTERNAL_ERROR: 500,
SERVICE_UNAVAILABLE: 503,
OK: _httpStatusCodes.default.OK,
CREATED: _httpStatusCodes.default.CREATED,
MULTIPLE_CHOICES: _httpStatusCodes.default.MULTIPLE_CHOICES,
NOT_MODIFIED: _httpStatusCodes.default.NOT_MODIFIED,
BAD_REQUEST: _httpStatusCodes.default.BAD_REQUEST,
UNAUTHORIZED: _httpStatusCodes.default.UNAUTHORIZED,
FORBIDDEN: _httpStatusCodes.default.FORBIDDEN,
NOT_FOUND: _httpStatusCodes.default.NOT_FOUND,
CONFLICT: _httpStatusCodes.default.CONFLICT,
UNSUPPORTED_MEDIA: _httpStatusCodes.default.UNSUPPORTED_MEDIA_TYPE,
BAD_DATA: _httpStatusCodes.default.UNPROCESSABLE_ENTITY,
INTERNAL_ERROR: _httpStatusCodes.default.INTERNAL_SERVER_ERROR,
SERVICE_UNAVAILABLE: _httpStatusCodes.default.SERVICE_UNAVAILABLE,
LOOP_DETECTED: 508

@@ -40,0 +42,0 @@ };

{
"name": "@verdaccio/commons-api",
"version": "8.2.0",
"version": "8.3.0",
"description": "Commons API utilities for Verdaccio",

@@ -32,3 +32,4 @@ "keywords": [

"dependencies": {
"http-errors": "1.7.3"
"http-errors": "1.7.3",
"http-status-codes": "1.3.2"
},

@@ -50,3 +51,3 @@ "devDependencies": {

},
"gitHead": "6ac6a2f5d223ef5117b3afad9ad2b23f9bd7d61f"
"gitHead": "b0599e31925653bd5bf8d224c7daad9d468e0455"
}
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