feat: use module export
Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
parent
77301e0130
commit
c596280d8d
@ -4,7 +4,6 @@
|
||||
const maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
|
||||
|
||||
/** Bootstring parameters */
|
||||
//@ts-ignore
|
||||
const base = 36;
|
||||
const tMin = 1;
|
||||
const tMax = 26;
|
||||
@ -440,4 +439,4 @@ const punycode = {
|
||||
'toUnicode': toUnicode
|
||||
};
|
||||
|
||||
module.exports = punycode;
|
||||
export = punycode;
|
||||
|
@ -21,8 +21,8 @@
|
||||
|
||||
'use strict';
|
||||
|
||||
var punycode = require('punycode');
|
||||
// @ts-ignore
|
||||
import * as punycode from 'punycode'
|
||||
|
||||
var util = {
|
||||
isString: function (arg) {
|
||||
return typeof (arg) === 'string';
|
||||
|
Loading…
Reference in New Issue
Block a user