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

@airgap/beacon-core

Package Overview
Dependencies
Maintainers
1
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 3.3.0 to 3.3.1

5

dist/cjs/clients/client/Client.js

@@ -72,4 +72,5 @@ "use strict";

function Client(config) {
var _this = this;
var _a;
var _this = _super.call(this, config) || this;
_this = _super.call(this, config) || this;
/**

@@ -91,3 +92,3 @@ * How many requests can be sent after another

_this.handleResponse = function (message, connectionInfo) {
throw new Error("not overwritten" + JSON.stringify(message) + " - " + JSON.stringify(connectionInfo));
throw new Error("not overwritten".concat(JSON.stringify(message), " - ").concat(JSON.stringify(connectionInfo)));
};

@@ -94,0 +95,0 @@ return _this;

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 = '3.3.0';
exports.SDK_VERSION = '3.3.1';
exports.BEACON_VERSION = '3';
exports.NOTIFICATION_ORACLE_URL = 'https://beacon-notification-oracle.dev.gke.papers.tech';
//# sourceMappingURL=constants.js.map

@@ -14,3 +14,3 @@ "use strict";

this.title = 'Error'; // Visible in the UI
this.message = "[" + errorType + "]:" + message;
this.message = "[".concat(errorType, "]:").concat(message);
this.description = message;

@@ -17,0 +17,0 @@ }

@@ -80,3 +80,3 @@ "use strict";

migrationError_1 = _b.sent();
console.log("Migration for " + version + " failed!", migrationError_1);
console.log("Migration for ".concat(version, " failed!"), migrationError_1);
return [3 /*break*/, 6];

@@ -83,0 +83,0 @@ case 6:

@@ -6,3 +6,3 @@ declare type Callback = (message: unknown) => void;

declare let windowRef: {
postMessage: (message: string | Record<string, unknown>, _target?: string | undefined) => void;
postMessage: (message: string | Record<string, unknown>, _target?: string) => void;
addEventListener: (_name: string, eventCallback: Callback) => void;

@@ -9,0 +9,0 @@ removeEventListener: (_name: string, eventCallback: Callback) => void;

@@ -33,3 +33,3 @@ "use strict";

catch (windowError) {
console.log("not defined: " + windowError);
console.log("not defined: ".concat(windowError));
}

@@ -36,0 +36,0 @@ var clearMockWindowState = function () {

@@ -103,3 +103,3 @@ "use strict";

LocalStorage.prototype.getPrefixedKey = function (key) {
return this.prefix ? this.prefix + "-" + key : key;
return this.prefix ? "".concat(this.prefix, "-").concat(key) : key;
};

@@ -106,0 +106,0 @@ return LocalStorage;

@@ -241,3 +241,3 @@ "use strict";

else {
logger.log('notifyListeners', "Notifying " + this.listeners.length + " listeners", this);
logger.log('notifyListeners', "Notifying ".concat(this.listeners.length, " listeners"), this);
}

@@ -244,0 +244,0 @@ this.listeners.forEach(function (listener) {

@@ -56,6 +56,6 @@ "use strict";

if (network.name) {
data.push("name:" + network.name);
data.push("name:".concat(network.name));
}
if (network.rpcUrl) {
data.push("rpc:" + network.rpcUrl);
data.push("rpc:".concat(network.rpcUrl));
}

@@ -62,0 +62,0 @@ buffer = Buffer.from((0, blake2b_1.hash)((0, utf8_1.encode)(data.join('-')), 10));

@@ -46,6 +46,6 @@ "use strict";

}
var groupText = "[BEACON] " + new Date().toISOString() + " [" + name + "](" + method + ")";
var groupText = "[BEACON] ".concat(new Date().toISOString(), " [").concat(name, "](").concat(method, ")");
var data = args;
if (args[0] && typeof args[0] === 'string') {
groupText += " " + args[0];
groupText += " ".concat(args[0]);
data = args.slice(1);

@@ -52,0 +52,0 @@ }

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

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

@@ -6,3 +6,3 @@ declare type Callback = (message: unknown) => void;

declare let windowRef: {
postMessage: (message: string | Record<string, unknown>, _target?: string | undefined) => void;
postMessage: (message: string | Record<string, unknown>, _target?: string) => void;
addEventListener: (_name: string, eventCallback: Callback) => void;

@@ -9,0 +9,0 @@ removeEventListener: (_name: string, eventCallback: Callback) => void;

{
"name": "@airgap/beacon-core",
"version": "3.3.0",
"version": "3.3.1",
"description": "> TODO: description",

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

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

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

},
"gitHead": "11ea1cbf7ba019bc879fcd49a45d824230cea3bf"
"gitHead": "a826f1d14bbdab53babdeb164d966266c5decc4d"
}

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