saito-js 0.0.11 → 0.0.12

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.d.ts CHANGED
@@ -1,5 +1 @@
1
- import Configs from "./configs";
2
- import SharedMethods from "./shared_methods";
3
- import Factory from "./lib/factory";
4
- export declare function initialize(configs: Configs, sharedMethods: SharedMethods, factory: Factory, privateKey: string): Promise<void>;
5
1
  //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,OAAO,MAAM,eAAe,CAAC;AAEpC,wBAAsB,UAAU,CAC9B,OAAO,EAAE,OAAO,EAChB,aAAa,EAAE,aAAa,EAC5B,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,MAAM,iBASnB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":""}
package/index.js CHANGED
@@ -1,11 +1,20 @@
1
- export async function initialize(configs, sharedMethods, factory, privateKey) {
2
- if (typeof window === "undefined") {
3
- const saito = await import("./index.node");
4
- return saito.default.initialize(configs, sharedMethods, factory, privateKey);
5
- }
6
- else {
7
- const saito = await import("./index.web");
8
- return saito.default.initialize(configs, sharedMethods, factory, privateKey);
9
- }
10
- }
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
+ // }
11
20
  //# sourceMappingURL=index.js.map
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,KAAK,UAAU,UAAU,CAC9B,OAAgB,EAChB,aAA4B,EAC5B,OAAgB,EAChB,UAAkB;IAElB,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;QACjC,MAAM,KAAK,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,CAAC;QAC3C,OAAO,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;KAC9E;SAAM;QACL,MAAM,KAAK,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,CAAC;QAC1C,OAAO,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;KAC9E;AACH,CAAC"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-js",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
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'",
@@ -8,7 +8,6 @@
8
8
  "build": "tsc",
9
9
  "serve": "webpack-dev-server"
10
10
  },
11
- "type": "module",
12
11
  "author": "",
13
12
  "license": "ISC",
14
13
  "devDependencies": {