@eversdk/core
Advanced tools
Comparing version 1.38.1 to 1.39.0
import { ClientConfig } from "./modules"; | ||
export declare type ResponseHandler = (params: any, responseType: number) => void; | ||
export type ResponseHandler = (params: any, responseType: number) => void; | ||
export interface BinaryLibraryBase { | ||
@@ -4,0 +4,0 @@ createContext(configJson: string): Promise<string>; |
@@ -29,2 +29,17 @@ "use strict"; | ||
class TonClient { | ||
static set default(client) { | ||
this._default = client; | ||
} | ||
static get default() { | ||
if (this._default === null) { | ||
this._default = new TonClient(this._defaultConfig); | ||
} | ||
return this._default; | ||
} | ||
static set defaultConfig(config) { | ||
this._defaultConfig = config; | ||
} | ||
static get defaultConfig() { | ||
return this._defaultConfig; | ||
} | ||
constructor(config) { | ||
@@ -45,17 +60,2 @@ this.context = undefined; | ||
} | ||
static set default(client) { | ||
this._default = client; | ||
} | ||
static get default() { | ||
if (this._default === null) { | ||
this._default = new TonClient(this._defaultConfig); | ||
} | ||
return this._default; | ||
} | ||
static set defaultConfig(config) { | ||
this._defaultConfig = config; | ||
} | ||
static get defaultConfig() { | ||
return this._defaultConfig; | ||
} | ||
static useBinaryLibrary(loader) { | ||
@@ -62,0 +62,0 @@ (0, bin_1.useLibrary)(loader); |
{ | ||
"name": "@eversdk/core", | ||
"version": "1.38.1", | ||
"version": "1.39.0", | ||
"description": "TON Client for Java Script", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10001
335008