@cardano-sdk/cip30
Advanced tools
Comparing version 0.4.1-nightly.3 to 0.5.0-nightly.0
@@ -8,3 +8,3 @@ import { Cip30Wallet } from './WalletApi'; | ||
}; | ||
export declare const injectGlobal: (window: WindowMaybeWithCardano, wallet: Cip30Wallet, logger?: Logger) => void; | ||
export declare const injectGlobal: (window: WindowMaybeWithCardano, wallet: Cip30Wallet, logger: Logger) => void; | ||
//# sourceMappingURL=injectGlobal.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.injectGlobal = void 0; | ||
const ts_log_1 = require("ts-log"); | ||
const injectGlobal = (window, wallet, logger = ts_log_1.dummyLogger) => { | ||
const injectGlobal = (window, wallet, logger) => { | ||
if (!window.cardano) { | ||
@@ -7,0 +6,0 @@ logger.debug({ |
@@ -12,3 +12,3 @@ import { Logger } from 'ts-log'; | ||
export declare type WalletDependencies = { | ||
logger?: Logger; | ||
logger: Logger; | ||
authenticator: RemoteAuthenticator; | ||
@@ -15,0 +15,0 @@ api: WalletApi; |
@@ -17,5 +17,4 @@ "use strict"; | ||
const errors_1 = require("../errors"); | ||
const ts_log_1 = require("ts-log"); | ||
class Cip30Wallet { | ||
constructor(properties, { api, authenticator, logger = ts_log_1.dummyLogger }) { | ||
constructor(properties, { api, authenticator, logger }) { | ||
this.apiVersion = '0.1.0'; | ||
@@ -22,0 +21,0 @@ _Cip30Wallet_logger.set(this, void 0); |
@@ -8,3 +8,3 @@ import { Cip30Wallet } from './WalletApi'; | ||
}; | ||
export declare const injectGlobal: (window: WindowMaybeWithCardano, wallet: Cip30Wallet, logger?: Logger) => void; | ||
export declare const injectGlobal: (window: WindowMaybeWithCardano, wallet: Cip30Wallet, logger: Logger) => void; | ||
//# sourceMappingURL=injectGlobal.d.ts.map |
@@ -1,3 +0,2 @@ | ||
import { dummyLogger } from 'ts-log'; | ||
export const injectGlobal = (window, wallet, logger = dummyLogger) => { | ||
export const injectGlobal = (window, wallet, logger) => { | ||
if (!window.cardano) { | ||
@@ -4,0 +3,0 @@ logger.debug({ |
@@ -12,3 +12,3 @@ import { Logger } from 'ts-log'; | ||
export declare type WalletDependencies = { | ||
logger?: Logger; | ||
logger: Logger; | ||
authenticator: RemoteAuthenticator; | ||
@@ -15,0 +15,0 @@ api: WalletApi; |
@@ -14,5 +14,4 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { | ||
import { APIErrorCode, ApiError } from '../errors'; | ||
import { dummyLogger } from 'ts-log'; | ||
export class Cip30Wallet { | ||
constructor(properties, { api, authenticator, logger = dummyLogger }) { | ||
constructor(properties, { api, authenticator, logger }) { | ||
this.apiVersion = '0.1.0'; | ||
@@ -19,0 +18,0 @@ _Cip30Wallet_logger.set(this, void 0); |
{ | ||
"name": "@cardano-sdk/cip30", | ||
"version": "0.4.1-nightly.3", | ||
"version": "0.5.0-nightly.0", | ||
"description": "TypeScript definitions for the dApp Connector standard CIP30", | ||
@@ -67,3 +67,3 @@ "engines": { | ||
"dependencies": { | ||
"@cardano-sdk/core": "^0.5.0-nightly.2", | ||
"@cardano-sdk/core": "^0.5.0-nightly.3", | ||
"ts-custom-error": "^3.2.0", | ||
@@ -79,3 +79,3 @@ "ts-log": "^2.2.3", | ||
], | ||
"gitHead": "5d30139e57b567d6a537777c8ecebcffc78fce9d" | ||
"gitHead": "60e4bfaf6a113a2b63e3bebbfd515fa60a127567" | ||
} |
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
342342
952