Socket
Socket
Sign inDemoInstall

@capacitor-community/sqlite

Package Overview
Dependencies
20
Maintainers
42
Versions
238
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.0.7 to 5.0.8

23

dist/esm/definitions.d.ts

@@ -684,2 +684,11 @@ /**

readonly?: boolean;
/**
* Encrypted
* When your database is encrypted
* Choose the export Json Object
* Encrypted (true) / Unencrypted (false)
* default false
* @since 5.0.8
*/
encrypted?: boolean;
}

@@ -1414,2 +1423,4 @@ export interface capSQLiteFromAssetsOptions {

* @param statements
* @param transaction (optional)
* @param isSQL92 (optional)
* @returns Promise<capSQLiteChanges>

@@ -1423,2 +1434,3 @@ * @since 2.9.0 refactor

* @param values (optional)
* @param isSQL92 (optional)
* @returns Promise<Promise<DBSQLiteValues>

@@ -1432,2 +1444,5 @@ * @since 2.9.0 refactor

* @param values (optional)
* @param transaction (optional)
* @param returnMode (optional)
* @param isSQL92 (optional)
* @returns Promise<capSQLiteChanges>

@@ -1440,2 +1455,5 @@ * @since 2.9.0 refactor

* @param set
* @param transaction (optional)
* @param returnMode (optional)
* @param isSQL92 (optional)
* @returns Promise<capSQLiteChanges>

@@ -1496,6 +1514,7 @@ * @since 2.9.0 refactor

* @param mode
* @param encrypted (optional) since 5.0.8 not for Web platform
* @returns Promise<capSQLiteJson>
* @since 2.9.0 refactor
*/
exportToJson(mode: string): Promise<capSQLiteJson>;
exportToJson(mode: string, encrypted?: boolean): Promise<capSQLiteJson>;
/**

@@ -1551,3 +1570,3 @@ * Remove rows with sql_deleted = 1 after an export

getSyncDate(): Promise<string>;
exportToJson(mode: string): Promise<capSQLiteJson>;
exportToJson(mode: string, encrypted?: boolean): Promise<capSQLiteJson>;
deleteExportedRows(): Promise<void>;

@@ -1554,0 +1573,0 @@ executeTransaction(txn: {

5

dist/esm/definitions.js

@@ -448,2 +448,4 @@ //import { Capacitor } from '@capacitor/core';

async open() {
const jeepSQlEL = document.querySelector("jeep-sqlite");
console.log(`in definition open jeepSQlEL: `, jeepSQlEL);
try {

@@ -797,3 +799,3 @@ await this.sqlite.open({

}
async exportToJson(mode) {
async exportToJson(mode, encrypted = false) {
try {

@@ -804,2 +806,3 @@ const res = await this.sqlite.exportToJson({

readonly: this.readonly,
encrypted: encrypted,
});

@@ -806,0 +809,0 @@ return Promise.resolve(res);

@@ -454,2 +454,4 @@ 'use strict';

async open() {
const jeepSQlEL = document.querySelector("jeep-sqlite");
console.log(`in definition open jeepSQlEL: `, jeepSQlEL);
try {

@@ -803,3 +805,3 @@ await this.sqlite.open({

}
async exportToJson(mode) {
async exportToJson(mode, encrypted = false) {
try {

@@ -810,2 +812,3 @@ const res = await this.sqlite.exportToJson({

readonly: this.readonly,
encrypted: encrypted,
});

@@ -812,0 +815,0 @@ return Promise.resolve(res);

@@ -451,2 +451,4 @@ var capacitorCapacitorSQLite = (function (exports, core) {

async open() {
const jeepSQlEL = document.querySelector("jeep-sqlite");
console.log(`in definition open jeepSQlEL: `, jeepSQlEL);
try {

@@ -800,3 +802,3 @@ await this.sqlite.open({

}
async exportToJson(mode) {
async exportToJson(mode, encrypted = false) {
try {

@@ -807,2 +809,3 @@ const res = await this.sqlite.exportToJson({

readonly: this.readonly,
encrypted: encrypted,
});

@@ -809,0 +812,0 @@ return Promise.resolve(res);

{
"name": "@capacitor-community/sqlite",
"version": "5.0.7",
"version": "5.0.8",
"description": "Community plugin for native & electron SQLite databases",

@@ -20,2 +20,5 @@ "main": "dist/plugin.cjs.js",

"license": "MIT",
"engines": {
"node": ">=16.0.0"
},
"repository": {

@@ -22,0 +25,0 @@ "type": "git",

@@ -78,3 +78,3 @@ <p align="center"><br><img src="https://user-images.githubusercontent.com/236501/85893648-1c92e880-b7a8-11ea-926d-95355b8175c7.png" width="128" height="128" /></p>

},
electronIsEncryption: false,
electronIsEncryption: true,
electronWindowsLocation: "C:\\ProgramData\\CapacitorDatabases",

@@ -100,2 +100,8 @@ electronMacLocation: "/Volumes/Development_Lacie/Development/Databases",

## Tutorials Blog
- [JeepQ Capacitor Plugin Tutorials](https://jepiqueau.github.io/)
## Web Quirks

@@ -181,2 +187,3 @@

npm install --save-dev @types/crypto-js
npm install --save-dev electron-builder@24.6.3
```

@@ -280,2 +287,5 @@ - **Important**: `node-fetch` version must be `<=2.6.7`; otherwise [you'll get an error](https://github.com/capacitor-community/sqlite/issues/349 "you'll get an error ERR_REQUIRE_ESM") running the app.

- [Enable minified build on Android](https://github.com/capacitor-community/sqlite/blob/master/docs/AndroidMinify.md)
## Applications demonstrating the use of the plugin and related documentation

@@ -282,0 +292,0 @@

@@ -702,2 +702,11 @@ //import { Capacitor } from '@capacitor/core';

readonly?: boolean;
/**
* Encrypted
* When your database is encrypted
* Choose the export Json Object
* Encrypted (true) / Unencrypted (false)
* default false
* @since 5.0.8
*/
encrypted?: boolean
}

@@ -1614,4 +1623,4 @@ export interface capSQLiteFromAssetsOptions {

const keys = [...this._connectionDict.keys()];
const openModes = [];
const dbNames = [];
const openModes: string[] = [];
const dbNames: string[] = [];
for (const key of keys) {

@@ -1855,2 +1864,4 @@ openModes.push(key.substring(0, 2));

* @param statements
* @param transaction (optional)
* @param isSQL92 (optional)
* @returns Promise<capSQLiteChanges>

@@ -1864,2 +1875,3 @@ * @since 2.9.0 refactor

* @param values (optional)
* @param isSQL92 (optional)
* @returns Promise<Promise<DBSQLiteValues>

@@ -1873,2 +1885,5 @@ * @since 2.9.0 refactor

* @param values (optional)
* @param transaction (optional)
* @param returnMode (optional)
* @param isSQL92 (optional)
* @returns Promise<capSQLiteChanges>

@@ -1887,2 +1902,5 @@ * @since 2.9.0 refactor

* @param set
* @param transaction (optional)
* @param returnMode (optional)
* @param isSQL92 (optional)
* @returns Promise<capSQLiteChanges>

@@ -1948,6 +1966,7 @@ * @since 2.9.0 refactor

* @param mode
* @param encrypted (optional) since 5.0.8 not for Web platform
* @returns Promise<capSQLiteJson>
* @since 2.9.0 refactor
*/
exportToJson(mode: string): Promise<capSQLiteJson>;
exportToJson(mode: string, encrypted?: boolean): Promise<capSQLiteJson>;
/**

@@ -1990,2 +2009,5 @@ * Remove rows with sql_deleted = 1 after an export

async open(): Promise<void> {
const jeepSQlEL = document.querySelector("jeep-sqlite")
console.log(`in definition open jeepSQlEL: `,jeepSQlEL )
try {

@@ -2327,3 +2349,3 @@ await this.sqlite.open({

}
async exportToJson(mode: string): Promise<capSQLiteJson> {
async exportToJson(mode: string, encrypted = false): Promise<capSQLiteJson> {
try {

@@ -2334,2 +2356,3 @@ const res: any = await this.sqlite.exportToJson({

readonly: this.readonly,
encrypted: encrypted,
});

@@ -2336,0 +2359,0 @@ return Promise.resolve(res);

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc