@airgap/beacon-core
Advanced tools
Comparing version 3.3.5-beta.16 to 3.3.5-beta.17
import { ExposedPromise } from '@airgap/beacon-utils'; | ||
import { Storage } from '@airgap/beacon-types'; | ||
import { AnalyticsInterface, Storage } from '@airgap/beacon-types'; | ||
import { BeaconClientOptions } from './BeaconClientOptions'; | ||
@@ -30,2 +30,3 @@ import { KeyPair } from '@stablelib/ed25519'; | ||
protected storage: Storage; | ||
protected analytics: AnalyticsInterface; | ||
/** | ||
@@ -32,0 +33,0 @@ * The local keypair that is used for the communication encryption |
@@ -45,2 +45,3 @@ "use strict"; | ||
var MockWindow_1 = require("../../MockWindow"); | ||
var MockAnalytics_1 = require("../../MockAnalytics"); | ||
/** | ||
@@ -54,3 +55,3 @@ * @internalapi | ||
function BeaconClient(config) { | ||
var _a; | ||
var _a, _b; | ||
/** The beaconId is a public key that is used to identify one specific application (dapp or wallet). | ||
@@ -74,2 +75,3 @@ * This is used inside a message to specify the sender, for example. | ||
this.storage = config.storage; | ||
this.analytics = (_b = config.analytics) !== null && _b !== void 0 ? _b : new MockAnalytics_1.MockAnalytics(); | ||
// TODO: This is a temporary "workaround" to prevent users from creating multiple Client instances | ||
@@ -76,0 +78,0 @@ if (MockWindow_1.windowRef.beaconCreatedClientInstance) { |
@@ -1,2 +0,2 @@ | ||
import { Storage } from '@airgap/beacon-types'; | ||
import { AnalyticsInterface, Storage } from '@airgap/beacon-types'; | ||
/** | ||
@@ -22,2 +22,6 @@ * @internalapi | ||
storage: Storage; | ||
/** | ||
* The analytics instance that will be used by the SDK | ||
*/ | ||
analytics?: AnalyticsInterface; | ||
} |
"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.5-beta.16'; | ||
exports.SDK_VERSION = '3.3.5-beta.17'; | ||
exports.BEACON_VERSION = '3'; | ||
exports.NOTIFICATION_ORACLE_URL = 'https://beacon-notification-oracle.dev.gke.papers.tech'; | ||
//# sourceMappingURL=constants.js.map |
import { ExposedPromise } from '@airgap/beacon-utils'; | ||
import { Storage } from '@airgap/beacon-types'; | ||
import { AnalyticsInterface, Storage } from '@airgap/beacon-types'; | ||
import { BeaconClientOptions } from './BeaconClientOptions'; | ||
@@ -30,2 +30,3 @@ import { KeyPair } from '@stablelib/ed25519'; | ||
protected storage: Storage; | ||
protected analytics: AnalyticsInterface; | ||
/** | ||
@@ -32,0 +33,0 @@ * The local keypair that is used for the communication encryption |
@@ -15,2 +15,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
import { windowRef } from '../../MockWindow'; | ||
import { MockAnalytics } from '../../MockAnalytics'; | ||
/** | ||
@@ -24,3 +25,3 @@ * @internalapi | ||
constructor(config) { | ||
var _a; | ||
var _a, _b; | ||
/** The beaconId is a public key that is used to identify one specific application (dapp or wallet). | ||
@@ -44,2 +45,3 @@ * This is used inside a message to specify the sender, for example. | ||
this.storage = config.storage; | ||
this.analytics = (_b = config.analytics) !== null && _b !== void 0 ? _b : new MockAnalytics(); | ||
// TODO: This is a temporary "workaround" to prevent users from creating multiple Client instances | ||
@@ -46,0 +48,0 @@ if (windowRef.beaconCreatedClientInstance) { |
@@ -1,2 +0,2 @@ | ||
import { Storage } from '@airgap/beacon-types'; | ||
import { AnalyticsInterface, Storage } from '@airgap/beacon-types'; | ||
/** | ||
@@ -22,2 +22,6 @@ * @internalapi | ||
storage: Storage; | ||
/** | ||
* The analytics instance that will be used by the SDK | ||
*/ | ||
analytics?: AnalyticsInterface; | ||
} |
@@ -1,4 +0,4 @@ | ||
export const SDK_VERSION = '3.3.5-beta.16'; | ||
export const SDK_VERSION = '3.3.5-beta.17'; | ||
export const BEACON_VERSION = '3'; | ||
export const NOTIFICATION_ORACLE_URL = 'https://beacon-notification-oracle.dev.gke.papers.tech'; | ||
//# sourceMappingURL=constants.js.map |
{ | ||
"name": "@airgap/beacon-core", | ||
"version": "3.3.5-beta.16", | ||
"version": "3.3.5-beta.17", | ||
"description": "> TODO: description", | ||
@@ -37,4 +37,4 @@ "author": "Andreas Gassmann <a.gassmann@papers.ch>", | ||
"dependencies": { | ||
"@airgap/beacon-types": "^3.3.5-beta.16", | ||
"@airgap/beacon-utils": "^3.3.5-beta.16", | ||
"@airgap/beacon-types": "^3.3.5-beta.17", | ||
"@airgap/beacon-utils": "^3.3.5-beta.17", | ||
"@stablelib/ed25519": "^1.0.3", | ||
@@ -46,3 +46,3 @@ "@stablelib/nacl": "^1.0.4", | ||
}, | ||
"gitHead": "954a213e86fa4d691a8daac8530e97b21d8132ff" | ||
"gitHead": "947091781d499226e4e95cd521c939fecd309ad4" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
379282
249
6534