@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 CHANGED
@@ -261,4 +261,5 @@ declare class TokenUnit {
261
261
  private cloneWithValue;
262
262
  }
263
263
 
264
- export { AcceptedTypes, BIG_TEN, BIG_ZERO, HttpClient, HttpOptions, Maybe, 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 };
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,DhkemP521HkdfSha512 as n,HkdfSha512 as r,Aes256Gcm as t}from"@hpke/core";const o=new e({kem:new n,kdf:new r,aead:new t});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};
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};
@@ -13,4 +13,5 @@ declare class HttpClient {
13
13
  private fetchWithTimeout;
14
14
  }
15
15
 
16
- export { HttpClient, HttpOptions };
16
+ export { HttpClient };
17
+ export type { HttpOptions };
@@ -55,4 +55,5 @@ declare class TokenUnit {
55
55
  private cloneWithValue;
56
56
  }
57
57
 
58
- export { AcceptedTypes, TokenUnit };
58
+ export { TokenUnit };
59
+ export type { AcceptedTypes };
@@ -1,3 +1,3 @@
1
1
  type Maybe<T> = T | null | undefined;
2
2
 
3
- export { Maybe };
3
+ export type { Maybe };
package/package.json CHANGED
@@ -1,11 +1,20 @@
1
1
  {
2
2
  "name": "@avalabs/core-utils-sdk",
3
- "version": "3.1.0-alpha.48",
3
+ "version": "3.1.0-alpha.49",
4
4
  "license": "Limited Ecosystem License",
5
5
  "private": false,
6
- "main": "dist/index.js",
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": "7f969cb12149fa2e38965142542bec5d220a1281"
47
+ "gitHead": "d12930d90067eeb62294faeaedff83043bfd535b"
39
48
  }
File without changes