@steemit/steem-js 1.0.3 → 1.0.5

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.
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Browser polyfill for async_hooks
3
+ * Returns an empty object since async_hooks is not available in browsers
4
+ */
5
+ declare const _default: {};
6
+ export default _default;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Browser-compatible polyfill for secure-random
3
+ * Uses crypto.getRandomValues for secure random number generation
4
+ */
5
+ declare const _default: {
6
+ randomBuffer(size: number): Buffer;
7
+ };
8
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steemit/steem-js",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "Steem blockchain JavaScript/TypeScript library",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -10,9 +10,14 @@
10
10
  "exports": {
11
11
  ".": {
12
12
  "types": "./dist/index.d.ts",
13
+ "browser": {
14
+ "import": "./dist/index.browser.js",
15
+ "require": "./dist/index.umd.js",
16
+ "default": "./dist/index.umd.js"
17
+ },
13
18
  "import": "./dist/index.js",
14
19
  "require": "./dist/index.cjs",
15
- "browser": "./dist/index.umd.js"
20
+ "default": "./dist/index.cjs"
16
21
  }
17
22
  },
18
23
  "files": [
@@ -72,6 +77,7 @@
72
77
  "lodash": "^4.17.21",
73
78
  "long": "^5.2.3",
74
79
  "retry": "^0.13.1",
80
+ "secure-random": "^1.1.2",
75
81
  "ws": "^8.18.2"
76
82
  },
77
83
  "scripts": {