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

@wmfs/pg-model

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wmfs/pg-model - npm Package Compare versions

Comparing version 1.29.0 to 1.29.1

20

CHANGELOG.md

@@ -0,1 +1,21 @@

## [1.29.1](https://github.com/wmfs/pg-model/compare/v1.29.0...v1.29.1) (2022-02-21)
### 🐛 Bug Fixes
* issue with updating with multiple keys ([4ef2cfe](https://github.com/wmfs/pg-model/commit/4ef2cfe5c4f7978d0358498cb25997af432d3c17))
### 🛠 Builds
* **deps-dev:** update dependency [@wmfs](https://github.com/wmfs)/hl-pg-client to v1.29.0 ([413e440](https://github.com/wmfs/pg-model/commit/413e44002010d90ce938efd5653d4502cb83a318))
* **deps-dev:** update dependency chai to v4.3.5 ([8c8e4a9](https://github.com/wmfs/pg-model/commit/8c8e4a91060f5ea9f5a25e1994d74ab24c54f06f))
* **deps-dev:** update dependency chai to v4.3.6 ([73d06c6](https://github.com/wmfs/pg-model/commit/73d06c6e16a86ca91b604f94ca04663e02b9c62e))
* **deps-dev:** update dependency mocha to v9.2.1 ([40d5244](https://github.com/wmfs/pg-model/commit/40d5244e366caf6e7d5c001d35d52a8472661b68))
### 💎 Styles
* standard fix ([3bb74a2](https://github.com/wmfs/pg-model/commit/3bb74a2b05065303c7ca2028746d0b4536076851))
# [1.29.0](https://github.com/wmfs/pg-model/compare/v1.28.1...v1.29.0) (2022-01-25)

@@ -2,0 +22,0 @@

10

lib/Model/actions/Updater.js

@@ -50,4 +50,2 @@ 'use strict'

) {
const values = []
const parsedDoc = this.model.parseDoc(jsonData)

@@ -57,7 +55,10 @@ this.addModifiedBy(parsedDoc)

const values = []
const set = []
const key = []
parsedDoc.attributeColumns.forEach(
(column, index) => {
values.push(parsedDoc.attributeValues[index])
set.push(`${column}=$${index + 1}`)
set.push(`${column}=$${values.length}`)
}

@@ -72,7 +73,6 @@ )

const key = []
parsedDoc.keyColumns.forEach(
(column, index) => {
values.push(parsedDoc.keyValues[index])
key.push(`${column}=$${index + values.length}`)
key.push(`${column}=$${values.length}`)
}

@@ -79,0 +79,0 @@ )

{
"name": "@wmfs/pg-model",
"version": "1.29.0",
"version": "1.29.1",
"description": "Takes a relational database structure and returns model objects for noSQL-like abilities.",

@@ -30,5 +30,5 @@ "author": "West Midlands Fire Service",

"@semantic-release/git": "10.0.1",
"@wmfs/hl-pg-client": "1.28.0",
"@wmfs/hl-pg-client": "1.29.0",
"@wmfs/pg-diff-sync": "1.25.0",
"chai": "4.3.4",
"chai": "4.3.6",
"chai-subset": "1.6.0",

@@ -38,3 +38,3 @@ "codecov": "3.8.3",

"cz-conventional-changelog": "3.3.0",
"mocha": "9.2.0",
"mocha": "9.2.1",
"nyc": "15.1.0",

@@ -41,0 +41,0 @@ "semantic-release": "19.0.2",

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