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

json2mysql

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json2mysql - npm Package Compare versions

Comparing version 0.2.1 to 0.3.0

16

dist/index.js

@@ -76,2 +76,18 @@ 'use strict';

}
}, {
key: 'replace',
value: function replace(tableName, file) {
var _this3 = this;
var origins = require(file);
var _conn = void 0;
return this._conn.then(function (conn) {
_conn = conn;
return _bluebird2.default.mapSeries(origins, function (d, i) {
d.id = i + 1;
var statement = _this3.propsToColumn(d);
return _conn.query('insert into ' + tableName + ' set ? on duplicate key update ? ', [statement, statement]);
});
});
}
}]);

@@ -78,0 +94,0 @@

2

package.json
{
"name": "json2mysql",
"version": "0.2.1",
"version": "0.3.0",
"description": "A tool for comparing your configure json file with mysql table, then Loaded",

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

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