Comparing version 8.1.0 to 8.2.0
@@ -28,7 +28,7 @@ "use strict"; | ||
if (keys.length !== 1) { | ||
if (keys.length > 1) { | ||
log.error({ | ||
queryId | ||
}, 'DataIntegrityError'); | ||
throw new _errors.DataIntegrityError(); | ||
throw new _errors.UnexpectedStateError(); | ||
} | ||
@@ -35,0 +35,0 @@ |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.CheckIntegrityConstraintViolationError = exports.UniqueIntegrityConstraintViolationError = exports.ForeignKeyIntegrityConstraintViolationError = exports.NotNullIntegrityConstraintViolationError = exports.IntegrityConstraintViolationError = exports.DataIntegrityError = exports.NotFoundError = exports.SlonikError = void 0; | ||
exports.CheckIntegrityConstraintViolationError = exports.UniqueIntegrityConstraintViolationError = exports.ForeignKeyIntegrityConstraintViolationError = exports.NotNullIntegrityConstraintViolationError = exports.IntegrityConstraintViolationError = exports.DataIntegrityError = exports.NotFoundError = exports.UnexpectedStateError = exports.SlonikError = void 0; | ||
@@ -17,2 +17,6 @@ var _es6Error = _interopRequireDefault(require("es6-error")); | ||
class UnexpectedStateError extends _es6Error.default {} | ||
exports.UnexpectedStateError = UnexpectedStateError; | ||
class NotFoundError extends SlonikError { | ||
@@ -19,0 +23,0 @@ constructor() { |
@@ -13,11 +13,11 @@ { | ||
"dependencies": { | ||
"ajv": "^6.5.5", | ||
"array-flatten": "^2.1.1", | ||
"ajv": "^6.6.2", | ||
"array-flatten": "^2.1.2", | ||
"boolean": "^0.2.0", | ||
"es6-error": "^4.1.1", | ||
"get-stack-trace": "^2.0.1", | ||
"pg": "^7.6.1", | ||
"pg": "^7.7.1", | ||
"pg-connection-string": "^2.0.0", | ||
"pretty-hrtime": "^1.0.3", | ||
"roarr": "^2.11.8", | ||
"roarr": "^2.12.0", | ||
"serialize-error": "^3.0.0", | ||
@@ -28,20 +28,20 @@ "ulid": "^2.3.0" | ||
"devDependencies": { | ||
"@babel/cli": "^7.1.5", | ||
"@babel/core": "^7.1.6", | ||
"@babel/plugin-transform-flow-strip-types": "^7.1.6", | ||
"@babel/preset-env": "^7.1.6", | ||
"@babel/cli": "^7.2.3", | ||
"@babel/core": "^7.2.2", | ||
"@babel/plugin-transform-flow-strip-types": "^7.2.3", | ||
"@babel/preset-env": "^7.2.3", | ||
"@babel/register": "^7.0.0", | ||
"ava": "^1.0.0-rc.2", | ||
"ava": "^1.0.1", | ||
"babel-plugin-istanbul": "^5.1.0", | ||
"babel-plugin-transform-export-default-name": "^2.0.4", | ||
"coveralls": "^3.0.2", | ||
"eslint": "^5.9.0", | ||
"eslint-config-canonical": "^13.0.0", | ||
"flow-bin": "^0.86.0", | ||
"eslint": "^5.11.0", | ||
"eslint-config-canonical": "^15.0.1", | ||
"flow-bin": "^0.89.0", | ||
"flow-copy-source": "^2.0.2", | ||
"gitdown": "^2.5.5", | ||
"husky": "^1.1.4", | ||
"husky": "^1.2.1", | ||
"nyc": "^13.1.0", | ||
"semantic-release": "^15.12.0", | ||
"sinon": "^7.1.1" | ||
"semantic-release": "^15.13.1", | ||
"sinon": "^7.2.2" | ||
}, | ||
@@ -95,3 +95,3 @@ "engines": { | ||
}, | ||
"version": "8.1.0" | ||
"version": "8.2.0" | ||
} |
@@ -7,3 +7,3 @@ // @flow | ||
import { | ||
DataIntegrityError | ||
UnexpectedStateError | ||
} from '../errors'; | ||
@@ -29,3 +29,3 @@ import type { | ||
if (keys.length !== 1) { | ||
if (keys.length > 1) { | ||
log.error({ | ||
@@ -35,3 +35,3 @@ queryId | ||
throw new DataIntegrityError(); | ||
throw new UnexpectedStateError(); | ||
} | ||
@@ -38,0 +38,0 @@ |
@@ -7,2 +7,4 @@ // @flow | ||
export class UnexpectedStateError extends ExtendableError {} | ||
export class NotFoundError extends SlonikError { | ||
@@ -9,0 +11,0 @@ constructor () { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
227787
2515
Updatedajv@^6.6.2
Updatedarray-flatten@^2.1.2
Updatedpg@^7.7.1
Updatedroarr@^2.12.0