/
githubmirror
/
deno
Обзор
Документация
Войти
/
githubmirror
/
deno
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
ext/node/polyfills/punycode.ts
48 строк
843 B
Nathan Whitaker
perf(node): lazy stdio + fix LazyEsmModuleLoader source consumption (#34440)
30 май 2026, 01:47
Не верифицирован
30 май 2026, 01:47
2da4f87
Код
Авторство
О чём код?
// Copyright 2018-2026 the Deno authors. MIT license. (function () { const { core } = __bootstrap; const { op_node_idna_punycode_decode, op_node_idna_punycode_encode, op_node_idna_punycode_to_ascii, op_node_idna_punycode_to_unicode, } = core.ops; const { ucs2 } = core.loadExtScript("ext:deno_node/internal/idna.ts"); const version = "2.1.0"; function toASCII(domain) { return op_node_idna_punycode_to_ascii(domain); } function toUnicode(domain) { return op_node_idna_punycode_to_unicode(domain); } function decode(domain) { return op_node_idna_punycode_decode(domain); } function encode(domain) { return op_node_idna_punycode_encode(domain); } return { default: { decode, encode, toASCII, toUnicode, ucs2, version, }, decode, encode, toASCII, toUnicode, ucs2, version, }; })();