@xylabs/sdk-js 6.0.7 → 6.0.9
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 +0 -125
- package/package.json +37 -39
package/README.md
CHANGED
|
@@ -2746,80 +2746,6 @@ insert(value): Promise<T>;
|
|
|
2746
2746
|
|
|
2747
2747
|
`Promise`\<`T`\>
|
|
2748
2748
|
|
|
2749
|
-
### <a id="AxiosJson"></a>AxiosJson
|
|
2750
|
-
|
|
2751
|
-
[**@xylabs/sdk-js**](#../README)
|
|
2752
|
-
|
|
2753
|
-
***
|
|
2754
|
-
|
|
2755
|
-
## Deprecated
|
|
2756
|
-
|
|
2757
|
-
use axiosJsonConfig instead
|
|
2758
|
-
|
|
2759
|
-
## Extends
|
|
2760
|
-
|
|
2761
|
-
- `Axios`
|
|
2762
|
-
|
|
2763
|
-
## Constructors
|
|
2764
|
-
|
|
2765
|
-
### Constructor
|
|
2766
|
-
|
|
2767
|
-
```ts
|
|
2768
|
-
new AxiosJson(config?): AxiosJson;
|
|
2769
|
-
```
|
|
2770
|
-
|
|
2771
|
-
### Parameters
|
|
2772
|
-
|
|
2773
|
-
#### config?
|
|
2774
|
-
|
|
2775
|
-
`RawAxiosJsonRequestConfig`
|
|
2776
|
-
|
|
2777
|
-
### Returns
|
|
2778
|
-
|
|
2779
|
-
`AxiosJson`
|
|
2780
|
-
|
|
2781
|
-
### Overrides
|
|
2782
|
-
|
|
2783
|
-
```ts
|
|
2784
|
-
Axios.constructor
|
|
2785
|
-
```
|
|
2786
|
-
|
|
2787
|
-
## Methods
|
|
2788
|
-
|
|
2789
|
-
### ~~axiosConfig()~~
|
|
2790
|
-
|
|
2791
|
-
```ts
|
|
2792
|
-
static axiosConfig(config?): RawAxiosJsonRequestConfig;
|
|
2793
|
-
```
|
|
2794
|
-
|
|
2795
|
-
### Parameters
|
|
2796
|
-
|
|
2797
|
-
#### config?
|
|
2798
|
-
|
|
2799
|
-
`RawAxiosJsonRequestConfig`
|
|
2800
|
-
|
|
2801
|
-
### Returns
|
|
2802
|
-
|
|
2803
|
-
`RawAxiosJsonRequestConfig`
|
|
2804
|
-
|
|
2805
|
-
***
|
|
2806
|
-
|
|
2807
|
-
### ~~create()~~
|
|
2808
|
-
|
|
2809
|
-
```ts
|
|
2810
|
-
static create(config?): Axios;
|
|
2811
|
-
```
|
|
2812
|
-
|
|
2813
|
-
### Parameters
|
|
2814
|
-
|
|
2815
|
-
#### config?
|
|
2816
|
-
|
|
2817
|
-
`RawAxiosJsonRequestConfig`
|
|
2818
|
-
|
|
2819
|
-
### Returns
|
|
2820
|
-
|
|
2821
|
-
`Axios`
|
|
2822
|
-
|
|
2823
2749
|
### <a id="Base"></a>Base
|
|
2824
2750
|
|
|
2825
2751
|
[**@xylabs/sdk-js**](#../README)
|
|
@@ -7392,33 +7318,6 @@ Custom error returned by errorFunc
|
|
|
7392
7318
|
const user = assertEx(getUser(), () => new UserNotFoundError('User not found'))
|
|
7393
7319
|
```
|
|
7394
7320
|
|
|
7395
|
-
### <a id="axiosJsonConfig"></a>axiosJsonConfig
|
|
7396
|
-
|
|
7397
|
-
[**@xylabs/sdk-js**](#../README)
|
|
7398
|
-
|
|
7399
|
-
***
|
|
7400
|
-
|
|
7401
|
-
```ts
|
|
7402
|
-
function axiosJsonConfig(config?): RawAxiosJsonRequestConfig;
|
|
7403
|
-
```
|
|
7404
|
-
|
|
7405
|
-
Creates an Axios config preconfigured for JSON requests with optional gzip compression.
|
|
7406
|
-
Request bodies exceeding `compressLength` (default 1024 bytes) are automatically gzip-compressed.
|
|
7407
|
-
|
|
7408
|
-
## Parameters
|
|
7409
|
-
|
|
7410
|
-
### config?
|
|
7411
|
-
|
|
7412
|
-
`RawAxiosJsonRequestConfig`\<`any`\>
|
|
7413
|
-
|
|
7414
|
-
Base Axios config, optionally including a `compressLength` threshold
|
|
7415
|
-
|
|
7416
|
-
## Returns
|
|
7417
|
-
|
|
7418
|
-
`RawAxiosJsonRequestConfig`
|
|
7419
|
-
|
|
7420
|
-
A fully configured Axios request config with JSON transforms
|
|
7421
|
-
|
|
7422
7321
|
### <a id="cloneContextWithoutSpan"></a>cloneContextWithoutSpan
|
|
7423
7322
|
|
|
7424
7323
|
[**@xylabs/sdk-js**](#../README)
|
|
@@ -15835,30 +15734,6 @@ Fallback message if no custom message is provided
|
|
|
15835
15734
|
|
|
15836
15735
|
`undefined`
|
|
15837
15736
|
|
|
15838
|
-
### <a id="axios"></a>axios
|
|
15839
|
-
|
|
15840
|
-
[**@xylabs/sdk-js**](#../README)
|
|
15841
|
-
|
|
15842
|
-
***
|
|
15843
|
-
|
|
15844
|
-
```ts
|
|
15845
|
-
const axios: Axios;
|
|
15846
|
-
```
|
|
15847
|
-
|
|
15848
|
-
## Deprecated
|
|
15849
|
-
|
|
15850
|
-
use axiosJson instead
|
|
15851
|
-
|
|
15852
|
-
### <a id="axiosJson"></a>axiosJson
|
|
15853
|
-
|
|
15854
|
-
[**@xylabs/sdk-js**](#../README)
|
|
15855
|
-
|
|
15856
|
-
***
|
|
15857
|
-
|
|
15858
|
-
```ts
|
|
15859
|
-
const axiosJson: Axios;
|
|
15860
|
-
```
|
|
15861
|
-
|
|
15862
15737
|
### <a id="bitsToNibbles"></a>bitsToNibbles
|
|
15863
15738
|
|
|
15864
15739
|
[**@xylabs/sdk-js**](#../README)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xylabs/sdk-js",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.9",
|
|
4
4
|
"description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xylabs",
|
|
@@ -44,52 +44,51 @@
|
|
|
44
44
|
"README.md"
|
|
45
45
|
],
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@xylabs/
|
|
48
|
-
"@xylabs/
|
|
49
|
-
"@xylabs/
|
|
50
|
-
"@xylabs/arraybuffer": "~6.0.
|
|
51
|
-
"@xylabs/
|
|
52
|
-
"@xylabs/
|
|
53
|
-
"@xylabs/
|
|
54
|
-
"@xylabs/
|
|
55
|
-
"@xylabs/
|
|
56
|
-
"@xylabs/
|
|
57
|
-
"@xylabs/
|
|
58
|
-
"@xylabs/
|
|
59
|
-
"@xylabs/
|
|
60
|
-
"@xylabs/
|
|
61
|
-
"@xylabs/
|
|
62
|
-
"@xylabs/
|
|
63
|
-
"@xylabs/
|
|
64
|
-
"@xylabs/
|
|
65
|
-
"@xylabs/
|
|
66
|
-
"@xylabs/
|
|
67
|
-
"@xylabs/
|
|
68
|
-
"@xylabs/platform": "~6.0.
|
|
69
|
-
"@xylabs/
|
|
70
|
-
"@xylabs/
|
|
71
|
-
"@xylabs/
|
|
72
|
-
"@xylabs/
|
|
73
|
-
"@xylabs/static-implements": "~6.0.
|
|
74
|
-
"@xylabs/
|
|
75
|
-
"@xylabs/
|
|
76
|
-
"@xylabs/telemetry
|
|
77
|
-
"@xylabs/timer": "~6.0.
|
|
78
|
-
"@xylabs/typeof": "~6.0.
|
|
79
|
-
"@xylabs/url": "~6.0.
|
|
80
|
-
"@xylabs/zod": "~6.0.
|
|
47
|
+
"@xylabs/array": "~6.0.9",
|
|
48
|
+
"@xylabs/base": "~6.0.9",
|
|
49
|
+
"@xylabs/creatable": "~6.0.9",
|
|
50
|
+
"@xylabs/arraybuffer": "~6.0.9",
|
|
51
|
+
"@xylabs/assert": "~6.0.9",
|
|
52
|
+
"@xylabs/decimal-precision": "~6.0.9",
|
|
53
|
+
"@xylabs/delay": "~6.0.9",
|
|
54
|
+
"@xylabs/enum": "~6.0.9",
|
|
55
|
+
"@xylabs/events": "~6.0.9",
|
|
56
|
+
"@xylabs/eth-address": "~6.0.9",
|
|
57
|
+
"@xylabs/fetch": "~6.0.9",
|
|
58
|
+
"@xylabs/exists": "~6.0.9",
|
|
59
|
+
"@xylabs/bignumber": "~6.0.9",
|
|
60
|
+
"@xylabs/buffer": "~6.0.9",
|
|
61
|
+
"@xylabs/api": "~6.0.9",
|
|
62
|
+
"@xylabs/error": "~6.0.9",
|
|
63
|
+
"@xylabs/hex": "~6.0.9",
|
|
64
|
+
"@xylabs/logger": "~6.0.9",
|
|
65
|
+
"@xylabs/object": "~6.0.9",
|
|
66
|
+
"@xylabs/function-name": "~6.0.9",
|
|
67
|
+
"@xylabs/profile": "~6.0.9",
|
|
68
|
+
"@xylabs/platform": "~6.0.9",
|
|
69
|
+
"@xylabs/forget": "~6.0.9",
|
|
70
|
+
"@xylabs/retry": "~6.0.9",
|
|
71
|
+
"@xylabs/promise": "~6.0.9",
|
|
72
|
+
"@xylabs/set": "~6.0.9",
|
|
73
|
+
"@xylabs/static-implements": "~6.0.9",
|
|
74
|
+
"@xylabs/storage": "~6.0.9",
|
|
75
|
+
"@xylabs/telemetry-exporter": "~6.0.9",
|
|
76
|
+
"@xylabs/telemetry": "~6.0.9",
|
|
77
|
+
"@xylabs/timer": "~6.0.9",
|
|
78
|
+
"@xylabs/typeof": "~6.0.9",
|
|
79
|
+
"@xylabs/url": "~6.0.9",
|
|
80
|
+
"@xylabs/zod": "~6.0.9"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
83
|
"@opentelemetry/api": "^1.9.1",
|
|
84
84
|
"@opentelemetry/sdk-trace-base": "^2.7.1",
|
|
85
|
-
"@xylabs/toolchain": "^8.1.
|
|
86
|
-
"@xylabs/tsconfig": "^8.1.
|
|
85
|
+
"@xylabs/toolchain": "^8.1.16",
|
|
86
|
+
"@xylabs/tsconfig": "^8.1.16",
|
|
87
87
|
"async-mutex": "^0.5.0",
|
|
88
88
|
"bn.js": "^5.2.3",
|
|
89
89
|
"buffer": "^6.0.3",
|
|
90
90
|
"eslint": "^10.4.1",
|
|
91
91
|
"ethers": "^6.16.0",
|
|
92
|
-
"pako": "^2.1.0",
|
|
93
92
|
"typescript": "^6.0.3",
|
|
94
93
|
"zod": "^4.4.3"
|
|
95
94
|
},
|
|
@@ -100,7 +99,6 @@
|
|
|
100
99
|
"bn.js": "^5.2",
|
|
101
100
|
"buffer": "^6.0",
|
|
102
101
|
"ethers": "^6.16",
|
|
103
|
-
"pako": "^2.1",
|
|
104
102
|
"zod": "^4.4"
|
|
105
103
|
},
|
|
106
104
|
"engines": {
|