Skip to content

Commit 4778a6c

Browse files
JamesCullumgithub-actions[bot]
authored andcommitted
[skip_ci] v3.2.1: Build artifacts for Deno
1 parent c38c2cc commit 4778a6c

File tree

2 files changed

+753
-11665
lines changed

2 files changed

+753
-11665
lines changed

dist/main.cjs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
Object.defineProperty(exports, '__esModule', { value: true });
44

5-
var url = require('url');
65
var tldts = require('tldts');
76
var punycode = require('punycode');
87
var jose = require('jose');
@@ -1322,7 +1321,7 @@ function derToRaw(signature) {
13221321
}
13231322

13241323
function checkOrigin(str) {
1325-
const originUrl = new url.URL(str);
1324+
const originUrl = new URL(str);
13261325
const origin = originUrl.origin;
13271326

13281327
if (origin !== str) {
@@ -1357,7 +1356,7 @@ function checkUrl(value, name, rules = {}) {
13571356

13581357
let urlValue = null;
13591358
try {
1360-
urlValue = new url.URL(value);
1359+
urlValue = new URL(value);
13611360
} catch (_err) {
13621361
throw new Error(`${name} is not a valid eTLD+1/url`);
13631362
}
@@ -1544,7 +1543,7 @@ function randomValues(n) {
15441543
}
15451544

15461545
function getHostname(urlIn) {
1547-
return new url.URL(urlIn).hostname;
1546+
return new URL(urlIn).hostname;
15481547
}
15491548

15501549
async function getEmbeddedJwk(jwsHeader, alg) {

0 commit comments

Comments
 (0)