viem 0.0.0-tsc-and-nodenext-20230405111908 → 0.0.0-tsc-and-nodenext-20230405114115

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.
@@ -1,7 +1,10 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.normalize = void 0;
4
- const idna_uts46_hx_1 = require("idna-uts46-hx");
7
+ const idna_uts46_hx_1 = __importDefault(require("idna-uts46-hx"));
5
8
  /**
6
9
  * @description Normalizes ENS name
7
10
  *
@@ -12,7 +15,7 @@ const idna_uts46_hx_1 = require("idna-uts46-hx");
12
15
  * @see https://docs.ens.domains/contract-api-reference/name-processing#normalising-names
13
16
  */
14
17
  function normalize(name) {
15
- return (0, idna_uts46_hx_1.toUnicode)(name, { useStd3ASCII: true });
18
+ return idna_uts46_hx_1.default.toUnicode(name, { useStd3ASCII: true });
16
19
  }
17
20
  exports.normalize = normalize;
18
21
  //# sourceMappingURL=normalize.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"normalize.js","sourceRoot":"","sources":["../../../../src/utils/ens/normalize.ts"],"names":[],"mappings":";;;AAAA,iDAAyC;AAEzC;;;;;;;;GAQG;AACH,SAAgB,SAAS,CAAC,IAAY;IACpC,OAAO,IAAA,yBAAS,EAAC,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAA;AAChD,CAAC;AAFD,8BAEC"}
1
+ {"version":3,"file":"normalize.js","sourceRoot":"","sources":["../../../../src/utils/ens/normalize.ts"],"names":[],"mappings":";;;;;;AAAA,kEAAiC;AAEjC;;;;;;;;GAQG;AACH,SAAgB,SAAS,CAAC,IAAY;IACpC,OAAO,uBAAK,CAAC,SAAS,CAAC,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAA;AACtD,CAAC;AAFD,8BAEC"}
@@ -1,4 +1,4 @@
1
- import { toUnicode } from 'idna-uts46-hx';
1
+ import uts46 from 'idna-uts46-hx';
2
2
  /**
3
3
  * @description Normalizes ENS name
4
4
  *
@@ -9,6 +9,6 @@ import { toUnicode } from 'idna-uts46-hx';
9
9
  * @see https://docs.ens.domains/contract-api-reference/name-processing#normalising-names
10
10
  */
11
11
  export function normalize(name) {
12
- return toUnicode(name, { useStd3ASCII: true });
12
+ return uts46.toUnicode(name, { useStd3ASCII: true });
13
13
  }
14
14
  //# sourceMappingURL=normalize.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"normalize.js","sourceRoot":"","sources":["../../../../src/utils/ens/normalize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAEzC;;;;;;;;GAQG;AACH,MAAM,UAAU,SAAS,CAAC,IAAY;IACpC,OAAO,SAAS,CAAC,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAA;AAChD,CAAC"}
1
+ {"version":3,"file":"normalize.js","sourceRoot":"","sources":["../../../../src/utils/ens/normalize.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,eAAe,CAAA;AAEjC;;;;;;;;GAQG;AACH,MAAM,UAAU,SAAS,CAAC,IAAY;IACpC,OAAO,KAAK,CAAC,SAAS,CAAC,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAA;AACtD,CAAC"}
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "isomorphic-ws": "5.0.0",
13
13
  "ws": "8.12.0"
14
14
  },
15
- "version": "0.0.0-tsc-and-nodenext-20230405111908",
15
+ "version": "0.0.0-tsc-and-nodenext-20230405114115",
16
16
  "files": [
17
17
  "dist",
18
18
  "!dist/*.tsbuildinfo",
@@ -1,4 +1,4 @@
1
- import { toUnicode } from 'idna-uts46-hx'
1
+ import uts46 from 'idna-uts46-hx'
2
2
 
3
3
  /**
4
4
  * @description Normalizes ENS name
@@ -10,5 +10,5 @@ import { toUnicode } from 'idna-uts46-hx'
10
10
  * @see https://docs.ens.domains/contract-api-reference/name-processing#normalising-names
11
11
  */
12
12
  export function normalize(name: string) {
13
- return toUnicode(name, { useStd3ASCII: true })
13
+ return uts46.toUnicode(name, { useStd3ASCII: true })
14
14
  }