@steemit/steem-js 1.0.9 → 1.0.11
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/README.md +1 -1
- package/dist/api/index.d.ts +72 -0
- package/dist/api/transports/http.d.ts +1 -1
- package/dist/api/types.d.ts +78 -0
- package/dist/browser.esm.js +279 -47
- package/dist/browser.esm.js.map +1 -1
- package/dist/index.cjs +274 -40
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +273 -41
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +278 -46
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +2 -2
- package/dist/api/transports/ws.d.ts +0 -19
- package/dist/crypto/browser-crypto.d.ts +0 -43
- package/dist/index.browser.js +0 -56378
- package/dist/index.browser.js.map +0 -1
- package/dist/polyfills/secure-random-browser.d.ts +0 -8
- package/dist/utils/buffer-global.d.ts +0 -7
- package/dist/utils/net-polyfill.d.ts +0 -17
- package/dist/utils/polyfill-test.d.ts +0 -19
- package/dist/utils/tls-polyfill.d.ts +0 -15
- package/dist/utils/util-polyfill.d.ts +0 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steemit/steem-js",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "Steem blockchain JavaScript/TypeScript library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"author": "hightouch",
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"engines": {
|
|
32
|
-
"node": ">=
|
|
32
|
+
"node": ">=20.19.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@eslint/js": "^9.39.1",
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { TransportOptions } from './types';
|
|
2
|
-
import { BaseTransport } from './base';
|
|
3
|
-
/**
|
|
4
|
-
* WebSocket transport implementation
|
|
5
|
-
*
|
|
6
|
-
* NOTE: WebSocket functionality is currently not supported.
|
|
7
|
-
* This implementation is kept for backward compatibility only.
|
|
8
|
-
* Please use HTTP transport (via https://api.steemit.com) for API calls.
|
|
9
|
-
*/
|
|
10
|
-
export declare class WsTransport extends BaseTransport {
|
|
11
|
-
private ws;
|
|
12
|
-
private _requests;
|
|
13
|
-
private seqNo;
|
|
14
|
-
private isBrowser;
|
|
15
|
-
constructor(options: TransportOptions);
|
|
16
|
-
start(): Promise<void>;
|
|
17
|
-
stop(): Promise<void>;
|
|
18
|
-
send(api: string, data: any, callback: (error: any, result?: any) => void): void;
|
|
19
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Browser-compatible crypto module
|
|
3
|
-
*
|
|
4
|
-
* This module provides a compatibility layer for Node.js crypto module in browser environments.
|
|
5
|
-
* It uses Web Crypto API for randomBytes and crypto-browserify (via rollup alias) for hash functions.
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Get random bytes using the best available method for the environment
|
|
9
|
-
* In browser: uses Web Crypto API (crypto.getRandomValues)
|
|
10
|
-
* In Node.js: uses Node.js crypto.randomBytes
|
|
11
|
-
* @param size Number of bytes to generate
|
|
12
|
-
* @returns Buffer with random bytes
|
|
13
|
-
*/
|
|
14
|
-
export declare function randomBytes(size: number): Buffer;
|
|
15
|
-
/**
|
|
16
|
-
* Create hash - uses crypto-browserify in browser (via rollup alias) or Node.js crypto
|
|
17
|
-
* @param algorithm Hash algorithm (e.g., 'sha256', 'ripemd160')
|
|
18
|
-
* @returns Hash object
|
|
19
|
-
*/
|
|
20
|
-
export declare function createHash(algorithm: string): import("crypto").Hash;
|
|
21
|
-
/**
|
|
22
|
-
* Create HMAC - uses crypto-browserify in browser (via rollup alias) or Node.js crypto
|
|
23
|
-
* @param algorithm HMAC algorithm (e.g., 'sha256')
|
|
24
|
-
* @param key HMAC key
|
|
25
|
-
* @returns HMAC object
|
|
26
|
-
*/
|
|
27
|
-
export declare function createHmac(algorithm: string, key: string | Buffer): import("crypto").Hmac;
|
|
28
|
-
/**
|
|
29
|
-
* Create cipher - uses crypto-browserify in browser (via rollup alias) or Node.js crypto
|
|
30
|
-
* @param algorithm Cipher algorithm (e.g., 'aes-256-cbc')
|
|
31
|
-
* @param key Cipher key
|
|
32
|
-
* @param iv Initialization vector
|
|
33
|
-
* @returns Cipher object
|
|
34
|
-
*/
|
|
35
|
-
export declare function createCipheriv(algorithm: string, key: Buffer, iv: Buffer): import("crypto").Cipher;
|
|
36
|
-
/**
|
|
37
|
-
* Create decipher - uses crypto-browserify in browser (via rollup alias) or Node.js crypto
|
|
38
|
-
* @param algorithm Cipher algorithm (e.g., 'aes-256-cbc')
|
|
39
|
-
* @param key Cipher key
|
|
40
|
-
* @param iv Initialization vector
|
|
41
|
-
* @returns Decipher object
|
|
42
|
-
*/
|
|
43
|
-
export declare function createDecipheriv(algorithm: string, key: Buffer, iv: Buffer): import("crypto").Decipher;
|