Socket
Socket
Sign inDemoInstall

kinvey-nativescript-sdk

Package Overview
Dependencies
Maintainers
2
Versions
119
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kinvey-nativescript-sdk - npm Package Compare versions

Comparing version 3.13.0-next.19 to 3.13.0-next.20

5

lib/httpAdapter.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var http_1 = require("tns-core-modules/http");

@@ -7,5 +8,5 @@ var platform_1 = require("tns-core-modules/platform");

function send(request) {
return __awaiter(this, void 0, void 0, function () {
return tslib_1.__awaiter(this, void 0, void 0, function () {
var url, method, headers, body, timeout, kinveyUrlRegex, response, data;
return __generator(this, function (_a) {
return tslib_1.__generator(this, function (_a) {
switch (_a.label) {

@@ -12,0 +13,0 @@ case 0:

9

lib/init.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var kinvey_js_sdk_1 = require("kinvey-js-sdk");
var nativescript_1 = __importDefault(require("pubnub/lib/nativescript"));
var HttpAdapter = __importStar(require("./httpAdapter"));
var SessionStore = __importStar(require("./sessionStore"));
var Popup = __importStar(require("./popup"));
var nativescript_1 = tslib_1.__importDefault(require("pubnub/lib/nativescript"));
var HttpAdapter = tslib_1.__importStar(require("./httpAdapter"));
var SessionStore = tslib_1.__importStar(require("./sessionStore"));
var Popup = tslib_1.__importStar(require("./popup"));
var storage_1 = require("./storage");

@@ -9,0 +10,0 @@ var utils_1 = require("./utils");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var events_1 = require("events");
var color_1 = require("tns-core-modules/color");
var frame_1 = require("tns-core-modules/ui/frame");
var app = __importStar(require("tns-core-modules/application"));
var app = tslib_1.__importStar(require("tns-core-modules/application"));
var page_1 = require("tns-core-modules/ui/page");

@@ -56,3 +57,3 @@ var grid_layout_1 = require("tns-core-modules/ui/layouts/grid-layout");

var LegacyPopup = (function (_super) {
__extends(LegacyPopup, _super);
tslib_1.__extends(LegacyPopup, _super);
function LegacyPopup() {

@@ -103,3 +104,3 @@ var _this = _super !== null && _super.apply(this, arguments) || this;

var Popup = (function (_super) {
__extends(Popup, _super);
tslib_1.__extends(Popup, _super);
function Popup() {

@@ -125,6 +126,6 @@ var _this = _super !== null && _super.apply(this, arguments) || this;

if (options === void 0) { options = {}; }
return __awaiter(this, void 0, void 0, function () {
return tslib_1.__awaiter(this, void 0, void 0, function () {
var activity_1, shouldClose_1, success, callback_1, serviceConnection, legacyPopup;
var _this = this;
return __generator(this, function (_a) {
return tslib_1.__generator(this, function (_a) {
if (this._open !== true) {

@@ -191,4 +192,4 @@ activity_1 = app.android.startActivity || app.android.foregroundActivity;

Popup.prototype.close = function () {
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
return tslib_1.__awaiter(this, void 0, void 0, function () {
return tslib_1.__generator(this, function (_a) {
if (this._open === true) {

@@ -195,0 +196,0 @@ frame_1.topmost().goBack();

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var events_1 = require("events");

@@ -11,3 +12,3 @@ var color_1 = require("tns-core-modules/color");

var SFSafariViewControllerDelegateImpl = (function (_super) {
__extends(SFSafariViewControllerDelegateImpl, _super);
tslib_1.__extends(SFSafariViewControllerDelegateImpl, _super);
function SFSafariViewControllerDelegateImpl() {

@@ -34,3 +35,3 @@ return _super !== null && _super.apply(this, arguments) || this;

var Popup = (function (_super) {
__extends(Popup, _super);
tslib_1.__extends(Popup, _super);
function Popup() {

@@ -57,6 +58,6 @@ var _this = _super !== null && _super.apply(this, arguments) || this;

if (options === void 0) { options = {}; }
return __awaiter(this, void 0, void 0, function () {
return tslib_1.__awaiter(this, void 0, void 0, function () {
var sfc, app;
var _this = this;
return __generator(this, function (_a) {
return tslib_1.__generator(this, function (_a) {
nativescript_urlhandler_1.handleOpenURL(function (appURL) {

@@ -87,4 +88,4 @@ _this.emit(LOADED_EVENT, { url: appURL.toString() });

Popup.prototype.close = function () {
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
return tslib_1.__awaiter(this, void 0, void 0, function () {
return tslib_1.__generator(this, function (_a) {
if (this._open && this._viewController) {

@@ -91,0 +92,0 @@ this._viewController.dismissViewControllerAnimatedCompletion(true, null);

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var events_1 = require("events");
var Popup = (function (_super) {
__extends(Popup, _super);
tslib_1.__extends(Popup, _super);
function Popup() {

@@ -22,4 +23,4 @@ return _super !== null && _super.apply(this, arguments) || this;

Popup.prototype.close = function () {
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
return tslib_1.__awaiter(this, void 0, void 0, function () {
return tslib_1.__generator(this, function (_a) {
return [2];

@@ -30,4 +31,4 @@ });

Popup.open = function (url, options) {
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
return tslib_1.__awaiter(this, void 0, void 0, function () {
return tslib_1.__generator(this, function (_a) {
throw new Error('Popup does not work.');

@@ -34,0 +35,0 @@ });

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var messaging_1 = require("nativescript-plugin-firebase/messaging");

@@ -8,5 +9,5 @@ var platform_1 = require("tns-core-modules/platform");

if (options === void 0) { options = {}; }
return __awaiter(this, void 0, void 0, function () {
return tslib_1.__awaiter(this, void 0, void 0, function () {
var _a, showNotifications, _b, showNotificationsWhenInForeground, token, request;
return __generator(this, function (_c) {
return tslib_1.__generator(this, function (_c) {
switch (_c.label) {

@@ -47,5 +48,5 @@ case 0:

if (options === void 0) { options = {}; }
return __awaiter(this, void 0, void 0, function () {
return tslib_1.__awaiter(this, void 0, void 0, function () {
var token, request, response;
return __generator(this, function (_a) {
return tslib_1.__generator(this, function (_a) {
switch (_a.label) {

@@ -52,0 +53,0 @@ case 0: return [4, messaging_1.messaging.getCurrentPushToken()];

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var kinvey_js_sdk_1 = require("kinvey-js-sdk");
var SQLite = __importStar(require("./sqlite"));
var SQLite = tslib_1.__importStar(require("./sqlite"));
var StorageProvider;

@@ -6,0 +7,0 @@ (function (StorageProvider) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var SQLite = require('nativescript-sqlite');

@@ -66,5 +67,5 @@ var MASTER_TABLE_NAME = 'sqlite_master';

function find(dbName, tableName) {
return __awaiter(this, void 0, void 0, function () {
return tslib_1.__awaiter(this, void 0, void 0, function () {
var docs;
return __generator(this, function (_a) {
return tslib_1.__generator(this, function (_a) {
switch (_a.label) {

@@ -81,5 +82,5 @@ case 0: return [4, execute(dbName, tableName, [['SELECT value FROM #{table}']])];

function count(dbName, tableName) {
return __awaiter(this, void 0, void 0, function () {
return tslib_1.__awaiter(this, void 0, void 0, function () {
var result;
return __generator(this, function (_a) {
return tslib_1.__generator(this, function (_a) {
switch (_a.label) {

@@ -96,5 +97,5 @@ case 0: return [4, execute(dbName, tableName, [['SELECT COUNT(DISTINCT key) AS value FROM #{table}']])];

function findById(dbName, tableName, id) {
return __awaiter(this, void 0, void 0, function () {
return tslib_1.__awaiter(this, void 0, void 0, function () {
var docs;
return __generator(this, function (_a) {
return tslib_1.__generator(this, function (_a) {
switch (_a.label) {

@@ -112,5 +113,5 @@ case 0: return [4, execute(dbName, tableName, [['SELECT value FROM #{table} WHERE key = ?', [id]]])];

if (docs === void 0) { docs = []; }
return __awaiter(this, void 0, void 0, function () {
return tslib_1.__awaiter(this, void 0, void 0, function () {
var sqlQueries;
return __generator(this, function (_a) {
return tslib_1.__generator(this, function (_a) {
switch (_a.label) {

@@ -129,5 +130,5 @@ case 0:

function removeById(dbName, tableName, id) {
return __awaiter(this, void 0, void 0, function () {
return tslib_1.__awaiter(this, void 0, void 0, function () {
var responses;
return __generator(this, function (_a) {
return tslib_1.__generator(this, function (_a) {
switch (_a.label) {

@@ -144,4 +145,4 @@ case 0: return [4, execute(dbName, tableName, [['DELETE FROM #{table} WHERE key = ?', [id]]], true)];

function clear(dbName, tableName) {
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
return tslib_1.__awaiter(this, void 0, void 0, function () {
return tslib_1.__generator(this, function (_a) {
switch (_a.label) {

@@ -158,5 +159,5 @@ case 0: return [4, execute(dbName, tableName, [['DROP TABLE IF EXISTS #{table}']], true)];

function clearDatabase(dbName) {
return __awaiter(this, void 0, void 0, function () {
return tslib_1.__awaiter(this, void 0, void 0, function () {
var tables;
return __generator(this, function (_a) {
return tslib_1.__generator(this, function (_a) {
switch (_a.label) {

@@ -163,0 +164,0 @@ case 0: return [4, execute(dbName, MASTER_TABLE_NAME, [['SELECT name AS value FROM #{table} WHERE type = ?', ['table']]])];

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var loginWithRedirectUri_1 = require("./loginWithRedirectUri");
function loginWithMIC(redirectUri, authorizationGrant, options) {
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
return tslib_1.__awaiter(this, void 0, void 0, function () {
return tslib_1.__generator(this, function (_a) {
return [2, loginWithRedirectUri_1.loginWithRedirectUri(redirectUri, options)];

@@ -8,0 +9,0 @@ });

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var app = __importStar(require("tns-core-modules/application"));
var tslib_1 = require("tslib");
var app = tslib_1.__importStar(require("tns-core-modules/application"));
var utils_1 = require("../utils");

@@ -5,0 +6,0 @@ var loginWithRedirectUri_1 = require("kinvey-js-sdk/src/user/loginWithRedirectUri");

{
"name": "kinvey-nativescript-sdk",
"description": "Kinvey JavaScript SDK for NativeScript applications.",
"version": "3.13.0-next.19",
"version": "3.13.0-next.20",
"license": "Apache-2.0",

@@ -32,3 +32,3 @@ "homepage": "https://github.com/Kinvey/js-sdk/tree/master/packages/nativescript-sdk",

"dependencies": {
"kinvey-js-sdk": "^3.13.0-next.19"
"kinvey-js-sdk": "^3.13.0-next.20"
},

@@ -43,3 +43,4 @@ "peerDependencies": {

"pubnub": "git+https://github.com/thomasconner/javascript.git#develop",
"tns-core-modules": "~5.2.2"
"tns-core-modules": "~5.2.2",
"tslib": "~1.9.3"
},

@@ -46,0 +47,0 @@ "devDependencies": {

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

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc