first commit

This commit is contained in:
2026-03-10 16:18:05 +00:00
commit 11f9c069b5
31635 changed files with 3187747 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
export declare const ExpoFetchModule: any;
//# sourceMappingURL=ExpoFetchModule.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ExpoFetchModule.d.ts","sourceRoot":"","sources":["../../../src/winter/fetch/ExpoFetchModule.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,KAAyC,CAAC"}

View File

@@ -0,0 +1,10 @@
declare class StubNativeRequest {
}
declare class StubNativeResponse {
}
export declare const ExpoFetchModule: {
NativeRequest: typeof StubNativeRequest;
NativeResponse: typeof StubNativeResponse;
};
export {};
//# sourceMappingURL=ExpoFetchModule.web.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ExpoFetchModule.web.d.ts","sourceRoot":"","sources":["../../../src/winter/fetch/ExpoFetchModule.web.ts"],"names":[],"mappings":"AAAA,cAAM,iBAAiB;CAAG;AAC1B,cAAM,kBAAkB;CAAG;AAE3B,eAAO,MAAM,eAAe;;;CAG3B,CAAC"}

View File

@@ -0,0 +1,8 @@
export declare class FetchError extends Error {
constructor(message: string, { cause, stack }?: {
cause?: unknown;
stack?: string;
});
static createFromError(error: Error): FetchError;
}
//# sourceMappingURL=FetchErrors.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"FetchErrors.d.ts","sourceRoot":"","sources":["../../../src/winter/fetch/FetchErrors.ts"],"names":[],"mappings":"AAAA,qBAAa,UAAW,SAAQ,KAAK;gBACvB,OAAO,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,GAAE;QAAE,KAAK,CAAC,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAO;IAMvF,MAAM,CAAC,eAAe,CAAC,KAAK,EAAE,KAAK,GAAG,UAAU;CAGjD"}

View File

@@ -0,0 +1,31 @@
import type { NativeResponse } from './NativeRequest';
declare const ConcreteNativeResponse: typeof NativeResponse;
export type AbortSubscriptionCleanupFunction = () => void;
type RNFormData = Awaited<ReturnType<globalThis.Response['formData']>>;
type UniversalFormData = globalThis.FormData & RNFormData;
/**
* A response implementation for the `fetch.Response` API.
*/
export declare class FetchResponse extends ConcreteNativeResponse implements Response {
private readonly abortCleanupFunction;
private streamingState;
private bodyStream;
constructor(abortCleanupFunction: AbortSubscriptionCleanupFunction);
get body(): ReadableStream<Uint8Array<ArrayBuffer>> | null;
get headers(): Headers;
get ok(): boolean;
readonly type = "default";
/**
* This method is not currently supported by react-native's Blob constructor.
*/
blob(): Promise<Blob>;
formData(): Promise<UniversalFormData>;
json(): Promise<any>;
bytes(): Promise<Uint8Array<ArrayBuffer>>;
toString(): string;
toJSON(): object;
clone(): Response;
private finalize;
}
export {};
//# sourceMappingURL=FetchResponse.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"FetchResponse.d.ts","sourceRoot":"","sources":["../../../src/winter/fetch/FetchResponse.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD,QAAA,MAAM,sBAAsB,EAAqC,OAAO,cAAc,CAAC;AACvF,MAAM,MAAM,gCAAgC,GAAG,MAAM,IAAI,CAAC;AAI1D,KAAK,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;AACvE,KAAK,iBAAiB,GAAG,UAAU,CAAC,QAAQ,GAAG,UAAU,CAAC;AAE1D;;GAEG;AACH,qBAAa,aAAc,SAAQ,sBAAuB,YAAW,QAAQ;IAI/D,OAAO,CAAC,QAAQ,CAAC,oBAAoB;IAHjD,OAAO,CAAC,cAAc,CAA4C;IAClE,OAAO,CAAC,UAAU,CAAwD;gBAE7C,oBAAoB,EAAE,gCAAgC;IAKnF,IAAI,IAAI,IAAI,cAAc,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,GAAG,IAAI,CAuDzD;IAED,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,IAAI,EAAE,IAAI,OAAO,CAEhB;IAED,SAAgB,IAAI,aAAa;IAEjC;;OAEG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAKrB,QAAQ,IAAI,OAAO,CAAC,iBAAiB,CAAC;IAYtC,IAAI,IAAI,OAAO,CAAC,GAAG,CAAC;IAKpB,KAAK,IAAI,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;IAI/C,QAAQ,IAAI,MAAM;IAIlB,MAAM,IAAI,MAAM;IAShB,KAAK,IAAI,QAAQ;IAIjB,OAAO,CAAC,QAAQ,CAQd;CACH"}

View File

@@ -0,0 +1,31 @@
import type { SharedObject } from 'expo-modules-core';
export type NativeHeadersType = [string, string][];
export declare class NativeRequest extends SharedObject {
start(url: string, requestInit: NativeRequestInit, requestBody: Uint8Array | null): Promise<NativeResponse>;
cancel(): void;
}
export interface NativeRequestInit {
credentials?: RequestCredentials;
headers?: NativeHeadersType;
method?: string;
redirect?: RequestRedirect;
}
export type NativeResponseEvents = {
didReceiveResponseData(data: Uint8Array): void;
didComplete(): void;
didFailWithError(error: string): void;
readyForJSFinalization(): void;
};
export declare class NativeResponse extends SharedObject<NativeResponseEvents> {
readonly bodyUsed: boolean;
readonly _rawHeaders: NativeHeadersType;
readonly status: number;
readonly statusText: string;
readonly url: string;
readonly redirected: boolean;
startStreaming(): Promise<Uint8Array<ArrayBuffer> | null>;
cancelStreaming(reason: string): void;
arrayBuffer(): Promise<ArrayBuffer>;
text(): Promise<string>;
}
//# sourceMappingURL=NativeRequest.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"NativeRequest.d.ts","sourceRoot":"","sources":["../../../src/winter/fetch/NativeRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,MAAM,iBAAiB,GAAG,CAAC,MAAM,EAAE,MAAM,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View File

@@ -0,0 +1,23 @@
import { type NativeHeadersType } from './NativeRequest';
/**
* convert a ReadableStream to a Uint8Array
*/
export declare function convertReadableStreamToUint8ArrayAsync(stream: ReadableStream<Uint8Array>): Promise<Uint8Array>;
/**
* Normalize a BodyInit object to a Uint8Array for NativeRequest
*/
export declare function normalizeBodyInitAsync(body: BodyInit | null | undefined): Promise<{
body: Uint8Array | null;
overriddenHeaders?: NativeHeadersType;
}>;
/**
* Normalize a HeadersInit object to an array of key-value tuple for NativeRequest.
*/
export declare function normalizeHeadersInit(headers: HeadersInit | null | undefined): NativeHeadersType;
/**
* Create a new header array by overriding the existing headers with new headers (by header key).
*/
export declare function overrideHeaders(headers: NativeHeadersType, newHeaders: NativeHeadersType): NativeHeadersType;
/** Normalizes known HTTP methods to uppercase */
export declare function normalizeMethod(method: string): string;
//# sourceMappingURL=RequestUtils.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"RequestUtils.d.ts","sourceRoot":"","sources":["../../../src/winter/fetch/RequestUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAIzD;;GAEG;AACH,wBAAsB,sCAAsC,CAC1D,MAAM,EAAE,cAAc,CAAC,UAAU,CAAC,GACjC,OAAO,CAAC,UAAU,CAAC,CAsBrB;AAgBD;;GAEG;AACH,wBAAsB,sBAAsB,CAC1C,IAAI,EAAE,QAAQ,GAAG,IAAI,GAAG,SAAS,GAChC,OAAO,CAAC;IAAE,IAAI,EAAE,UAAU,GAAG,IAAI,CAAC;IAAC,iBAAiB,CAAC,EAAE,iBAAiB,CAAA;CAAE,CAAC,CA6C7E;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GAAG,iBAAiB,CAe/F;AAED;;GAEG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,iBAAiB,EAC1B,UAAU,EAAE,iBAAiB,GAC5B,iBAAiB,CAYnB;AAED,iDAAiD;AACjD,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAatD"}

View File

@@ -0,0 +1,19 @@
/**
* Convert FormData to Uint8Array with a boundary
*
* `uri` is not supported for React Native's FormData.
* `blob` is not supported for standard FormData.
*/
export declare function convertFormDataAsync(formData: FormData, boundary?: string): Promise<{
body: Uint8Array;
boundary: string;
}>;
/**
* Create mutipart boundary
*/
export declare function createBoundary(): string;
/**
* Merge Uint8Arrays into a single Uint8Array
*/
export declare function joinUint8Arrays(arrays: Uint8Array[]): Uint8Array;
//# sourceMappingURL=convertFormData.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"convertFormData.d.ts","sourceRoot":"","sources":["../../../src/winter/fetch/convertFormData.ts"],"names":[],"mappings":"AA+BA;;;;;GAKG;AACH,wBAAsB,oBAAoB,CACxC,QAAQ,EAAE,QAAQ,EAClB,QAAQ,GAAE,MAAyB,GAClC,OAAO,CAAC;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC,CAoDjD;AAED;;GAEG;AACH,wBAAgB,cAAc,IAAI,MAAM,CAOvC;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,UAAU,EAAE,GAAG,UAAU,CAWhE"}

4
node_modules/expo/build/winter/fetch/fetch.d.ts generated vendored Normal file
View File

@@ -0,0 +1,4 @@
import { FetchResponse } from './FetchResponse';
import type { FetchRequestInit, FetchRequestLike } from './fetch.types';
export declare function fetch(input: string | URL | FetchRequestLike, init?: FetchRequestInit): Promise<FetchResponse>;
//# sourceMappingURL=fetch.d.ts.map

1
node_modules/expo/build/winter/fetch/fetch.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../../src/winter/fetch/fetch.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAyC,MAAM,iBAAiB,CAAC;AAQvF,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAOxE,wBAAsB,KAAK,CACzB,KAAK,EAAE,MAAM,GAAG,GAAG,GAAG,gBAAgB,EACtC,IAAI,CAAC,EAAE,gBAAgB,GACtB,OAAO,CAAC,aAAa,CAAC,CAiDxB"}

29
node_modules/expo/build/winter/fetch/fetch.types.d.ts generated vendored Normal file
View File

@@ -0,0 +1,29 @@
/**
* A fetch RequestInit compatible structure.
*/
export interface FetchRequestInit {
body?: BodyInit | null;
credentials?: RequestCredentials;
headers?: HeadersInit;
method?: string;
signal?: AbortSignal | null;
redirect?: RequestRedirect;
integrity?: string;
keepalive?: boolean;
mode?: RequestMode;
referrer?: string;
window?: any;
}
/**
* A fetch Request compatible structure.
*/
export interface FetchRequestLike {
readonly url: string;
readonly body: BodyInit | null;
readonly method: string;
readonly headers: Headers;
readonly credentials?: RequestCredentials;
readonly signal?: AbortSignal;
readonly redirect?: RequestRedirect;
}
//# sourceMappingURL=fetch.types.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"fetch.types.d.ts","sourceRoot":"","sources":["../../../src/winter/fetch/fetch.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;IACvB,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAC5B,QAAQ,CAAC,EAAE,eAAe,CAAC;IAG3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,GAAG,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAG1B,QAAQ,CAAC,WAAW,CAAC,EAAE,kBAAkB,CAAC;IAC1C,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;IAC9B,QAAQ,CAAC,QAAQ,CAAC,EAAE,eAAe,CAAC;CACrC"}

2
node_modules/expo/build/winter/fetch/fetch.web.d.ts generated vendored Normal file
View File

@@ -0,0 +1,2 @@
export declare const fetch: typeof globalThis.fetch;
//# sourceMappingURL=fetch.web.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"fetch.web.d.ts","sourceRoot":"","sources":["../../../src/winter/fetch/fetch.web.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,yBAAmB,CAAC"}

3
node_modules/expo/build/winter/fetch/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,3 @@
export * from './fetch';
export * from './fetch.types';
//# sourceMappingURL=index.d.ts.map

1
node_modules/expo/build/winter/fetch/index.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/winter/fetch/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC"}