Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.0 to 5.6.1

5

dist/index.js

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

});
exports.sql = exports.createPool = exports.createConnection = exports.transaction = exports.anyFirst = exports.any = exports.manyFirst = exports.many = exports.maybeOneFirst = exports.oneFirst = exports.maybeOne = exports.one = exports.query = void 0;
exports.createPool = exports.createConnection = exports.sql = exports.transaction = exports.anyFirst = exports.any = exports.manyFirst = exports.many = exports.maybeOneFirst = exports.oneFirst = exports.maybeOne = exports.one = exports.query = void 0;

@@ -80,4 +80,5 @@ var _pg = _interopRequireWildcard(require("pg"));

const ulid = (0, _ulid.factory)((0, _ulid.detectPrng)(true)); // eslint-disable-next-line complexity
const ulid = (0, _ulid.factory)((0, _ulid.detectPrng)(true));
// eslint-disable-next-line complexity
const query = async (connection, rawSql, values, queryId) => {

@@ -84,0 +85,0 @@ let stackTrace;

88

package.json

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

{"author":{"email":"gajus@gajus.com","name":"Gajus Kuizinas","url":"http://gajus.com"},"ava":{"require":["@babel/register"]},"dependencies":{"ajv":"^5.3.0","array-flatten":"^2.1.1","bluebird":"^3.5.1","boolean":"^0.1.3","es6-error":"^4.0.2","pg":"^7.4.0","pg-connection-string":"^2.0.0","pretty-hrtime":"^1.0.3","roarr":"^2.0.2","serialize-error":"^2.1.0","stack-trace":"0.0.10","ulid":"^2.3.0"},"description":"A PostgreSQL client with strict types, detail logging and assertions.","devDependencies":{"@babel/cli":"^7.0.0-beta.46","@babel/core":"^7.0.0-beta.46","@babel/plugin-transform-flow-strip-types":"^7.0.0-beta.46","@babel/preset-env":"^7.0.0-beta.46","@babel/register":"^7.0.0-beta.46","ava":"^1.0.0-beta.4","babel-plugin-istanbul":"^4.1.6","coveralls":"^3.0.0","eslint":"^4.10.0","eslint-config-canonical":"^9.3.1","flow-bin":"^0.71.0","flow-copy-source":"^1.2.1","husky":"^0.14.3","nyc":"^11.7.2","semantic-release":"^8.2.0","sinon":"^4.1.2"},"engines":{"node":">=8.0"},"keywords":["postgresql","promise","types"],"license":"BSD-3-Clause","main":"./dist/index.js","name":"slonik","nyc":{"all":true,"exclude":["src/bin","src/queries/*.js"],"include":["src/**/*.js"],"instrument":false,"reporter":["html","text-summary"],"require":["@babel/register"],"silent":true,"sourceMap":false},"repository":{"type":"git","url":"https://github.com/gajus/slonik"},"scripts":{"build":"rm -fr ./dist && NODE_ENV=production babel ./src --out-dir ./dist --copy-files --source-maps && flow-copy-source src dist","lint":"eslint ./src ./test && flow","precommit":"npm run lint && npm run test","test":"NODE_ENV=test nyc ava --verbose --serial --concurrency 1 && nyc report"},"version":"5.6.0"}
{
"author": {
"email": "gajus@gajus.com",
"name": "Gajus Kuizinas",
"url": "http://gajus.com"
},
"ava": {
"require": [
"@babel/register"
]
},
"dependencies": {
"ajv": "^6.5.0",
"array-flatten": "^2.1.1",
"bluebird": "^3.5.1",
"boolean": "^0.1.3",
"es6-error": "^4.1.1",
"pg": "^7.4.3",
"pg-connection-string": "^2.0.0",
"pretty-hrtime": "^1.0.3",
"roarr": "^2.3.0",
"serialize-error": "^2.1.0",
"stack-trace": "0.0.10",
"ulid": "^2.3.0"
},
"description": "A PostgreSQL client with strict types, detail logging and assertions.",
"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",
"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",
"flow-copy-source": "^2.0.0",
"husky": "^0.14.3",
"nyc": "^12.0.2",
"semantic-release": "^15.5.1",
"sinon": "^5.1.0"
},
"engines": {
"node": ">=8.0"
},
"keywords": [
"postgresql",
"promise",
"types"
],
"license": "BSD-3-Clause",
"main": "./dist/index.js",
"name": "slonik",
"nyc": {
"all": true,
"exclude": [
"src/bin",
"src/queries/*.js"
],
"include": [
"src/**/*.js"
],
"instrument": false,
"reporter": [
"html",
"text-summary"
],
"require": [
"@babel/register"
],
"silent": true,
"sourceMap": false
},
"repository": {
"type": "git",
"url": "https://github.com/gajus/slonik"
},
"scripts": {
"build": "rm -fr ./dist && NODE_ENV=production babel ./src --out-dir ./dist --copy-files --source-maps && flow-copy-source src dist",
"lint": "eslint ./src ./test && flow",
"precommit": "npm run lint && npm run test",
"test": "NODE_ENV=test nyc ava --verbose --serial --concurrency 1 && nyc report"
},
"version": "5.6.1"
}

@@ -549,6 +549,6 @@ # Slonik

stackTrace:
- /src/node_modules/slonik/dist/index.js:85:38
- /src/node_modules/slonik/dist/index.js:173:13
- /src/node_modules/slonik/dist/index.js:231:21
- /src/node_modules/slonik/dist/utilities/mapTaggedTemplateLiteralInvocation.js:17:14
- /node_modules/slonik/dist/index.js:85:38
- /node_modules/slonik/dist/index.js:173:13
- /node_modules/slonik/dist/index.js:231:21
- /node_modules/slonik/dist/utilities/mapTaggedTemplateLiteralInvocation.js:17:14
- /src/queries/insertCinemaMovieName.js:11:31

@@ -572,5 +572,5 @@ - /src/routines/uploadData.js:101:68

error: duplicate key value violates unique constraint "public_movie_name_cinema_id0_idx"
at Connection.parseE (/src/node_modules/slonik/node_modules/pg/lib/connection.js:553:11)
at Connection.parseMessage (/src/node_modules/slonik/node_modules/pg/lib/connection.js:378:19)
at Socket.<anonymous> (/src/node_modules/slonik/node_modules/pg/lib/connection.js:119:22)
at Connection.parseE (/node_modules/slonik/node_modules/pg/lib/connection.js:553:11)
at Connection.parseMessage (/node_modules/slonik/node_modules/pg/lib/connection.js:378:19)
at Socket.<anonymous> (/node_modules/slonik/node_modules/pg/lib/connection.js:119:22)
at Socket.emit (events.js:182:13)

@@ -582,6 +582,6 @@ at addChunk (_stream_readable.js:277:12)

From previous event:
at query (/src/node_modules/slonik/src/index.js:107:30)
at one (/src/node_modules/slonik/src/index.js:162:13)
at oneFirst (/src/node_modules/slonik/src/index.js:218:21)
at Object.oneFirst (/src/node_modules/slonik/src/utilities/mapTaggedTemplateLiteralInvocation.js:17:14)
at query (/node_modules/slonik/src/index.js:107:30)
at one (/node_modules/slonik/src/index.js:162:13)
at oneFirst (/node_modules/slonik/src/index.js:218:21)
at Object.oneFirst (/node_modules/slonik/src/utilities/mapTaggedTemplateLiteralInvocation.js:17:14)
at _default (/src/queries/insertCinemaMovieName.js:18:6)

@@ -588,0 +588,0 @@ at upsertCinemaMovieName (/src/routines/uploadData.js:154:33)

@@ -56,16 +56,2 @@ // @flow

export type {
DatabaseConnectionType,
DatabasePoolConnectionType,
DatabasePoolType,
DatabaseSingleConnectionType
} from './types';
export {
DataIntegrityError,
UniqueViolationError,
SlonikError,
NotFoundError
};
// eslint-disable-next-line id-match

@@ -94,2 +80,16 @@ const INT8_OID = 20;

export type {
DatabaseConnectionType,
DatabasePoolConnectionType,
DatabasePoolType,
DatabaseSingleConnectionType
} from './types';
export {
DataIntegrityError,
UniqueViolationError,
SlonikError,
NotFoundError
};
// eslint-disable-next-line complexity

@@ -408,3 +408,3 @@ export const query: InternalQueryType<*> = async (connection, rawSql, values, queryId) => {

const sql = (parts: $ReadOnlyArray<string>, ...values: AnonymouseValuePlaceholderValuesType): TaggledTemplateLiteralInvocationType => {
export const sql = (parts: $ReadOnlyArray<string>, ...values: AnonymouseValuePlaceholderValuesType): TaggledTemplateLiteralInvocationType => {
return {

@@ -416,3 +416,3 @@ sql: parts.join('?'),

const createConnection = async (
export const createConnection = async (
connectionConfiguration: DatabaseConfigurationType,

@@ -456,3 +456,3 @@ clientConfiguration: ClientConfigurationType = {}

const createPool = (
export const createPool = (
connectionConfiguration: DatabaseConfigurationType,

@@ -515,7 +515,1 @@ clientConfiguration: ClientConfigurationType = {}

};
export {
createConnection,
createPool,
sql
};
// @flow
/* eslint-disable no-use-before-define */
/* eslint-disable no-use-before-define, import/exports-last */

@@ -5,0 +5,0 @@ type FieldType = {

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