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

@knorm/postgres

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@knorm/postgres - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

13

lib/KnormPostgres.js

@@ -467,2 +467,3 @@ const { Knorm } = require('@knorm/knorm');

// TODO: handle duplicate rows in inserted and updated data?
async save(data, options) {

@@ -480,7 +481,13 @@ const inserts = [];

// TODO: handle duplicate rows in inserted and updated?
const inserted = await this.insert(inserts, options);
let inserted = await this.insert(inserts, options);
const updated = await this.update(updates, options);
return inserted.concat(updated);
if (!Array.isArray(inserted)) {
inserted = [inserted];
}
const rows = inserted.concat(updated);
const first = this.getOption('first');
return first ? rows[0] : rows;
}

@@ -487,0 +494,0 @@ }

{
"name": "@knorm/postgres",
"version": "1.2.0",
"version": "1.2.1",
"description": "Postgres plugin for knorm",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is too big to display

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