Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp authored and astrobot-houston committed Jan 9, 2023
1 parent 1f92d64 commit 10137cd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion packages/integrations/lit/server-shim.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { installWindowOnGlobal } from '@lit-labs/ssr/lib/dom-shim.js';

if(typeof fetch === 'function') {
if (typeof fetch === 'function') {
const _fetch = fetch;
installWindowOnGlobal();
globalThis.fetch = window.fetch = _fetch;
Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/node/src/response-iterator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* - https://github.com/apollographql/apollo-client/blob/main/src/utilities/common/responseIterator.ts
*/

import type { Response as NodeResponse } from 'undici';
import { Readable as NodeReadableStream } from 'stream';
import type { Response as NodeResponse } from 'undici';

interface NodeStreamIterator<T> {
next(): Promise<IteratorResult<T, boolean | undefined>>;
Expand Down
10 changes: 2 additions & 8 deletions packages/webapi/run/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,10 @@ const plugins = [
HTMLUnknownElement: ['./Element', 'HTMLUnknownElement'],
MediaQueryList: ['./MediaQueryList', 'MediaQueryList'],
Node: ['./Node', 'Node'],
ReadableStream: [
'node:stream/web',
'ReadableStream',
],
ReadableStream: ['node:stream/web', 'ReadableStream'],
ShadowRoot: ['./Node', 'ShadowRoot'],
Window: ['./Window', 'Window'],
'globalThis.ReadableStream': [
'node:stream/web',
'ReadableStream',
],
'globalThis.ReadableStream': ['node:stream/web', 'ReadableStream'],
}),
{
async load(id) {
Expand Down
4 changes: 2 additions & 2 deletions packages/webapi/src/ponyfill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import {
import { Event, EventTarget } from 'event-target-shim'
import { Blob, File } from 'fetch-blob/from.js'
import { FormData } from 'formdata-polyfill/esm.min.js'
import * as undici from 'undici'
import { URLPattern } from 'urlpattern-polyfill'
import {
ByteLengthQueuingStrategy,
CountQueuingStrategy,
Expand All @@ -23,6 +21,8 @@ import {
WritableStreamDefaultController,
WritableStreamDefaultWriter,
} from 'node:stream/web'
import * as undici from 'undici'
import { URLPattern } from 'urlpattern-polyfill'
import {
cancelAnimationFrame,
requestAnimationFrame,
Expand Down

0 comments on commit 10137cd

Please sign in to comment.