From 698d77b196e9fdf11dd2a37e71b92a3ea6c1997c Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Sat, 14 Mar 2026 21:16:39 -0700 Subject: [PATCH 1/2] test: use modern supported punycode --- package.json | 1 + test/domain.ts | 2 +- test/email.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e040f09..7663ce6 100755 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "eslint-config-prettier": "^8.6.0", "eslint-plugin-prettier": "^4.2.1", "prettier": "^2.8.4", + "punycode": "^2.3.1", "typescript": "4.9.x" }, "scripts": { diff --git a/test/domain.ts b/test/domain.ts index 7bea23c..fb6ff8f 100755 --- a/test/domain.ts +++ b/test/domain.ts @@ -1,4 +1,4 @@ -import * as Punycode from 'punycode'; +import * as Punycode from 'punycode/'; import { expect } from '@hapi/code'; import * as Lab from '@hapi/lab'; diff --git a/test/email.ts b/test/email.ts index f67b3e6..b93043f 100755 --- a/test/email.ts +++ b/test/email.ts @@ -1,4 +1,4 @@ -import * as Punycode from 'punycode'; +import * as Punycode from 'punycode/'; import { expect } from '@hapi/code'; import * as Lab from '@hapi/lab'; From e0b226078f35df5c59aef6ec98dc75a8bb91ad44 Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Tue, 31 Mar 2026 21:01:48 -0700 Subject: [PATCH 2/2] update based on mathiasbynens/punycode.js#122 --- package.json | 2 +- test/domain.ts | 2 +- test/email.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 7663ce6..159a9b8 100755 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "eslint-config-prettier": "^8.6.0", "eslint-plugin-prettier": "^4.2.1", "prettier": "^2.8.4", - "punycode": "^2.3.1", + "punycode.js": "^2.3.1", "typescript": "4.9.x" }, "scripts": { diff --git a/test/domain.ts b/test/domain.ts index fb6ff8f..84af12f 100755 --- a/test/domain.ts +++ b/test/domain.ts @@ -1,4 +1,4 @@ -import * as Punycode from 'punycode/'; +import * as Punycode from 'punycode.js'; import { expect } from '@hapi/code'; import * as Lab from '@hapi/lab'; diff --git a/test/email.ts b/test/email.ts index b93043f..f540055 100755 --- a/test/email.ts +++ b/test/email.ts @@ -1,4 +1,4 @@ -import * as Punycode from 'punycode/'; +import * as Punycode from 'punycode.js'; import { expect } from '@hapi/code'; import * as Lab from '@hapi/lab';