@avalabs/core-utils-sdk 3.1.0-alpha.48 → 3.1.0-alpha.49
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/index.d.ts +2 -1
- package/esm/encryptAnalyticsData.js +1 -1
- package/esm/httpClient.d.ts +2 -1
- package/esm/tokenUnit.d.ts +2 -1
- package/esm/types/index.d.ts +1 -1
- package/package.json +12 -3
- /package/dist/{index.js → index.cjs} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -261,4 +261,5 @@ declare class TokenUnit {
|
|
|
261
261
|
private cloneWithValue;
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
-
export {
|
|
264
|
+
export { BIG_TEN, BIG_ZERO, HttpClient, TokenUnit, UNSUPPORTED_URL_ERROR, avaxCtoX, avaxPtoC, avaxXtoC, balanceToDisplayValue, bigIntToString, bigToBN, bigToBigInt, bigToLocaleString, bigintToBig, bnToAvaxC, bnToAvaxP, bnToAvaxX, bnToBig, bnToBigAvaxC, bnToBigAvaxP, bnToBigAvaxX, bnToLocaleString, encryptAnalyticsData, formatAndLog, formatTime, hexToBN, hexToBytes, ipfsResolver, noop, now, numberToBN, numberToBNAvaxC, numberToBNAvaxP, numberToBNAvaxX, padStart, promiseResolveWithBackoff, repeat, resolve, stringToBN, strip0x, truncateAddress, urlContainsCID, wait, weiToAvax, weiToNAvax };
|
|
265
|
+
export type { AcceptedTypes, HttpOptions, Maybe };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{CipherSuite as e,
|
|
1
|
+
import{CipherSuite as e,Aes256Gcm as n,HkdfSha512 as r,DhkemP521HkdfSha512 as t}from"@hpke/core";const o=new e({kem:new t,kdf:new r,aead:new n});async function i(e,n,r){if(!e||!n)throw new Error("Encryption setting missing");const t=await o.kem.deserializePublicKey(Buffer.from(n,"base64")),i=await o.createSenderContext({recipientPublicKey:t}),a=(new TextEncoder).encode(e),c=(new TextEncoder).encode(r),f=await i.seal(c,a);return{data:Buffer.from(f).toString("base64"),enc:Buffer.from(i.enc).toString("base64"),keyID:e}}export{i as encryptAnalyticsData};
|
package/esm/httpClient.d.ts
CHANGED
package/esm/tokenUnit.d.ts
CHANGED
package/esm/types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@avalabs/core-utils-sdk",
|
|
3
|
-
"version": "3.1.0-alpha.
|
|
3
|
+
"version": "3.1.0-alpha.49",
|
|
4
4
|
"license": "Limited Ecosystem License",
|
|
5
5
|
"private": false,
|
|
6
|
-
"
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "dist/index.cjs",
|
|
7
8
|
"module": "esm/index.js",
|
|
8
9
|
"typings": "dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./esm/index.d.ts",
|
|
13
|
+
"import": "./esm/index.js",
|
|
14
|
+
"require": "./dist/index.cjs",
|
|
15
|
+
"default": "./esm/index.js"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
9
18
|
"files": [
|
|
10
19
|
"dist",
|
|
11
20
|
"esm"
|
|
@@ -35,5 +44,5 @@
|
|
|
35
44
|
"bn.js": "^5.2.1",
|
|
36
45
|
"ethers": "^6.7.1"
|
|
37
46
|
},
|
|
38
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "d12930d90067eeb62294faeaedff83043bfd535b"
|
|
39
48
|
}
|
|
File without changes
|