cordova-sqlite-evmax-build-free 0.0.7 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,7 +11,7 @@
11
11
  <ItemDefinitionGroup>
12
12
  <ClCompile>
13
13
  <AdditionalIncludeDirectories>%(AdditionalIncludeDirectories);$(MSBuildThisFileDirectory);$(MSBuildThisFileDirectory)..\..\..\deps\common;$(MSBuildThisFileDirectory)..\..\..\deps\common\sqlite3-base64;$(MSBuildThisFileDirectory)..\..\..\deps\common\libb64-core</AdditionalIncludeDirectories>
14
- <AdditionalOptions>/DSQLITE_THREADSAFE=1 /DSQLITE_DEFAULT_SYNCHRONOUS=3 /DHAVE_USLEEP=1 /DSQLITE_DEFAULT_MEMSTATUS=0 /DSQLITE_OMIT_DECLTYPE /DSQLITE_OMIT_DEPRECATED /DSQLITE_OMIT_PROGRESS_CALLBACK /DSQLITE_OMIT_SHARED_CACHE /DSQLITE_TEMP_STORE=2 /DSQLITE_OMIT_LOAD_EXTENSION /DSQLITE_ENABLE_FTS3 /DSQLITE_ENABLE_FTS3_PARENTHESIS /DSQLITE_ENABLE_FTS4 /DSQLITE_ENABLE_FTS5 /DSQLITE_ENABLE_RTREE /DSQLITE_ENABLE_JSON1 /DSQLITE_DEFAULT_PAGE_SIZE=4096 /DSQLITE_DEFAULT_CACHE_SIZE=-2000 /DSQLITE_OS_WINRT %(AdditionalOptions)</AdditionalOptions>
14
+ <AdditionalOptions>/DSQLITE_THREADSAFE=1 /DSQLITE_DEFAULT_SYNCHRONOUS=3 /DHAVE_USLEEP=1 /DSQLITE_DEFAULT_MEMSTATUS=0 /DSQLITE_OMIT_DECLTYPE /DSQLITE_OMIT_DEPRECATED /DSQLITE_OMIT_PROGRESS_CALLBACK /DSQLITE_OMIT_SHARED_CACHE /DSQLITE_TEMP_STORE=2 /DSQLITE_OMIT_LOAD_EXTENSION /DSQLITE_ENABLE_FTS3 /DSQLITE_ENABLE_FTS3_PARENTHESIS /DSQLITE_ENABLE_FTS4 /DSQLITE_ENABLE_FTS5 /DSQLITE_ENABLE_RTREE /DSQLITE_ENABLE_JSON1 /DSQLITE_ENABLE_MATH_FUNCTIONS /DSQLITE_DEFAULT_PAGE_SIZE=4096 /DSQLITE_DEFAULT_CACHE_SIZE=-2000 /DSQLITE_OS_WINRT %(AdditionalOptions)</AdditionalOptions>
15
15
  </ClCompile>
16
16
  </ItemDefinitionGroup>
17
17
  <ItemGroup>
Binary file
Binary file
@@ -4,7 +4,7 @@ Contact for commercial license: sales@litehelpers.net
4
4
  */
5
5
 
6
6
  (function() {
7
- var DB_STATE_INIT, DB_STATE_OPEN, EE_SIZE_LIMIT, READ_ONLY_REGEX, SQLiteFactory, SQLitePlugin, SQLitePluginTransaction, SelfTest, argsArray, dblocations, iosLocationMap, newSQLError, nextTick, root, txLocks;
7
+ var DB_STATE_INIT, DB_STATE_OPEN, EE_SIZE_LIMIT, READ_ONLY_REGEX, REPLACE_BANG_REGEXP, REPLACE_SLASH_REGEXP, SQLiteFactory, SQLitePlugin, SQLitePluginTransaction, SelfTest, argsArray, dblocations, iosLocationMap, newSQLError, nextTick, root, txLocks;
8
8
 
9
9
  root = this;
10
10
 
@@ -16,6 +16,10 @@ Contact for commercial license: sales@litehelpers.net
16
16
 
17
17
  EE_SIZE_LIMIT = 16 * 1024 * 1024;
18
18
 
19
+ REPLACE_BANG_REGEXP = /!/g;
20
+
21
+ REPLACE_SLASH_REGEXP = /\//g;
22
+
19
23
  txLocks = {};
20
24
 
21
25
  newSQLError = function(error, code) {
@@ -390,7 +394,7 @@ Contact for commercial license: sales@litehelpers.net
390
394
  for (l = 0, len1 = values.length; l < len1; l++) {
391
395
  v = values[l];
392
396
  t = typeof v;
393
- flatlist.push(v === null || v === void 0 ? null : t === 'number' ? v : t === 'string' ? v.replace('!', '!!').replace('/', '!|') : v.toString());
397
+ flatlist.push(v === null || v === void 0 ? null : t === 'number' || t === 'string' ? v : v.toString());
394
398
  }
395
399
  } else {
396
400
  flatlist.push(0);
@@ -615,7 +619,13 @@ Contact for commercial license: sales@litehelpers.net
615
619
  var cb1, ch1, flatlist, flen;
616
620
  flen = flatBatchExecutesEntries[index].flen;
617
621
  flatlist = [mydbid, flen];
618
- flatlist = flatlist.concat(flatBatchExecutesEntries[index]);
622
+ flatlist = flatlist.concat(flatBatchExecutesEntries[index].map(function(v) {
623
+ if (typeof v === 'string') {
624
+ return v.replace(REPLACE_BANG_REGEXP, '!1').replace(REPLACE_SLASH_REGEXP, '!2');
625
+ } else {
626
+ return v;
627
+ }
628
+ }));
619
629
  flatlist.push('extra');
620
630
  ch1 = false;
621
631
  cb1 = function(result) {
@@ -784,13 +794,16 @@ Contact for commercial license: sales@litehelpers.net
784
794
  if (!openargs.name) {
785
795
  throw newSQLError('Database name value is missing in openDatabase call');
786
796
  }
787
- if (!openargs.iosDatabaseLocation && !openargs.location && openargs.location !== 0) {
788
- throw newSQLError('Database location or iosDatabaseLocation setting is now mandatory in openDatabase call.');
797
+ if (!openargs.iosDatabaseLocation && !openargs.location && openargs.location !== 0 && !openargs.androidDatabaseLocation) {
798
+ throw newSQLError('Database location (or iosDatabaseLocation or androidDatabaseLocation) setting is now mandatory in openDatabase call.');
789
799
  }
790
800
  if (!!openargs.location && !!openargs.iosDatabaseLocation) {
791
801
  throw newSQLError('AMBIGUOUS: both location and iosDatabaseLocation settings are present in openDatabase call. Please use either setting, not both.');
792
802
  }
793
- dblocation = !!openargs.location && openargs.location === 'default' ? iosLocationMap['default'] : !!openargs.iosDatabaseLocation ? iosLocationMap[openargs.iosDatabaseLocation] : dblocations[openargs.location];
803
+ if (!!openargs.location && !!openargs.androidDatabaseLocation) {
804
+ throw newSQLError('AMBIGUOUS: both location and androidDatabaseLocation settings are present in openDatabase call. Please use either setting, not both. But you *can* use androidDatabaseLocation and iosDatabaseLocation together.');
805
+ }
806
+ dblocation = !!openargs.location && openargs.location === 'default' ? iosLocationMap['default'] : !!openargs.iosDatabaseLocation ? iosLocationMap[openargs.iosDatabaseLocation] : !openargs.location && openargs.location !== 0 ? iosLocationMap['default'] : dblocations[openargs.location];
794
807
  if (!dblocation) {
795
808
  throw newSQLError('Valid iOS database location could not be determined in openDatabase call');
796
809
  }
@@ -838,17 +851,23 @@ Contact for commercial license: sales@litehelpers.net
838
851
  }
839
852
  args.path = dbname;
840
853
  }
841
- if (!first.iosDatabaseLocation && !first.location && first.location !== 0) {
842
- throw newSQLError('Database location or iosDatabaseLocation setting is now mandatory in deleteDatabase call.');
854
+ if (!first.iosDatabaseLocation && !first.location && first.location !== 0 && !first.androidDatabaseLocation) {
855
+ throw newSQLError('Database location (or iosDatabaseLocation or androidDatabaseLocation) setting is now mandatory in deleteDatabase call.');
843
856
  }
844
857
  if (!!first.location && !!first.iosDatabaseLocation) {
845
858
  throw newSQLError('AMBIGUOUS: both location and iosDatabaseLocation settings are present in deleteDatabase call. Please use either setting value, not both.');
846
859
  }
847
- dblocation = !!first.location && first.location === 'default' ? iosLocationMap['default'] : !!first.iosDatabaseLocation ? iosLocationMap[first.iosDatabaseLocation] : dblocations[first.location];
860
+ if (!!first.location && !!first.androidDatabaseLocation) {
861
+ throw newSQLError('AMBIGUOUS: both location and androidDatabaseLocation settings are present in deleteDatabase call. Please use either setting, not both. But you *can* use androidDatabaseLocation and iosDatabaseLocation together.');
862
+ }
863
+ dblocation = !!first.location && first.location === 'default' ? iosLocationMap['default'] : !!first.iosDatabaseLocation ? iosLocationMap[first.iosDatabaseLocation] : !first.location && first.location !== 0 ? iosLocationMap['default'] : dblocations[first.location];
848
864
  if (!dblocation) {
849
865
  throw newSQLError('Valid iOS database location could not be determined in deleteDatabase call');
850
866
  }
851
867
  args.dblocation = dblocation;
868
+ if (!!first.androidDatabaseLocation) {
869
+ args.androidDatabaseLocation = first.androidDatabaseLocation;
870
+ }
852
871
  delete SQLitePlugin.prototype.openDBs[args.path];
853
872
  delete SQLitePlugin.prototype.dbidmap[args.path];
854
873
  delete SQLitePlugin.prototype.fjmap[args.path];