@rlajous/sdk-core 1.0.0 → 1.0.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/client-base.js +3 -3
- package/dist/esm/errors/authentication.js +1 -1
- package/dist/esm/errors/index.js +6 -6
- package/dist/esm/errors/network.js +1 -1
- package/dist/esm/errors/not-found.js +1 -1
- package/dist/esm/errors/rate-limit.js +1 -1
- package/dist/esm/errors/validation.js +1 -1
- package/dist/esm/http/client.js +3 -3
- package/dist/esm/http/index.js +2 -2
- package/dist/esm/index.js +6 -6
- package/dist/esm/types/index.js +3 -3
- package/dist/esm/utils/address-validation.js +1 -1
- package/dist/esm/utils/index.js +1 -1
- package/package.json +2 -2
package/dist/esm/client-base.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DEFAULT_CONFIG, buildBaseUrl } from './config';
|
|
2
|
-
import { HttpClient, } from './http';
|
|
3
|
-
import { AuthenticationError } from './errors';
|
|
1
|
+
import { DEFAULT_CONFIG, buildBaseUrl } from './config.js';
|
|
2
|
+
import { HttpClient, } from './http/index.js';
|
|
3
|
+
import { AuthenticationError } from './errors/index.js';
|
|
4
4
|
/**
|
|
5
5
|
* Base client class for Webacy SDK
|
|
6
6
|
*
|
package/dist/esm/errors/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { WebacyError } from './base';
|
|
2
|
-
export { AuthenticationError } from './authentication';
|
|
3
|
-
export { RateLimitError } from './rate-limit';
|
|
4
|
-
export { ValidationError } from './validation';
|
|
5
|
-
export { NotFoundError } from './not-found';
|
|
6
|
-
export { NetworkError } from './network';
|
|
1
|
+
export { WebacyError } from './base.js';
|
|
2
|
+
export { AuthenticationError } from './authentication.js';
|
|
3
|
+
export { RateLimitError } from './rate-limit.js';
|
|
4
|
+
export { ValidationError } from './validation.js';
|
|
5
|
+
export { NotFoundError } from './not-found.js';
|
|
6
|
+
export { NetworkError } from './network.js';
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/http/client.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { WebacyError, AuthenticationError, RateLimitError, ValidationError, NotFoundError, NetworkError, } from '../errors';
|
|
2
|
-
import { DEFAULT_RETRY_CONFIG, calculateRetryDelay, isRetryableStatusCode, sleep, } from './retry';
|
|
3
|
-
import { defaultLogger } from '../config';
|
|
1
|
+
import { WebacyError, AuthenticationError, RateLimitError, ValidationError, NotFoundError, NetworkError, } from '../errors/index.js';
|
|
2
|
+
import { DEFAULT_RETRY_CONFIG, calculateRetryDelay, isRetryableStatusCode, sleep, } from './retry.js';
|
|
3
|
+
import { defaultLogger } from '../config.js';
|
|
4
4
|
/**
|
|
5
5
|
* HTTP client with retry support and interceptors
|
|
6
6
|
*/
|
package/dist/esm/http/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { HttpClient, } from './client';
|
|
2
|
-
export { DEFAULT_RETRY_CONFIG, calculateRetryDelay, isRetryableStatusCode, sleep, } from './retry';
|
|
1
|
+
export { HttpClient, } from './client.js';
|
|
2
|
+
export { DEFAULT_RETRY_CONFIG, calculateRetryDelay, isRetryableStatusCode, sleep, } from './retry.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// Configuration
|
|
2
|
-
export { DEFAULT_CONFIG, buildBaseUrl, defaultLogger, } from './config';
|
|
2
|
+
export { DEFAULT_CONFIG, buildBaseUrl, defaultLogger, } from './config.js';
|
|
3
3
|
// Base client
|
|
4
|
-
export { BaseClient } from './client-base';
|
|
4
|
+
export { BaseClient } from './client-base.js';
|
|
5
5
|
// HTTP client
|
|
6
|
-
export { HttpClient, DEFAULT_RETRY_CONFIG, } from './http';
|
|
6
|
+
export { HttpClient, DEFAULT_RETRY_CONFIG, } from './http/index.js';
|
|
7
7
|
// Errors
|
|
8
|
-
export { WebacyError, AuthenticationError, RateLimitError, ValidationError, NotFoundError, NetworkError, } from './errors';
|
|
8
|
+
export { WebacyError, AuthenticationError, RateLimitError, ValidationError, NotFoundError, NetworkError, } from './errors/index.js';
|
|
9
9
|
// Types
|
|
10
|
-
export { Chain, ChainCompatibility, getChainCompatibility, isEvmChain, CHAIN_IDS, CHAIN_NAMES, RiskModule, RiskScore, RiskLevel, TypeOfAddress, TokenStandard, } from './types';
|
|
10
|
+
export { Chain, ChainCompatibility, getChainCompatibility, isEvmChain, CHAIN_IDS, CHAIN_NAMES, RiskModule, RiskScore, RiskLevel, TypeOfAddress, TokenStandard, } from './types/index.js';
|
|
11
11
|
// Utilities
|
|
12
|
-
export { isValidAddress, isValidEvmAddress, isValidSolanaAddress, isValidBitcoinAddress, isValidTonAddress, isValidSuiAddress, isValidStellarAddress, normalizeAddress, normalizeEvmAddress, } from './utils';
|
|
12
|
+
export { isValidAddress, isValidEvmAddress, isValidSolanaAddress, isValidBitcoinAddress, isValidTonAddress, isValidSuiAddress, isValidStellarAddress, normalizeAddress, normalizeEvmAddress, } from './utils/index.js';
|
|
13
13
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/types/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Chain, ChainCompatibility, getChainCompatibility, isEvmChain, CHAIN_IDS, CHAIN_NAMES, } from './chain';
|
|
2
|
-
export { RiskModule } from './modules';
|
|
3
|
-
export { RiskScore, RiskLevel, TypeOfAddress, TokenStandard } from './common';
|
|
1
|
+
export { Chain, ChainCompatibility, getChainCompatibility, isEvmChain, CHAIN_IDS, CHAIN_NAMES, } from './chain.js';
|
|
2
|
+
export { RiskModule } from './modules.js';
|
|
3
|
+
export { RiskScore, RiskLevel, TypeOfAddress, TokenStandard } from './common.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/utils/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { isValidAddress, isValidEvmAddress, isValidSolanaAddress, isValidBitcoinAddress, isValidTonAddress, isValidSuiAddress, isValidStellarAddress, normalizeAddress, normalizeEvmAddress, } from './address-validation';
|
|
1
|
+
export { isValidAddress, isValidEvmAddress, isValidSolanaAddress, isValidBitcoinAddress, isValidTonAddress, isValidSuiAddress, isValidStellarAddress, normalizeAddress, normalizeEvmAddress, } from './address-validation.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rlajous/sdk-core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Core utilities for Webacy SDK packages",
|
|
5
5
|
"author": "Webacy",
|
|
6
6
|
"license": "MIT",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"build:esm": "tsc -p tsconfig.esm.json",
|
|
54
54
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
55
55
|
"build:types": "tsc -p tsconfig.types.json",
|
|
56
|
-
"postbuild": "echo '{\"type\":\"module\"}' > dist/esm/package.json && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json",
|
|
56
|
+
"postbuild": "node ../../scripts/fix-esm-imports.mjs dist/esm && echo '{\"type\":\"module\"}' > dist/esm/package.json && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json",
|
|
57
57
|
"clean": "rm -rf dist",
|
|
58
58
|
"typecheck": "tsc --noEmit",
|
|
59
59
|
"test": "vitest run",
|