@ocap/util 1.28.2 → 1.28.3

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 (50) hide show
  1. package/esm/{curve.d.ts → curve.d.mts} +2 -2
  2. package/esm/{curve.js → curve.mjs} +1 -1
  3. package/esm/{index.d.ts → index.d.mts} +1 -1
  4. package/esm/{index.js → index.mjs} +1 -1
  5. package/lib/{bn.js → bn.cjs} +1 -1
  6. package/lib/{create-sorted-list.js → create-sorted-list.cjs} +1 -1
  7. package/lib/{curve.js → curve.cjs} +1 -1
  8. package/lib/{curve.d.ts → curve.d.cts} +1 -1
  9. package/lib/{get-list-field.js → get-list-field.cjs} +1 -1
  10. package/lib/{index.js → index.cjs} +2 -2
  11. package/lib/{index.d.ts → index.d.cts} +1 -1
  12. package/lib/{md5.js → md5.cjs} +1 -1
  13. package/lib/{ready.js → ready.cjs} +1 -1
  14. package/lib/{url.js → url.cjs} +1 -1
  15. package/package.json +16 -15
  16. /package/esm/{bn.d.ts → bn.d.mts} +0 -0
  17. /package/esm/{bn.js → bn.mjs} +0 -0
  18. /package/esm/{constant.d.ts → constant.d.mts} +0 -0
  19. /package/esm/{constant.js → constant.mjs} +0 -0
  20. /package/esm/{create-sorted-list.d.ts → create-sorted-list.d.mts} +0 -0
  21. /package/esm/{create-sorted-list.js → create-sorted-list.mjs} +0 -0
  22. /package/esm/{error.d.ts → error.d.mts} +0 -0
  23. /package/esm/{error.js → error.mjs} +0 -0
  24. /package/esm/{get-list-field.d.ts → get-list-field.d.mts} +0 -0
  25. /package/esm/{get-list-field.js → get-list-field.mjs} +0 -0
  26. /package/esm/{get-related-addr.d.ts → get-related-addr.d.mts} +0 -0
  27. /package/esm/{get-related-addr.js → get-related-addr.mjs} +0 -0
  28. /package/esm/{md5.d.ts → md5.d.mts} +0 -0
  29. /package/esm/{md5.js → md5.mjs} +0 -0
  30. /package/esm/{ready.d.ts → ready.d.mts} +0 -0
  31. /package/esm/{ready.js → ready.mjs} +0 -0
  32. /package/esm/{retry.d.ts → retry.d.mts} +0 -0
  33. /package/esm/{retry.js → retry.mjs} +0 -0
  34. /package/esm/{url.d.ts → url.d.mts} +0 -0
  35. /package/esm/{url.js → url.mjs} +0 -0
  36. /package/lib/_virtual/{rolldown_runtime.js → rolldown_runtime.cjs} +0 -0
  37. /package/lib/{bn.d.ts → bn.d.cts} +0 -0
  38. /package/lib/{constant.js → constant.cjs} +0 -0
  39. /package/lib/{constant.d.ts → constant.d.cts} +0 -0
  40. /package/lib/{create-sorted-list.d.ts → create-sorted-list.d.cts} +0 -0
  41. /package/lib/{error.js → error.cjs} +0 -0
  42. /package/lib/{error.d.ts → error.d.cts} +0 -0
  43. /package/lib/{get-list-field.d.ts → get-list-field.d.cts} +0 -0
  44. /package/lib/{get-related-addr.js → get-related-addr.cjs} +0 -0
  45. /package/lib/{get-related-addr.d.ts → get-related-addr.d.cts} +0 -0
  46. /package/lib/{md5.d.ts → md5.d.cts} +0 -0
  47. /package/lib/{ready.d.ts → ready.d.cts} +0 -0
  48. /package/lib/{retry.js → retry.cjs} +0 -0
  49. /package/lib/{retry.d.ts → retry.d.cts} +0 -0
  50. /package/lib/{url.d.ts → url.d.cts} +0 -0
@@ -1,5 +1,5 @@
1
- import { BN } from "./bn.js";
2
- import "./index.js";
1
+ import { BN } from "./bn.mjs";
2
+ import "./index.mjs";
3
3
  import * as bn_js0 from "bn.js";
4
4
 
5
5
  //#region src/curve.d.ts
@@ -1,4 +1,4 @@
1
- import { BN } from "./bn.js";
1
+ import { BN } from "./bn.mjs";
2
2
 
3
3
  //#region src/curve.ts
4
4
  const ZERO = new BN(0);
@@ -1,4 +1,4 @@
1
- import { BN } from "./bn.js";
1
+ import { BN } from "./bn.mjs";
2
2
  import rightPad from "lodash/padEnd.js";
3
3
  import leftPad from "lodash/padStart.js";
4
4
  import { LiteralUnion } from "type-fest";
@@ -1,4 +1,4 @@
1
- import { BN } from "./bn.js";
1
+ import { BN } from "./bn.mjs";
2
2
  import BaseBN from "bn.js";
3
3
  import isBoolean from "lodash/isBoolean.js";
4
4
  import isString from "lodash/isString.js";
@@ -1,4 +1,4 @@
1
- const require_rolldown_runtime = require('./_virtual/rolldown_runtime.js');
1
+ const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
2
2
  let bn_js = require("bn.js");
3
3
  bn_js = require_rolldown_runtime.__toESM(bn_js);
4
4
 
@@ -1,4 +1,4 @@
1
- const require_rolldown_runtime = require('./_virtual/rolldown_runtime.js');
1
+ const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
2
2
  let lodash_uniq = require("lodash/uniq");
3
3
  lodash_uniq = require_rolldown_runtime.__toESM(lodash_uniq);
4
4
  let lodash_flatten = require("lodash/flatten");
@@ -1,4 +1,4 @@
1
- const require_bn = require('./bn.js');
1
+ const require_bn = require('./bn.cjs');
2
2
 
3
3
  //#region src/curve.ts
4
4
  const ZERO = new require_bn.BN(0);
@@ -1,4 +1,4 @@
1
- import { BN } from "./bn.js";
1
+ import { BN } from "./bn.cjs";
2
2
  import * as bn_js0 from "bn.js";
3
3
 
4
4
  //#region src/curve.d.ts
@@ -1,4 +1,4 @@
1
- const require_rolldown_runtime = require('./_virtual/rolldown_runtime.js');
1
+ const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
2
2
  let lodash_get = require("lodash/get");
3
3
  lodash_get = require_rolldown_runtime.__toESM(lodash_get);
4
4
 
@@ -1,5 +1,5 @@
1
- const require_rolldown_runtime = require('./_virtual/rolldown_runtime.js');
2
- const require_bn = require('./bn.js');
1
+ const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
2
+ const require_bn = require('./bn.cjs');
3
3
  let bn_js = require("bn.js");
4
4
  bn_js = require_rolldown_runtime.__toESM(bn_js);
5
5
  let lodash_isBoolean = require("lodash/isBoolean");
@@ -1,4 +1,4 @@
1
- import { BN } from "./bn.js";
1
+ import { BN } from "./bn.cjs";
2
2
  import { LiteralUnion } from "type-fest";
3
3
  import rightPad from "lodash/padEnd";
4
4
  import leftPad from "lodash/padStart";
@@ -1,4 +1,4 @@
1
- const require_rolldown_runtime = require('./_virtual/rolldown_runtime.js');
1
+ const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
2
2
  let crypto = require("crypto");
3
3
  crypto = require_rolldown_runtime.__toESM(crypto);
4
4
 
@@ -1,4 +1,4 @@
1
- const require_rolldown_runtime = require('./_virtual/rolldown_runtime.js');
1
+ const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
2
2
  let events = require("events");
3
3
  events = require_rolldown_runtime.__toESM(events);
4
4
 
@@ -1,4 +1,4 @@
1
- const require_rolldown_runtime = require('./_virtual/rolldown_runtime.js');
1
+ const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
2
2
  let url = require("url");
3
3
  let ipaddr_js = require("ipaddr.js");
4
4
  ipaddr_js = require_rolldown_runtime.__toESM(ipaddr_js);
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@ocap/util",
3
- "version": "1.28.2",
3
+ "version": "1.28.3",
4
+ "type": "module",
4
5
  "description": "utils shared across multiple forge js libs, works in both node.js and browser",
5
6
  "keywords": [
6
7
  "arcblock",
@@ -18,7 +19,7 @@
18
19
  "ipaddr.js": "^2.1.0",
19
20
  "lodash": "^4.17.21",
20
21
  "utf8": "^3.0.0",
21
- "@ocap/types": "^1.28.2"
22
+ "@ocap/types": "^1.28.3"
22
23
  },
23
24
  "resolutions": {
24
25
  "elliptic": "6.5.3"
@@ -47,25 +48,25 @@
47
48
  ],
48
49
  "homepage": "https://www.arcblock.io/docs/blockchain-utils",
49
50
  "license": "Apache-2.0",
50
- "main": "./lib/index.js",
51
+ "main": "./lib/index.cjs",
51
52
  "sideEffects": false,
52
- "module": "./esm/index.js",
53
- "types": "./esm/index.d.ts",
53
+ "module": "./esm/index.mjs",
54
+ "types": "./esm/index.d.mts",
54
55
  "exports": {
55
56
  ".": {
56
- "types": "./esm/index.d.ts",
57
- "import": "./esm/index.js",
58
- "default": "./lib/index.js"
57
+ "types": "./esm/index.d.mts",
58
+ "import": "./esm/index.mjs",
59
+ "default": "./lib/index.cjs"
59
60
  },
60
61
  "./lib/*.js": {
61
- "types": "./lib/*",
62
- "import": "./esm/*.js",
63
- "default": "./lib/*.js"
62
+ "types": "./esm/*.d.mts",
63
+ "import": "./esm/*.mjs",
64
+ "default": "./lib/*.cjs"
64
65
  },
65
66
  "./lib/*": {
66
- "types": "./lib/*",
67
- "import": "./esm/*.js",
68
- "default": "./lib/*.js"
67
+ "types": "./esm/*.d.mts",
68
+ "import": "./esm/*.mjs",
69
+ "default": "./lib/*.cjs"
69
70
  }
70
71
  },
71
72
  "files": [
@@ -85,6 +86,6 @@
85
86
  "test": "jest --forceExit --detectOpenHandles",
86
87
  "coverage": "npm run test -- --coverage",
87
88
  "build": "tsdown",
88
- "build:watch": "tsdown --watch"
89
+ "build:watch": "tsdown -w"
89
90
  }
90
91
  }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes