undici
Advanced tools
Comparing version 6.6.1 to 6.6.2
@@ -17,2 +17,5 @@ 'use strict' | ||
module.exports.Request = require('./lib/fetch/request').Request | ||
module.exports.WebSocket = require('./lib/websocket/websocket').WebSocket | ||
module.exports.EventSource = require('./lib/eventsource/eventsource').EventSource |
@@ -37,6 +37,10 @@ 'use strict' | ||
webidl.brandCheck = function (V, I, opts = undefined) { | ||
if (opts?.strict !== false && !(V instanceof I)) { | ||
throw new TypeError('Illegal invocation') | ||
if (opts?.strict !== false) { | ||
if (!(V instanceof I)) { | ||
throw new TypeError('Illegal invocation') | ||
} | ||
} else { | ||
return V?.[Symbol.toStringTag] === I.prototype[Symbol.toStringTag] | ||
if (V?.[Symbol.toStringTag] !== I.prototype[Symbol.toStringTag]) { | ||
throw new TypeError('Illegal invocation') | ||
} | ||
} | ||
@@ -43,0 +47,0 @@ } |
{ | ||
"name": "undici", | ||
"version": "6.6.1", | ||
"version": "6.6.2", | ||
"description": "An HTTP/1.1 client, written from scratch for Node.js", | ||
@@ -107,3 +107,3 @@ "homepage": "https://undici.nodejs.org", | ||
"abort-controller": "^3.0.0", | ||
"borp": "^0.5.0", | ||
"borp": "^0.9.1", | ||
"chai": "^4.3.4", | ||
@@ -110,0 +110,0 @@ "chai-as-promised": "^7.1.1", |
Sorry, the diff of this file is too big to display
1240961
22390