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

@airgap/beacon-core

Package Overview
Dependencies
Maintainers
0
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@airgap/beacon-core - npm Package Compare versions

Comparing version 4.3.0 to 4.3.1

2

dist/cjs/constants.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NOTIFICATION_ORACLE_URL = exports.BEACON_VERSION = exports.SDK_VERSION = void 0;
exports.SDK_VERSION = '4.3.0';
exports.SDK_VERSION = '4.3.1';
exports.BEACON_VERSION = '3';
exports.NOTIFICATION_ORACLE_URL = 'https://beacon-notification-oracle.dev.gke.papers.tech';
//# sourceMappingURL=constants.js.map

@@ -43,7 +43,7 @@ "use strict";

reject('IndexedDB is not supported.');
return;
}
const request = indexedDB.open(this.dbName);
request.onupgradeneeded = (event) => {
const request = event.target;
const db = request.result;
const openRequest = indexedDB.open(this.dbName);
openRequest.onupgradeneeded = () => {
const db = openRequest.result;
if (!db.objectStoreNames.contains(this.storeName)) {

@@ -53,4 +53,26 @@ db.createObjectStore(this.storeName);

};
request.onsuccess = (event) => resolve(event.target.result);
request.onerror = (event) => reject(event.target.error);
openRequest.onsuccess = (event) => {
const db = event.target.result;
if (!db.objectStoreNames.contains(this.storeName)) {
// Close the current connection
db.close();
// Re-open the database with an incremented version number
const newVersion = db.version + 1;
const upgradeRequest = indexedDB.open(this.dbName, newVersion);
upgradeRequest.onupgradeneeded = () => {
const upgradedDB = upgradeRequest.result;
upgradedDB.createObjectStore(this.storeName);
};
upgradeRequest.onsuccess = (event) => {
this.db = event.target.result;
resolve(this.db);
};
upgradeRequest.onerror = (event) => reject(event.target.error);
}
else {
this.db = db;
resolve(db);
}
};
openRequest.onerror = (event) => reject(event.target.error);
});

@@ -57,0 +79,0 @@ });

@@ -1,4 +0,4 @@

export const SDK_VERSION = '4.3.0';
export const SDK_VERSION = '4.3.1';
export const BEACON_VERSION = '3';
export const NOTIFICATION_ORACLE_URL = 'https://beacon-notification-oracle.dev.gke.papers.tech';
//# sourceMappingURL=constants.js.map

@@ -32,7 +32,7 @@ import { Storage } from '@airgap/beacon-types';

reject('IndexedDB is not supported.');
return;
}
const request = indexedDB.open(this.dbName);
request.onupgradeneeded = (event) => {
const request = event.target;
const db = request.result;
const openRequest = indexedDB.open(this.dbName);
openRequest.onupgradeneeded = () => {
const db = openRequest.result;
if (!db.objectStoreNames.contains(this.storeName)) {

@@ -42,4 +42,26 @@ db.createObjectStore(this.storeName);

};
request.onsuccess = (event) => resolve(event.target.result);
request.onerror = (event) => reject(event.target.error);
openRequest.onsuccess = (event) => {
const db = event.target.result;
if (!db.objectStoreNames.contains(this.storeName)) {
// Close the current connection
db.close();
// Re-open the database with an incremented version number
const newVersion = db.version + 1;
const upgradeRequest = indexedDB.open(this.dbName, newVersion);
upgradeRequest.onupgradeneeded = () => {
const upgradedDB = upgradeRequest.result;
upgradedDB.createObjectStore(this.storeName);
};
upgradeRequest.onsuccess = (event) => {
this.db = event.target.result;
resolve(this.db);
};
upgradeRequest.onerror = (event) => reject(event.target.error);
}
else {
this.db = db;
resolve(db);
}
};
openRequest.onerror = (event) => reject(event.target.error);
});

@@ -46,0 +68,0 @@ }

{
"name": "@airgap/beacon-core",
"version": "4.3.0",
"version": "4.3.1",
"description": "This package contains internal methods that are used by both the dApp and wallet client.",

@@ -37,4 +37,4 @@ "author": "Andreas Gassmann <a.gassmann@papers.ch>",

"dependencies": {
"@airgap/beacon-types": "4.3.0",
"@airgap/beacon-utils": "4.3.0",
"@airgap/beacon-types": "4.3.1",
"@airgap/beacon-utils": "4.3.1",
"@stablelib/ed25519": "^1.0.3",

@@ -47,3 +47,3 @@ "@stablelib/nacl": "^1.0.4",

},
"gitHead": "8e91d90dac65a88db90a31f451fb9620d6835872"
"gitHead": "f65cc9882f23a81635e46b7d1e72a86f22621288"
}

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