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

uk.co.workingedge.cordova.plugin.sqliteporter

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uk.co.workingedge.cordova.plugin.sqliteporter - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"version": "1.0.0",
"version": "1.0.1",
"name": "uk.co.workingedge.cordova.plugin.sqliteporter",

@@ -4,0 +4,0 @@ "cordova_name": "sqlite porter",

@@ -185,7 +185,12 @@ /**

var tableName = sqlUnescape(trimWhitespace(trimWhitespace(row.sql.replace("CREATE TABLE", "")).split(/ |\(/)[0]));
sqlStatements.push("DROP TABLE IF EXISTS " + sqlEscape(tableName));
/*Added checking for reserved tables in order to prevent even that DROP and CREATE statements for reserved tables be added to the exported sql*/
if(!isReservedTable(tableName)){
sqlStatements.push(row.sql);
sqlStatements.push("DROP TABLE IF EXISTS " + sqlEscape(tableName));
}
}
if(row.sql != null && row.sql.indexOf("__") == -1){
sqlStatements.push(row.sql);
}
/*commented following lines because the core code has been added in the previous block*/
// if(row.sql != null && row.sql.indexOf("__") == -1){
// sqlStatements.push(row.sql);
// }
}

@@ -192,0 +197,0 @@ }

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