feat: use module export

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
MiaoWoo 2020-04-01 17:53:12 +08:00
parent ee9ae408ec
commit 24fe3b9026
2 changed files with 3 additions and 4 deletions

View File

@ -4,7 +4,6 @@
const maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1 const maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
/** Bootstring parameters */ /** Bootstring parameters */
//@ts-ignore
const base = 36; const base = 36;
const tMin = 1; const tMin = 1;
const tMax = 26; const tMax = 26;
@ -440,4 +439,4 @@ const punycode = {
'toUnicode': toUnicode 'toUnicode': toUnicode
}; };
module.exports = punycode; export = punycode;

View File

@ -21,8 +21,8 @@
'use strict'; 'use strict';
var punycode = require('punycode'); import * as punycode from 'punycode'
// @ts-ignore
var util = { var util = {
isString: function (arg) { isString: function (arg) {
return typeof (arg) === 'string'; return typeof (arg) === 'string';