@fastnear/api 0.4.0 → 0.5.0

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.
Files changed (40) hide show
  1. package/dist/cjs/index.cjs +40 -0
  2. package/dist/cjs/index.cjs.map +1 -0
  3. package/dist/cjs/index.d.cts +3339 -0
  4. package/dist/esm/index.d.ts +3339 -0
  5. package/dist/esm/index.js +9 -60
  6. package/dist/esm/index.js.map +1 -7
  7. package/dist/umd/{index.js → browser.global.js} +291 -122
  8. package/dist/umd/browser.global.js.map +1 -0
  9. package/package.json +9 -8
  10. package/dist/cjs/cryptoUtils.js +0 -89
  11. package/dist/cjs/cryptoUtils.js.map +0 -7
  12. package/dist/cjs/index.esm.js +0 -1219
  13. package/dist/cjs/index.esm.js.map +0 -7
  14. package/dist/cjs/index.js +0 -1274
  15. package/dist/cjs/index.js.map +0 -7
  16. package/dist/cjs/near.js +0 -1219
  17. package/dist/cjs/near.js.map +0 -7
  18. package/dist/cjs/transaction.js +0 -360
  19. package/dist/cjs/transaction.js.map +0 -7
  20. package/dist/cjs/utils.js +0 -105
  21. package/dist/cjs/utils.js.map +0 -7
  22. package/dist/esm/chunk-2SCAGR3F.js +0 -68
  23. package/dist/esm/chunk-2SCAGR3F.js.map +0 -7
  24. package/dist/esm/chunk-OR3WITSY.js +0 -842
  25. package/dist/esm/chunk-OR3WITSY.js.map +0 -7
  26. package/dist/esm/chunk-S5Q2EM2B.js +0 -48
  27. package/dist/esm/chunk-S5Q2EM2B.js.map +0 -7
  28. package/dist/esm/chunk-YKPILPMX.js +0 -301
  29. package/dist/esm/chunk-YKPILPMX.js.map +0 -7
  30. package/dist/esm/cryptoUtils.js +0 -21
  31. package/dist/esm/cryptoUtils.js.map +0 -7
  32. package/dist/esm/index.esm.js +0 -13
  33. package/dist/esm/index.esm.js.map +0 -7
  34. package/dist/esm/near.js +0 -15
  35. package/dist/esm/near.js.map +0 -7
  36. package/dist/esm/transaction.js +0 -16
  37. package/dist/esm/transaction.js.map +0 -7
  38. package/dist/esm/utils.js +0 -24
  39. package/dist/esm/utils.js.map +0 -7
  40. package/dist/umd/index.js.map +0 -7
package/dist/esm/index.js CHANGED
@@ -1,63 +1,12 @@
1
- /* ⋈ 🏃🏻💨 FastNEAR API - https://github.com/fastnear */
2
- import {
3
- api,
4
- convertUnit,
5
- parseJsonFromBytes
6
- } from "./chunk-OR3WITSY.js";
7
- import {
8
- SCHEMA,
9
- mapAction,
10
- serializeSignedTransaction,
11
- serializeTransaction
12
- } from "./chunk-YKPILPMX.js";
13
- import {
14
- keyFromString,
15
- keyToString,
16
- privateKeyFromRandom,
17
- publicKeyFromPrivate,
18
- sha256,
19
- signBytes,
20
- signHash
21
- } from "./chunk-S5Q2EM2B.js";
22
- import {
23
- canSignWithLAK,
24
- deepCopy,
25
- fromBase58,
26
- fromBase64,
27
- lsGet,
28
- lsSet,
29
- toBase58,
30
- toBase64,
31
- tryParseJson
32
- } from "./chunk-2SCAGR3F.js";
33
-
34
- // src/index.ts
35
- window.near = api;
1
+ /* ⋈ 🏃🏻💨 FastNEAR API - ESM */
2
+ import { api as near, convertUnit } from "./near.js";
3
+ window.near = near;
36
4
  window.$$ = convertUnit;
5
+ export * from "./cryptoUtils.js";
6
+ export * from "./near.js";
7
+ export * from "./transaction.js";
8
+ export * from "./utils.js";
37
9
  export {
38
- SCHEMA,
39
- api,
40
- canSignWithLAK,
41
- convertUnit,
42
- deepCopy,
43
- fromBase58,
44
- fromBase64,
45
- keyFromString,
46
- keyToString,
47
- lsGet,
48
- lsSet,
49
- mapAction,
50
- api as near,
51
- parseJsonFromBytes,
52
- privateKeyFromRandom,
53
- publicKeyFromPrivate,
54
- serializeSignedTransaction,
55
- serializeTransaction,
56
- sha256,
57
- signBytes,
58
- signHash,
59
- toBase58,
60
- toBase64,
61
- tryParseJson
10
+ near
62
11
  };
63
- //# sourceMappingURL=index.js.map
12
+ //# sourceMappingURL=index.js.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.ts"],
4
- "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"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,OAAO,OAAO;AAEd,OAAO,KAAK;",
6
- "names": []
7
- }
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":[]}