Comparing version 0.11.5 to 0.11.6
{ | ||
"name": "seroval", | ||
"type": "module", | ||
"version": "0.11.5", | ||
"version": "0.11.6", | ||
"files": [ | ||
@@ -69,3 +69,3 @@ "dist", | ||
}, | ||
"gitHead": "342abd2cfe1889f1e6dc8cbdd44b36def8aeaaef" | ||
"gitHead": "5eacc5d6364759e592c72e1e49ab0f2a84375eea" | ||
} |
@@ -673,31 +673,39 @@ /* eslint-disable no-await-in-loop */ | ||
if (ctx.features & Feature.WebAPI) { | ||
switch (currentClass) { | ||
case URL: | ||
return createURLNode(id, current as unknown as URL); | ||
case URLSearchParams: | ||
return createURLSearchParamsNode(id, current as unknown as URLSearchParams); | ||
case Blob: | ||
return createBlobNode(ctx, id, current as unknown as Blob); | ||
case File: | ||
return createFileNode(ctx, id, current as unknown as File); | ||
case Headers: | ||
return generateHeadersNode(ctx, id, current as unknown as Headers); | ||
case FormData: | ||
return generateFormDataNode(ctx, id, current as unknown as FormData); | ||
case Request: | ||
return generateRequestNode(ctx, id, current as unknown as Request); | ||
case Response: | ||
return generateResponseNode(ctx, id, current as unknown as Response); | ||
case Event: | ||
return generateEventNode(ctx, id, current as unknown as Event); | ||
case CustomEvent: | ||
return generateCustomEventNode(ctx, id, current as unknown as CustomEvent); | ||
case DOMException: | ||
return createDOMExceptionNode(id, current as unknown as DOMException); | ||
default: | ||
break; | ||
if (typeof URL !== 'undefined' && currentClass === URL) { | ||
return createURLNode(id, current as unknown as URL); | ||
} | ||
if (typeof URLSearchParams !== 'undefined' && currentClass === URLSearchParams) { | ||
return createURLSearchParamsNode(id, current as unknown as URLSearchParams); | ||
} | ||
if (typeof Blob !== 'undefined' && currentClass === Blob) { | ||
return createBlobNode(ctx, id, current as unknown as Blob); | ||
} | ||
if (typeof File !== 'undefined' && currentClass === File) { | ||
return createFileNode(ctx, id, current as unknown as File); | ||
} | ||
if (typeof Headers !== 'undefined' && currentClass === Headers) { | ||
return generateHeadersNode(ctx, id, current as unknown as Headers); | ||
} | ||
if (typeof FormData !== 'undefined' && currentClass === FormData) { | ||
return generateFormDataNode(ctx, id, current as unknown as FormData); | ||
} | ||
if (typeof Request !== 'undefined' && currentClass === Request) { | ||
return generateRequestNode(ctx, id, current as unknown as Request); | ||
} | ||
if (typeof Response !== 'undefined' && currentClass === Response) { | ||
return generateResponseNode(ctx, id, current as unknown as Response); | ||
} | ||
if (typeof Event !== 'undefined' && currentClass === Event) { | ||
return generateEventNode(ctx, id, current as unknown as Event); | ||
} | ||
if (typeof CustomEvent !== 'undefined' && currentClass === CustomEvent) { | ||
return generateCustomEventNode(ctx, id, current as unknown as CustomEvent); | ||
} | ||
if (typeof DOMException !== 'undefined' && currentClass === DOMException) { | ||
return createDOMExceptionNode(id, current as unknown as DOMException); | ||
} | ||
} | ||
if ( | ||
(ctx.features & Feature.AggregateError) | ||
&& typeof AggregateError !== 'undefined' | ||
&& (currentClass === AggregateError || current instanceof AggregateError) | ||
@@ -704,0 +712,0 @@ ) { |
@@ -796,34 +796,39 @@ /* eslint-disable no-await-in-loop */ | ||
// Web APIs | ||
// Web APIs | ||
if (ctx.features & Feature.WebAPI) { | ||
switch (currentClass) { | ||
case URL: | ||
return createURLNode(id, current as unknown as URL); | ||
case URLSearchParams: | ||
return createURLSearchParamsNode(id, current as unknown as URLSearchParams); | ||
case Headers: | ||
return generateHeadersNode(ctx, id, current as unknown as Headers); | ||
case FormData: | ||
return generateFormDataNode(ctx, id, current as unknown as FormData); | ||
case ReadableStream: | ||
return generateReadableStreamNode(ctx, id, current as unknown as ReadableStream); | ||
case Request: | ||
return generateRequestNode(ctx, id, current as unknown as Request); | ||
case Response: | ||
return generateResponseNode(ctx, id, current as unknown as Response); | ||
case Event: | ||
return generateEventNode(ctx, id, current as unknown as Event); | ||
case CustomEvent: | ||
return generateCustomEventNode(ctx, id, current as unknown as CustomEvent); | ||
case DOMException: | ||
return createDOMExceptionNode(id, current as unknown as DOMException); | ||
default: | ||
break; | ||
if (typeof URL !== 'undefined' && currentClass === URL) { | ||
return createURLNode(id, current as unknown as URL); | ||
} | ||
if (typeof URLSearchParams !== 'undefined' && currentClass === URLSearchParams) { | ||
return createURLSearchParamsNode(id, current as unknown as URLSearchParams); | ||
} | ||
if (typeof Headers !== 'undefined' && currentClass === Headers) { | ||
return generateHeadersNode(ctx, id, current as unknown as Headers); | ||
} | ||
if (typeof FormData !== 'undefined' && currentClass === FormData) { | ||
return generateFormDataNode(ctx, id, current as unknown as FormData); | ||
} | ||
if (typeof ReadableStream !== 'undefined' && currentClass === ReadableStream) { | ||
return generateReadableStreamNode(ctx, id, current as unknown as ReadableStream); | ||
} | ||
if (typeof Request !== 'undefined' && currentClass === Request) { | ||
return generateRequestNode(ctx, id, current as unknown as Request); | ||
} | ||
if (typeof Response !== 'undefined' && currentClass === Response) { | ||
return generateResponseNode(ctx, id, current as unknown as Response); | ||
} | ||
if (typeof Event !== 'undefined' && currentClass === Event) { | ||
return generateEventNode(ctx, id, current as unknown as Event); | ||
} | ||
if (typeof CustomEvent !== 'undefined' && currentClass === CustomEvent) { | ||
return generateCustomEventNode(ctx, id, current as unknown as CustomEvent); | ||
} | ||
if (typeof DOMException !== 'undefined' && currentClass === DOMException) { | ||
return createDOMExceptionNode(id, current as unknown as DOMException); | ||
} | ||
} | ||
if ( | ||
(ctx.features & Feature.AggregateError) | ||
&& ( | ||
currentClass === AggregateError | ||
|| current instanceof AggregateError | ||
) | ||
&& typeof AggregateError !== 'undefined' | ||
&& (currentClass === AggregateError || current instanceof AggregateError) | ||
) { | ||
@@ -830,0 +835,0 @@ return generateAggregateErrorNode(ctx, id, current as unknown as AggregateError); |
@@ -558,27 +558,28 @@ /* eslint-disable @typescript-eslint/no-use-before-define */ | ||
if (ctx.features & Feature.WebAPI) { | ||
switch (currentClass) { | ||
case URL: | ||
return createURLNode(id, current as unknown as URL); | ||
case URLSearchParams: | ||
return createURLSearchParamsNode(id, current as unknown as URLSearchParams); | ||
case Headers: | ||
return generateHeadersNode(ctx, id, current as unknown as Headers); | ||
case FormData: | ||
return generateFormDataNode(ctx, id, current as unknown as FormData); | ||
case Event: | ||
return generateEventNode(ctx, id, current as unknown as Event); | ||
case CustomEvent: | ||
return generateCustomEventNode(ctx, id, current as unknown as CustomEvent); | ||
case DOMException: | ||
return createDOMExceptionNode(id, current as unknown as DOMException); | ||
default: | ||
break; | ||
if (typeof URL !== 'undefined' && currentClass === URL) { | ||
return createURLNode(id, current as unknown as URL); | ||
} | ||
if (typeof URLSearchParams !== 'undefined' && currentClass === URLSearchParams) { | ||
return createURLSearchParamsNode(id, current as unknown as URLSearchParams); | ||
} | ||
if (typeof Headers !== 'undefined' && currentClass === Headers) { | ||
return generateHeadersNode(ctx, id, current as unknown as Headers); | ||
} | ||
if (typeof FormData !== 'undefined' && currentClass === FormData) { | ||
return generateFormDataNode(ctx, id, current as unknown as FormData); | ||
} | ||
if (typeof Event !== 'undefined' && currentClass === Event) { | ||
return generateEventNode(ctx, id, current as unknown as Event); | ||
} | ||
if (typeof CustomEvent !== 'undefined' && currentClass === CustomEvent) { | ||
return generateCustomEventNode(ctx, id, current as unknown as CustomEvent); | ||
} | ||
if (typeof DOMException !== 'undefined' && currentClass === DOMException) { | ||
return createDOMExceptionNode(id, current as unknown as DOMException); | ||
} | ||
} | ||
if ( | ||
(ctx.features & Feature.AggregateError) | ||
&& ( | ||
currentClass === AggregateError | ||
|| current instanceof AggregateError | ||
) | ||
&& typeof AggregateError !== 'undefined' | ||
&& (currentClass === AggregateError || current instanceof AggregateError) | ||
) { | ||
@@ -585,0 +586,0 @@ return generateAggregateErrorNode(ctx, id, current as unknown as AggregateError); |
@@ -129,9 +129,8 @@ import { BIGINT_FLAG, Feature } from './compat'; | ||
if (ctx.features & Feature.WebAPI) { | ||
switch (currentClass) { | ||
case Headers: | ||
case File: | ||
return false; | ||
default: | ||
break; | ||
if (typeof Headers !== 'undefined' && currentClass === Headers) { | ||
return false; | ||
} | ||
if (typeof File !== 'undefined' && currentClass === File) { | ||
return false; | ||
} | ||
} | ||
@@ -138,0 +137,0 @@ if (ctx.features & Feature.Symbol) { |
@@ -672,31 +672,39 @@ /* eslint-disable no-await-in-loop */ | ||
if (ctx.features & Feature.WebAPI) { | ||
switch (currentClass) { | ||
case URL: | ||
return createURLNode(id, current as unknown as URL); | ||
case URLSearchParams: | ||
return createURLSearchParamsNode(id, current as unknown as URLSearchParams); | ||
case Blob: | ||
return createBlobNode(ctx, id, current as unknown as Blob); | ||
case File: | ||
return createFileNode(ctx, id, current as unknown as File); | ||
case Headers: | ||
return generateHeadersNode(ctx, id, current as unknown as Headers); | ||
case FormData: | ||
return generateFormDataNode(ctx, id, current as unknown as FormData); | ||
case Request: | ||
return generateRequestNode(ctx, id, current as unknown as Request); | ||
case Response: | ||
return generateResponseNode(ctx, id, current as unknown as Response); | ||
case Event: | ||
return generateEventNode(ctx, id, current as unknown as Event); | ||
case CustomEvent: | ||
return generateCustomEventNode(ctx, id, current as unknown as CustomEvent); | ||
case DOMException: | ||
return createDOMExceptionNode(id, current as unknown as DOMException); | ||
default: | ||
break; | ||
if (typeof URL !== 'undefined' && currentClass === URL) { | ||
return createURLNode(id, current as unknown as URL); | ||
} | ||
if (typeof URLSearchParams !== 'undefined' && currentClass === URLSearchParams) { | ||
return createURLSearchParamsNode(id, current as unknown as URLSearchParams); | ||
} | ||
if (typeof Blob !== 'undefined' && currentClass === Blob) { | ||
return createBlobNode(ctx, id, current as unknown as Blob); | ||
} | ||
if (typeof File !== 'undefined' && currentClass === File) { | ||
return createFileNode(ctx, id, current as unknown as File); | ||
} | ||
if (typeof Headers !== 'undefined' && currentClass === Headers) { | ||
return generateHeadersNode(ctx, id, current as unknown as Headers); | ||
} | ||
if (typeof FormData !== 'undefined' && currentClass === FormData) { | ||
return generateFormDataNode(ctx, id, current as unknown as FormData); | ||
} | ||
if (typeof Request !== 'undefined' && currentClass === Request) { | ||
return generateRequestNode(ctx, id, current as unknown as Request); | ||
} | ||
if (typeof Response !== 'undefined' && currentClass === Response) { | ||
return generateResponseNode(ctx, id, current as unknown as Response); | ||
} | ||
if (typeof Event !== 'undefined' && currentClass === Event) { | ||
return generateEventNode(ctx, id, current as unknown as Event); | ||
} | ||
if (typeof CustomEvent !== 'undefined' && currentClass === CustomEvent) { | ||
return generateCustomEventNode(ctx, id, current as unknown as CustomEvent); | ||
} | ||
if (typeof DOMException !== 'undefined' && currentClass === DOMException) { | ||
return createDOMExceptionNode(id, current as unknown as DOMException); | ||
} | ||
} | ||
if ( | ||
(ctx.features & Feature.AggregateError) | ||
&& typeof AggregateError !== 'undefined' | ||
&& (currentClass === AggregateError || current instanceof AggregateError) | ||
@@ -703,0 +711,0 @@ ) { |
@@ -558,27 +558,28 @@ /* eslint-disable @typescript-eslint/no-use-before-define */ | ||
if (ctx.features & Feature.WebAPI) { | ||
switch (currentClass) { | ||
case URL: | ||
return createURLNode(id, current as unknown as URL); | ||
case URLSearchParams: | ||
return createURLSearchParamsNode(id, current as unknown as URLSearchParams); | ||
case Headers: | ||
return generateHeadersNode(ctx, id, current as unknown as Headers); | ||
case FormData: | ||
return generateFormDataNode(ctx, id, current as unknown as FormData); | ||
case Event: | ||
return generateEventNode(ctx, id, current as unknown as Event); | ||
case CustomEvent: | ||
return generateCustomEventNode(ctx, id, current as unknown as CustomEvent); | ||
case DOMException: | ||
return createDOMExceptionNode(id, current as unknown as DOMException); | ||
default: | ||
break; | ||
if (typeof URL !== 'undefined' && currentClass === URL) { | ||
return createURLNode(id, current as unknown as URL); | ||
} | ||
if (typeof URLSearchParams !== 'undefined' && currentClass === URLSearchParams) { | ||
return createURLSearchParamsNode(id, current as unknown as URLSearchParams); | ||
} | ||
if (typeof Headers !== 'undefined' && currentClass === Headers) { | ||
return generateHeadersNode(ctx, id, current as unknown as Headers); | ||
} | ||
if (typeof FormData !== 'undefined' && currentClass === FormData) { | ||
return generateFormDataNode(ctx, id, current as unknown as FormData); | ||
} | ||
if (typeof Event !== 'undefined' && currentClass === Event) { | ||
return generateEventNode(ctx, id, current as unknown as Event); | ||
} | ||
if (typeof CustomEvent !== 'undefined' && currentClass === CustomEvent) { | ||
return generateCustomEventNode(ctx, id, current as unknown as CustomEvent); | ||
} | ||
if (typeof DOMException !== 'undefined' && currentClass === DOMException) { | ||
return createDOMExceptionNode(id, current as unknown as DOMException); | ||
} | ||
} | ||
if ( | ||
(ctx.features & Feature.AggregateError) | ||
&& ( | ||
currentClass === AggregateError | ||
|| current instanceof AggregateError | ||
) | ||
&& typeof AggregateError !== 'undefined' | ||
&& (currentClass === AggregateError || current instanceof AggregateError) | ||
) { | ||
@@ -585,0 +586,0 @@ return generateAggregateErrorNode(ctx, id, current as unknown as AggregateError); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1399856
20632