Socket
Socket
Sign inDemoInstall

slonik

Package Overview
Dependencies
Maintainers
1
Versions
395
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

slonik - npm Package Compare versions

Comparing version 5.6.1 to 5.7.0

3

dist/errors.js

@@ -35,4 +35,5 @@ "use strict";

class UniqueViolationError extends SlonikError {
constructor() {
constructor(constraint) {
super('Query violates a unique constraint.');
this.constraint = constraint;
}

@@ -39,0 +40,0 @@

@@ -132,3 +132,3 @@ "use strict";

if (error.code === '23505') {
throw new _errors.UniqueViolationError();
throw new _errors.UniqueViolationError(error.constraint);
}

@@ -135,0 +135,0 @@

@@ -13,3 +13,3 @@ {

"dependencies": {
"ajv": "^6.5.0",
"ajv": "^6.5.1",
"array-flatten": "^2.1.1",

@@ -29,18 +29,18 @@ "bluebird": "^3.5.1",

"devDependencies": {
"@babel/cli": "^7.0.0-beta.49",
"@babel/core": "^7.0.0-beta.49",
"@babel/plugin-transform-flow-strip-types": "^7.0.0-beta.49",
"@babel/preset-env": "^7.0.0-beta.49",
"@babel/register": "^7.0.0-beta.49",
"@babel/cli": "^7.0.0-beta.51",
"@babel/core": "^7.0.0-beta.51",
"@babel/plugin-transform-flow-strip-types": "^7.0.0-beta.51",
"@babel/preset-env": "^7.0.0-beta.51",
"@babel/register": "^7.0.0-beta.51",
"ava": "^1.0.0-beta.4",
"babel-plugin-istanbul": "^4.1.6",
"coveralls": "^3.0.1",
"eslint": "^4.19.1",
"eslint-config-canonical": "^10.2.1",
"flow-bin": "^0.74.0",
"eslint": "^5.0.0",
"eslint-config-canonical": "^10.3.1",
"flow-bin": "^0.75.0",
"flow-copy-source": "^2.0.0",
"husky": "^0.14.3",
"nyc": "^12.0.2",
"semantic-release": "^15.5.1",
"sinon": "^5.1.0"
"semantic-release": "^15.6.0",
"sinon": "^6.0.1"
},

@@ -88,3 +88,3 @@ "engines": {

},
"version": "5.6.1"
"version": "5.7.0"
}

@@ -20,5 +20,9 @@ // @flow

export class UniqueViolationError extends SlonikError {
constructor () {
constraint: string;
constructor (constraint: string) {
super('Query violates a unique constraint.');
this.constraint = constraint;
}
}

@@ -147,3 +147,3 @@ // @flow

if (error.code === '23505') {
throw new UniqueViolationError();
throw new UniqueViolationError(error.constraint);
}

@@ -150,0 +150,0 @@

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

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