saito-js 0.0.13 → 0.0.14

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/index.node.js CHANGED
@@ -35,7 +35,7 @@ const peer_1 = __importDefault(require("./lib/peer"));
35
35
  const wallet_1 = __importDefault(require("./lib/wallet"));
36
36
  const blockchain_1 = __importDefault(require("./lib/blockchain"));
37
37
  const NODE_MAJOR_VERSION = parseInt(process.versions.node.split(".")[0]);
38
- if (NODE_MAJOR_VERSION < 20) {
38
+ if (NODE_MAJOR_VERSION < 19) {
39
39
  let cr = require("crypto");
40
40
  globalThis.crypto = cr.webcrypto;
41
41
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-js",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "description": "js wrappings around saito-core using wasm",
5
5
  "scripts": {
6
6
  "test": "env TS_NODE_PROJECT=\"tsconfig.testing.json\" mocha --require ts-node/register 'tests/**/*.ts'",
package/index.d.ts DELETED
@@ -1 +0,0 @@
1
- //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":""}
package/index.js DELETED
@@ -1,20 +0,0 @@
1
- "use strict";
2
- // import Configs from "./configs";
3
- // import SharedMethods from "./shared_methods";
4
- // import Factory from "./lib/factory";
5
- //
6
- // export async function initialize(
7
- // configs: Configs,
8
- // sharedMethods: SharedMethods,
9
- // factory: Factory,
10
- // privateKey: string
11
- // ) {
12
- // if (typeof window === "undefined") {
13
- // const saito = await import("./index.node");
14
- // return saito.default.initialize(configs, sharedMethods, factory, privateKey);
15
- // } else {
16
- // const saito = await import("./index.web");
17
- // return saito.default.initialize(configs, sharedMethods, factory, privateKey);
18
- // }
19
- // }
20
- //# sourceMappingURL=index.js.map
package/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,mCAAmC;AACnC,gDAAgD;AAChD,uCAAuC;AACvC,EAAE;AACF,oCAAoC;AACpC,sBAAsB;AACtB,kCAAkC;AAClC,sBAAsB;AACtB,uBAAuB;AACvB,MAAM;AACN,yCAAyC;AACzC,kDAAkD;AAClD,oFAAoF;AACpF,aAAa;AACb,iDAAiD;AACjD,oFAAoF;AACpF,MAAM;AACN,IAAI"}