@twin.org/web 0.0.1-next.47 → 0.0.1-next.48

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/docs/changelog.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # @twin.org/web - Changelog
2
2
 
3
- ## 0.0.1-next.47
3
+ ## 0.0.1-next.48
4
4
 
5
5
  - Initial Release
@@ -44,7 +44,7 @@ The http method.
44
44
 
45
45
  Request to send to the endpoint.
46
46
 
47
- `string` | `Uint8Array`
47
+ `string` | `Uint8Array`\<`ArrayBufferLike`\>
48
48
 
49
49
  ##### options?
50
50
 
@@ -114,7 +114,7 @@ The response.
114
114
 
115
115
  ### fetchBinary()
116
116
 
117
- > `static` **fetchBinary**\<`T`\>(`source`, `url`, `method`, `requestData`?, `options`?): `Promise`\<`Uint8Array` \| `T`\>
117
+ > `static` **fetchBinary**\<`T`\>(`source`, `url`, `method`, `requestData`?, `options`?): `Promise`\<`Uint8Array`\<`ArrayBufferLike`\> \| `T`\>
118
118
 
119
119
  Perform a request for binary data.
120
120
 
@@ -144,7 +144,7 @@ The http method.
144
144
 
145
145
  ##### requestData?
146
146
 
147
- `Uint8Array`
147
+ `Uint8Array`\<`ArrayBufferLike`\>
148
148
 
149
149
  Request to send to the endpoint.
150
150
 
@@ -156,7 +156,7 @@ Options for sending the requests.
156
156
 
157
157
  #### Returns
158
158
 
159
- `Promise`\<`Uint8Array` \| `T`\>
159
+ `Promise`\<`Uint8Array`\<`ArrayBufferLike`\> \| `T`\>
160
160
 
161
161
  The response.
162
162
 
@@ -82,7 +82,7 @@ The crypto key.
82
82
 
83
83
  ### toRaw()
84
84
 
85
- > `static` **toRaw**(`jwk`): `Promise`\<\{ `publicKey`: `Uint8Array`; `privateKey`: `Uint8Array`; \}\>
85
+ > `static` **toRaw**(`jwk`): `Promise`\<\{ `publicKey`: `Uint8Array`\<`ArrayBufferLike`\>; `privateKey`: `Uint8Array`\<`ArrayBufferLike`\>; \}\>
86
86
 
87
87
  Convert the JWK to raw keys.
88
88
 
@@ -96,6 +96,6 @@ The JWK to convert to raw.
96
96
 
97
97
  #### Returns
98
98
 
99
- `Promise`\<\{ `publicKey`: `Uint8Array`; `privateKey`: `Uint8Array`; \}\>
99
+ `Promise`\<\{ `publicKey`: `Uint8Array`\<`ArrayBufferLike`\>; `privateKey`: `Uint8Array`\<`ArrayBufferLike`\>; \}\>
100
100
 
101
101
  The crypto key.
@@ -96,7 +96,7 @@ The encoded token.
96
96
 
97
97
  ### decode()
98
98
 
99
- > `static` **decode**\<`T`, `U`\>(`token`): `Promise`\<\{ `header`: `T`; `payload`: `U`; `signature`: `Uint8Array`; \}\>
99
+ > `static` **decode**\<`T`, `U`\>(`token`): `Promise`\<\{ `header`: `T`; `payload`: `U`; `signature`: `Uint8Array`\<`ArrayBufferLike`\>; \}\>
100
100
 
101
101
  Decode a token.
102
102
 
@@ -116,7 +116,7 @@ The token to decode.
116
116
 
117
117
  #### Returns
118
118
 
119
- `Promise`\<\{ `header`: `T`; `payload`: `U`; `signature`: `Uint8Array`; \}\>
119
+ `Promise`\<\{ `header`: `T`; `payload`: `U`; `signature`: `Uint8Array`\<`ArrayBufferLike`\>; \}\>
120
120
 
121
121
  The decoded payload.
122
122
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/web",
3
- "version": "0.0.1-next.47",
3
+ "version": "0.0.1-next.48",
4
4
  "description": "Contains classes for use with web operations",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,8 +14,8 @@
14
14
  "node": ">=20.0.0"
15
15
  },
16
16
  "dependencies": {
17
- "@twin.org/core": "0.0.1-next.47",
18
- "@twin.org/crypto": "0.0.1-next.47",
17
+ "@twin.org/core": "0.0.1-next.48",
18
+ "@twin.org/crypto": "0.0.1-next.48",
19
19
  "@twin.org/nameof": "next",
20
20
  "jose": "6.0.8"
21
21
  },