@janiscommerce/api-save
Advanced tools
Comparing version 4.3.2 to 4.4.0
@@ -8,2 +8,6 @@ # Changelog | ||
## [4.4.0] - 2020-04-07 | ||
### Added | ||
- Duplicated Key Error handler | ||
## [4.3.2] - 2020-02-18 | ||
@@ -10,0 +14,0 @@ ### Changed |
@@ -10,2 +10,3 @@ 'use strict'; | ||
const ApiSaveError = require('./api-save-error'); | ||
const ErrorHandler = require('./helpers/error-handler'); | ||
const EndpointParser = require('./helpers/endpoint-parser'); | ||
@@ -76,3 +77,3 @@ | ||
} catch(e) { | ||
throw new ApiSaveError(e, ApiSaveError.codes.INTERNAL_ERROR); | ||
ErrorHandler.handle(this, e); | ||
} | ||
@@ -79,0 +80,0 @@ } |
@@ -11,2 +11,3 @@ 'use strict'; | ||
VALIDATION_ERROR: 3, | ||
DUPLICATED_KEY_ERROR: 98, | ||
INTERNAL_ERROR: 99 | ||
@@ -13,0 +14,0 @@ }; |
{ | ||
"name": "@janiscommerce/api-save", | ||
"version": "4.3.2", | ||
"version": "4.4.0", | ||
"description": "A package to handle JANIS Views Save APIs", | ||
@@ -23,3 +23,3 @@ "main": "lib/index.js", | ||
"eslint-config-airbnb-base": "^13.2.0", | ||
"eslint-plugin-import": "^2.18.2", | ||
"eslint-plugin-import": "^2.20.2", | ||
"husky": "^2.7.0", | ||
@@ -38,6 +38,6 @@ "mocha": "^5.2.0", | ||
"dependencies": { | ||
"@janiscommerce/api": "^4.2.2", | ||
"@janiscommerce/api": "^4.2.3", | ||
"lodash.isequal": "^4.5.0", | ||
"superstruct": "^0.6.1" | ||
"superstruct": "0.6.2" | ||
} | ||
} |
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
21351
14
391
Updated@janiscommerce/api@^4.2.3
Updatedsuperstruct@0.6.2