@fastnear/api 0.5.1 → 0.6.1

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/esm/index.js CHANGED
@@ -1,12 +1,8 @@
1
- /* ⋈ 🏃🏻💨 FastNEAR API - ESM */
2
- import { api as near, convertUnit } from "./near.js";
3
- window.near = near;
4
- window.$$ = convertUnit;
5
- export * from "./cryptoUtils.js";
1
+ /* ⋈ 🏃🏻💨 FastNEAR API - ESM (@fastnear/api version 0.6.0) */
2
+ /* https://www.npmjs.com/package/@fastnear/api/v/0.6.0 */
3
+ import { convertUnit } from "@fastnear/utils";
4
+ if (typeof window !== "undefined") {
5
+ window.$$ = convertUnit;
6
+ }
6
7
  export * from "./near.js";
7
- export * from "./transaction.js";
8
- export * from "./utils.js";
9
- export {
10
- near
11
- };
12
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import { api as near, convertUnit } from \"./near.js\";\n\n// @ts-ignore\nwindow.near = near;\n// @ts-ignore\nwindow.$$ = convertUnit;\n\nexport { near };\n\nexport * from './cryptoUtils.js';\nexport * from './near.js';\nexport * from './transaction.js';\nexport * from './utils.js';\n"],"mappings":";AAAA,SAAS,OAAO,MAAM,mBAAmB;AAGzC,OAAO,OAAO;AAEd,OAAO,KAAK;AAIZ,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
1
+ {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import { convertUnit } from \"@fastnear/utils\";\n\nif (typeof window !== \"undefined\") {\n // @ts-ignore\n window.$$ = convertUnit;\n}\n\nexport * from \"./near.js\";\n"],"mappings":";;AAAA,SAAS,mBAAmB;AAE5B,IAAI,OAAO,WAAW,aAAa;AAEjC,SAAO,KAAK;AACd;AAEA,cAAc;","names":[]}