@awesome-cordova-plugins/sqlite
Advanced tools
Comparing version 6.0.0-alpha.1 to 6.0.0-alpha.2
@@ -5,45 +5,63 @@ 'use strict'; | ||
var core = require('@angular/core'); | ||
var core$1 = require('@awesome-cordova-plugins/core'); | ||
var tslib = require('tslib'); | ||
var core$1 = require('@angular/core'); | ||
var core = require('@awesome-cordova-plugins/core'); | ||
class SQLiteObject { | ||
constructor(_objectInstance) { | ||
var SQLiteObject = /** @class */ (function () { | ||
function SQLiteObject(_objectInstance) { | ||
this._objectInstance = _objectInstance; | ||
} | ||
addTransaction(transaction) { return core$1.cordovaInstance(this, "addTransaction", { "sync": true }, arguments); } | ||
transaction(fn) { return core$1.cordovaInstance(this, "transaction", { "successIndex": 2, "errorIndex": 1 }, arguments); } | ||
readTransaction(fn) { return core$1.cordovaInstance(this, "readTransaction", {}, arguments); } | ||
startNextTransaction() { return core$1.cordovaInstance(this, "startNextTransaction", { "sync": true }, arguments); } | ||
open() { return core$1.cordovaInstance(this, "open", {}, arguments); } | ||
close() { return core$1.cordovaInstance(this, "close", {}, arguments); } | ||
executeSql(statement, params) { return core$1.cordovaInstance(this, "executeSql", {}, arguments); } | ||
sqlBatch(sqlStatements) { return core$1.cordovaInstance(this, "sqlBatch", {}, arguments); } | ||
abortallPendingTransactions() { return core$1.cordovaInstance(this, "abortallPendingTransactions", { "sync": true }, arguments); } | ||
get databaseFeatures() { return core$1.instancePropertyGet(this, "databaseFeatures"); } | ||
set databaseFeatures(value) { core$1.instancePropertySet(this, "databaseFeatures", value); } | ||
get openDBs() { return core$1.instancePropertyGet(this, "openDBs"); } | ||
set openDBs(value) { core$1.instancePropertySet(this, "openDBs", value); } | ||
} | ||
class SQLite extends core$1.AwesomeCordovaNativePlugin { | ||
create(config) { return (() => { | ||
if (core$1.checkAvailability(this) === true) { | ||
return new Promise((resolve, reject) => { | ||
sqlitePlugin.openDatabase(config, (db) => resolve(new SQLiteObject(db)), reject); | ||
}); | ||
} | ||
})(); } | ||
echoTest() { return core$1.cordova(this, "echoTest", {}, arguments); } | ||
selfTest() { return core$1.cordova(this, "selfTest", {}, arguments); } | ||
deleteDatabase(config) { return core$1.cordova(this, "deleteDatabase", {}, arguments); } | ||
} | ||
SQLite.pluginName = "SQLite"; | ||
SQLite.pluginRef = "sqlitePlugin"; | ||
SQLite.plugin = "cordova-sqlite-storage"; | ||
SQLite.repo = "https://github.com/litehelpers/Cordova-sqlite-storage"; | ||
SQLite.platforms = ["Android", "iOS", "macOS", "Windows"]; | ||
SQLite.decorators = [ | ||
{ type: core.Injectable } | ||
]; | ||
SQLiteObject.prototype.addTransaction = function (transaction) { return core.cordovaInstance(this, "addTransaction", { "sync": true }, arguments); }; | ||
SQLiteObject.prototype.transaction = function (fn) { return core.cordovaInstance(this, "transaction", { "successIndex": 2, "errorIndex": 1 }, arguments); }; | ||
SQLiteObject.prototype.readTransaction = function (fn) { return core.cordovaInstance(this, "readTransaction", {}, arguments); }; | ||
SQLiteObject.prototype.startNextTransaction = function () { return core.cordovaInstance(this, "startNextTransaction", { "sync": true }, arguments); }; | ||
SQLiteObject.prototype.open = function () { return core.cordovaInstance(this, "open", {}, arguments); }; | ||
SQLiteObject.prototype.close = function () { return core.cordovaInstance(this, "close", {}, arguments); }; | ||
SQLiteObject.prototype.executeSql = function (statement, params) { return core.cordovaInstance(this, "executeSql", {}, arguments); }; | ||
SQLiteObject.prototype.sqlBatch = function (sqlStatements) { return core.cordovaInstance(this, "sqlBatch", {}, arguments); }; | ||
SQLiteObject.prototype.abortallPendingTransactions = function () { return core.cordovaInstance(this, "abortallPendingTransactions", { "sync": true }, arguments); }; | ||
Object.defineProperty(SQLiteObject.prototype, "databaseFeatures", { | ||
get: function () { return core.instancePropertyGet(this, "databaseFeatures"); }, | ||
set: function (value) { core.instancePropertySet(this, "databaseFeatures", value); }, | ||
enumerable: false, | ||
configurable: true | ||
}); | ||
Object.defineProperty(SQLiteObject.prototype, "openDBs", { | ||
get: function () { return core.instancePropertyGet(this, "openDBs"); }, | ||
set: function (value) { core.instancePropertySet(this, "openDBs", value); }, | ||
enumerable: false, | ||
configurable: true | ||
}); | ||
return SQLiteObject; | ||
}()); | ||
var SQLite = /** @class */ (function (_super) { | ||
tslib.__extends(SQLite, _super); | ||
function SQLite() { | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
SQLite.prototype.create = function (config) { | ||
var _this = this; | ||
return (function () { | ||
if (core.checkAvailability(_this) === true) { | ||
return new Promise(function (resolve, reject) { | ||
sqlitePlugin.openDatabase(config, function (db) { return resolve(new SQLiteObject(db)); }, reject); | ||
}); | ||
} | ||
})(); | ||
}; | ||
SQLite.prototype.echoTest = function () { return core.cordova(this, "echoTest", {}, arguments); }; | ||
SQLite.prototype.selfTest = function () { return core.cordova(this, "selfTest", {}, arguments); }; | ||
SQLite.prototype.deleteDatabase = function (config) { return core.cordova(this, "deleteDatabase", {}, arguments); }; | ||
SQLite.pluginName = "SQLite"; | ||
SQLite.pluginRef = "sqlitePlugin"; | ||
SQLite.plugin = "cordova-sqlite-storage"; | ||
SQLite.repo = "https://github.com/litehelpers/Cordova-sqlite-storage"; | ||
SQLite.platforms = ["Android", "iOS", "macOS", "Windows"]; | ||
SQLite.decorators = [ | ||
{ type: core$1.Injectable } | ||
]; | ||
return SQLite; | ||
}(core.AwesomeCordovaNativePlugin)); | ||
exports.SQLite = SQLite; | ||
exports.SQLiteObject = SQLiteObject; |
@@ -0,41 +1,61 @@ | ||
import { __extends } from "tslib"; | ||
import { Injectable } from '@angular/core'; | ||
import { AwesomeCordovaNativePlugin, cordova, checkAvailability, cordovaInstance, instancePropertyGet, instancePropertySet } from '@awesome-cordova-plugins/core'; | ||
export class SQLiteObject { | ||
constructor(_objectInstance) { | ||
var SQLiteObject = /** @class */ (function () { | ||
function SQLiteObject(_objectInstance) { | ||
this._objectInstance = _objectInstance; | ||
} | ||
addTransaction(transaction) { return cordovaInstance(this, "addTransaction", { "sync": true }, arguments); } | ||
transaction(fn) { return cordovaInstance(this, "transaction", { "successIndex": 2, "errorIndex": 1 }, arguments); } | ||
readTransaction(fn) { return cordovaInstance(this, "readTransaction", {}, arguments); } | ||
startNextTransaction() { return cordovaInstance(this, "startNextTransaction", { "sync": true }, arguments); } | ||
open() { return cordovaInstance(this, "open", {}, arguments); } | ||
close() { return cordovaInstance(this, "close", {}, arguments); } | ||
executeSql(statement, params) { return cordovaInstance(this, "executeSql", {}, arguments); } | ||
sqlBatch(sqlStatements) { return cordovaInstance(this, "sqlBatch", {}, arguments); } | ||
abortallPendingTransactions() { return cordovaInstance(this, "abortallPendingTransactions", { "sync": true }, arguments); } | ||
get databaseFeatures() { return instancePropertyGet(this, "databaseFeatures"); } | ||
set databaseFeatures(value) { instancePropertySet(this, "databaseFeatures", value); } | ||
get openDBs() { return instancePropertyGet(this, "openDBs"); } | ||
set openDBs(value) { instancePropertySet(this, "openDBs", value); } | ||
} | ||
export class SQLite extends AwesomeCordovaNativePlugin { | ||
create(config) { return (() => { | ||
if (checkAvailability(this) === true) { | ||
return new Promise((resolve, reject) => { | ||
sqlitePlugin.openDatabase(config, (db) => resolve(new SQLiteObject(db)), reject); | ||
}); | ||
} | ||
})(); } | ||
echoTest() { return cordova(this, "echoTest", {}, arguments); } | ||
selfTest() { return cordova(this, "selfTest", {}, arguments); } | ||
deleteDatabase(config) { return cordova(this, "deleteDatabase", {}, arguments); } | ||
} | ||
SQLite.pluginName = "SQLite"; | ||
SQLite.pluginRef = "sqlitePlugin"; | ||
SQLite.plugin = "cordova-sqlite-storage"; | ||
SQLite.repo = "https://github.com/litehelpers/Cordova-sqlite-storage"; | ||
SQLite.platforms = ["Android", "iOS", "macOS", "Windows"]; | ||
SQLite.decorators = [ | ||
{ type: Injectable } | ||
]; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvQGF3ZXNvbWUtY29yZG92YS1wb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gbmF0aXZlIHBhcnQgb2YgdGhpcyBwbHVnaW4gYXJlIGluc3RhbGxlZCBpbiB5b3VyIGFwcGxpY2F0aW9uXG4gICAqXG4gICAqIEByZXR1cm5zIHtQcm9taXNlPGFueT59XG4gICAqL1xuICBAQ29yZG92YSgpXG4gIGVjaG9UZXN0KCk6IFByb21pc2U8YW55PiB7XG4gICAgcmV0dXJuO1xuICB9XG5cbiAgLyoqXG4gICAqIEF1dG9tYXRpY2FsbHkgdmVyaWZ5IGJhc2ljIGRhdGFiYXNlIGFjY2VzcyBvcGVyYXRpb25zIGluY2x1ZGluZyBvcGVuaW5nIGEgZGF0YWJhc2VcbiAgICpcbiAgICogQHJldHVybnMge1Byb21pc2U8YW55Pn1cbiAgICovXG4gIEBDb3Jkb3ZhKClcbiAgc2VsZlRlc3QoKTogUHJvbWlzZTxhbnk+IHtcbiAgICByZXR1cm47XG4gIH1cblxuICAvKipcbiAgICogRGVsZXRlcyBhIGRhdGFiYXNlXG4gICAqXG4gICAqIEBwYXJhbSBjb25maWcge1NRTGl0ZURhdGFiYXNlQ29uZmlnfSBkYXRhYmFzZSBjb25maWd1cmF0aW9uXG4gICAqIEByZXR1cm5zIHtQcm9taXNlPGFueT59XG4gICAqL1xuICBAQ29yZG92YSgpXG4gIGRlbGV0ZURhdGFiYXNlKGNvbmZpZzogU1FMaXRlRGF0YWJhc2VDb25maWcpOiBQcm9taXNlPGFueT4ge1xuICAgIHJldHVybjtcbiAgfVxufVxuIl19 | ||
SQLiteObject.prototype.addTransaction = function (transaction) { return cordovaInstance(this, "addTransaction", { "sync": true }, arguments); }; | ||
SQLiteObject.prototype.transaction = function (fn) { return cordovaInstance(this, "transaction", { "successIndex": 2, "errorIndex": 1 }, arguments); }; | ||
SQLiteObject.prototype.readTransaction = function (fn) { return cordovaInstance(this, "readTransaction", {}, arguments); }; | ||
SQLiteObject.prototype.startNextTransaction = function () { return cordovaInstance(this, "startNextTransaction", { "sync": true }, arguments); }; | ||
SQLiteObject.prototype.open = function () { return cordovaInstance(this, "open", {}, arguments); }; | ||
SQLiteObject.prototype.close = function () { return cordovaInstance(this, "close", {}, arguments); }; | ||
SQLiteObject.prototype.executeSql = function (statement, params) { return cordovaInstance(this, "executeSql", {}, arguments); }; | ||
SQLiteObject.prototype.sqlBatch = function (sqlStatements) { return cordovaInstance(this, "sqlBatch", {}, arguments); }; | ||
SQLiteObject.prototype.abortallPendingTransactions = function () { return cordovaInstance(this, "abortallPendingTransactions", { "sync": true }, arguments); }; | ||
Object.defineProperty(SQLiteObject.prototype, "databaseFeatures", { | ||
get: function () { return instancePropertyGet(this, "databaseFeatures"); }, | ||
set: function (value) { instancePropertySet(this, "databaseFeatures", value); }, | ||
enumerable: false, | ||
configurable: true | ||
}); | ||
Object.defineProperty(SQLiteObject.prototype, "openDBs", { | ||
get: function () { return instancePropertyGet(this, "openDBs"); }, | ||
set: function (value) { instancePropertySet(this, "openDBs", value); }, | ||
enumerable: false, | ||
configurable: true | ||
}); | ||
return SQLiteObject; | ||
}()); | ||
export { SQLiteObject }; | ||
var SQLite = /** @class */ (function (_super) { | ||
__extends(SQLite, _super); | ||
function SQLite() { | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
SQLite.prototype.create = function (config) { | ||
var _this = this; | ||
return (function () { | ||
if (checkAvailability(_this) === true) { | ||
return new Promise(function (resolve, reject) { | ||
sqlitePlugin.openDatabase(config, function (db) { return resolve(new SQLiteObject(db)); }, reject); | ||
}); | ||
} | ||
})(); | ||
}; | ||
SQLite.prototype.echoTest = function () { return cordova(this, "echoTest", {}, arguments); }; | ||
SQLite.prototype.selfTest = function () { return cordova(this, "selfTest", {}, arguments); }; | ||
SQLite.prototype.deleteDatabase = function (config) { return cordova(this, "deleteDatabase", {}, arguments); }; | ||
SQLite.pluginName = "SQLite"; | ||
SQLite.pluginRef = "sqlitePlugin"; | ||
SQLite.plugin = "cordova-sqlite-storage"; | ||
SQLite.repo = "https://github.com/litehelpers/Cordova-sqlite-storage"; | ||
SQLite.platforms = ["Android", "iOS", "macOS", "Windows"]; | ||
SQLite.decorators = [ | ||
{ type: Injectable } | ||
]; | ||
return SQLite; | ||
}(AwesomeCordovaNativePlugin)); | ||
export { SQLite }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvQGF3ZXNvbWUtY29yZG92YS1wbHVnaW5zL3BsdWdpbnMvc3FsaXRlL25neC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLHFIQU9OLE1BQU0sK0JBQStCLENBQUM7O0lBd0RyQyxzQkFBbUIsZUFBb0I7UUFBcEIsb0JBQWUsR0FBZixlQUFlLENBQUs7SUFBRyxDQUFDO0lBUTNDLHFDQUFjLGFBQUMsV0FBNEM7SUFVM0Qsa0NBQVcsYUFBQyxFQUErQjtJQVMzQyxzQ0FBZSxhQUFDLEVBQW1DO0lBT25ELDJDQUFvQjtJQU1wQiwyQkFBSTtJQVFKLDRCQUFLO0lBWUwsaUNBQVUsYUFBQyxTQUFpQixFQUFFLE1BQWM7SUFTNUMsK0JBQVEsYUFBQyxhQUEwQztJQU9uRCxrREFBMkI7MEJBMUVQLDBDQUFnQjs7Ozs7OzBCQUNoQixpQ0FBTzs7Ozs7O3VCQW5FN0I7Ozs7SUEwTDRCLDBCQUEwQjs7OztJQVVwRCx1QkFBTSxhQUFDLE1BQTRCOzs7bURBQXlCO2dCQUMxRCxPQUFPLElBQUksT0FBTyxDQUFDLFVBQUMsT0FBTyxFQUFFLE1BQU07b0JBQ2pDLFlBQVksQ0FBQyxZQUFZLENBQUMsTUFBTSxFQUFFLFVBQUMsRUFBTyxJQUFLLE9BQUEsT0FBTyxDQUFDLElBQUksWUFBWSxD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"description":"Awesome Cordova Plugins - Native plugins for ionic apps","main":"bundle.js","module":"index.js","typings":"index.d.ts","author":"Daniel Sogl","license":"MIT","repository":{"type":"git","url":"https://github.com/danielsogl/awesome-cordova-plugins.git"},"name":"@awesome-cordova-plugins/sqlite","dependencies":{"@types/cordova":"latest"},"peerDependencies":{"rxjs":"^5.5.0 || ^6.5.0 || ^7.3.0","@awesome-cordova-plugins/core":"^6.0.0-alpha.0"},"version":"6.0.0-alpha.1"} | ||
{"description":"Awesome Cordova Plugins - Native plugins for ionic apps","main":"bundle.js","module":"index.js","typings":"index.d.ts","author":"Daniel Sogl","license":"MIT","repository":{"type":"git","url":"https://github.com/danielsogl/awesome-cordova-plugins.git"},"name":"@awesome-cordova-plugins/sqlite","dependencies":{"@types/cordova":"latest"},"peerDependencies":{"rxjs":"^5.5.0 || ^6.5.0 || ^7.3.0","@awesome-cordova-plugins/core":"^6.0.0-alpha.0"},"version":"6.0.0-alpha.2"} |
@@ -1,1 +0,1 @@ | ||
{"description":"Awesome Cordova Plugins - Native plugins for ionic apps","main":"bundle.js","module":"index.js","typings":"index.d.ts","author":"Daniel Sogl","license":"MIT","repository":{"type":"git","url":"https://github.com/danielsogl/awesome-cordova-plugins.git"},"name":"@awesome-cordova-plugins/sqlite","dependencies":{"@types/cordova":"latest"},"peerDependencies":{"rxjs":"^5.5.0 || ^6.5.0 || ^7.3.0","@awesome-cordova-plugins/core":"^6.0.0-alpha.0"},"version":"6.0.0-alpha.1"} | ||
{"description":"Awesome Cordova Plugins - Native plugins for ionic apps","main":"bundle.js","module":"index.js","typings":"index.d.ts","author":"Daniel Sogl","license":"MIT","repository":{"type":"git","url":"https://github.com/danielsogl/awesome-cordova-plugins.git"},"name":"@awesome-cordova-plugins/sqlite","dependencies":{"@types/cordova":"latest"},"peerDependencies":{"rxjs":"^5.5.0 || ^6.5.0 || ^7.3.0","@awesome-cordova-plugins/core":"^6.0.0-alpha.0"},"version":"6.0.0-alpha.2"} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39383
510