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

@wmfs/supercopy

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wmfs/supercopy - npm Package Compare versions

Comparing version 1.24.0 to 1.25.0

19

CHANGELOG.md

@@ -0,1 +1,20 @@

# [1.25.0](https://github.com/wmfs/supercopy/compare/v1.24.0...v1.25.0) (2020-01-27)
### 🛠 Builds
* **deps:** Bump async from 2.6.3 to 3.1.1 ([af9803a](https://github.com/wmfs/supercopy/commit/af9803a4768c71833ac2e5c1fe20f7e477429659))
* **deps-dev:** Bump [@wmfs](https://github.com/wmfs)/hl-pg-client from 1.13.0 to 1.14.0 ([53b47b4](https://github.com/wmfs/supercopy/commit/53b47b478ef01cb87bc28c756c0f3ff6e1dcbd35))
* **deps-dev:** Bump codecov from 3.6.1 to 3.6.2 ([8bb42a1](https://github.com/wmfs/supercopy/commit/8bb42a19f00d224d6e4f298f7e651ef87d2a5f7a))
* **deps-dev:** Bump conventional-changelog-metahub from 3.0.0 to 4.0.0 ([0b65557](https://github.com/wmfs/supercopy/commit/0b65557a62e08c1764882fabcc6408afb490ab4e))
* **deps-dev:** Bump mocha from 6.2.2 to 7.0.0 ([c3add89](https://github.com/wmfs/supercopy/commit/c3add898164f4fc76aa0608620ffaf786d769608))
* **deps-dev:** Bump mocha from 7.0.0 to 7.0.1 ([75b66a5](https://github.com/wmfs/supercopy/commit/75b66a581fafb287e5716c3c4a45ecbbe0566636))
* **deps-dev:** Update standard requirement from 12.0.1 to 14.3.1 ([8e96d30](https://github.com/wmfs/supercopy/commit/8e96d30600b4680d653518846756f94f93945818))
### 💎 Styles
* Do not access Object.prototype method 'hasOwnProperty' from target object ([e6327e8](https://github.com/wmfs/supercopy/commit/e6327e8e593ee8a16de4f67e07b6483ca13090a8))
* standard --fix ([55cea56](https://github.com/wmfs/supercopy/commit/55cea5663fc844793ba9cd3a6d05f636bc8c372c))
# [1.24.0](https://github.com/wmfs/supercopy/compare/v1.23.0...v1.24.0) (2020-01-02)

@@ -2,0 +21,0 @@

4

lib/collect-file-info.js

@@ -18,4 +18,4 @@ 'use strict'

const info = {}
if (options.hasOwnProperty('truncateTables') && options.truncateTables === true) {
if (options.hasOwnProperty('topDownTableOrder') && options.topDownTableOrder.length !== 0) {
if (Object.prototype.hasOwnProperty.call(options, 'truncateTables') && options.truncateTables === true) {
if (Object.prototype.hasOwnProperty.call(options, 'topDownTableOrder') && options.topDownTableOrder.length !== 0) {
info.truncateTables = options.topDownTableOrder.slice(0) // clones array

@@ -22,0 +22,0 @@ info.truncateTables.reverse()

@@ -7,3 +7,3 @@ 'use strict'

module.exports = function addDeleteStatements (scriptStatements, fileInfo, options) {
if (fileInfo.hasOwnProperty('deletes')) {
if (Object.prototype.hasOwnProperty.call(fileInfo, 'deletes')) {
_.forOwn(

@@ -10,0 +10,0 @@ fileInfo.deletes,

@@ -6,3 +6,3 @@ 'use strict'

module.exports = function addInsertStatements (scriptStatements, fileInfo, options) {
if (fileInfo.hasOwnProperty('inserts')) {
if (Object.prototype.hasOwnProperty.call(fileInfo, 'inserts')) {
_.forOwn(

@@ -9,0 +9,0 @@ fileInfo.inserts,

@@ -6,3 +6,3 @@ 'use strict'

module.exports = function addTruncateStatements (scriptStatements, fileInfo, options) {
if (fileInfo.hasOwnProperty('truncateTables')) {
if (Object.prototype.hasOwnProperty.call(fileInfo, 'truncateTables')) {
for (const tableToBeTruncated of fileInfo.truncateTables) {

@@ -9,0 +9,0 @@ scriptStatements.push(

@@ -7,3 +7,3 @@ 'use strict'

module.exports = function addUpdateStatements (scriptStatements, fileInfo, options) {
if (fileInfo.hasOwnProperty('updates')) {
if (Object.prototype.hasOwnProperty.call(fileInfo, 'updates')) {
_.forOwn(

@@ -10,0 +10,0 @@ fileInfo.updates,

@@ -7,3 +7,3 @@ 'use strict'

module.exports = function addUpsertStatements (scriptStatements, fileInfo, options) {
if (fileInfo.hasOwnProperty('upserts')) {
if (Object.prototype.hasOwnProperty.call(fileInfo, 'upserts')) {
_.forOwn(

@@ -10,0 +10,0 @@ fileInfo.upserts,

@@ -6,3 +6,3 @@ 'use strict'

module.exports = function getTables (fileInfo, options) {
let tables = new Set()
const tables = new Set()
if (fileInfo.deletes) {

@@ -9,0 +9,0 @@ Object.keys(fileInfo.deletes).forEach(function (key) {

{
"name": "@wmfs/supercopy",
"version": "1.24.0",
"version": "1.25.0",
"description": "Takes a specifically-named directory structure of CSV files and conjures bulk insert, update and delete statements and applies them to a PostgreSQL database.",

@@ -26,3 +26,3 @@ "author": "West Midlands Fire Service",

"dependencies": {
"async": "2.6.3",
"async": "3.1.1",
"boom": "7.3.0",

@@ -38,12 +38,12 @@ "csv-string": "3.1.7",

"chai": "4.2.0",
"codecov": "3.6.1",
"conventional-changelog-metahub": "3.0.0",
"codecov": "3.6.2",
"conventional-changelog-metahub": "4.0.0",
"cz-conventional-changelog": "3.0.2",
"mocha": "6.2.2",
"mocha": "7.0.1",
"nyc": "15.0.0",
"semantic-release": "15.14.0",
"standard": "12.0.1",
"standard": "14.3.1",
"@semantic-release/changelog": "3.0.6",
"@semantic-release/git": "7.0.18",
"@wmfs/hl-pg-client": "1.13.0"
"@wmfs/hl-pg-client": "1.14.0"
},

@@ -50,0 +50,0 @@ "scripts": {

@@ -90,9 +90,9 @@ /* eslint-env mocha */

[
{ 'child_no': 10, 'first_name': 'Lisa', 'last_name': 'Simpson' },
{ 'child_no': 20, 'first_name': 'Bart', 'last_name': 'Simpson' },
{ 'child_no': 30, 'first_name': 'Maggie', 'last_name': 'Simpson' },
{ 'child_no': 40, 'first_name': 'Rod', 'last_name': 'Flanders' },
{ 'child_no': 50, 'first_name': 'Todd', 'last_name': 'Flanders' },
{ 'child_no': 60, 'first_name': 'Nelson', 'last_name': 'Muntz' },
{ 'child_no': 70, 'first_name': 'Milhouse', 'last_name': 'Van Houten' }
{ child_no: 10, first_name: 'Lisa', last_name: 'Simpson' },
{ child_no: 20, first_name: 'Bart', last_name: 'Simpson' },
{ child_no: 30, first_name: 'Maggie', last_name: 'Simpson' },
{ child_no: 40, first_name: 'Rod', last_name: 'Flanders' },
{ child_no: 50, first_name: 'Todd', last_name: 'Flanders' },
{ child_no: 60, first_name: 'Nelson', last_name: 'Muntz' },
{ child_no: 70, first_name: 'Milhouse', last_name: 'Van Houten' }
]

@@ -187,4 +187,4 @@ )

[
{ 'child_no': 50, 'first_name': 'Todd', 'last_name': 'Flanders' },
{ 'child_no': 70, 'first_name': 'Milhouse', 'last_name': 'Van Houten' }
{ child_no: 50, first_name: 'Todd', last_name: 'Flanders' },
{ child_no: 70, first_name: 'Milhouse', last_name: 'Van Houten' }
]

@@ -191,0 +191,0 @@ )

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