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,13 @@
/**
* Copyright © 2025 650 Industries.
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* This is added as `asyncRequireModulePath` in `@expo/metro-config`
* Fork of https://github.com/facebook/metro/blob/b8e9e64f1de97a67234e223f5ee21524b160e8a5/packages/metro-runtime/src/modules/asyncRequire.js#L1
* - Adds worker support.
*/
export {};
//# sourceMappingURL=asyncRequireModule.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"asyncRequireModule.d.ts","sourceRoot":"","sources":["../../src/async-require/asyncRequireModule.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG"}

View File

@@ -0,0 +1,15 @@
/**
* Copyright © 2022 650 Industries.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* Must satisfy the requirements of the Metro bundler.
* https://github.com/react-native-community/discussions-and-proposals/blob/main/proposals/0605-lazy-bundling.md#__loadbundleasync-in-metro
*/
type AsyncRequire = (path: string) => Promise<void>;
/** Create an `loadBundleAsync` function in the expected shape for Metro bundler. */
export declare function buildAsyncRequire(): AsyncRequire;
export {};
//# sourceMappingURL=buildAsyncRequire.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"buildAsyncRequire.d.ts","sourceRoot":"","sources":["../../src/async-require/buildAsyncRequire.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH;;;GAGG;AACH,KAAK,YAAY,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAEpD,oFAAoF;AACpF,wBAAgB,iBAAiB,IAAI,YAAY,CAiBhD"}

View File

@@ -0,0 +1,5 @@
export declare class HMRMetroBuildError extends Error {
originalMessage: string;
constructor(message?: string, type?: string, cause?: Error);
}
//# sourceMappingURL=buildErrors.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"buildErrors.d.ts","sourceRoot":"","sources":["../../src/async-require/buildErrors.ts"],"names":[],"mappings":"AAEA,qBAAa,kBAAmB,SAAQ,KAAK;IACpC,eAAe,EAAE,MAAM,CAAC;gBAEnB,OAAO,GAAE,MAA8B,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK;CAQlF"}

View File

@@ -0,0 +1,14 @@
/**
* Copyright © 2022 650 Industries.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* Given a path and some optional additional query parameters, create the dev server bundle URL.
* @param bundlePath like `/foobar`
* @param params like `{ platform: "web" }`
* @returns a URL like "/foobar.bundle?platform=android&modulesOnly=true&runModule=false&runtimeBytecodeVersion=null"
*/
export declare function buildUrlForBundle(bundlePath: string): string;
//# sourceMappingURL=buildUrlForBundle.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"buildUrlForBundle.d.ts","sourceRoot":"","sources":["../../src/async-require/buildUrlForBundle.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAM5D"}

View File

@@ -0,0 +1,8 @@
/**
* Copyright © 2022 650 Industries.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
export declare function buildUrlForBundle(bundlePath: string): string;
//# sourceMappingURL=buildUrlForBundle.native.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"buildUrlForBundle.native.d.ts","sourceRoot":"","sources":["../../src/async-require/buildUrlForBundle.native.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAoB5D"}

8
node_modules/expo/build/async-require/errors.d.ts generated vendored Normal file
View File

@@ -0,0 +1,8 @@
export declare class MetroServerError extends Error {
code: string;
url: string;
constructor(errorObject: {
message: string;
} & Record<string, any>, url: string);
}
//# sourceMappingURL=errors.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/async-require/errors.ts"],"names":[],"mappings":"AAAA,qBAAa,gBAAiB,SAAQ,KAAK;IACzC,IAAI,SAAwB;IAC5B,GAAG,EAAE,MAAM,CAAC;gBAEA,WAAW,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,GAAG,EAAE,MAAM;CAQhF"}

12
node_modules/expo/build/async-require/fetchAsync.d.ts generated vendored Normal file
View File

@@ -0,0 +1,12 @@
/**
* Copyright © 2022 650 Industries.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
export declare function fetchAsync(url: string): Promise<{
body: string;
status: number;
headers: Headers;
}>;
//# sourceMappingURL=fetchAsync.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"fetchAsync.d.ts","sourceRoot":"","sources":["../../src/async-require/fetchAsync.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAsB,UAAU,CAC9B,GAAG,EAAE,MAAM,GACV,OAAO,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CAa7D"}

View File

@@ -0,0 +1,13 @@
/**
* Copyright (c) 650 Industries.
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
export declare function fetchAsync(url: string): Promise<{
body: string;
status: number;
headers: Record<string, string>;
}>;
//# sourceMappingURL=fetchAsync.native.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"fetchAsync.native.d.ts","sourceRoot":"","sources":["../../src/async-require/fetchAsync.native.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAwBH,wBAAgB,UAAU,CACxB,GAAG,EAAE,MAAM,GACV,OAAO,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,CAAC,CAgF5E"}

View File

@@ -0,0 +1,2 @@
export { fetchThenEvalAsync } from './fetchThenEvalJs';
//# sourceMappingURL=fetchThenEval.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"fetchThenEval.d.ts","sourceRoot":"","sources":["../../src/async-require/fetchThenEval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC"}

View File

@@ -0,0 +1,12 @@
/**
* Copyright © 2022 650 Industries.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
export declare function fetchThenEvalAsync(url: string, { scriptType, nonce, crossOrigin, }?: {
scriptType?: string;
nonce?: string;
crossOrigin?: string;
}): Promise<void>;
//# sourceMappingURL=fetchThenEval.web.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"fetchThenEval.web.d.ts","sourceRoot":"","sources":["../../src/async-require/fetchThenEval.web.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAQH,wBAAgB,kBAAkB,CAChC,GAAG,EAAE,MAAM,EACX,EACE,UAAU,EACV,KAAK,EACL,WAAW,GACZ,GAAE;IAAE,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAO,GACpE,OAAO,CAAC,IAAI,CAAC,CA+Df"}

View File

@@ -0,0 +1,7 @@
/**
* Load a bundle for a URL using fetch + eval on native and script tag injection on web.
*
* @param url Given a statement like `import('./Bacon')` `bundlePath` would be `Bacon`.
*/
export declare function fetchThenEvalAsync(url: string): Promise<void>;
//# sourceMappingURL=fetchThenEvalJs.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"fetchThenEvalJs.d.ts","sourceRoot":"","sources":["../../src/async-require/fetchThenEvalJs.ts"],"names":[],"mappings":"AAQA;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA6B7D"}

View File

@@ -0,0 +1,8 @@
declare const getDevServer: () => {
bundleLoadedFromServer: boolean;
/** URL but ensures that platform query param is added. */
readonly fullBundleUrl: string;
url: string;
};
export default getDevServer;
//# sourceMappingURL=getDevServer.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"getDevServer.d.ts","sourceRoot":"","sources":["../../src/async-require/getDevServer.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,YAAY;;IAcd,0DAA0D;;;CAM7D,CAAC;AAEF,eAAe,YAAY,CAAC"}

View File

@@ -0,0 +1,3 @@
import getDevServer from 'react-native/Libraries/Core/Devtools/getDevServer';
export default getDevServer;
//# sourceMappingURL=getDevServer.native.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"getDevServer.native.d.ts","sourceRoot":"","sources":["../../src/async-require/getDevServer.native.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,MAAM,mDAAmD,CAAC;AAE7E,eAAe,YAAY,CAAC"}

View File

@@ -0,0 +1,2 @@
export declare function getFullBundlerUrl(): string;
//# sourceMappingURL=getFullBundlerUrl.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"getFullBundlerUrl.d.ts","sourceRoot":"","sources":["../../src/async-require/getFullBundlerUrl.ts"],"names":[],"mappings":"AAAA,wBAAgB,iBAAiB,IAAI,MAAM,CAY1C"}

17
node_modules/expo/build/async-require/hmr.d.ts generated vendored Normal file
View File

@@ -0,0 +1,17 @@
type LogLevel = 'trace' | 'info' | 'warn' | 'error' | 'log' | 'group' | 'groupCollapsed' | 'groupEnd' | 'debug';
/**
* HMR Client that receives from the server HMR updates and propagates them
* runtime to reflects those changes.
*/
declare const HMRClient: {
enable(): void;
disable(): void;
registerBundle(requestUrl: string): void;
log(level: LogLevel, data: any[]): void;
setup(platformOrOptions: string | {
isEnabled: boolean;
}, bundleEntry?: string, host?: string, port?: number | string, isEnabledOrUndefined?: boolean, scheme?: string): void;
_onMetroError(error: unknown): void;
};
export default HMRClient;
//# sourceMappingURL=hmr.d.ts.map

1
node_modules/expo/build/async-require/hmr.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"hmr.d.ts","sourceRoot":"","sources":["../../src/async-require/hmr.ts"],"names":[],"mappings":"AAiCA,KAAK,QAAQ,GACT,OAAO,GACP,MAAM,GACN,MAAM,GACN,OAAO,GACP,KAAK,GACL,OAAO,GACP,gBAAgB,GAChB,UAAU,GACV,OAAO,CAAC;AAMZ;;;GAGG;AACH,QAAA,MAAM,SAAS;;;+BAyCc,MAAM;eAMtB,QAAQ,QAAQ,GAAG,EAAE;6BA8CX,MAAM,GAAG;QAAE,SAAS,EAAE,OAAO,CAAA;KAAE,gBACpC,MAAM,SACb,MAAM,SACN,MAAM,GAAG,MAAM,yBACC,OAAO,WACtB,MAAM;yBAmHK,OAAO;CA4B7B,CAAC;AA8DF,eAAe,SAAS,CAAC"}

13
node_modules/expo/build/async-require/hmrUtils.d.ts generated vendored Normal file
View File

@@ -0,0 +1,13 @@
export declare function getFullBundlerUrl(_: {
serverScheme?: string;
serverHost?: string;
bundleEntry?: string;
platform?: string;
}): string;
export declare function showLoading(message: string, _type: 'load' | 'refresh'): void;
export declare function hideLoading(): void;
export declare function resetErrorOverlay(): void;
export declare function reload(): void;
export declare function getConnectionError(serverHost: string, e: Error): string;
export declare function handleCompileError(cause: any): void;
//# sourceMappingURL=hmrUtils.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"hmrUtils.d.ts","sourceRoot":"","sources":["../../src/async-require/hmrUtils.ts"],"names":[],"mappings":"AAKA,wBAAgB,iBAAiB,CAAC,CAAC,EAAE;IACnC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,MAAM,CAET;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,QAKrE;AAED,wBAAgB,WAAW,SAE1B;AAED,wBAAgB,iBAAiB,SAGhC;AAED,wBAAgB,MAAM,SAGrB;AAED,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,GAAG,MAAM,CAWvE;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,GAAG,QAK5C"}

View File

@@ -0,0 +1,13 @@
export declare function showLoading(message: string, type: 'load' | 'refresh'): void;
export declare function hideLoading(): void;
export declare function resetErrorOverlay(): void;
export declare function reload(): void;
export declare function getFullBundlerUrl({ serverScheme, serverHost, bundleEntry, platform, }: {
serverScheme: string;
serverHost: string;
bundleEntry: string;
platform: string;
}): string;
export declare function getConnectionError(serverHost: string, e: Error): string;
export declare function handleCompileError(cause: any): void;
//# sourceMappingURL=hmrUtils.native.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"hmrUtils.native.d.ts","sourceRoot":"","sources":["../../src/async-require/hmrUtils.native.ts"],"names":[],"mappings":"AAWA,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,QAGpE;AAED,wBAAgB,WAAW,SAG1B;AAED,wBAAgB,iBAAiB,SAIhC;AAED,wBAAgB,MAAM,SAGrB;AAED,wBAAgB,iBAAiB,CAAC,EAChC,YAAY,EACZ,UAAU,EACV,WAAW,EACX,QAAQ,GACT,EAAE;IACD,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB,GAAG,MAAM,CAKT;AAED,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,GAAG,MAAM,CAkBvE;AAcD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,GAAG,QAe5C"}

2
node_modules/expo/build/async-require/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=index.d.ts.map

1
node_modules/expo/build/async-require/index.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/async-require/index.ts"],"names":[],"mappings":""}

View File

@@ -0,0 +1,7 @@
/**
* Load a bundle for a URL using fetch + eval on native and script tag injection on web.
*
* @param bundlePath Given a statement like `import('./Bacon')` `bundlePath` would be `Bacon.bundle?params=from-metro`.
*/
export declare function loadBundleAsync(bundlePath: string): Promise<void>;
//# sourceMappingURL=loadBundle.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"loadBundle.d.ts","sourceRoot":"","sources":["../../src/async-require/loadBundle.ts"],"names":[],"mappings":"AASA;;;;GAIG;AACH,wBAAsB,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAWvE"}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=messageSocket.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"messageSocket.d.ts","sourceRoot":"","sources":["../../src/async-require/messageSocket.ts"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=messageSocket.native.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"messageSocket.native.d.ts","sourceRoot":"","sources":["../../src/async-require/messageSocket.native.ts"],"names":[],"mappings":""}

2
node_modules/expo/build/async-require/setup.d.ts generated vendored Normal file
View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=setup.d.ts.map

1
node_modules/expo/build/async-require/setup.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../src/async-require/setup.ts"],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=setupFastRefresh.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"setupFastRefresh.d.ts","sourceRoot":"","sources":["../../src/async-require/setupFastRefresh.ts"],"names":[],"mappings":""}

2
node_modules/expo/build/async-require/setupHMR.d.ts generated vendored Normal file
View File

@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=setupHMR.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"setupHMR.d.ts","sourceRoot":"","sources":["../../src/async-require/setupHMR.ts"],"names":[],"mappings":""}