@trustwallet/wallet-core 2.9.8 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,2 +1,5 @@
1
- export { TW } from "./generated/core_proto";
2
- export * as WalletCore from "./lib/wallet-core";
1
+ import { TW } from "./generated/core_proto";
2
+ import { WalletCore } from "./wallet-core";
3
+ declare function load(): Promise<WalletCore>;
4
+ export declare const initWasm: typeof load;
5
+ export { TW, WalletCore };
package/dist/index.js CHANGED
@@ -1,21 +1,12 @@
1
+ "use strict";
1
2
  // Copyright © 2017-2022 Trust Wallet.
2
3
  //
3
4
  // This file is part of Trust. The full Trust copyright notice, including
4
5
  // terms governing use, modification, and redistribution, is contained in the
5
6
  // file LICENSE at the root of the source code distribution tree.
6
- (function (factory) {
7
- if (typeof module === "object" && typeof module.exports === "object") {
8
- var v = factory(require, exports);
9
- if (v !== undefined) module.exports = v;
10
- }
11
- else if (typeof define === "function" && define.amd) {
12
- define(["require", "exports", "./generated/core_proto", "./lib/wallet-core"], factory);
13
- }
14
- })(function (require, exports) {
15
- "use strict";
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.WalletCore = exports.TW = void 0;
18
- var core_proto_1 = require("./generated/core_proto");
19
- Object.defineProperty(exports, "TW", { enumerable: true, get: function () { return core_proto_1.TW; } });
20
- exports.WalletCore = require("./lib/wallet-core");
21
- });
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.TW = exports.initWasm = void 0;
9
+ var Loader = require("./lib/wallet-core");
10
+ var core_proto_1 = require("./generated/core_proto");
11
+ Object.defineProperty(exports, "TW", { enumerable: true, get: function () { return core_proto_1.TW; } });
12
+ exports.initWasm = Loader;