diff --git a/.gitignore b/.gitignore index c39818f871..59c88033c8 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,9 @@ /reports npm-debug.log* packages/*/build/ +# Generated TypeScript definitions. Build artifacts produced on demand from +# Flow sources (for npm publish and public API snapshotting); not checked in. +packages/*/types/ website/build/ website/i18n/* diff --git a/flow-typed/microsoft-api-extractor.js b/flow-typed/microsoft-api-extractor.js new file mode 100644 index 0000000000..f67f82e5f5 --- /dev/null +++ b/flow-typed/microsoft-api-extractor.js @@ -0,0 +1,57 @@ +/** + * 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. + * + * @flow strict + * @format + */ + +// Minimal libdef covering only the subset of API Extractor's programmatic API +// used by scripts/generateApiSnapshots.js. See https://api-extractor.com/. +declare module '@microsoft/api-extractor' { + // The `configObject` accepts API Extractor's `IConfigFile` shape, which is + // large and only partially populated by callers; modelled as an inexact + // object so any subset of its fields is accepted. + declare export type IConfigFile = {...}; + + declare export type IExtractorConfigPrepareOptions = { + configObject: IConfigFile, + // Absolute path from which relative paths in `configObject` are resolved. + configObjectFullPath: string | void, + // Absolute path to the entry point package's package.json. + packageJsonFullPath: string, + ... + }; + + declare export class ExtractorConfig { + static prepare(options: IExtractorConfigPrepareOptions): ExtractorConfig; + // Load an api-extractor.json config file from disk and prepare it. + static loadFileAndPrepare(configJsonFilePath: string): ExtractorConfig; + } + + declare export type IExtractorInvokeOptions = { + // When true, update the API report on disk; when false (CI), leave it + // untouched and flag any difference via `apiReportChanged`. + localBuild?: boolean, + showVerboseMessages?: boolean, + showDiagnostics?: boolean, + ... + }; + + declare export type ExtractorResult = { + readonly succeeded: boolean, + readonly apiReportChanged: boolean, + readonly errorCount: number, + readonly warningCount: number, + ... + }; + + declare export class Extractor { + static invoke( + config: ExtractorConfig, + options?: IExtractorInvokeOptions, + ): ExtractorResult; + } +} diff --git a/package.json b/package.json index 7e6eec572d..aee15461c6 100644 --- a/package.json +++ b/package.json @@ -9,9 +9,11 @@ "@babel/plugin-transform-modules-commonjs": "^7.24.8", "@babel/plugin-transform-react-jsx": "^7.25.2", "@babel/types": "^7.29.0", + "@microsoft/api-extractor": "^7.52.2", "@tsconfig/node20": "^20.1.4", "@typescript-eslint/eslint-plugin": "^8.59.2", "@typescript-eslint/parser": "^8.59.2", + "@types/node": "^22.0.0", "acorn": "^8.7.1", "babel-jest": "^29.7.0", "babel-plugin-syntax-hermes-parser": "0.37.0", @@ -46,8 +48,10 @@ }, "scripts": { "build-clean": "rm -rf ./packages/*/build", - "build": "node ./scripts/build.js", + "build": "yarn run build-ts-defs && node ./scripts/build.js", "build-ts-defs": "node -r @babel/register ./scripts/generateTypeScriptDefinitions.js", + "build-api-snapshots": "node -r @babel/register ./scripts/generateApiSnapshots.js", + "verify-api-snapshots": "node -r @babel/register ./scripts/generateApiSnapshots.js --verify", "clean-all": "rm -rf ./node_modules && rm -rf ./packages/*/node_modules && yarn run build-clean", "lint-fix": "eslint . --fix --cache && prettier --write .", "lint": "eslint . --cache && prettier --check .", @@ -58,7 +62,7 @@ "test-coverage": "yarn run build && yarn run jest --coverage -i && node scripts/mapCoverage.js", "test-smoke": "yarn start build --config packages/metro/src/integration_tests/metro.config.js TestBundle.js --out /tmp/TestBundle", "typecheck": "flow check", - "typecheck-ts": "tsc --project tsconfig.json", + "typecheck-ts": "yarn run build-ts-defs && tsc --project tsconfig.json", "update-babel-flow-lib-defs": "node -r @babel/register ./scripts/updateBabelFlowLibraryDefinitions", "update-version": "node ./scripts/updateVersion" }, @@ -70,8 +74,5 @@ "dependencies": {}, "engines": { "node": "^22.13.0 || ^24.3.0 || >= 26.0.0" - }, - "resolutions": { - "**/json5": "2.2.3" } } diff --git a/packages/buck-worker-tool/API.md b/packages/buck-worker-tool/API.md new file mode 100644 index 0000000000..9c8095cac9 --- /dev/null +++ b/packages/buck-worker-tool/API.md @@ -0,0 +1,16 @@ +## API Report File for "buck-worker-tool" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +import { Console as Console_2 } from 'node:console'; +import type { Duplex } from 'node:stream'; + +export function buckWorker(commands: Commands): Duplex; + +export type Command = (argv: Array, structuredArgs: unknown, console: Console_2) => Promise | void; + +export type Commands = {[key: string]: Command}; + +``` diff --git a/packages/buck-worker-tool/types/CommandFailedError.d.ts b/packages/buck-worker-tool/types/CommandFailedError.d.ts deleted file mode 100644 index ca018bc82e..0000000000 --- a/packages/buck-worker-tool/types/CommandFailedError.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/buck-worker-tool/src/CommandFailedError.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -/** - * Thrown to indicate the command failed and already output relevant error - * information on the console. - */ -declare class CommandFailedError extends Error { - constructor(); -} -export default CommandFailedError; diff --git a/packages/buck-worker-tool/types/profiling.d.ts b/packages/buck-worker-tool/types/profiling.d.ts deleted file mode 100644 index d139a0dfed..0000000000 --- a/packages/buck-worker-tool/types/profiling.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/buck-worker-tool/src/profiling.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -export declare function startProfiling(): void; -export declare function stopProfilingAndWrite(workerName: null | undefined | string): void; diff --git a/packages/buck-worker-tool/types/worker-tool.d.ts b/packages/buck-worker-tool/types/worker-tool.d.ts deleted file mode 100644 index 4bb5a2f876..0000000000 --- a/packages/buck-worker-tool/types/worker-tool.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/buck-worker-tool/src/worker-tool.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {Duplex} from 'node:stream'; - -import {Console} from 'node:console'; - -export type Command = (argv: Array, structuredArgs: unknown, console: Console) => Promise | void; -export type Commands = {[key: string]: Command}; -declare function buckWorker(commands: Commands): Duplex; -export {buckWorker}; diff --git a/packages/metro-babel-transformer/API.md b/packages/metro-babel-transformer/API.md new file mode 100644 index 0000000000..d4874f7ea4 --- /dev/null +++ b/packages/metro-babel-transformer/API.md @@ -0,0 +1,59 @@ +## API Report File for "metro-babel-transformer" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +import type { BabelFileMetadata } from '@babel/core'; +import type { File as File_2 } from '@babel/types'; +import { transformFromAstSync } from '@babel/core'; + +export type BabelFileFunctionMapMetadata = Readonly<{ + names: ReadonlyArray; + mappings: string; +}>; + +export type BabelFileImportLocsMetadata = ReadonlySet; + +export type BabelTransformer = Readonly<{ + transform: ($$PARAM_0$$: BabelTransformerArgs) => Readonly<{ + ast: File_2; + functionMap?: BabelFileFunctionMapMetadata; + metadata?: MetroBabelFileMetadata; + }>; + getCacheKey?: (options?: BabelTransformerCacheKeyOptions) => string; +}>; + +export type BabelTransformerArgs = Readonly<{ + filename: string; + options: BabelTransformerOptions; + plugins?: BabelTransformOptions['plugins']; + src: string; +}>; + +export type BabelTransformerCacheKeyOptions = Readonly<{ + projectRoot?: string; + enableBabelRCLookup?: boolean; +}>; + +export type CustomTransformOptions = { + [$$Key$$: string]: unknown; +}; + +export function getCacheKey(options?: BabelTransformerCacheKeyOptions): string; + +export type MetroBabelFileMetadata = Omit & { + metro?: + | null + | undefined + | { + functionMap?: null | undefined | BabelFileFunctionMapMetadata; + unstable_importDeclarationLocs?: null | undefined | BabelFileImportLocsMetadata; + }; +}; + +export function transform($$PARAM_0$$: BabelTransformerArgs): ReturnType; + +export type TransformProfile = 'default' | 'hermes-stable' | 'hermes-canary'; + +``` diff --git a/packages/metro-babel-transformer/types/index.d.ts b/packages/metro-babel-transformer/types/index.d.ts deleted file mode 100644 index 02c6b4f6d6..0000000000 --- a/packages/metro-babel-transformer/types/index.d.ts +++ /dev/null @@ -1,86 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<85fbaab46b394d6f88bab75eee343d36>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-babel-transformer/src/index.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {BabelFileMetadata} from '@babel/core'; -import type {File as BabelNodeFile} from '@babel/types'; - -import {transformFromAstSync} from '@babel/core'; - -type BabelTransformOptions = NonNullable[2]>; -export type CustomTransformOptions = { - [$$Key$$: string]: unknown; -}; -export type TransformProfile = 'default' | 'hermes-stable' | 'hermes-canary'; -type BabelTransformerOptions = Readonly<{ - customTransformOptions?: CustomTransformOptions; - dev: boolean; - enableBabelRCLookup?: boolean; - enableBabelRuntime: boolean | string; - extendsBabelConfigPath?: string; - experimentalImportSupport?: boolean; - hermesParser?: boolean; - minify: boolean; - platform: null | undefined | string; - projectRoot: string; - publicPath: string; - unstable_transformProfile?: TransformProfile; - globalPrefix: string; - inlineRequires?: void; -}>; -export type BabelTransformerArgs = Readonly<{ - filename: string; - options: BabelTransformerOptions; - plugins?: BabelTransformOptions['plugins']; - src: string; -}>; -export type BabelFileFunctionMapMetadata = Readonly<{ - names: ReadonlyArray; - mappings: string; -}>; -export type BabelFileImportLocsMetadata = ReadonlySet; -export type MetroBabelFileMetadata = Omit & { - metro?: - | null - | undefined - | { - functionMap?: null | undefined | BabelFileFunctionMapMetadata; - unstable_importDeclarationLocs?: null | undefined | BabelFileImportLocsMetadata; - }; -}; -export type BabelTransformerCacheKeyOptions = Readonly<{ - projectRoot?: string; - enableBabelRCLookup?: boolean; -}>; -export type BabelTransformer = Readonly<{ - transform: ($$PARAM_0$$: BabelTransformerArgs) => Readonly<{ - ast: BabelNodeFile; - functionMap?: BabelFileFunctionMapMetadata; - metadata?: MetroBabelFileMetadata; - }>; - getCacheKey?: (options?: BabelTransformerCacheKeyOptions) => string; -}>; -declare function transform($$PARAM_0$$: BabelTransformerArgs): ReturnType; -/** - * Generates a cache key component based on the user's Babel configuration files. - * This uses Babel's loadPartialConfigSync to resolve which config files apply - * to a given file, and includes their contents in the cache key so that changes - * to babel.config.js or .babelrc will invalidate the transform cache. - * - * This is called once by the main thread (not on worker instances). - */ -declare function getCacheKey(options?: BabelTransformerCacheKeyOptions): string; -export {transform, getCacheKey}; diff --git a/packages/metro-cache-key/API.md b/packages/metro-cache-key/API.md new file mode 100644 index 0000000000..2b0bf12a99 --- /dev/null +++ b/packages/metro-cache-key/API.md @@ -0,0 +1,9 @@ +## API Report File for "metro-cache-key" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +export function getCacheKey(files: ReadonlyArray): string; + +``` diff --git a/packages/metro-cache-key/types/index.d.ts b/packages/metro-cache-key/types/index.d.ts deleted file mode 100644 index d84a09b4a3..0000000000 --- a/packages/metro-cache-key/types/index.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<48a23e4247062bad5de7d29f42741be4>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-cache-key/src/index.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -export declare function getCacheKey(files: ReadonlyArray): string; diff --git a/packages/metro-cache/API.md b/packages/metro-cache/API.md new file mode 100644 index 0000000000..21188c9ba3 --- /dev/null +++ b/packages/metro-cache/API.md @@ -0,0 +1,64 @@ +## API Report File for "metro-cache" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +// @deprecated +export class AutoCleanFileStore extends FileStore { + constructor(opts: CleanOptions); +} + +class Cache_2 { + constructor(stores: ReadonlyArray>); + get(key: Buffer): Promise; + get isDisabled(): boolean; + set(key: Buffer, value: T): Promise; +} +export { Cache_2 as Cache } + +export interface CacheStore { + clear(): void | Promise; + get(key: Buffer): (null | undefined | T) | Promise; + name?: string; + set(key: Buffer, value: T): void | Promise; +} + +export type FileOptions = Readonly<{root: string}>; + +export class FileStore { + constructor(options: FileOptions); + clear(): void; + get(key: Buffer): Promise; + set(key: Buffer, value: T): Promise; +} + +export class HttpGetStore extends HttpStore { + constructor(options: HttpOptions); + get(key: Buffer): Promise; + set(_key: Buffer, _value: T): Promise; +} + +export type HttpOptions = EndpointOptions | {getOptions: EndpointOptions; setOptions: EndpointOptions}; + +export class HttpStore { + constructor(options: HttpOptions); + clear(): void; + get(key: Buffer): Promise; + static HttpError: typeof HttpError; + static NetworkError: typeof NetworkError; + set(key: Buffer, value: T): Promise; +} + +export interface MetroCache { + readonly AutoCleanFileStore: typeof AutoCleanFileStore; + readonly Cache: typeof Cache_2; + readonly FileStore: typeof FileStore; + readonly HttpGetStore: typeof HttpGetStore; + readonly HttpStore: typeof HttpStore; + readonly stableHash: typeof stableHash; +} + +export function stableHash(value: unknown): Buffer; + +``` diff --git a/packages/metro-cache/types/Cache.d.ts b/packages/metro-cache/types/Cache.d.ts deleted file mode 100644 index 318ba7c3f8..0000000000 --- a/packages/metro-cache/types/Cache.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<1fe6ca4aa9f1f410281edf1b8f9adea2>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-cache/src/Cache.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {CacheStore} from './types'; -/** - * Main cache class. Receives an array of cache instances, and sequentially - * traverses them to return a previously stored value. It also ensures setting - * the value in all instances. - * - * All get/set operations are logged via Metro's logger. - */ -declare class Cache { - constructor(stores: ReadonlyArray>); - get(key: Buffer): Promise; - set(key: Buffer, value: T): Promise; - get isDisabled(): boolean; -} -export default Cache; diff --git a/packages/metro-cache/types/index.d.ts b/packages/metro-cache/types/index.d.ts deleted file mode 100644 index e689fbcf1c..0000000000 --- a/packages/metro-cache/types/index.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-cache/src/index.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import Cache from './Cache'; -import stableHash from './stableHash'; -import AutoCleanFileStore from './stores/AutoCleanFileStore'; -import FileStore from './stores/FileStore'; -import HttpGetStore from './stores/HttpGetStore'; -import HttpStore from './stores/HttpStore'; - -export type {Options as FileOptions} from './stores/FileStore'; -export type {Options as HttpOptions} from './stores/HttpStore'; -export type {CacheStore} from './types'; -export {AutoCleanFileStore, Cache, FileStore, HttpGetStore, HttpStore, stableHash}; -export interface MetroCache { - readonly AutoCleanFileStore: typeof AutoCleanFileStore; - readonly Cache: typeof Cache; - readonly FileStore: typeof FileStore; - readonly HttpGetStore: typeof HttpGetStore; - readonly HttpStore: typeof HttpStore; - readonly stableHash: typeof stableHash; -} diff --git a/packages/metro-cache/types/stableHash.d.ts b/packages/metro-cache/types/stableHash.d.ts deleted file mode 100644 index 870f430613..0000000000 --- a/packages/metro-cache/types/stableHash.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<36e0de65be0930a61b8ff46232052ea7>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-cache/src/stableHash.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -declare function stableHash(value: unknown): Buffer; -export default stableHash; diff --git a/packages/metro-cache/types/stores/AutoCleanFileStore.d.ts b/packages/metro-cache/types/stores/AutoCleanFileStore.d.ts deleted file mode 100644 index d6e2e55222..0000000000 --- a/packages/metro-cache/types/stores/AutoCleanFileStore.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-cache/src/stores/AutoCleanFileStore.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {Options} from './FileStore'; - -import FileStore from './FileStore'; - -type CleanOptions = Readonly< - Omit & { - intervalMs?: number; - cleanupThresholdMs?: number; - } ->; -/** - * A FileStore that, at a given interval, stats the content of the cache root - * and deletes any file last modified a set threshold in the past. - * - * @deprecated This is not efficiently implemented and may cause significant - * redundant I/O when caches are large. Prefer your own cleanup scripts, or a - * custom Metro cache that uses watches, hooks get/set, and/or implements LRU. - */ -declare class AutoCleanFileStore extends FileStore { - constructor(opts: CleanOptions); -} -export default AutoCleanFileStore; diff --git a/packages/metro-cache/types/stores/FileStore.d.ts b/packages/metro-cache/types/stores/FileStore.d.ts deleted file mode 100644 index 6b0ff799d0..0000000000 --- a/packages/metro-cache/types/stores/FileStore.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<7de501c6653d300c594fcf37ce3b56f4>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-cache/src/stores/FileStore.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -export type Options = Readonly<{root: string}>; -declare class FileStore { - constructor(options: Options); - get(key: Buffer): Promise; - set(key: Buffer, value: T): Promise; - clear(): void; -} -export default FileStore; diff --git a/packages/metro-cache/types/stores/HttpError.d.ts b/packages/metro-cache/types/stores/HttpError.d.ts deleted file mode 100644 index 2830a1c7fa..0000000000 --- a/packages/metro-cache/types/stores/HttpError.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * 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. - * - * @noformat - * @generated SignedSource<<7a0b4b83fb44651820333ade6a980ef7>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-cache/src/stores/HttpError.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -declare class HttpError extends Error { - code: number; - constructor(message: string, code: number); -} -export default HttpError; diff --git a/packages/metro-cache/types/stores/HttpGetStore.d.ts b/packages/metro-cache/types/stores/HttpGetStore.d.ts deleted file mode 100644 index a3ba44ae9f..0000000000 --- a/packages/metro-cache/types/stores/HttpGetStore.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<12106d5e641e2402d71f229ec168a8ec>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-cache/src/stores/HttpGetStore.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {Options as HttpOptions} from './HttpStore'; - -import HttpStore from './HttpStore'; - -declare class HttpGetStore extends HttpStore { - constructor(options: HttpOptions); - get(key: Buffer): Promise; - set(_key: Buffer, _value: T): Promise; -} -export default HttpGetStore; diff --git a/packages/metro-cache/types/stores/HttpStore.d.ts b/packages/metro-cache/types/stores/HttpStore.d.ts deleted file mode 100644 index 7b866fc1a6..0000000000 --- a/packages/metro-cache/types/stores/HttpStore.d.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<5bfdb114e852f7bac9037b3c668cb267>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-cache/src/stores/HttpStore.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import HttpError from './HttpError'; -import NetworkError from './NetworkError'; - -export type Options = EndpointOptions | {getOptions: EndpointOptions; setOptions: EndpointOptions}; -type EndpointOptions = { - endpoint: string; - family?: 4 | 6; - timeout?: number; - key?: string | ReadonlyArray | Buffer | ReadonlyArray; - cert?: string | ReadonlyArray | Buffer | ReadonlyArray; - ca?: string | ReadonlyArray | Buffer | ReadonlyArray; - params?: URLSearchParams; - headers?: {[$$Key$$: string]: string}; - additionalSuccessStatuses?: ReadonlyArray; - /** - * Whether to include additional debug information in error messages. - */ - debug?: boolean; - /** - * Retry configuration - */ - maxAttempts?: number; - retryNetworkErrors?: boolean; - retryStatuses?: ReadonlySet; - socketPath?: string; - proxy?: string; -}; -declare class HttpStore { - static HttpError: typeof HttpError; - static NetworkError: typeof NetworkError; - constructor(options: Options); - get(key: Buffer): Promise; - set(key: Buffer, value: T): Promise; - clear(): void; -} -export default HttpStore; diff --git a/packages/metro-cache/types/stores/NetworkError.d.ts b/packages/metro-cache/types/stores/NetworkError.d.ts deleted file mode 100644 index 35044d3b22..0000000000 --- a/packages/metro-cache/types/stores/NetworkError.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * 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. - * - * @noformat - * @generated SignedSource<<9a68fe7766e376b8525c589673853e54>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-cache/src/stores/NetworkError.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -declare class NetworkError extends Error { - code: string; - constructor(message: string, code: string); -} -export default NetworkError; diff --git a/packages/metro-cache/types/types.d.ts b/packages/metro-cache/types/types.d.ts deleted file mode 100644 index 25f0d27d0d..0000000000 --- a/packages/metro-cache/types/types.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<80dd2674720fe89c7a90a649a922cb1d>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-cache/src/types.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -export interface CacheStore { - name?: string; - get(key: Buffer): (null | undefined | T) | Promise; - set(key: Buffer, value: T): void | Promise; - clear(): void | Promise; -} diff --git a/packages/metro-config/API.md b/packages/metro-config/API.md new file mode 100644 index 0000000000..2781eff24b --- /dev/null +++ b/packages/metro-config/API.md @@ -0,0 +1,248 @@ +## API Report File for "metro-config" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +import EventEmitter from 'node:events'; +import type { HandleFunction } from 'connect'; +import type { IncomingMessage } from 'connect'; +import type { Server as Server_2 } from 'connect'; +import type { ServerResponse } from 'node:http'; + +export type CacheStoresConfigT = ReadonlyArray>; + +export type ConfigT = Readonly< +MetalConfigT & { + cacheStores: CacheStoresConfigT; + resolver: Readonly; + server: Readonly; + serializer: Readonly; + symbolicator: Readonly; + transformer: Readonly; + watcher: Readonly; +} +>; + +export type ExtraTransformOptions = Readonly<{ + preloadedModules?: Readonly<{[path: string]: true}> | false; + ramGroups?: ReadonlyArray; + transform?: Readonly<{ + experimentalImportSupport?: boolean; + inlineRequires?: + | Readonly<{ + blockList: Readonly<{[absoluteModulePath: string]: true}>; + }> + | boolean; + nonInlinedRequires?: ReadonlyArray; + unstable_memoizeInlineRequires?: boolean; + unstable_nonMemoizedInlineRequires?: ReadonlyArray; + }>; +}>; + +export const getDefaultConfig: { + (rootPath?: string): Promise; + getDefaultValues: (rootPath?: string) => ConfigT; +}; + +export type getDefaultConfig = typeof getDefaultConfig; + +export type GetTransformOptions = ( +entryPoints: ReadonlyArray, +options: GetTransformOptionsOpts, +getDependenciesOf: (absoluteFilePath: string) => Promise>, +) => Promise>; + +export type GetTransformOptionsOpts = { + dev: boolean; + hot: true; + platform: null | undefined | string; +}; + +export type InputConfigT = Partial< +Readonly< +MetalConfigT & { + cacheStores: CacheStoresConfigT | (($$PARAM_0$$: MetroCache) => CacheStoresConfigT); + resolver: Readonly>; + server: Readonly>; + serializer: Readonly>; + symbolicator: Readonly>; + transformer: Readonly>; + watcher: Partial< + Readonly< + Omit & { + healthCheck: Partial>; + unstable_autoSaveCache: Partial>; + watchman: Partial>; + } + > + >; +} +> +>; + +export function loadConfig(argvInput?: YargArguments, defaultConfigOverrides?: InputConfigT): Promise; + +export function mergeConfig InputConfigT) | ((baseConfig: T) => Promise)>>( +base: T | (() => T), +...configs: R +): R extends ReadonlyArray InputConfigT)> ? T : Promise; + +export type MetalConfigT = { + cacheVersion: string; + fileMapCacheDirectory?: string; + hasteMapCacheDirectory?: string; + unstable_fileMapCacheManagerFactory?: CacheManagerFactory; + unstable_fileMapPlugins?: ReadonlyArray; + maxWorkers: number; + unstable_perfLoggerFactory?: null | undefined | PerfLoggerFactory; + projectRoot: string; + stickyWorkers: boolean; + transformerPath: string; + reporter: Reporter; + resetCache: boolean; + watchFolders: ReadonlyArray; +}; + +export type MetroConfig = InputConfigT; + +export type Middleware = HandleFunction; + +export type PerfAnnotations = Partial<{ + string: Readonly<{[key: string]: string}>; + int: Readonly<{[key: string]: number}>; + double: Readonly<{[key: string]: number}>; + bool: Readonly<{[key: string]: boolean}>; + string_array: Readonly<{[key: string]: ReadonlyArray}>; + int_array: Readonly<{[key: string]: ReadonlyArray}>; + double_array: Readonly<{[key: string]: ReadonlyArray}>; + bool_array: Readonly<{[key: string]: ReadonlyArray}>; +}>; + +export interface PerfLogger { + annotate(annotations: PerfAnnotations): void; + point(name: string, opts?: PerfLoggerPointOptions): void; + subSpan(label: string): PerfLogger; +} + +export type PerfLoggerFactory = (type: 'START_UP' | 'BUNDLING_REQUEST' | 'HMR', opts?: PerfLoggerFactoryOptions) => RootPerfLogger; + +export type PerfLoggerFactoryOptions = Readonly<{key?: number}>; + +export type PerfLoggerPointOptions = Readonly<{timestamp?: number}>; + +export function resolveConfig(filePath?: string, cwd?: string): Promise; + +export type ResolverConfigT = { + assetExts: ReadonlyArray; + assetResolutions: ReadonlyArray; + blockList: RegExp | Array; + disableHierarchicalLookup: boolean; + dependencyExtractor: null | undefined | string; + emptyModulePath: string; + enableGlobalPackages: boolean; + extraNodeModules: {[name: string]: string}; + hasteImplModulePath: null | undefined | string; + nodeModulesPaths: ReadonlyArray; + platforms: ReadonlyArray; + resolveRequest: null | undefined | CustomResolver; + resolverMainFields: ReadonlyArray; + sourceExts: ReadonlyArray; + unstable_conditionNames: ReadonlyArray; + unstable_conditionsByPlatform: Readonly<{ + [platform: string]: ReadonlyArray; + }>; + unstable_enablePackageExports: boolean; + unstable_incrementalResolution: boolean; + useWatchman: boolean; + requireCycleIgnorePatterns: ReadonlyArray; + unstable_forceFullRefreshPatterns: ReadonlyArray; +}; + +export interface RootPerfLogger extends PerfLogger { + end(status: 'SUCCESS' | 'FAIL' | 'CANCEL', opts?: PerfLoggerPointOptions): void; + start(opts?: PerfLoggerPointOptions): void; +} + +export type SerializerConfigT = { + createModuleIdFactory: () => (path: string) => number; + customSerializer: null | undefined | ((entryPoint: string, preModules: ReadonlyArray, graph: ReadOnlyGraph, options: SerializerOptions) => Promise); + experimentalSerializerHook: (graph: ReadOnlyGraph, delta: DeltaResult) => unknown; + getModulesRunBeforeMainModule: (entryFilePath: string) => Array; + getPolyfills: ($$PARAM_0$$: {platform: null | undefined | string}) => ReadonlyArray; + getRunModuleStatement: (moduleId: number | string, globalPrefix: string) => string; + polyfillModuleNames: ReadonlyArray; + processModuleFilter: (modules: Module) => boolean; + isThirdPartyModule: (module: Readonly<{path: string}>) => boolean; + unstable_inlineDependencyMap: boolean; +}; + +export type ServerConfigT = { + enhanceMiddleware: ($$PARAM_0$$: Middleware, $$PARAM_1$$: Server) => Middleware | Server_2; + forwardClientLogs: boolean; + port: number; + rewriteRequestUrl: ($$PARAM_0$$: string) => string; + unstable_serverRoot: null | undefined | string; + useGlobalHotkey: boolean; + verifyConnections: boolean; + tls: + | false + | { + ca?: string | Buffer; + cert?: string | Buffer; + key?: string | Buffer; + requestCert?: boolean; + }; +}; + +export type SymbolicatorConfigT = { + customizeFrame: ($$PARAM_0$$: { + readonly file: null | undefined | string; + readonly lineNumber: null | undefined | number; + readonly column: null | undefined | number; + readonly methodName: null | undefined | string; + }) => (null | undefined | {readonly collapse?: boolean}) | Promise; + customizeStack: ($$PARAM_0$$: Array, $$PARAM_1$$: unknown) => Array | Promise>; +}; + +export type TransformerConfigT = Omit & { + getTransformOptions: GetTransformOptions; + transformVariants: { + readonly [name: string]: Partial; + }; + publicPath: string; + unstable_workerThreads: boolean; +}; + +export type WatcherConfigT = { + additionalExts: ReadonlyArray; + healthCheck: Readonly<{ + enabled: boolean; + interval: number; + timeout: number; + filePrefix: string; + }>; + unstable_autoSaveCache: Readonly<{enabled: boolean; debounceMs?: number}>; + unstable_lazySha1: boolean; + watchman: Readonly<{deferStates: ReadonlyArray}>; +}; + +export type YargArguments = Readonly<{ + config?: string; + cwd?: string; + port?: string | number; + host?: string; + projectRoot?: string; + watchFolders?: Array; + assetExts?: Array; + sourceExts?: Array; + platforms?: Array; + 'max-workers'?: string | number; + maxWorkers?: string | number; + transformer?: string; + 'reset-cache'?: boolean; + resetCache?: boolean; + verbose?: boolean; +}>; + +``` diff --git a/packages/metro-config/types/defaults/createModuleIdFactory.d.ts b/packages/metro-config/types/defaults/createModuleIdFactory.d.ts deleted file mode 100644 index 0883cf3911..0000000000 --- a/packages/metro-config/types/defaults/createModuleIdFactory.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-config/src/defaults/createModuleIdFactory.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -declare function createModuleIdFactory(): (path: string) => number; -export default createModuleIdFactory; diff --git a/packages/metro-config/types/defaults/defaults.d.ts b/packages/metro-config/types/defaults/defaults.d.ts deleted file mode 100644 index 4cc45c2d53..0000000000 --- a/packages/metro-config/types/defaults/defaults.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-config/src/defaults/defaults.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {RootPerfLogger} from '../types'; - -export {default as defaultCreateModuleIdFactory} from './createModuleIdFactory'; -export declare const assetExts: Array; -export declare type assetExts = typeof assetExts; -export declare const assetResolutions: Array; -export declare type assetResolutions = typeof assetResolutions; -export declare const sourceExts: Array; -export declare type sourceExts = typeof sourceExts; -export declare const additionalExts: Array; -export declare type additionalExts = typeof additionalExts; -export declare const moduleSystem: string; -export declare type moduleSystem = typeof moduleSystem; -export declare const platforms: Array; -export declare type platforms = typeof platforms; -export declare const DEFAULT_METRO_MINIFIER_PATH: 'metro-minify-terser'; -export declare type DEFAULT_METRO_MINIFIER_PATH = typeof DEFAULT_METRO_MINIFIER_PATH; -export declare const noopPerfLoggerFactory: () => RootPerfLogger; -export declare type noopPerfLoggerFactory = typeof noopPerfLoggerFactory; diff --git a/packages/metro-config/types/defaults/exclusionList.d.ts b/packages/metro-config/types/defaults/exclusionList.d.ts deleted file mode 100644 index 0b4995a3b6..0000000000 --- a/packages/metro-config/types/defaults/exclusionList.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-config/src/defaults/exclusionList.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -declare function exclusionList(additionalExclusions?: ReadonlyArray): RegExp; -export default exclusionList; diff --git a/packages/metro-config/types/defaults/getMaxWorkers.d.ts b/packages/metro-config/types/defaults/getMaxWorkers.d.ts deleted file mode 100644 index b76ea9a47b..0000000000 --- a/packages/metro-config/types/defaults/getMaxWorkers.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-config/src/defaults/getMaxWorkers.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -declare function getMaxWorkers(workers: null | undefined | number): number; -export default getMaxWorkers; diff --git a/packages/metro-config/types/defaults/index.d.ts b/packages/metro-config/types/defaults/index.d.ts deleted file mode 100644 index b440e400e6..0000000000 --- a/packages/metro-config/types/defaults/index.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<391ac18242ad8a464ae81d0dbb45709a>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-config/src/defaults/index.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {ConfigT} from '../types'; - -declare const $$EXPORT_DEFAULT_DECLARATION$$: { - (rootPath?: string): Promise; - getDefaultValues: (rootPath?: string) => ConfigT; -}; -declare type $$EXPORT_DEFAULT_DECLARATION$$ = typeof $$EXPORT_DEFAULT_DECLARATION$$; -export default $$EXPORT_DEFAULT_DECLARATION$$; diff --git a/packages/metro-config/types/defaults/validConfig.d.ts b/packages/metro-config/types/defaults/validConfig.d.ts deleted file mode 100644 index e5cd63568b..0000000000 --- a/packages/metro-config/types/defaults/validConfig.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<4c43a8477da1248f0dfecc75159d2fe5>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-config/src/defaults/validConfig.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {InputConfigT} from '../types'; - -declare function validConfig(): Promise; -export default validConfig; diff --git a/packages/metro-config/types/index.d.ts b/packages/metro-config/types/index.d.ts deleted file mode 100644 index 62e1a86037..0000000000 --- a/packages/metro-config/types/index.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<9dd33483d38a4822221997a63b6ed7d0>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-config/src/index.flow.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -export type * from './types'; -import getDefaultConfig from './defaults'; -import {loadConfig, mergeConfig, resolveConfig} from './loadConfig'; - -export {getDefaultConfig, loadConfig, mergeConfig, resolveConfig}; diff --git a/packages/metro-config/types/loadConfig.d.ts b/packages/metro-config/types/loadConfig.d.ts deleted file mode 100644 index 46b488067b..0000000000 --- a/packages/metro-config/types/loadConfig.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<77abf834e30b5dd44fb037ee8bd45686>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-config/src/loadConfig.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {ConfigT, InputConfigT, YargArguments} from './types'; - -type ResolveConfigResult = { - filepath: string; - isEmpty: boolean; - config: ((baseConfig: ConfigT) => Promise) | ((baseConfig: ConfigT) => ConfigT) | InputConfigT; -}; -declare function resolveConfig(filePath?: string, cwd?: string): Promise; -/** - * Merge two or more partial config objects (or functions returning partial - * configs) together, with arguments to the right overriding the left. - * - * Functions will be parsed the current config (the merge of all configs to the - * left). - * - * Functions may be async, in which case this function will return a promise. - * Otherwise it will return synchronously. - */ -declare function mergeConfig InputConfigT) | ((baseConfig: T) => Promise)>>( - base: T | (() => T), - ...configs: R -): R extends ReadonlyArray InputConfigT)> ? T : Promise; -/** - * Load the metro configuration from disk - * @param {object} argv Arguments coming from the CLI, can be empty - * @param {object} defaultConfigOverrides A configuration that can override the default config - * @return {object} Configuration returned - */ -declare function loadConfig(argvInput?: YargArguments, defaultConfigOverrides?: InputConfigT): Promise; -export declare function loadConfigFile(absolutePath: string): Promise; -export {loadConfig, resolveConfig, mergeConfig}; diff --git a/packages/metro-config/types/types.d.ts b/packages/metro-config/types/types.d.ts deleted file mode 100644 index 0d1af02b3b..0000000000 --- a/packages/metro-config/types/types.d.ts +++ /dev/null @@ -1,228 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<08960eb44a59d3d45155da2e2f9173b9>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-config/src/types.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {HandleFunction, Server} from 'connect'; -import type {CacheStore, MetroCache} from 'metro-cache'; -import type {CacheManagerFactory, InputFileMapPlugin} from 'metro-file-map'; -import type {CustomResolver} from 'metro-resolver'; -import type {JsTransformerConfig} from 'metro-transform-worker'; -import type {DeltaResult, Module, ReadOnlyGraph, SerializerOptions, TransformResult} from 'metro/private/DeltaBundler/types'; -import type {Reporter} from 'metro/private/lib/reporting'; -import type MetroServer from 'metro/private/Server'; -import type {IntermediateStackFrame} from 'metro/private/Server/symbolicate'; - -export type ExtraTransformOptions = Readonly<{ - preloadedModules?: Readonly<{[path: string]: true}> | false; - ramGroups?: ReadonlyArray; - transform?: Readonly<{ - experimentalImportSupport?: boolean; - inlineRequires?: - | Readonly<{ - blockList: Readonly<{[absoluteModulePath: string]: true}>; - }> - | boolean; - nonInlinedRequires?: ReadonlyArray; - unstable_memoizeInlineRequires?: boolean; - unstable_nonMemoizedInlineRequires?: ReadonlyArray; - }>; -}>; -export type GetTransformOptionsOpts = { - dev: boolean; - /** - * @deprecated Always true - */ - hot: true; - platform: null | undefined | string; -}; -export type GetTransformOptions = ( - entryPoints: ReadonlyArray, - options: GetTransformOptionsOpts, - getDependenciesOf: (absoluteFilePath: string) => Promise>, -) => Promise>; -export type Middleware = HandleFunction; -type PerfAnnotations = Partial<{ - string: Readonly<{[key: string]: string}>; - int: Readonly<{[key: string]: number}>; - double: Readonly<{[key: string]: number}>; - bool: Readonly<{[key: string]: boolean}>; - string_array: Readonly<{[key: string]: ReadonlyArray}>; - int_array: Readonly<{[key: string]: ReadonlyArray}>; - double_array: Readonly<{[key: string]: ReadonlyArray}>; - bool_array: Readonly<{[key: string]: ReadonlyArray}>; -}>; -type PerfLoggerPointOptions = Readonly<{timestamp?: number}>; -export interface PerfLogger { - point(name: string, opts?: PerfLoggerPointOptions): void; - annotate(annotations: PerfAnnotations): void; - subSpan(label: string): PerfLogger; -} -export interface RootPerfLogger extends PerfLogger { - start(opts?: PerfLoggerPointOptions): void; - end(status: 'SUCCESS' | 'FAIL' | 'CANCEL', opts?: PerfLoggerPointOptions): void; -} -export type PerfLoggerFactoryOptions = Readonly<{key?: number}>; -export type PerfLoggerFactory = (type: 'START_UP' | 'BUNDLING_REQUEST' | 'HMR', opts?: PerfLoggerFactoryOptions) => RootPerfLogger; -type ResolverConfigT = { - assetExts: ReadonlyArray; - assetResolutions: ReadonlyArray; - blockList: RegExp | Array; - disableHierarchicalLookup: boolean; - dependencyExtractor: null | undefined | string; - emptyModulePath: string; - enableGlobalPackages: boolean; - extraNodeModules: {[name: string]: string}; - hasteImplModulePath: null | undefined | string; - nodeModulesPaths: ReadonlyArray; - platforms: ReadonlyArray; - resolveRequest: null | undefined | CustomResolver; - resolverMainFields: ReadonlyArray; - sourceExts: ReadonlyArray; - unstable_conditionNames: ReadonlyArray; - unstable_conditionsByPlatform: Readonly<{ - [platform: string]: ReadonlyArray; - }>; - unstable_enablePackageExports: boolean; - unstable_incrementalResolution: boolean; - useWatchman: boolean; - requireCycleIgnorePatterns: ReadonlyArray; - unstable_forceFullRefreshPatterns: ReadonlyArray; -}; -type SerializerConfigT = { - createModuleIdFactory: () => (path: string) => number; - customSerializer: null | undefined | ((entryPoint: string, preModules: ReadonlyArray, graph: ReadOnlyGraph, options: SerializerOptions) => Promise); - experimentalSerializerHook: (graph: ReadOnlyGraph, delta: DeltaResult) => unknown; - getModulesRunBeforeMainModule: (entryFilePath: string) => Array; - getPolyfills: ($$PARAM_0$$: {platform: null | undefined | string}) => ReadonlyArray; - getRunModuleStatement: (moduleId: number | string, globalPrefix: string) => string; - polyfillModuleNames: ReadonlyArray; - processModuleFilter: (modules: Module) => boolean; - isThirdPartyModule: (module: Readonly<{path: string}>) => boolean; - unstable_inlineDependencyMap: boolean; -}; -type TransformerConfigT = Omit & { - getTransformOptions: GetTransformOptions; - transformVariants: { - readonly [name: string]: Partial; - }; - publicPath: string; - unstable_workerThreads: boolean; -}; -type MetalConfigT = { - cacheVersion: string; - fileMapCacheDirectory?: string; - hasteMapCacheDirectory?: string; - unstable_fileMapCacheManagerFactory?: CacheManagerFactory; - unstable_fileMapPlugins?: ReadonlyArray; - maxWorkers: number; - unstable_perfLoggerFactory?: null | undefined | PerfLoggerFactory; - projectRoot: string; - stickyWorkers: boolean; - transformerPath: string; - reporter: Reporter; - resetCache: boolean; - watchFolders: ReadonlyArray; -}; -type CacheStoresConfigT = ReadonlyArray>; -type ServerConfigT = { - /** @deprecated */ - enhanceMiddleware: ($$PARAM_0$$: Middleware, $$PARAM_1$$: MetroServer) => Middleware | Server; - forwardClientLogs: boolean; - port: number; - rewriteRequestUrl: ($$PARAM_0$$: string) => string; - unstable_serverRoot: null | undefined | string; - useGlobalHotkey: boolean; - verifyConnections: boolean; - tls: - | false - | { - ca?: string | Buffer; - cert?: string | Buffer; - key?: string | Buffer; - requestCert?: boolean; - }; -}; -type SymbolicatorConfigT = { - customizeFrame: ($$PARAM_0$$: { - readonly file: null | undefined | string; - readonly lineNumber: null | undefined | number; - readonly column: null | undefined | number; - readonly methodName: null | undefined | string; - }) => (null | undefined | {readonly collapse?: boolean}) | Promise; - customizeStack: ($$PARAM_0$$: Array, $$PARAM_1$$: unknown) => Array | Promise>; -}; -type WatcherConfigT = { - additionalExts: ReadonlyArray; - healthCheck: Readonly<{ - enabled: boolean; - interval: number; - timeout: number; - filePrefix: string; - }>; - unstable_autoSaveCache: Readonly<{enabled: boolean; debounceMs?: number}>; - unstable_lazySha1: boolean; - watchman: Readonly<{deferStates: ReadonlyArray}>; -}; -export type InputConfigT = Partial< - Readonly< - MetalConfigT & { - cacheStores: CacheStoresConfigT | (($$PARAM_0$$: MetroCache) => CacheStoresConfigT); - resolver: Readonly>; - server: Readonly>; - serializer: Readonly>; - symbolicator: Readonly>; - transformer: Readonly>; - watcher: Partial< - Readonly< - Omit & { - healthCheck: Partial>; - unstable_autoSaveCache: Partial>; - watchman: Partial>; - } - > - >; - } - > ->; -export type MetroConfig = InputConfigT; -export type ConfigT = Readonly< - MetalConfigT & { - cacheStores: CacheStoresConfigT; - resolver: Readonly; - server: Readonly; - serializer: Readonly; - symbolicator: Readonly; - transformer: Readonly; - watcher: Readonly; - } ->; -export type YargArguments = Readonly<{ - config?: string; - cwd?: string; - port?: string | number; - host?: string; - projectRoot?: string; - watchFolders?: Array; - assetExts?: Array; - sourceExts?: Array; - platforms?: Array; - 'max-workers'?: string | number; - maxWorkers?: string | number; - transformer?: string; - 'reset-cache'?: boolean; - resetCache?: boolean; - verbose?: boolean; -}>; diff --git a/packages/metro-core/API.md b/packages/metro-core/API.md new file mode 100644 index 0000000000..87c8d7b556 --- /dev/null +++ b/packages/metro-core/API.md @@ -0,0 +1,88 @@ +## API Report File for "metro-core" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +import type { Socket } from 'node:net'; +import type { Writable } from 'node:stream'; + +type ActionLogEntryData = { + action_name: string; + log_entry_label?: string; +}; + +type ActionStartLogEntry = { + action_name?: string; + action_phase?: string; + log_entry_label: string; + log_session?: string; + start_timestamp?: [number, number]; +}; + +export class AmbiguousModuleResolutionError extends Error { + constructor(fromModulePath: string, hasteError: DuplicateHasteCandidatesError); + fromModulePath: string; + hasteError: DuplicateHasteCandidatesError; +} + +function createActionEndEntry(logEntry: ActionStartLogEntry, error?: null | undefined | Error): LogEntry; + +function createActionStartEntry(data: ActionLogEntryData | string): LogEntry; + +function createEntry(data: LogEntry | string): LogEntry; + +function log(logEntry: LogEntry): LogEntry; + +type LogEntry = { + action_name?: string; + action_phase?: string; + action_result?: string; + duration_ms?: number; + entry_point?: string; + file_name?: string; + log_entry_label: string; + log_session?: string; + start_timestamp?: [number, number]; + outdated_modules?: number; + bundle_size?: number; + bundle_options?: BundleOptions; + bundle_hash?: string; + build_id?: string; + error_message?: string; + error_stack?: string; +}; + +declare namespace Logger { + export { + ActionLogEntryData, + ActionStartLogEntry, + LogEntry, + on, + createEntry, + createActionStartEntry, + createActionEndEntry, + log + } +} +export { Logger } + +function on(event: string, handler: (logEntry: LogEntry) => void): void; + +export class PackageResolutionError extends Error { + constructor(opts: {readonly originModulePath: string; readonly packageError: InvalidPackageError; readonly targetModuleName: string}); + originModulePath: string; + packageError: InvalidPackageError; + targetModuleName: string; +} + +export class Terminal { + constructor(stream: UnderlyingStream, opts?: {ttyPrint?: boolean}); + flush(): Promise; + log(format: string, ...args: Array): void; + persistStatus(): void; + status(format: string, ...args: Array): string; + waitForUpdates(): Promise; +} + +``` diff --git a/packages/metro-core/types/Logger.d.ts b/packages/metro-core/types/Logger.d.ts deleted file mode 100644 index b359b515d9..0000000000 --- a/packages/metro-core/types/Logger.d.ts +++ /dev/null @@ -1,54 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<9b4123ff13bd1c4aa6bd7f398de068e2>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-core/src/Logger.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {BundleOptions} from 'metro/private/shared/types'; - -export type ActionLogEntryData = { - action_name: string; - log_entry_label?: string; -}; -export type ActionStartLogEntry = { - action_name?: string; - action_phase?: string; - log_entry_label: string; - log_session?: string; - start_timestamp?: [number, number]; -}; -export type LogEntry = { - action_name?: string; - action_phase?: string; - action_result?: string; - duration_ms?: number; - entry_point?: string; - file_name?: string; - log_entry_label: string; - log_session?: string; - start_timestamp?: [number, number]; - outdated_modules?: number; - bundle_size?: number; - bundle_options?: BundleOptions; - bundle_hash?: string; - build_id?: string; - error_message?: string; - error_stack?: string; -}; -declare function on(event: string, handler: (logEntry: LogEntry) => void): void; -declare function createEntry(data: LogEntry | string): LogEntry; -declare function createActionStartEntry(data: ActionLogEntryData | string): LogEntry; -declare function createActionEndEntry(logEntry: ActionStartLogEntry, error?: null | undefined | Error): LogEntry; -declare function log(logEntry: LogEntry): LogEntry; -export {on, createEntry, createActionStartEntry, createActionEndEntry, log}; diff --git a/packages/metro-core/types/Terminal.d.ts b/packages/metro-core/types/Terminal.d.ts deleted file mode 100644 index 60f65c3245..0000000000 --- a/packages/metro-core/types/Terminal.d.ts +++ /dev/null @@ -1,79 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-core/src/Terminal.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {Socket} from 'node:net'; -import type {Writable} from 'node:stream'; - -type UnderlyingStream = Socket | Writable; -/** - * We don't just print things to the console, sometimes we also want to show - * and update progress. This utility just ensures the output stays neat: no - * missing newlines, no mangled log lines. - * - * const terminal = Terminal.default; - * terminal.status('Updating... 38%'); - * terminal.log('warning: Something happened.'); - * terminal.status('Updating, done.'); - * terminal.persistStatus(); - * - * The final output: - * - * warning: Something happened. - * Updating, done. - * - * Without the status feature, we may get a mangled output: - * - * Updating... 38%warning: Something happened. - * Updating, done. - * - * This is meant to be user-readable and TTY-oriented. We use stdout by default - * because it's more about status information than diagnostics/errors (stderr). - * - * Do not add any higher-level functionality in this class such as "warning" and - * "error" printers, as it is not meant for formatting/reporting. It has the - * single responsibility of handling status messages. - */ -declare class Terminal { - constructor(stream: UnderlyingStream, opts?: {ttyPrint?: boolean}); - waitForUpdates(): Promise; - /** - * Useful for calling console/stdout directly after terminal logs - * Otherwise, you could end up with mangled output when the queued - * update starts writing to stream after a delay. - */ - flush(): Promise; - /** - * Shows some text that is meant to be overriden later. Return the previous - * status that was shown and is no more. Calling `status()` with no argument - * removes the status altogether. The status is never shown in a - * non-interactive terminal: for example, if the output is redirected to a - * file, then we don't care too much about having a progress bar. - */ - status(format: string, ...args: Array): string; - /** - * Similar to `console.log`, except it moves the status/progress text out of - * the way correctly. In non-interactive terminals this is the same as - * `console.log`. - */ - log(format: string, ...args: Array): void; - /** - * Log the current status and start from scratch. This is useful if the last - * status was the last one of a series of updates. - */ - persistStatus(): void; -} -export default Terminal; diff --git a/packages/metro-core/types/canonicalize.d.ts b/packages/metro-core/types/canonicalize.d.ts deleted file mode 100644 index 7c58460e5b..0000000000 --- a/packages/metro-core/types/canonicalize.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-core/src/canonicalize.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -declare function canonicalize(key: string, value: unknown): unknown; -export default canonicalize; diff --git a/packages/metro-core/types/errors.d.ts b/packages/metro-core/types/errors.d.ts deleted file mode 100644 index ac88c01129..0000000000 --- a/packages/metro-core/types/errors.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<91251362bdbebafd413b723f863e29a9>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-core/src/errors.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import AmbiguousModuleResolutionError from './errors/AmbiguousModuleResolutionError'; -import PackageResolutionError from './errors/PackageResolutionError'; - -export {AmbiguousModuleResolutionError, PackageResolutionError}; diff --git a/packages/metro-core/types/errors/AmbiguousModuleResolutionError.d.ts b/packages/metro-core/types/errors/AmbiguousModuleResolutionError.d.ts deleted file mode 100644 index e627605960..0000000000 --- a/packages/metro-core/types/errors/AmbiguousModuleResolutionError.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<9931686fa381e18a503f22ef59797a39>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-core/src/errors/AmbiguousModuleResolutionError.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {DuplicateHasteCandidatesError} from 'metro-file-map'; - -declare class AmbiguousModuleResolutionError extends Error { - fromModulePath: string; - hasteError: DuplicateHasteCandidatesError; - constructor(fromModulePath: string, hasteError: DuplicateHasteCandidatesError); -} -export default AmbiguousModuleResolutionError; diff --git a/packages/metro-core/types/errors/PackageResolutionError.d.ts b/packages/metro-core/types/errors/PackageResolutionError.d.ts deleted file mode 100644 index 5074da9a37..0000000000 --- a/packages/metro-core/types/errors/PackageResolutionError.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<0a622ada969fd83885fa4d354724adc3>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-core/src/errors/PackageResolutionError.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {InvalidPackageError} from 'metro-resolver'; - -declare class PackageResolutionError extends Error { - originModulePath: string; - packageError: InvalidPackageError; - targetModuleName: string; - constructor(opts: {readonly originModulePath: string; readonly packageError: InvalidPackageError; readonly targetModuleName: string}); -} -export default PackageResolutionError; diff --git a/packages/metro-core/types/index.d.ts b/packages/metro-core/types/index.d.ts deleted file mode 100644 index 5e024a8da5..0000000000 --- a/packages/metro-core/types/index.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<107b718ee07231601b3a90baea076156>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-core/src/index.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import AmbiguousModuleResolutionError from './errors/AmbiguousModuleResolutionError'; -import PackageResolutionError from './errors/PackageResolutionError'; -import * as Logger from './Logger'; -import Terminal from './Terminal'; - -export {AmbiguousModuleResolutionError, Logger, PackageResolutionError, Terminal}; diff --git a/packages/metro-file-map/API.md b/packages/metro-file-map/API.md new file mode 100644 index 0000000000..ee93b61101 --- /dev/null +++ b/packages/metro-file-map/API.md @@ -0,0 +1,236 @@ +## API Report File for "metro-file-map" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +import EventEmitter from 'node:events'; + +export type BuildParameters = Readonly<{ + computeSha1: boolean; + enableSymlinks: boolean; + extensions: ReadonlyArray; + ignorePattern: RegExp; + plugins: ReadonlyArray; + retainAllFiles: boolean; + rootDir: string; + roots: ReadonlyArray; + cacheBreaker: string; +}>; + +export type BuildResult = {fileSystem: FileSystem_2}; + +export type CacheData = Readonly<{ + clocks: WatchmanClocks; + fileSystemData: unknown; + plugins: ReadonlyMap; +}>; + +export interface CacheManager { + end(): Promise; + read(): Promise; + write(getSnapshot: () => CacheData, opts: CacheManagerWriteOptions): Promise; +} + +export type CacheManagerFactory = (options: CacheManagerFactoryOptions) => CacheManager; + +export type CacheManagerFactoryOptions = Readonly<{ + buildParameters: BuildParameters; +}>; + +export type CacheManagerWriteOptions = Readonly<{ + changedSinceCacheRead: boolean; + eventSource: CacheManagerEventSource; + onWriteError: (error: Error) => void; +}>; + +export type ChangeEvent = Readonly<{ + logger: null | undefined | RootPerfLogger; + changes: ReadonlyFileSystemChanges>; + rootDir: string; +}>; + +export type ChangeEventMetadata = { + modifiedTime: null | undefined | number; + size: null | undefined | number; + type: 'f' | 'd' | 'l'; +}; + +export type DependencyExtractor = { + extract: (content: string, absoluteFilePath: string, defaultExtractor?: DependencyExtractor['extract']) => Set; + getCacheKey: () => string; +}; + +export class DependencyPlugin extends FileDataPlugin | null> { + constructor(options: DependencyPluginOptions); + getDependencies(mixedPath: Path): null | undefined | ReadonlyArray; +} + +export type DependencyPluginOptions = Readonly<{ + dependencyExtractor: null | undefined | string; + computeDependencies: boolean; +}>; + +export class DiskCacheManager implements CacheManager { + constructor($$PARAM_0$$: CacheManagerFactoryOptions, $$PARAM_1$$: DiskCacheConfig); + end(): Promise; + static getCacheFilePath(buildParameters: BuildParameters, cacheFilePrefix?: null | undefined | string, cacheDirectory?: null | undefined | string): string; + getCacheFilePath(): string; + read(): Promise; + write(getSnapshot: () => CacheData, $$PARAM_1$$: CacheManagerWriteOptions): Promise; +} + +export class DuplicateHasteCandidatesError extends Error { + constructor(name: string, platform: string, supportsNativePlatform: boolean, duplicatesSet: DuplicatesSet); + duplicatesSet: DuplicatesSet; + hasteName: string; + platform: string | null; + supportsNativePlatform: boolean; +} + +export type FileData = Map; + +class FileMap extends EventEmitter { + constructor(options: InputOptions); + build(): Promise; + static create(options: InputOptions): FileMap; + end(): Promise; + static H: HType; + read(): Promise; +} +export { FileMap } +export default FileMap; + +interface FileSystem_2 { + exists(file: Path): boolean; + getAllFiles(): Array; + getDifference( + files: FileData, + options?: Readonly<{ + subpath?: string; + }>, + ): {changedFiles: FileData; removedFiles: Set}; + getOrComputeSha1(file: Path): Promise; + getSerializableSnapshot(): CacheData['fileSystemData']; + getSha1(file: Path): null | undefined | string; + hierarchicalLookup( + mixedStartPath: string, + subpath: string, + opts: { + breakOnSegment: null | undefined | string; + invalidatedBy: null | undefined | Set; + subpathType: 'f' | 'd'; + }, + ): null | undefined | {absolutePath: string; containerRelativePath: string}; + linkStats(file: Path): null | undefined | FileStats; + lookup(mixedPath: Path): LookupResult; + matchFiles(opts: {filter?: RegExp | null; filterCompareAbsolute?: boolean; filterComparePosix?: boolean; follow?: boolean; recursive?: boolean; rootDir?: Path | null}): Iterable; +} +export { FileSystem_2 as FileSystem } + +export class HasteConflictsError extends Error { + constructor(conflicts: ReadonlyArray); + getDetailedMessage(pathsRelativeToRoot: null | undefined | string): string; +} + +export interface HasteMap { + computeConflicts(): Array; + getModule(name: string, platform?: null | undefined | string, supportsNativePlatform?: null | undefined | boolean, type?: null | undefined | HTypeValue): null | undefined | Path; + getModuleNameByPath(file: Path): null | undefined | string; + getPackage(name: string, platform: null | undefined | string, _supportsNativePlatform: null | undefined | boolean): null | undefined | Path; +} + +export type HasteMapData = Map; + +export type HasteMapItem = { + [platform: string]: HasteMapItemMetadata; +}; + +export class HastePlugin implements HasteMap, FileMapPlugin { + constructor(options: HasteMapOptions); + assertValid(): void; + computeConflicts(): Array; + getCacheKey(): string; + getModule(name: string, platform?: null | undefined | string, supportsNativePlatform?: null | undefined | boolean, type?: null | undefined | HTypeValue): null | undefined | Path; + getModuleNameByPath(mixedPath: Path): null | undefined | string; + getPackage(name: string, platform: null | undefined | string, _supportsNativePlatform?: null | undefined | boolean): null | undefined | Path; + getSerializableSnapshot(): null; + getWorker(): FileMapPluginWorker; + initialize($$PARAM_0$$: FileMapPluginInitOptions): Promise; + readonly name: 'haste'; + onChanged(delta: ReadonlyFileSystemChanges): void; + setModule(id: string, module: HasteMapItemMetadata): void; +} + +export type HealthCheckResult = +| { + type: 'error'; + timeout: number; + error: Error; + watcher: null | undefined | string; +} +| { + type: 'success'; + timeout: number; + timeElapsed: number; + watcher: null | undefined | string; +} +| { + type: 'timeout'; + timeout: number; + watcher: null | undefined | string; + pauseReason: null | undefined | string; +}; + +export type InputFileMapPlugin = FileMapPlugin< +/** +* > 233 | export type InputFileMapPlugin = FileMapPlugin; +* | ^^^^^ Unsupported feature: Translating "empty type" is currently not supported. +**/ +any, +/** +* > 233 | export type InputFileMapPlugin = FileMapPlugin; +* | ^^^^^ Unsupported feature: Translating "empty type" is currently not supported. +**/ +any +>; + +export type InputOptions = Readonly<{ + computeSha1?: null | undefined | boolean; + enableSymlinks?: null | undefined | boolean; + extensions: ReadonlyArray; + ignorePattern?: null | undefined | RegExp; + plugins?: ReadonlyArray; + retainAllFiles: boolean; + rootDir: string; + roots: ReadonlyArray; + cacheManagerFactory?: null | undefined | CacheManagerFactory; + console?: Console_2; + healthCheck: HealthCheckOptions; + maxFilesPerWorker?: null | undefined | number; + maxWorkers: number; + perfLoggerFactory?: null | undefined | PerfLoggerFactory; + resetCache?: null | undefined | boolean; + useWatchman?: null | undefined | boolean; + watch?: null | undefined | boolean; + watchmanDeferStates?: ReadonlyArray; +}>; + +export type WatcherStatus = +| { + type: 'watchman_slow_command'; + timeElapsed: number; + command: 'watch-project' | 'query'; +} +| { + type: 'watchman_slow_command_complete'; + timeElapsed: number; + command: 'watch-project' | 'query'; +} +| { + type: 'watchman_warning'; + warning: unknown; + command: 'watch-project' | 'query'; +}; + +``` diff --git a/packages/metro-file-map/types/Watcher.d.ts b/packages/metro-file-map/types/Watcher.d.ts deleted file mode 100644 index b873422526..0000000000 --- a/packages/metro-file-map/types/Watcher.d.ts +++ /dev/null @@ -1,64 +0,0 @@ -/** - * 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. - * - * @noformat - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-file-map/src/Watcher.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {Console, CrawlerOptions, CrawlResult, PerfLogger, WatcherBackendChangeEvent} from './flow-types'; - -import EventEmitter from 'node:events'; - -type WatcherOptions = { - abortSignal: AbortSignal; - computeSha1: boolean; - console: Console; - enableSymlinks: boolean; - extensions: ReadonlyArray; - healthCheckFilePrefix: string; - ignoreForCrawl: (filePath: string) => boolean; - ignorePatternForWatch: RegExp; - previousState: CrawlerOptions['previousState']; - perfLogger: null | undefined | PerfLogger; - roots: ReadonlyArray; - rootDir: string; - useWatchman: boolean; - watch: boolean; - watchmanDeferStates: ReadonlyArray; -}; -export type HealthCheckResult = - | { - type: 'error'; - timeout: number; - error: Error; - watcher: null | undefined | string; - } - | { - type: 'success'; - timeout: number; - timeElapsed: number; - watcher: null | undefined | string; - } - | { - type: 'timeout'; - timeout: number; - watcher: null | undefined | string; - pauseReason: null | undefined | string; - }; -export declare class Watcher extends EventEmitter { - constructor(options: WatcherOptions); - crawl(): Promise; - recrawl(subpath: string, currentFileSystem: CrawlerOptions['previousState']['fileSystem']): Promise; - watch(onChange: (change: WatcherBackendChangeEvent) => void): void; - close(): void; - checkHealth(timeout: number): Promise; -} diff --git a/packages/metro-file-map/types/cache/DiskCacheManager.d.ts b/packages/metro-file-map/types/cache/DiskCacheManager.d.ts deleted file mode 100644 index 2b9c907b33..0000000000 --- a/packages/metro-file-map/types/cache/DiskCacheManager.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-file-map/src/cache/DiskCacheManager.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {BuildParameters, CacheData, CacheManager, CacheManagerFactoryOptions, CacheManagerWriteOptions} from '../flow-types'; - -type AutoSaveOptions = Readonly<{debounceMs: number}>; -type DiskCacheConfig = Readonly<{ - autoSave?: Partial | boolean; - cacheFilePrefix?: null | undefined | string; - cacheDirectory?: null | undefined | string; -}>; -export declare class DiskCacheManager implements CacheManager { - constructor($$PARAM_0$$: CacheManagerFactoryOptions, $$PARAM_1$$: DiskCacheConfig); - static getCacheFilePath(buildParameters: BuildParameters, cacheFilePrefix?: null | undefined | string, cacheDirectory?: null | undefined | string): string; - getCacheFilePath(): string; - read(): Promise; - write(getSnapshot: () => CacheData, $$PARAM_1$$: CacheManagerWriteOptions): Promise; - end(): Promise; -} diff --git a/packages/metro-file-map/types/constants.d.ts b/packages/metro-file-map/types/constants.d.ts deleted file mode 100644 index e1d052b808..0000000000 --- a/packages/metro-file-map/types/constants.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * 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. - * - * @noformat - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-file-map/src/constants.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {HType} from './flow-types'; - -declare const $$EXPORT_DEFAULT_DECLARATION$$: HType; -declare type $$EXPORT_DEFAULT_DECLARATION$$ = typeof $$EXPORT_DEFAULT_DECLARATION$$; -export default $$EXPORT_DEFAULT_DECLARATION$$; diff --git a/packages/metro-file-map/types/crawlers/node/index.d.ts b/packages/metro-file-map/types/crawlers/node/index.d.ts deleted file mode 100644 index 38ddc03ecf..0000000000 --- a/packages/metro-file-map/types/crawlers/node/index.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<27109494e4956802ba89ac6fd22aa277>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-file-map/src/crawlers/node/index.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {CrawlerOptions, CrawlResult} from '../../flow-types'; - -declare function nodeCrawl(options: CrawlerOptions): Promise; -export default nodeCrawl; diff --git a/packages/metro-file-map/types/crawlers/watchman/index.d.ts b/packages/metro-file-map/types/crawlers/watchman/index.d.ts deleted file mode 100644 index 95537b7602..0000000000 --- a/packages/metro-file-map/types/crawlers/watchman/index.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<36c7ca94fe2070530db89e9169f0b6a8>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-file-map/src/crawlers/watchman/index.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {CrawlerOptions, CrawlResult} from '../../flow-types'; - -declare function watchmanCrawl($$PARAM_0$$: CrawlerOptions): Promise; -export default watchmanCrawl; diff --git a/packages/metro-file-map/types/crawlers/watchman/planQuery.d.ts b/packages/metro-file-map/types/crawlers/watchman/planQuery.d.ts deleted file mode 100644 index b90fad8c44..0000000000 --- a/packages/metro-file-map/types/crawlers/watchman/planQuery.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * 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. - * - * @noformat - * @generated SignedSource<<542d8499f7c1ed111b466dbea5bc98db>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-file-map/src/crawlers/watchman/planQuery.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -type WatchmanQuery = {[key: string]: unknown}; -type WatchmanQuerySince = unknown; - -export declare function planQuery( - args: Readonly<{ - since: WatchmanQuerySince; - directoryFilters: ReadonlyArray; - extensions: ReadonlyArray; - includeSha1: boolean; - includeSymlinks: boolean; - }>, -): { - query: WatchmanQuery; - queryGenerator: string; -}; diff --git a/packages/metro-file-map/types/flow-types.d.ts b/packages/metro-file-map/types/flow-types.d.ts deleted file mode 100644 index 64f4c8f624..0000000000 --- a/packages/metro-file-map/types/flow-types.d.ts +++ /dev/null @@ -1,370 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-file-map/src/flow-types.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {PerfLogger, PerfLoggerFactory, RootPerfLogger} from 'metro-config'; - -export type {PerfLoggerFactory, PerfLogger}; -export type BuildParameters = Readonly<{ - computeSha1: boolean; - enableSymlinks: boolean; - extensions: ReadonlyArray; - ignorePattern: RegExp; - plugins: ReadonlyArray; - retainAllFiles: boolean; - rootDir: string; - roots: ReadonlyArray; - cacheBreaker: string; -}>; -export type BuildResult = {fileSystem: FileSystem}; -export type CacheData = Readonly<{ - clocks: WatchmanClocks; - fileSystemData: unknown; - plugins: ReadonlyMap; -}>; -export interface CacheManager { - /** - * Called during startup to load initial state, if available. Provided to - * a crawler, which will return the delta between the initial state and the - * current file system state. - */ - read(): Promise; - /** - * Called when metro-file-map `build()` has applied changes returned by the - * crawler - i.e. internal state reflects the current file system state. - * - * getSnapshot may be retained and called at any time before end(), such as - * in response to eventSource 'change' events. - */ - write(getSnapshot: () => CacheData, opts: CacheManagerWriteOptions): Promise; - /** - * The last call that will be made to this CacheManager. Any handles should - * be closed by the time this settles. - */ - end(): Promise; -} -export interface CacheManagerEventSource { - onChange(listener: () => void): () => void; -} -export type CacheManagerFactory = (options: CacheManagerFactoryOptions) => CacheManager; -export type CacheManagerFactoryOptions = Readonly<{ - buildParameters: BuildParameters; -}>; -export type CacheManagerWriteOptions = Readonly<{ - changedSinceCacheRead: boolean; - eventSource: CacheManagerEventSource; - onWriteError: (error: Error) => void; -}>; -export type CanonicalPath = string; -export type ChangedFileMetadata = Readonly<{ - isSymlink: boolean; - modifiedTime?: null | undefined | number; -}>; -export type ChangeEvent = Readonly<{ - logger: null | undefined | RootPerfLogger; - changes: ReadonlyFileSystemChanges>; - rootDir: string; -}>; -export type ChangeEventMetadata = { - modifiedTime: null | undefined | number; - size: null | undefined | number; - type: 'f' | 'd' | 'l'; -}; -export type Console = typeof global.console; -export type CrawlerOptions = { - abortSignal: null | undefined | AbortSignal; - computeSha1: boolean; - console: Console; - extensions: ReadonlyArray; - ignore: IgnoreMatcher; - includeSymlinks: boolean; - perfLogger?: null | undefined | PerfLogger; - previousState: Readonly<{ - clocks: ReadonlyMap; - fileSystem: FileSystem; - }>; - rootDir: string; - roots: ReadonlyArray; - onStatus: (status: WatcherStatus) => void; - subpath?: string; -}; -export type CrawlResult = {changedFiles: FileData; removedFiles: Set; clocks: WatchmanClocks} | {changedFiles: FileData; removedFiles: Set}; -export type DependencyExtractor = { - extract: (content: string, absoluteFilePath: string, defaultExtractor?: DependencyExtractor['extract']) => Set; - getCacheKey: () => string; -}; -export type WatcherStatus = - | { - type: 'watchman_slow_command'; - timeElapsed: number; - command: 'watch-project' | 'query'; - } - | { - type: 'watchman_slow_command_complete'; - timeElapsed: number; - command: 'watch-project' | 'query'; - } - | { - type: 'watchman_warning'; - warning: unknown; - command: 'watch-project' | 'query'; - }; -export type DuplicatesSet = Map; -export type DuplicatesIndex = Map>; -export type FileMapPluginInitOptions = Readonly<{ - files: Readonly<{ - fileIterator(opts: Readonly<{includeNodeModules: boolean; includeSymlinks: boolean}>): Iterable<{ - baseName: string; - canonicalPath: string; - readonly pluginData: null | undefined | PerFileData; - }>; - lookup(mixedPath: string): {exists: false} | {exists: true; type: 'f'; readonly pluginData: PerFileData} | {exists: true; type: 'd'}; - }>; - pluginState: null | undefined | SerializableState; -}>; -export type FileMapPluginWorker = Readonly<{ - worker: Readonly<{modulePath: string; setupArgs: JsonData}>; - filter: ($$PARAM_0$$: {normalPath: string; isNodeModules: boolean}) => boolean; -}>; -type V8SerializablePrimitive = string | number | boolean | null; -type V8SerializableCollection = ReadonlyArray | ReadonlySet | ReadonlyMap | Readonly<{[key: string]: V8Serializable}>; -export type V8Serializable = V8SerializablePrimitive | V8SerializableCollection; -export interface FileMapPlugin { - readonly name: string; - initialize(initOptions: FileMapPluginInitOptions): Promise; - assertValid(): void; - onChanged(changes: ReadonlyFileSystemChanges): void; - getSerializableSnapshot(): void | V8Serializable; - getCacheKey(): string; - getWorker(): null | undefined | FileMapPluginWorker; -} -export type InputFileMapPlugin = FileMapPlugin< - /** - * > 233 | export type InputFileMapPlugin = FileMapPlugin; - * | ^^^^^ Unsupported feature: Translating "empty type" is currently not supported. - **/ - any, - /** - * > 233 | export type InputFileMapPlugin = FileMapPlugin; - * | ^^^^^ Unsupported feature: Translating "empty type" is currently not supported. - **/ - any ->; -export interface MetadataWorker { - processFile($$PARAM_0$$: WorkerMessage, $$PARAM_1$$: Readonly<{getContent: () => Buffer}>): V8Serializable; -} -export type HType = { - MTIME: 0; - SIZE: 1; - VISITED: 2; - SHA1: 3; - SYMLINK: 4; - PLUGINDATA: number; - PATH: 0; - TYPE: 1; - MODULE: 0; - PACKAGE: 1; - GENERIC_PLATFORM: 'g'; - NATIVE_PLATFORM: 'native'; -}; -export type HTypeValue = HType[keyof HType]; -export type IgnoreMatcher = (item: string) => boolean; -export type FileData = Map; -export type FileMetadata = [null | undefined | number, number, 0 | 1, null | undefined | string, 0 | 1 | string, ...unknown[]]; -export type FileStats = Readonly<{ - fileType: 'f' | 'l'; - modifiedTime: null | undefined | number; - size: null | undefined | number; -}>; -export interface FileSystem { - exists(file: Path): boolean; - getAllFiles(): Array; - /** - * Given a map of files, determine which of them are new or modified - * (changedFiles), and which of them are missing from the input - * (removedFiles), vs the current state of this instance of FileSystem. - */ - getDifference( - files: FileData, - options?: Readonly<{ - /** - * Only consider files under this subpath (which should be a directory) - * when computing removedFiles. If not provided, all files in the file - * system are considered. - */ - subpath?: string; - }>, - ): {changedFiles: FileData; removedFiles: Set}; - getSerializableSnapshot(): CacheData['fileSystemData']; - getSha1(file: Path): null | undefined | string; - getOrComputeSha1(file: Path): Promise; - /** - * Given a start path (which need not exist), a subpath and type, and - * optionally a 'breakOnSegment', performs the following: - * - * X = mixedStartPath - * do - * if basename(X) === opts.breakOnSegment - * return null - * if X + subpath exists and has type opts.subpathType - * return { - * absolutePath: realpath(X + subpath) - * containerRelativePath: relative(mixedStartPath, X) - * } - * X = dirname(X) - * while X !== dirname(X) - * - * If opts.invalidatedBy is given, collects all absolute, real paths that if - * added or removed may invalidate this result. - * - * Useful for finding the closest package scope (subpath: package.json, - * type f, breakOnSegment: node_modules) or closest potential package root - * (subpath: node_modules/pkg, type: d) in Node.js resolution. - */ - hierarchicalLookup( - mixedStartPath: string, - subpath: string, - opts: { - breakOnSegment: null | undefined | string; - invalidatedBy: null | undefined | Set; - subpathType: 'f' | 'd'; - }, - ): null | undefined | {absolutePath: string; containerRelativePath: string}; - /** - * Analogous to posix lstat. If the file at `file` is a symlink, return - * information about the symlink without following it. - */ - linkStats(file: Path): null | undefined | FileStats; - /** - * Return information about the given path, whether a directory or file. - * Always follow symlinks, and return a real path if it exists. - */ - lookup(mixedPath: Path): LookupResult; - matchFiles(opts: {filter?: RegExp | null; filterCompareAbsolute?: boolean; filterComparePosix?: boolean; follow?: boolean; recursive?: boolean; rootDir?: Path | null}): Iterable; -} -export type Glob = string; -export type JsonData = string | number | boolean | null | Array | {[key: string]: JsonData}; -export type LookupResult = - | {exists: false; links: ReadonlySet; missing: string} - | {exists: true; links: ReadonlySet; realPath: string; type: 'd'} - | { - exists: true; - links: ReadonlySet; - realPath: string; - type: 'f'; - metadata: FileMetadata; - }; -export interface MockMap { - getMockModule(name: string): null | undefined | Path; -} -export type HasteConflict = { - id: string; - platform: string | null; - absolutePaths: Array; - type: 'duplicate' | 'shadowing'; -}; -export interface HasteMap { - getModule(name: string, platform?: null | undefined | string, supportsNativePlatform?: null | undefined | boolean, type?: null | undefined | HTypeValue): null | undefined | Path; - getModuleNameByPath(file: Path): null | undefined | string; - getPackage(name: string, platform: null | undefined | string, _supportsNativePlatform: null | undefined | boolean): null | undefined | Path; - computeConflicts(): Array; -} -export type HasteMapData = Map; -export type HasteMapItem = { - [platform: string]: HasteMapItemMetadata; -}; -export type HasteMapItemMetadata = [string, number]; -export interface FileSystemListener { - directoryAdded(canonicalPath: CanonicalPath): void; - directoryRemoved(canonicalPath: CanonicalPath): void; - fileAdded(canonicalPath: CanonicalPath, data: FileMetadata): void; - fileModified(canonicalPath: CanonicalPath, oldData: FileMetadata, newData: FileMetadata): void; - fileRemoved(canonicalPath: CanonicalPath, data: FileMetadata): void; -} -export interface ReadonlyFileSystemChanges { - readonly addedDirectories: Iterable; - readonly removedDirectories: Iterable; - readonly addedFiles: Iterable>; - readonly modifiedFiles: Iterable>; - readonly removedFiles: Iterable>; -} -export interface MutableFileSystem extends FileSystem { - remove(filePath: Path, listener?: FileSystemListener): void; - addOrModify(filePath: Path, fileMetadata: FileMetadata, listener?: FileSystemListener): void; - bulkAddOrModify(addedOrModifiedFiles: FileData, listener?: FileSystemListener): void; -} -export type Path = string; -export type ProcessFileFunction = (normalPath: string, metadata: FileMetadata, request: Readonly<{computeSha1: boolean}>) => null | undefined | Buffer; -export type RawMockMap = Readonly<{ - duplicates: Map>; - mocks: Map; - version: number; -}>; -export type ReadOnlyRawMockMap = Readonly<{ - duplicates: ReadonlyMap>; - mocks: ReadonlyMap; - version: number; -}>; -export interface WatcherBackend { - getPauseReason(): null | undefined | string; - onError(listener: (error: Error) => void): () => void; - onFileEvent(listener: (event: WatcherBackendChangeEvent) => void): () => void; - startWatching(): Promise; - stopWatching(): Promise; -} -export type ChangeEventClock = [string, string]; -export type WatcherBackendChangeEvent = - | Readonly<{ - event: 'touch'; - clock?: ChangeEventClock; - relativePath: string; - root: string; - metadata: ChangeEventMetadata; - }> - | Readonly<{ - event: 'delete'; - clock?: ChangeEventClock; - relativePath: string; - root: string; - metadata?: void; - }> - | Readonly<{ - event: 'recrawl'; - clock?: ChangeEventClock; - relativePath: string; - root: string; - }>; -export type WatcherBackendOptions = Readonly<{ - ignored: null | undefined | RegExp; - globs: ReadonlyArray; - dot: boolean; -}>; -export type WatchmanClockSpec = string | Readonly<{scm: Readonly<{'mergebase-with': string}>}>; -export type WatchmanClocks = Map; -export type WorkerMessage = Readonly<{ - computeSha1: boolean; - filePath: string; - maybeReturnContent: boolean; - pluginsToRun: ReadonlyArray; -}>; -export type WorkerMetadata = Readonly<{ - sha1?: null | undefined | string; - content?: null | undefined | Buffer; - pluginData?: ReadonlyArray; -}>; -export type WorkerSetupArgs = Readonly<{ - plugins?: ReadonlyArray; -}>; diff --git a/packages/metro-file-map/types/index.d.ts b/packages/metro-file-map/types/index.d.ts deleted file mode 100644 index c34fe88bde..0000000000 --- a/packages/metro-file-map/types/index.d.ts +++ /dev/null @@ -1,162 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-file-map/src/index.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type { - BuildParameters, - BuildResult, - CacheData, - CacheManagerFactory, - ChangeEventMetadata, - Console, - FileData, - FileSystem, - HasteMapData, - HasteMapItem, - HType, - InputFileMapPlugin, - PerfLoggerFactory, -} from './flow-types'; - -import EventEmitter from 'node:events'; - -export type {BuildParameters, BuildResult, CacheData, ChangeEventMetadata, FileData, FileMap, FileSystem, HasteMapData, HasteMapItem, InputFileMapPlugin}; -export type InputOptions = Readonly<{ - computeSha1?: null | undefined | boolean; - enableSymlinks?: null | undefined | boolean; - extensions: ReadonlyArray; - ignorePattern?: null | undefined | RegExp; - plugins?: ReadonlyArray; - retainAllFiles: boolean; - rootDir: string; - roots: ReadonlyArray; - cacheManagerFactory?: null | undefined | CacheManagerFactory; - console?: Console; - healthCheck: HealthCheckOptions; - maxFilesPerWorker?: null | undefined | number; - maxWorkers: number; - perfLoggerFactory?: null | undefined | PerfLoggerFactory; - resetCache?: null | undefined | boolean; - useWatchman?: null | undefined | boolean; - watch?: null | undefined | boolean; - watchmanDeferStates?: ReadonlyArray; -}>; -type HealthCheckOptions = Readonly<{ - enabled: boolean; - interval: number; - timeout: number; - filePrefix: string; -}>; -export {DiskCacheManager} from './cache/DiskCacheManager'; -export {default as DependencyPlugin} from './plugins/DependencyPlugin'; -export type {DependencyPluginOptions} from './plugins/DependencyPlugin'; -export {DuplicateHasteCandidatesError} from './plugins/haste/DuplicateHasteCandidatesError'; -export {HasteConflictsError} from './plugins/haste/HasteConflictsError'; -export {default as HastePlugin} from './plugins/HastePlugin'; -export type {HasteMap} from './flow-types'; -export type {HealthCheckResult} from './Watcher'; -export type {CacheManager, CacheManagerFactory, CacheManagerFactoryOptions, CacheManagerWriteOptions, ChangeEvent, DependencyExtractor, WatcherStatus} from './flow-types'; -/** - * FileMap includes a JavaScript implementation of Facebook's haste module system. - * - * This implementation is inspired by https://github.com/facebook/node-haste - * and was built with for high-performance in large code repositories with - * hundreds of thousands of files. This implementation is scalable and provides - * predictable performance. - * - * Because the file map creation and synchronization is critical to startup - * performance and most tasks are blocked by I/O this class makes heavy use of - * synchronous operations. It uses worker processes for parallelizing file - * access and metadata extraction. - * - * The data structures created by `metro-file-map` can be used directly from the - * cache without further processing. The metadata objects in the `files` and - * `map` objects contain cross-references: a metadata object from one can look - * up the corresponding metadata object in the other map. Note that in most - * projects, the number of files will be greater than the number of haste - * modules one module can refer to many files based on platform extensions. - * - * type CacheData = { - * clocks: WatchmanClocks, - * files: {[filepath: string]: FileMetadata}, - * map: {[id: string]: HasteMapItem}, - * mocks: {[id: string]: string}, - * } - * - * // Watchman clocks are used for query synchronization and file system deltas. - * type WatchmanClocks = {[filepath: string]: string}; - * - * type FileMetadata = { - * id: ?string, // used to look up module metadata objects in `map`. - * mtime: number, // check for outdated files. - * size: number, // size of the file in bytes. - * visited: boolean, // whether the file has been parsed or not. - * dependencies: Array, // all relative dependencies of this file. - * sha1: ?string, // SHA-1 of the file, if requested via options. - * symlink: ?(1 | 0 | string), // Truthy if symlink, string is target - * }; - * - * // Modules can be targeted to a specific platform based on the file name. - * // Example: platform.ios.js and Platform.android.js will both map to the same - * // `Platform` module. The platform should be specified during resolution. - * type HasteMapItem = {[platform: string]: ModuleMetadata}; - * - * // - * type ModuleMetadata = { - * path: string, // the path to look up the file object in `files`. - * type: string, // the module type (either `package` or `module`). - * }; - * - * Note that the data structures described above are conceptual only. The actual - * implementation uses arrays and constant keys for metadata storage. Instead of - * `{id: 'flatMap', mtime: 3421, size: 42, visited: true, dependencies: []}` the real - * representation is similar to `['flatMap', 3421, 42, 1, []]` to save storage space - * and reduce parse and write time of a big JSON blob. - * - * The FileMap is created as follows: - * 1. read data from the cache or create an empty structure. - * - * 2. crawl the file system. - * * empty cache: crawl the entire file system. - * * cache available: - * * if watchman is available: get file system delta changes. - * * if watchman is unavailable: crawl the entire file system. - * * build metadata objects for every file. This builds the `files` part of - * the `FileMap`. - * - * 3. visit and extract metadata from changed files, including sha1, - * depedendencies, and any plugins. - * * this is done in parallel over worker processes to improve performance. - * * the worst case is to visit all files. - * * the best case is no file system access and retrieving all data from - * the cache. - * * the average case is a small number of changed files. - * - * 4. serialize the new `FileMap` in a cache file. - * - */ -declare class FileMap extends EventEmitter { - static create(options: InputOptions): FileMap; - constructor(options: InputOptions); - build(): Promise; - /** - * 1. read data from the cache or create an empty structure. - */ - read(): Promise; - end(): Promise; - static H: HType; -} -export default FileMap; diff --git a/packages/metro-file-map/types/lib/FileProcessor.d.ts b/packages/metro-file-map/types/lib/FileProcessor.d.ts deleted file mode 100644 index 559c0a5383..0000000000 --- a/packages/metro-file-map/types/lib/FileProcessor.d.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<779cf921a7602e7afade62e6938d1472>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-file-map/src/lib/FileProcessor.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {FileMapPluginWorker, FileMetadata, PerfLogger} from '../flow-types'; - -type ProcessFileRequest = Readonly<{ - /** - * Populate metadata[H.SHA1] with the SHA1 of the file's contents. - */ - computeSha1: boolean; - /** - * Only if processing has already required reading the file's contents, return - * the contents as a Buffer - null otherwise. Not supported for batches. - */ - maybeReturnContent: boolean; -}>; -interface MaybeCodedError extends Error { - code?: string; -} -export declare class FileProcessor { - constructor( - opts: Readonly<{ - maxFilesPerWorker?: null | undefined | number; - maxWorkers: number; - pluginWorkers: null | undefined | ReadonlyArray; - perfLogger: null | undefined | PerfLogger; - rootDir: string; - }>, - ); - processBatch( - files: ReadonlyArray<[string, FileMetadata]>, - req: ProcessFileRequest, - ): Promise<{ - errors: Array<{normalFilePath: string; error: MaybeCodedError}>; - }>; - processRegularFile(normalPath: string, fileMetadata: FileMetadata, req: ProcessFileRequest): null | undefined | {content: null | undefined | Buffer}; - end(): Promise; -} diff --git a/packages/metro-file-map/types/lib/FileSystemChangeAggregator.d.ts b/packages/metro-file-map/types/lib/FileSystemChangeAggregator.d.ts deleted file mode 100644 index e3d595937e..0000000000 --- a/packages/metro-file-map/types/lib/FileSystemChangeAggregator.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<6c8a23a0d2b18f1034a3306276f994bb>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-file-map/src/lib/FileSystemChangeAggregator.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {CanonicalPath, FileMetadata, FileSystemListener, ReadonlyFileSystemChanges} from '../flow-types'; - -export declare class FileSystemChangeAggregator implements FileSystemListener { - directoryAdded(canonicalPath: CanonicalPath): void; - directoryRemoved(canonicalPath: CanonicalPath): void; - fileAdded(canonicalPath: CanonicalPath, data: FileMetadata): void; - fileModified(canonicalPath: CanonicalPath, oldData: FileMetadata, newData: FileMetadata): void; - fileRemoved(canonicalPath: CanonicalPath, data: FileMetadata): void; - getSize(): number; - getView(): ReadonlyFileSystemChanges; - getMappedView(metadataMapFn: (metadata: FileMetadata) => T): ReadonlyFileSystemChanges; -} diff --git a/packages/metro-file-map/types/lib/RootPathUtils.d.ts b/packages/metro-file-map/types/lib/RootPathUtils.d.ts deleted file mode 100644 index f0fb37a3fa..0000000000 --- a/packages/metro-file-map/types/lib/RootPathUtils.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * 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. - * - * @noformat - * @generated SignedSource<<3f5cec7a825e191667892d7c3602ca6b>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-file-map/src/lib/RootPathUtils.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -export declare class RootPathUtils { - constructor(rootDir: string); - getBasenameOfNthAncestor(n: number): string; - getParts(): ReadonlyArray; - absoluteToNormal(absolutePath: string): string; - normalToAbsolute(normalPath: string): string; - relativeToNormal(relativePath: string): string; - getAncestorOfRootIdx(normalPath: string): null | undefined | number; - joinNormalToRelative(normalPath: string, relativePath: string): {normalPath: string; collapsedSegments: number}; - relative(from: string, to: string): string; -} diff --git a/packages/metro-file-map/types/lib/TreeFS.d.ts b/packages/metro-file-map/types/lib/TreeFS.d.ts deleted file mode 100644 index bab7400d72..0000000000 --- a/packages/metro-file-map/types/lib/TreeFS.d.ts +++ /dev/null @@ -1,152 +0,0 @@ -/** - * 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. - * - * @noformat - * @generated SignedSource<<7860a226378b2fb3793a3586501c28ed>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-file-map/src/lib/TreeFS.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {CacheData, FileData, FileMetadata, FileStats, FileSystemListener, LookupResult, MutableFileSystem, Path, ProcessFileFunction} from '../flow-types'; - -type DirectoryNode = Map; -type FileNode = FileMetadata; -type MixedNode = FileNode | DirectoryNode; -type DeserializedSnapshotInput = { - rootDir: string; - fileSystemData: DirectoryNode; - processFile: ProcessFileFunction; -}; -type TreeFSOptions = { - rootDir: Path; - files?: FileData; - processFile: ProcessFileFunction; -}; -type MatchFilesOptions = Readonly<{ - filter?: null | undefined | RegExp; - filterCompareAbsolute?: boolean; - filterComparePosix?: boolean; - follow?: boolean; - recursive?: boolean; - rootDir?: null | undefined | Path; -}>; -type MetadataIteratorOptions = Readonly<{ - includeSymlinks: boolean; - includeNodeModules: boolean; -}>; -/** - * OVERVIEW: - * - * TreeFS is Metro's in-memory representation of the file system. It is - * structured as a tree of non-empty maps and leaves (tuples), with the root - * node representing the given `rootDir`, typically Metro's _project root_ - * (not a filesystem root). Map keys are path segments, and branches outside - * the project root are accessed via `'..'`. - * - * EXAMPLE: - * - * For a root dir '/data/project', the file '/data/other/app/index.js' would - * have metadata at #rootNode.get('..').get('other').get('app').get('index.js') - * - * SERIALISATION: - * - * #rootNode is designed to be directly serialisable and directly portable (for - * a given project) between different root directories and operating systems. - * - * SYMLINKS: - * - * Symlinks are represented as nodes whose metadata contains their literal - * target. Literal targets are resolved to normal paths at runtime, and cached. - * If a symlink is encountered during traversal, we restart traversal at the - * root node targeting join(normal symlink target, remaining path suffix). - * - * NODE TYPES: - * - * - A directory (including a parent directory at '..') is represented by a - * `Map` of basenames to any other node type. - * - A file is represented by an `Array` (tuple) of metadata, of which: - * - A regular file has node[H.SYMLINK] === 0 - * - A symlink has node[H.SYMLINK] === 1 or - * typeof node[H.SYMLINK] === 'string', where a string is the literal - * content of the symlink (i.e. from readlink), if known. - * - * TERMINOLOGY: - * - * - mixedPath - * A root-relative or absolute path - * - relativePath - * A root-relative path - * - normalPath - * A root-relative, normalised path (no extraneous '.' or '..'), may have a - * single trailing slash - * - canonicalPath - * A root-relative, normalised, real path (no symlinks in dirname), never has - * a trailing slash - */ -declare class TreeFS implements MutableFileSystem { - constructor(opts: TreeFSOptions); - getSerializableSnapshot(): CacheData['fileSystemData']; - static fromDeserializedSnapshot(args: DeserializedSnapshotInput): TreeFS; - getSize(mixedPath: Path): null | undefined | number; - getDifference(files: FileData, options?: Readonly<{subpath?: string}>): {changedFiles: FileData; removedFiles: Set}; - getSha1(mixedPath: Path): null | undefined | string; - getOrComputeSha1(mixedPath: Path): Promise; - exists(mixedPath: Path): boolean; - lookup(mixedPath: Path): LookupResult; - getAllFiles(): Array; - linkStats(mixedPath: Path): null | undefined | FileStats; - /** - * Given a search context, return a list of file paths matching the query. - * The query matches against normalized paths which start with `./`, - * for example: `a/b.js` -> `./a/b.js` - */ - matchFiles(opts: MatchFilesOptions): Iterable; - addOrModify(mixedPath: Path, metadata: FileMetadata, changeListener?: FileSystemListener): void; - bulkAddOrModify(addedOrModifiedFiles: FileData, changeListener?: FileSystemListener): void; - remove(mixedPath: Path, changeListener?: FileSystemListener): void; - /** - * Given a start path (which need not exist), a subpath and type, and - * optionally a 'breakOnSegment', performs the following: - * - * X = mixedStartPath - * do - * if basename(X) === opts.breakOnSegment - * return null - * if X + subpath exists and has type opts.subpathType - * return { - * absolutePath: realpath(X + subpath) - * containerRelativePath: relative(mixedStartPath, X) - * } - * X = dirname(X) - * while X !== dirname(X) - * - * If opts.invalidatedBy is given, collects all absolute, real paths that if - * added or removed may invalidate this result. - * - * Useful for finding the closest package scope (subpath: package.json, - * type f, breakOnSegment: node_modules) or closest potential package root - * (subpath: node_modules/pkg, type: d) in Node.js resolution. - */ - hierarchicalLookup( - mixedStartPath: string, - subpath: string, - opts: { - breakOnSegment: null | undefined | string; - invalidatedBy: null | undefined | Set; - subpathType: 'f' | 'd'; - }, - ): null | undefined | {absolutePath: string; containerRelativePath: string}; - metadataIterator(opts: MetadataIteratorOptions): Iterator<{ - baseName: string; - canonicalPath: string; - metadata: FileMetadata; - }>; -} -export default TreeFS; diff --git a/packages/metro-file-map/types/lib/checkWatchmanCapabilities.d.ts b/packages/metro-file-map/types/lib/checkWatchmanCapabilities.d.ts deleted file mode 100644 index 4ace504028..0000000000 --- a/packages/metro-file-map/types/lib/checkWatchmanCapabilities.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * 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. - * - * @noformat - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-file-map/src/lib/checkWatchmanCapabilities.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -declare function checkWatchmanCapabilities(requiredCapabilities: ReadonlyArray): Promise<{version: string}>; -export default checkWatchmanCapabilities; diff --git a/packages/metro-file-map/types/lib/normalizePathSeparatorsToPosix.d.ts b/packages/metro-file-map/types/lib/normalizePathSeparatorsToPosix.d.ts deleted file mode 100644 index 08d6f36473..0000000000 --- a/packages/metro-file-map/types/lib/normalizePathSeparatorsToPosix.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * 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. - * - * @noformat - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-file-map/src/lib/normalizePathSeparatorsToPosix.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -declare const $$EXPORT_DEFAULT_DECLARATION$$: (filePath: string) => string; -declare type $$EXPORT_DEFAULT_DECLARATION$$ = typeof $$EXPORT_DEFAULT_DECLARATION$$; -export default $$EXPORT_DEFAULT_DECLARATION$$; diff --git a/packages/metro-file-map/types/lib/normalizePathSeparatorsToSystem.d.ts b/packages/metro-file-map/types/lib/normalizePathSeparatorsToSystem.d.ts deleted file mode 100644 index 88a54c991f..0000000000 --- a/packages/metro-file-map/types/lib/normalizePathSeparatorsToSystem.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * 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. - * - * @noformat - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-file-map/src/lib/normalizePathSeparatorsToSystem.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -declare const $$EXPORT_DEFAULT_DECLARATION$$: (filePath: string) => string; -declare type $$EXPORT_DEFAULT_DECLARATION$$ = typeof $$EXPORT_DEFAULT_DECLARATION$$; -export default $$EXPORT_DEFAULT_DECLARATION$$; diff --git a/packages/metro-file-map/types/lib/rootRelativeCacheKeys.d.ts b/packages/metro-file-map/types/lib/rootRelativeCacheKeys.d.ts deleted file mode 100644 index 7ac8306df8..0000000000 --- a/packages/metro-file-map/types/lib/rootRelativeCacheKeys.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-file-map/src/lib/rootRelativeCacheKeys.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {BuildParameters} from '../flow-types'; - -declare function rootRelativeCacheKeys(buildParameters: BuildParameters): { - rootDirHash: string; - relativeConfigHash: string; -}; -export default rootRelativeCacheKeys; diff --git a/packages/metro-file-map/types/lib/sorting.d.ts b/packages/metro-file-map/types/lib/sorting.d.ts deleted file mode 100644 index f6ec0082fa..0000000000 --- a/packages/metro-file-map/types/lib/sorting.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * 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. - * - * @noformat - * @generated SignedSource<<96a2c7ed862c349bbe28752aa68c19cc>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-file-map/src/lib/sorting.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -export declare function compareStrings(a: null | string, b: null | string): number; -export declare function chainComparators(...comparators: Array<(a: T, b: T) => number>): (a: T, b: T) => number; diff --git a/packages/metro-file-map/types/plugins/DependencyPlugin.d.ts b/packages/metro-file-map/types/plugins/DependencyPlugin.d.ts deleted file mode 100644 index 584e2f8b08..0000000000 --- a/packages/metro-file-map/types/plugins/DependencyPlugin.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<344b340710d6da24bcb609058e7ce8d6>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-file-map/src/plugins/DependencyPlugin.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {Path} from '../flow-types'; - -import FileDataPlugin from './FileDataPlugin'; - -export type DependencyPluginOptions = Readonly<{ - /** Path to custom dependency extractor module */ - dependencyExtractor: null | undefined | string; - /** Whether to compute dependencies (performance optimization) */ - computeDependencies: boolean; -}>; -declare class DependencyPlugin extends FileDataPlugin | null> { - constructor(options: DependencyPluginOptions); - getDependencies(mixedPath: Path): null | undefined | ReadonlyArray; -} -export default DependencyPlugin; diff --git a/packages/metro-file-map/types/plugins/FileDataPlugin.d.ts b/packages/metro-file-map/types/plugins/FileDataPlugin.d.ts deleted file mode 100644 index 1bd88a6d63..0000000000 --- a/packages/metro-file-map/types/plugins/FileDataPlugin.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<54f6248424a42ea2eb7966fc06105eb3>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-file-map/src/plugins/FileDataPlugin.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {FileMapPlugin, FileMapPluginInitOptions, FileMapPluginWorker, ReadonlyFileSystemChanges, V8Serializable} from '../flow-types'; - -export type FileDataPluginOptions = Readonly< - Omit & { - name: string; - cacheKey: string; - } ->; -/** - * Base class for FileMap plugins that store per-file data via a worker and - * have no separate serializable state. Provides default no-op implementations - * of lifecycle methods that subclasses can override as needed. - */ -declare class FileDataPlugin implements FileMapPlugin { - readonly name: string; - constructor($$PARAM_0$$: FileDataPluginOptions); - initialize(initOptions: FileMapPluginInitOptions): Promise; - getFileSystem(): FileMapPluginInitOptions['files']; - onChanged(_changes: ReadonlyFileSystemChanges): void; - assertValid(): void; - getSerializableSnapshot(): null; - getCacheKey(): string; - getWorker(): FileMapPluginWorker; -} -export default FileDataPlugin; diff --git a/packages/metro-file-map/types/plugins/HastePlugin.d.ts b/packages/metro-file-map/types/plugins/HastePlugin.d.ts deleted file mode 100644 index d293f9c4e0..0000000000 --- a/packages/metro-file-map/types/plugins/HastePlugin.d.ts +++ /dev/null @@ -1,56 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<0c2ae264c128bfb2724e6e9b7c1fe595>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-file-map/src/plugins/HastePlugin.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type { - Console, - FileMapPlugin, - FileMapPluginInitOptions, - FileMapPluginWorker, - HasteConflict, - HasteMap, - HasteMapItemMetadata, - HTypeValue, - Path, - PerfLogger, - ReadonlyFileSystemChanges, -} from '../flow-types'; - -export type HasteMapOptions = Readonly<{ - console?: null | undefined | Console; - enableHastePackages: boolean; - hasteImplModulePath: null | undefined | string; - perfLogger?: null | undefined | PerfLogger; - platforms: ReadonlySet; - rootDir: Path; - failValidationOnConflicts: boolean; -}>; -declare class HastePlugin implements HasteMap, FileMapPlugin { - readonly name: 'haste'; - constructor(options: HasteMapOptions); - initialize($$PARAM_0$$: FileMapPluginInitOptions): Promise; - getSerializableSnapshot(): null; - getModule(name: string, platform?: null | undefined | string, supportsNativePlatform?: null | undefined | boolean, type?: null | undefined | HTypeValue): null | undefined | Path; - getModuleNameByPath(mixedPath: Path): null | undefined | string; - getPackage(name: string, platform: null | undefined | string, _supportsNativePlatform?: null | undefined | boolean): null | undefined | Path; - onChanged(delta: ReadonlyFileSystemChanges): void; - setModule(id: string, module: HasteMapItemMetadata): void; - assertValid(): void; - computeConflicts(): Array; - getCacheKey(): string; - getWorker(): FileMapPluginWorker; -} -export default HastePlugin; diff --git a/packages/metro-file-map/types/plugins/MockPlugin.d.ts b/packages/metro-file-map/types/plugins/MockPlugin.d.ts deleted file mode 100644 index 0090539446..0000000000 --- a/packages/metro-file-map/types/plugins/MockPlugin.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<142fc6ca2a635d19ecda81bd8b6d64c8>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-file-map/src/plugins/MockPlugin.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {FileMapPlugin, FileMapPluginInitOptions, FileMapPluginWorker, MockMap as IMockMap, Path, RawMockMap, ReadonlyFileSystemChanges} from '../flow-types'; - -export declare const CACHE_VERSION: 2; -export declare type CACHE_VERSION = typeof CACHE_VERSION; -export type MockMapOptions = Readonly<{ - console: typeof console; - mocksPattern: RegExp; - rawMockMap?: RawMockMap; - rootDir: Path; - throwOnModuleCollision: boolean; -}>; -declare class MockPlugin implements FileMapPlugin, IMockMap { - readonly name: 'mocks'; - constructor($$PARAM_0$$: MockMapOptions); - initialize($$PARAM_0$$: FileMapPluginInitOptions): Promise; - getMockModule(name: string): null | undefined | Path; - onChanged(delta: ReadonlyFileSystemChanges): void; - getSerializableSnapshot(): RawMockMap; - assertValid(): void; - getCacheKey(): string; - getWorker(): null | undefined | FileMapPluginWorker; -} -export default MockPlugin; diff --git a/packages/metro-file-map/types/plugins/dependencies/dependencyExtractor.d.ts b/packages/metro-file-map/types/plugins/dependencies/dependencyExtractor.d.ts deleted file mode 100644 index 34ab913df3..0000000000 --- a/packages/metro-file-map/types/plugins/dependencies/dependencyExtractor.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * 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. - * - * @generated by js1 build metro-ts-defs / yarn run build-ts-defs - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-file-map/src/plugins/dependencies/dependencyExtractor.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -declare const dependencyExtractor: { - extract(code: string): Set; -}; - -export = dependencyExtractor; diff --git a/packages/metro-file-map/types/plugins/dependencies/worker.d.ts b/packages/metro-file-map/types/plugins/dependencies/worker.d.ts deleted file mode 100644 index de730af025..0000000000 --- a/packages/metro-file-map/types/plugins/dependencies/worker.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-file-map/src/plugins/dependencies/worker.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {MetadataWorker, V8Serializable, WorkerMessage} from '../../flow-types'; - -declare class DependencyExtractorWorker implements MetadataWorker { - constructor(opts: Readonly<{dependencyExtractor: null | undefined | string}>); - processFile(data: WorkerMessage, utils: Readonly<{getContent: () => Buffer}>): V8Serializable; -} -export = DependencyExtractorWorker; diff --git a/packages/metro-file-map/types/plugins/haste/DuplicateHasteCandidatesError.d.ts b/packages/metro-file-map/types/plugins/haste/DuplicateHasteCandidatesError.d.ts deleted file mode 100644 index 4830313764..0000000000 --- a/packages/metro-file-map/types/plugins/haste/DuplicateHasteCandidatesError.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<39b0bdca3fd1821355f45b19b1dce6d8>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-file-map/src/plugins/haste/DuplicateHasteCandidatesError.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {DuplicatesSet} from '../../flow-types'; - -export declare class DuplicateHasteCandidatesError extends Error { - hasteName: string; - platform: string | null; - supportsNativePlatform: boolean; - duplicatesSet: DuplicatesSet; - constructor(name: string, platform: string, supportsNativePlatform: boolean, duplicatesSet: DuplicatesSet); -} diff --git a/packages/metro-file-map/types/plugins/haste/HasteConflictsError.d.ts b/packages/metro-file-map/types/plugins/haste/HasteConflictsError.d.ts deleted file mode 100644 index 3f6c62d76b..0000000000 --- a/packages/metro-file-map/types/plugins/haste/HasteConflictsError.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<53c103ffe2115282c4d72593f47018aa>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-file-map/src/plugins/haste/HasteConflictsError.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {HasteConflict} from '../../flow-types'; - -export declare class HasteConflictsError extends Error { - constructor(conflicts: ReadonlyArray); - getDetailedMessage(pathsRelativeToRoot: null | undefined | string): string; -} diff --git a/packages/metro-file-map/types/plugins/haste/computeConflicts.d.ts b/packages/metro-file-map/types/plugins/haste/computeConflicts.d.ts deleted file mode 100644 index 5ea2bb6b83..0000000000 --- a/packages/metro-file-map/types/plugins/haste/computeConflicts.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * 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. - * - * @noformat - * @generated SignedSource<<7c26a64673afa295660693ad5f530335>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-file-map/src/plugins/haste/computeConflicts.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {HasteMapItem} from '../../flow-types'; - -type Conflict = { - id: string; - platform: string | null; - absolutePaths: Array; - type: 'duplicate' | 'shadowing'; -}; -export declare function computeHasteConflicts( - options: Readonly<{ - duplicates: ReadonlyMap>>; - map: ReadonlyMap; - rootDir: string; - }>, -): Array; diff --git a/packages/metro-file-map/types/plugins/haste/getPlatformExtension.d.ts b/packages/metro-file-map/types/plugins/haste/getPlatformExtension.d.ts deleted file mode 100644 index 7fa6ea45d0..0000000000 --- a/packages/metro-file-map/types/plugins/haste/getPlatformExtension.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * 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. - * - * @noformat - * @generated SignedSource<<4c299e390e413dabcafa756b03a0e274>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-file-map/src/plugins/haste/getPlatformExtension.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -declare function getPlatformExtension(file: string, platforms: ReadonlySet): null | undefined | string; -export default getPlatformExtension; diff --git a/packages/metro-file-map/types/plugins/haste/worker.d.ts b/packages/metro-file-map/types/plugins/haste/worker.d.ts deleted file mode 100644 index 84ae012db4..0000000000 --- a/packages/metro-file-map/types/plugins/haste/worker.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * 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. - * - * @noformat - * @generated SignedSource<<121ef10e99bdee7b3ec29ac7c3698b74>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-file-map/src/plugins/haste/worker.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {MetadataWorker, V8Serializable, WorkerMessage} from '../../flow-types'; - -declare class Worker implements MetadataWorker { - constructor(opts: Readonly<{hasteImplModulePath: null | undefined | string}>); - processFile(data: WorkerMessage, utils: Readonly<{getContent: () => Buffer}>): V8Serializable; -} - -export = Worker; diff --git a/packages/metro-file-map/types/plugins/mocks/getMockName.d.ts b/packages/metro-file-map/types/plugins/mocks/getMockName.d.ts deleted file mode 100644 index 8630a9e073..0000000000 --- a/packages/metro-file-map/types/plugins/mocks/getMockName.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * 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. - * - * @noformat - * @generated SignedSource<<8e4ad467cc0d8aac5556156308d03c9b>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-file-map/src/plugins/mocks/getMockName.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -declare const $$EXPORT_DEFAULT_DECLARATION$$: (filePath: string) => string; -declare type $$EXPORT_DEFAULT_DECLARATION$$ = typeof $$EXPORT_DEFAULT_DECLARATION$$; -export default $$EXPORT_DEFAULT_DECLARATION$$; diff --git a/packages/metro-file-map/types/watchers/AbstractWatcher.d.ts b/packages/metro-file-map/types/watchers/AbstractWatcher.d.ts deleted file mode 100644 index e239457292..0000000000 --- a/packages/metro-file-map/types/watchers/AbstractWatcher.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * 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. - * - * @noformat - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-file-map/src/watchers/AbstractWatcher.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {WatcherBackend, WatcherBackendChangeEvent, WatcherBackendOptions} from '../flow-types'; - -export type Listeners = Readonly<{ - onFileEvent: (event: WatcherBackendChangeEvent) => void; - onError: (error: Error) => void; -}>; -export declare class AbstractWatcher implements WatcherBackend { - readonly root: string; - readonly ignored: null | undefined | RegExp; - readonly globs: ReadonlyArray; - readonly dot: boolean; - readonly doIgnore: (path: string) => boolean; - constructor(dir: string, opts: WatcherBackendOptions); - onFileEvent(listener: (event: WatcherBackendChangeEvent) => void): () => void; - onError(listener: (error: Error) => void): () => void; - startWatching(): Promise; - stopWatching(): Promise; - emitFileEvent(event: Omit): void; - emitError(error: Error): void; - getPauseReason(): null | undefined | string; -} diff --git a/packages/metro-file-map/types/watchers/FallbackWatcher.d.ts b/packages/metro-file-map/types/watchers/FallbackWatcher.d.ts deleted file mode 100644 index 8ee35f2919..0000000000 --- a/packages/metro-file-map/types/watchers/FallbackWatcher.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<5152d1919d3373e4df611e0fca805e1c>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-file-map/src/watchers/FallbackWatcher.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import {AbstractWatcher} from './AbstractWatcher'; - -declare class FallbackWatcher extends AbstractWatcher { - startWatching(): Promise; - /** - * End watching. - */ - stopWatching(): Promise; - getPauseReason(): null | undefined | string; -} -export default FallbackWatcher; diff --git a/packages/metro-file-map/types/watchers/NativeWatcher.d.ts b/packages/metro-file-map/types/watchers/NativeWatcher.d.ts deleted file mode 100644 index 95f70bbf82..0000000000 --- a/packages/metro-file-map/types/watchers/NativeWatcher.d.ts +++ /dev/null @@ -1,54 +0,0 @@ -/** - * 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. - * - * @noformat - * @generated SignedSource<<6297e6ebfbeb2920f00b15cba9acbce2>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-file-map/src/watchers/NativeWatcher.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import {AbstractWatcher} from './AbstractWatcher'; -/** - * NativeWatcher uses Node's native fs.watch API with recursive: true. - * - * Supported on macOS (and potentially Windows), because both natively have a - * concept of recurisve watching, via FSEvents and ReadDirectoryChangesW - * respectively. Notably Linux lacks this capability at the OS level. - * - * Node.js has at times supported the `recursive` option to fs.watch on Linux - * by walking the directory tree and creating a watcher on each directory, but - * this fits poorly with the synchronous `watch` API - either it must block for - * arbitrarily large IO, or it may drop changes after `watch` returns. See: - * https://github.com/nodejs/node/issues/48437 - * - * Therefore, we retain a fallback to our own application-level recursive - * FallbackWatcher for Linux, which has async `startWatching`. - * - * On Windows, this watcher could be used in principle, but needs work around - * some Windows-specific edge cases handled in FallbackWatcher, like - * deduping file change events, ignoring directory changes, and handling EPERM. - */ -declare class NativeWatcher extends AbstractWatcher { - static isSupported(): boolean; - constructor( - dir: string, - opts: Readonly<{ - ignored: null | undefined | RegExp; - globs: ReadonlyArray; - dot: boolean; - }>, - ); - startWatching(): Promise; - /** - * End watching. - */ - stopWatching(): Promise; -} -export default NativeWatcher; diff --git a/packages/metro-file-map/types/watchers/RecrawlWarning.d.ts b/packages/metro-file-map/types/watchers/RecrawlWarning.d.ts deleted file mode 100644 index 51226bb96f..0000000000 --- a/packages/metro-file-map/types/watchers/RecrawlWarning.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-file-map/src/watchers/RecrawlWarning.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -/** - * Originally vendored from - * https://github.com/amasad/sane/blob/64ff3a870c42e84f744086884bf55a4f9c22d376/src/utils/recrawl-warning-dedupe.js - */ - -declare class RecrawlWarning { - static RECRAWL_WARNINGS: Array; - static REGEXP: RegExp; - root: string; - count: number; - constructor(root: string, count: number); - static findByRoot(root: string): null | undefined | RecrawlWarning; - static isRecrawlWarningDupe(warningMessage: unknown): boolean; -} -export default RecrawlWarning; diff --git a/packages/metro-file-map/types/watchers/WatchmanWatcher.d.ts b/packages/metro-file-map/types/watchers/WatchmanWatcher.d.ts deleted file mode 100644 index d558b256dc..0000000000 --- a/packages/metro-file-map/types/watchers/WatchmanWatcher.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-file-map/src/watchers/WatchmanWatcher.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {WatcherOptions} from './common'; - -import {AbstractWatcher} from './AbstractWatcher'; -/** - * Watches `dir`. - */ -declare class WatchmanWatcher extends AbstractWatcher { - readonly subscriptionName: string; - constructor(dir: string, opts: WatcherOptions); - startWatching(): Promise; - /** - * Closes the watcher. - */ - stopWatching(): Promise; - getPauseReason(): null | undefined | string; -} -export default WatchmanWatcher; diff --git a/packages/metro-file-map/types/watchers/common.d.ts b/packages/metro-file-map/types/watchers/common.d.ts deleted file mode 100644 index 2166189d48..0000000000 --- a/packages/metro-file-map/types/watchers/common.d.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-file-map/src/watchers/common.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -/** - * Originally vendored from - * https://github.com/amasad/sane/blob/64ff3a870c42e84f744086884bf55a4f9c22d376/src/common.js - */ - -import type {ChangeEventMetadata} from '../flow-types'; -import type {Stats} from 'node:fs'; -/** - * Constants - */ -export declare const DELETE_EVENT: 'delete'; -export declare type DELETE_EVENT = typeof DELETE_EVENT; -export declare const TOUCH_EVENT: 'touch'; -export declare type TOUCH_EVENT = typeof TOUCH_EVENT; -export declare const RECRAWL_EVENT: 'recrawl'; -export declare type RECRAWL_EVENT = typeof RECRAWL_EVENT; -export declare const ALL_EVENT: 'all'; -export declare type ALL_EVENT = typeof ALL_EVENT; -export type WatcherOptions = Readonly<{ - globs: ReadonlyArray; - dot: boolean; - ignored: null | undefined | RegExp; - watchmanDeferStates: ReadonlyArray; - watchman?: unknown; - watchmanPath?: string; -}>; -/** - * Checks a file relative path against the globs array. - */ -export declare function includedByGlob(type: null | undefined | ('f' | 'l' | 'd'), globs: ReadonlyArray, dot: boolean, relativePath: string): boolean; -/** - * Whether the given filePath matches the given RegExp, after converting - * (on Windows only) system separators to posix separators. - * - * Conversion to posix is for backwards compatibility with the previous - * anymatch matcher, which normlises all inputs[1]. This may not be consistent - * with other parts of metro-file-map. - * - * [1]: https://github.com/micromatch/anymatch/blob/3.1.1/index.js#L50 - */ -export declare const posixPathMatchesPattern: (pattern: RegExp, filePath: string) => boolean; -export declare type posixPathMatchesPattern = typeof posixPathMatchesPattern; -export declare function typeFromStat(stat: Stats): null | undefined | ChangeEventMetadata['type']; diff --git a/packages/metro-file-map/types/worker.d.ts b/packages/metro-file-map/types/worker.d.ts deleted file mode 100644 index a2829070b9..0000000000 --- a/packages/metro-file-map/types/worker.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * 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. - * - * @noformat - * @generated SignedSource<<46f7fcdbc9bc42d023f3102962f959ee>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-file-map/src/worker.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {WorkerMessage, WorkerMetadata, WorkerSetupArgs} from './flow-types'; - -declare const worker: { - /** - * Called automatically by jest-worker before the first call to `worker` when - * this module is used as worker thread or child process. - */ - setup: (args: WorkerSetupArgs) => void; - /** - * Called by jest-worker with each workload - */ - processFile: (data: WorkerMessage) => WorkerMetadata; - /** - * Exposed for use outside a jest-worker context, ie when processing in-band. - */ - Worker: { - new (setupArgs: WorkerSetupArgs): { - processFile(data: WorkerMessage): WorkerMetadata; - }; - }; -}; - -export = worker; diff --git a/packages/metro-file-map/types/workerExclusionList.d.ts b/packages/metro-file-map/types/workerExclusionList.d.ts deleted file mode 100644 index 3bc5ca75b8..0000000000 --- a/packages/metro-file-map/types/workerExclusionList.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * 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. - * - * @noformat - * @generated SignedSource<<532e56f03246c9dc2d9607e3b3c25058>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-file-map/src/workerExclusionList.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -declare const exclusionList: ReadonlySet; - -export = exclusionList; diff --git a/packages/metro-minify-terser/API.md b/packages/metro-minify-terser/API.md new file mode 100644 index 0000000000..3bedd4d497 --- /dev/null +++ b/packages/metro-minify-terser/API.md @@ -0,0 +1,7 @@ +## API Report File for "metro-minify-terser" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +``` diff --git a/packages/metro-minify-terser/types/index.d.ts b/packages/metro-minify-terser/types/index.d.ts deleted file mode 100644 index caaa15cde1..0000000000 --- a/packages/metro-minify-terser/types/index.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<0389df6d8e7a843e3d441820cfd4350b>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-minify-terser/src/index.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import minifier from './minifier'; - -declare const minifierFn: typeof minifier; -export = minifierFn; diff --git a/packages/metro-minify-terser/types/minifier.d.ts b/packages/metro-minify-terser/types/minifier.d.ts deleted file mode 100644 index 565cb29283..0000000000 --- a/packages/metro-minify-terser/types/minifier.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-minify-terser/src/minifier.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {MinifierOptions, MinifierResult} from 'metro-transform-worker'; - -declare function minifier(options: MinifierOptions): Promise; -export default minifier; diff --git a/packages/metro-resolver/API.md b/packages/metro-resolver/API.md new file mode 100644 index 0000000000..1c92a4ceff --- /dev/null +++ b/packages/metro-resolver/API.md @@ -0,0 +1,101 @@ +## API Report File for "metro-resolver" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +export type AssetFileResolution = ReadonlyArray; + +export type CustomResolutionContext = Readonly & {resolveRequest: CustomResolver}>; + +export type CustomResolver = (context: CustomResolutionContext, moduleName: string, platform: string | null) => Resolution; + +export type CustomResolverOptions = { + readonly [$$Key$$: string]: unknown; +}; + +export type DoesFileExist = (filePath: string) => boolean; + +export class FailedToResolveNameError extends Error { + constructor(dirPaths: ReadonlyArray, extraPaths: ReadonlyArray); + dirPaths: ReadonlyArray; + extraPaths: ReadonlyArray; +} + +export class FailedToResolvePathError extends Error { + constructor(candidates: FileAndDirCandidates); + candidates: FileAndDirCandidates; +} + +export class FailedToResolveUnsupportedError extends Error { + constructor(message: string); +} + +export type FileAndDirCandidates = { + readonly dir: null | undefined | FileCandidates; + readonly file: null | undefined | FileCandidates; +}; + +export type FileCandidates = +| {readonly type: 'asset'; readonly name: string} +| { + readonly type: 'sourceFile'; + filePathPrefix: string; + readonly candidateExts: ReadonlyArray; +}; + +export type FileResolution = AssetResolution | SourceFileResolution; + +export type FileSystemLookup = (absoluteOrProjectRelativePath: string) => {exists: false} | {exists: true; type: 'f' | 'd'; realPath: string}; + +export function formatFileCandidates(candidates: FileCandidates): string; + +export class InvalidPackageError extends Error { + constructor(opts: {readonly fileCandidates: FileCandidates; readonly indexCandidates: FileCandidates; readonly mainModulePath: string; readonly packageJsonPath: string}); + fileCandidates: FileCandidates; + indexCandidates: FileCandidates; + mainModulePath: string; + packageJsonPath: string; +} + +export type Resolution = FileResolution | VirtualResolution | {readonly type: 'empty'}; + +export type ResolutionContext = Readonly<{ + allowHaste: boolean; + assetExts: ReadonlySet; + customResolverOptions: CustomResolverOptions; + disableHierarchicalLookup: boolean; + doesFileExist: DoesFileExist; + extraNodeModules: null | undefined | {[$$Key$$: string]: string}; + dev: boolean; + getPackage: (packageJsonPath: string) => null | undefined | PackageJson; + getPackageForModule: (absoluteModulePath: string) => null | undefined | PackageForModule; + dependency?: TransformResultDependency; + isESMImport?: boolean; + fileSystemLookup: FileSystemLookup; + mainFields: ReadonlyArray; + originModulePath: string; + nodeModulesPaths: ReadonlyArray; + preferNativePlatform: boolean; + resolveAsset: ResolveAsset; + redirectModulePath: (modulePath: string) => string | false; + resolveHasteModule: (name: string) => null | undefined | string; + resolveHastePackage: (name: string) => null | undefined | string; + resolveRequest?: null | undefined | CustomResolver; + sourceExts: ReadonlyArray; + unstable_conditionNames: ReadonlyArray; + unstable_conditionsByPlatform: Readonly<{ + [platform: string]: ReadonlyArray; + }>; + unstable_enablePackageExports: boolean; + unstable_incrementalResolution: boolean; + unstable_logWarning: (message: string) => void; +}>; + +export function resolve(context: ResolutionContext, specifier: string, platform: string | null): Resolution; + +export type ResolveAsset = (dirPath: string, assetName: string, extension: string) => null | undefined | ReadonlyArray; + +export type Result = {readonly type: 'resolved'; readonly resolution: TResolution} | {readonly type: 'failed'; readonly candidates: TCandidates}; + +``` diff --git a/packages/metro-resolver/types/PackageExportsResolve.d.ts b/packages/metro-resolver/types/PackageExportsResolve.d.ts deleted file mode 100644 index 4738f179ad..0000000000 --- a/packages/metro-resolver/types/PackageExportsResolve.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<7490133a41b70c6a0855b73fd990a5e3>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-resolver/src/PackageExportsResolve.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {ExportsField, FileResolution, ResolutionContext} from './types'; -/** - * Resolve a package subpath based on the entry points defined in the package's - * "exports" field. If there is no match for the given subpath (which may be - * augmented by resolution of conditional exports for the passed `context`), - * throws a `PackagePathNotExportedError`. - * - * Implements modern package resolution behaviour based on the [Package Entry - * Points spec](https://nodejs.org/docs/latest-v19.x/api/packages.html#package-entry-points). - * - * @throws {InvalidPackageConfigurationError} Raised if configuration specified - * by `exportsField` is invalid. - * @throws {InvalidModuleSpecifierError} Raised if the resolved module specifier - * is invalid. - * @throws {PackagePathNotExportedError} Raised when the requested subpath is - * not exported. - */ -export declare function resolvePackageTargetFromExports( - context: ResolutionContext, - packagePath: string, - modulePath: string, - packageRelativePath: string, - exportsField: ExportsField, - platform: string | null, -): FileResolution; diff --git a/packages/metro-resolver/types/PackageImportsResolve.d.ts b/packages/metro-resolver/types/PackageImportsResolve.d.ts deleted file mode 100644 index 95583ecc4e..0000000000 --- a/packages/metro-resolver/types/PackageImportsResolve.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-resolver/src/PackageImportsResolve.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {ExportsLikeMap, FileResolution, ResolutionContext} from './types'; -/** - * Resolve a package subpath based on the entry points defined in the package's - * "imports" field. If there is no match for the given subpath (which may be - * augmented by resolution of conditional exports for the passed `context`), - * throws a `PackagePathNotExportedError`. - * - * Implementation of PACKAGE_IMPORTS_RESOLVE described in https://nodejs.org/api/esm.html - * - * @throws {InvalidPackageConfigurationError} Raised if configuration specified - * by `importsMap` is invalid. - */ -export declare function resolvePackageTargetFromImports(context: ResolutionContext, packagePath: string, importPath: string, importsMap: ExportsLikeMap, platform: string | null): FileResolution; diff --git a/packages/metro-resolver/types/PackageResolve.d.ts b/packages/metro-resolver/types/PackageResolve.d.ts deleted file mode 100644 index 253c62b5d8..0000000000 --- a/packages/metro-resolver/types/PackageResolve.d.ts +++ /dev/null @@ -1,54 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<4a9146c2c7283c7a17d30b30025f1208>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-resolver/src/PackageResolve.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {PackageInfo, PackageJson, ResolutionContext} from './types'; -/** - * Resolve the main entry point subpath for a package. - * - * Implements legacy (non-exports) package resolution behaviour based on the - * ["browser" field spec](https://github.com/defunctzombie/package-browser-field-spec). - */ -export declare function getPackageEntryPoint(context: ResolutionContext, packageInfo: PackageInfo, platform: string | null): string; -/** - * Get the resolved file path for the given import specifier based on any - * `package.json` rules. Returns `false` if the module should be - * [ignored](https://github.com/defunctzombie/package-browser-field-spec#ignore-a-module), - * and returns the original path if no `package.json` mapping is matched. Does - * not test file existence. - * - * Implements legacy (non-exports) package resolution behaviour based on the - * ["browser" field spec](https://github.com/defunctzombie/package-browser-field-spec). - */ -export declare function redirectModulePath( - context: Readonly<{ - getPackageForModule: ResolutionContext['getPackageForModule']; - mainFields: ResolutionContext['mainFields']; - originModulePath: ResolutionContext['originModulePath']; - }>, - modulePath: string, -): string | false; -/** - * Get the mapped replacement for the given subpath defined by matching - * `mainFields` entries in the passed `package.json` - * (https://github.com/defunctzombie/package-browser-field-spec#replace-specific-files---advanced). - * - * Returns either: - * - A `string` with the matched replacement subpath. - * - `false`, indicating the module should be ignored. - * - `null` when there is no entry for the subpath. - */ -export declare function matchSubpathFromMainFields(subpath: string | ReadonlyArray, pkg: PackageJson, mainFields: ReadonlyArray): string | false | null; diff --git a/packages/metro-resolver/types/createDefaultContext.d.ts b/packages/metro-resolver/types/createDefaultContext.d.ts deleted file mode 100644 index 1232c95567..0000000000 --- a/packages/metro-resolver/types/createDefaultContext.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<31a9b3b916ff14dc24a254ab9039a8c9>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-resolver/src/createDefaultContext.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {ResolutionContext} from './types'; -import type {TransformResultDependency} from 'metro/private/DeltaBundler/types'; - -type PartialContext = Readonly< - Omit & { - redirectModulePath?: ResolutionContext['redirectModulePath']; - } ->; -/** - * Helper used by the `metro` package to create the `ResolutionContext` object. - * As context values can be overridden by callers, this occurs externally to - * `resolve.js`. - */ -declare function createDefaultContext(context: PartialContext, dependency: TransformResultDependency): ResolutionContext; -export default createDefaultContext; diff --git a/packages/metro-resolver/types/errors/FailedToResolveNameError.d.ts b/packages/metro-resolver/types/errors/FailedToResolveNameError.d.ts deleted file mode 100644 index cd1f3045d9..0000000000 --- a/packages/metro-resolver/types/errors/FailedToResolveNameError.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<8d852a8087e3651991e9dbe9e5ad9664>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-resolver/src/errors/FailedToResolveNameError.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -declare class FailedToResolveNameError extends Error { - dirPaths: ReadonlyArray; - extraPaths: ReadonlyArray; - constructor(dirPaths: ReadonlyArray, extraPaths: ReadonlyArray); -} -export default FailedToResolveNameError; diff --git a/packages/metro-resolver/types/errors/FailedToResolvePathError.d.ts b/packages/metro-resolver/types/errors/FailedToResolvePathError.d.ts deleted file mode 100644 index 380b61f889..0000000000 --- a/packages/metro-resolver/types/errors/FailedToResolvePathError.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<1e0fa2d1bab2971504a4c271d453dc29>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-resolver/src/errors/FailedToResolvePathError.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {FileAndDirCandidates} from '../types'; - -declare class FailedToResolvePathError extends Error { - candidates: FileAndDirCandidates; - constructor(candidates: FileAndDirCandidates); -} -export default FailedToResolvePathError; diff --git a/packages/metro-resolver/types/errors/FailedToResolveUnsupportedError.d.ts b/packages/metro-resolver/types/errors/FailedToResolveUnsupportedError.d.ts deleted file mode 100644 index d233efdd97..0000000000 --- a/packages/metro-resolver/types/errors/FailedToResolveUnsupportedError.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-resolver/src/errors/FailedToResolveUnsupportedError.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -declare class FailedToResolveUnsupportedError extends Error { - constructor(message: string); -} -export default FailedToResolveUnsupportedError; diff --git a/packages/metro-resolver/types/errors/InvalidPackageConfigurationError.d.ts b/packages/metro-resolver/types/errors/InvalidPackageConfigurationError.d.ts deleted file mode 100644 index 100ab25dce..0000000000 --- a/packages/metro-resolver/types/errors/InvalidPackageConfigurationError.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<109d7323b70ba3a4582f5868df075ffc>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-resolver/src/errors/InvalidPackageConfigurationError.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -/** - * Raised when a package contains an invalid `package.json` configuration. - */ -declare class InvalidPackageConfigurationError extends Error { - /** - * The description of the error cause. - */ - reason: string; - /** - * Absolute path of the package being resolved. - */ - packagePath: string; - constructor(opts: Readonly<{reason: string; packagePath: string}>); -} -export default InvalidPackageConfigurationError; diff --git a/packages/metro-resolver/types/errors/InvalidPackageError.d.ts b/packages/metro-resolver/types/errors/InvalidPackageError.d.ts deleted file mode 100644 index cf1d91cc8c..0000000000 --- a/packages/metro-resolver/types/errors/InvalidPackageError.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<825756b37d6e2cda175c6b8b7e4ae664>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-resolver/src/errors/InvalidPackageError.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {FileCandidates} from '../types'; - -declare class InvalidPackageError extends Error { - /** - * The file candidates we tried to find to resolve the `main` field of the - * package. Ex. `/js/foo/beep(.js|.json)?` if `main` is specifying `./beep` - * as the entry point. - */ - fileCandidates: FileCandidates; - /** - * The 'index' file candidates we tried to find to resolve the `main` field of - * the package. Ex. `/js/foo/beep/index(.js|.json)?` if `main` is specifying - * `./beep` as the entry point. - */ - indexCandidates: FileCandidates; - /** - * The full path to the main module that was attempted. - */ - mainModulePath: string; - /** - * Full path the package we were trying to resolve. - * Ex. `/js/foo/package.json`. - */ - packageJsonPath: string; - constructor(opts: {readonly fileCandidates: FileCandidates; readonly indexCandidates: FileCandidates; readonly mainModulePath: string; readonly packageJsonPath: string}); -} -export default InvalidPackageError; diff --git a/packages/metro-resolver/types/errors/PackageImportNotResolvedError.d.ts b/packages/metro-resolver/types/errors/PackageImportNotResolvedError.d.ts deleted file mode 100644 index 200615e508..0000000000 --- a/packages/metro-resolver/types/errors/PackageImportNotResolvedError.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<5d012a93c58cbef8b5b315d70cb4fd5a>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-resolver/src/errors/PackageImportNotResolvedError.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -/** - * Raised when package imports do not define or permit a target subpath in the - * package for the given import specifier. - */ -declare class PackageImportNotResolvedError extends Error { - /** - * Either the import specifier read, or the absolute path of the module being - * resolved (used when import specifier is externally remapped). - */ - readonly importSpecifier: string; - /** - * The description of the error cause. - */ - readonly reason: string; - constructor(opts: Readonly<{importSpecifier: string; reason: string}>); -} -export default PackageImportNotResolvedError; diff --git a/packages/metro-resolver/types/errors/PackagePathNotExportedError.d.ts b/packages/metro-resolver/types/errors/PackagePathNotExportedError.d.ts deleted file mode 100644 index 29a35d48ae..0000000000 --- a/packages/metro-resolver/types/errors/PackagePathNotExportedError.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-resolver/src/errors/PackagePathNotExportedError.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -/** - * Raised when package exports do not define or permit a target subpath in the - * package for the given module. - */ -declare class PackagePathNotExportedError extends Error {} -export default PackagePathNotExportedError; diff --git a/packages/metro-resolver/types/errors/formatFileCandidates.d.ts b/packages/metro-resolver/types/errors/formatFileCandidates.d.ts deleted file mode 100644 index 0223f5b5ef..0000000000 --- a/packages/metro-resolver/types/errors/formatFileCandidates.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<648dc80101f337456690a8a403891952>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-resolver/src/errors/formatFileCandidates.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {FileCandidates} from '../types'; - -declare function formatFileCandidates(candidates: FileCandidates): string; -export default formatFileCandidates; diff --git a/packages/metro-resolver/types/index.d.ts b/packages/metro-resolver/types/index.d.ts deleted file mode 100644 index b2b7d8c67a..0000000000 --- a/packages/metro-resolver/types/index.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<788c74a2982d6f2a21f8a1bc8182e0a4>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-resolver/src/index.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -export type { - AssetFileResolution, - CustomResolutionContext, - CustomResolver, - CustomResolverOptions, - DoesFileExist, - FileAndDirCandidates, - FileCandidates, - FileResolution, - FileSystemLookup, - ResolutionContext, - Resolution, - ResolveAsset, - Result, -} from './types'; -import FailedToResolveNameError from './errors/FailedToResolveNameError'; -import FailedToResolvePathError from './errors/FailedToResolvePathError'; -import FailedToResolveUnsupportedError from './errors/FailedToResolveUnsupportedError'; -import formatFileCandidates from './errors/formatFileCandidates'; -import InvalidPackageError from './errors/InvalidPackageError'; -import resolve from './resolve'; - -export {FailedToResolveNameError, FailedToResolvePathError, FailedToResolveUnsupportedError, formatFileCandidates, InvalidPackageError, resolve}; diff --git a/packages/metro-resolver/types/resolve.d.ts b/packages/metro-resolver/types/resolve.d.ts deleted file mode 100644 index 60b61c5cd9..0000000000 --- a/packages/metro-resolver/types/resolve.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<7c89ca7b1733441807a73b39b05d0685>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-resolver/src/resolve.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {Resolution, ResolutionContext} from './types'; - -declare function resolve(context: ResolutionContext, specifier: string, platform: string | null): Resolution; -export default resolve; diff --git a/packages/metro-resolver/types/resolveAsset.d.ts b/packages/metro-resolver/types/resolveAsset.d.ts deleted file mode 100644 index acef5ed638..0000000000 --- a/packages/metro-resolver/types/resolveAsset.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<19ebd4ae3e4945258f9c3fbd8878a99d>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-resolver/src/resolveAsset.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {AssetResolution, ResolutionContext} from './types'; -/** - * Resolve a file path as an asset. Returns the set of files found after - * expanding asset resolutions (e.g. `icon@2x.png`). Users may override this - * behaviour via `context.resolveAsset`. - */ -declare function resolveAsset(context: ResolutionContext, filePath: string): AssetResolution | null; -export default resolveAsset; diff --git a/packages/metro-resolver/types/types.d.ts b/packages/metro-resolver/types/types.d.ts deleted file mode 100644 index af18b361a0..0000000000 --- a/packages/metro-resolver/types/types.d.ts +++ /dev/null @@ -1,183 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<58467833638b1ab05fcf02a24738f4ab>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-resolver/src/types.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {TransformResultDependency} from 'metro/private/DeltaBundler/types'; - -export type Result = {readonly type: 'resolved'; readonly resolution: TResolution} | {readonly type: 'failed'; readonly candidates: TCandidates}; -export type Resolution = FileResolution | VirtualResolution | {readonly type: 'empty'}; -export type SourceFileResolution = Readonly<{ - type: 'sourceFile'; - filePath: string; -}>; -export type AssetFileResolution = ReadonlyArray; -export type AssetResolution = Readonly<{ - type: 'assetFiles'; - filePaths: AssetFileResolution; -}>; -export type FileResolution = AssetResolution | SourceFileResolution; -/** - * A JS module whose contents are provided out-of-band rather than read from a file - * on disk. - * - * NOTE: Resolving to a virtual module is not yet implemented. This is a reservation. - */ -export type VirtualResolution = Readonly<{type: 'virtualModule'}>; -export type FileAndDirCandidates = { - readonly dir: null | undefined | FileCandidates; - readonly file: null | undefined | FileCandidates; -}; -/** - * This is a way to describe what files we tried to look for when resolving - * a module name as file. This is mainly used for error reporting, so that - * we can explain why we cannot resolve a module. - */ -export type FileCandidates = - | {readonly type: 'asset'; readonly name: string} - | { - readonly type: 'sourceFile'; - filePathPrefix: string; - readonly candidateExts: ReadonlyArray; - }; -export type ExportsLikeMap = Readonly<{ - [subpathOrCondition: string]: string | ExportsLikeMap | null; -}>; -/** "exports" mapping where values may be legacy Node.js <13.7 array format. */ -export type ExportMapWithFallbacks = Readonly<{ - [subpath: string]: ExportsLikeMap[keyof ExportsLikeMap] | ExportValueWithFallback; -}>; -/** "exports" subpath value when in legacy Node.js <13.7 array format. */ -export type ExportValueWithFallback = ReadonlyArray | ReadonlyArray>; -export type ExportsField = string | ReadonlyArray | ExportValueWithFallback | ExportsLikeMap | ExportMapWithFallbacks; -export type FlattenedExportMap = ReadonlyMap; -export type NormalizedExportsLikeMap = Map; -export type PackageJson = Readonly<{ - name?: string; - main?: string; - exports?: ExportsField; - imports?: ExportsLikeMap; -}>; -export type PackageInfo = Readonly<{ - packageJson: PackageJson; - rootPath: string; -}>; -export type PackageForModule = Readonly & {packageRelativePath: string}>; -/** - * Check existence of a single file. - */ -export type DoesFileExist = (filePath: string) => boolean; -/** - * Performs a lookup against an absolute or project-relative path to determine - * whether it exists as a file or directory. Follows any symlinks, and returns - * a real absolute path on existence. - */ -export type FileSystemLookup = (absoluteOrProjectRelativePath: string) => {exists: false} | {exists: true; type: 'f' | 'd'; realPath: string}; -/** - * Given a directory path and the base asset name, return a list of all the - * asset file names that match the given base name in that directory. Return - * null if there's no such named asset. `platform` is used to identify - * platform-specific assets, ex. `foo.ios.js` instead of a generic `foo.js`. - */ -export type ResolveAsset = (dirPath: string, assetName: string, extension: string) => null | undefined | ReadonlyArray; -export type ResolutionContext = Readonly<{ - allowHaste: boolean; - assetExts: ReadonlySet; - customResolverOptions: CustomResolverOptions; - disableHierarchicalLookup: boolean; - /** - * Determine whether a regular file exists at the given path. - * - * @deprecated, prefer `fileSystemLookup` - */ - doesFileExist: DoesFileExist; - extraNodeModules: null | undefined | {[$$Key$$: string]: string}; - /** Is resolving for a development bundle. */ - dev: boolean; - /** - * Get the parsed contents of the specified `package.json` file. - */ - getPackage: (packageJsonPath: string) => null | undefined | PackageJson; - /** - * Get the closest package scope, parsed `package.json` and relative subpath - * for a given absolute candidate path (which need not exist), or null if - * there is no package.json closer than the nearest node_modules directory. - * - * @deprecated See https://github.com/facebook/metro/commit/29c77bff31e2475a086bc3f04073f485da8f9ff0 - */ - getPackageForModule: (absoluteModulePath: string) => null | undefined | PackageForModule; - /** - * The dependency descriptor, within the origin module, corresponding to the - * current resolution request. This is provided for diagnostic purposes ONLY - * and may not be used for resolution purposes. - */ - dependency?: TransformResultDependency; - /** - * Whether the dependency to be resolved was declared with an ESM import, - * ("import x from 'y'" or "await import('z')"), or a CommonJS "require". - * Corresponds to the criteria Node.js uses to assert an "import" - * resolution condition, vs "require". - * - * Always equal to dependency.data.isESMImport where dependency is provided, - * but may be used for resolution. - */ - isESMImport?: boolean; - /** - * Synchonously returns information about a given absolute path, including - * whether it exists, whether it is a file or directory, and its absolute - * real path. - */ - fileSystemLookup: FileSystemLookup; - /** - * The ordered list of fields to read in `package.json` to resolve a main - * entry point based on the "browser" field spec. - */ - mainFields: ReadonlyArray; - /** - * Full path of the module that is requiring or importing the module to be - * resolved. This may not be the only place this dependency was found, - * as resolutions can be cached. - */ - originModulePath: string; - nodeModulesPaths: ReadonlyArray; - preferNativePlatform: boolean; - resolveAsset: ResolveAsset; - redirectModulePath: (modulePath: string) => string | false; - /** - * Given a name, this should return the full path to the file that provides - * a Haste module of that name. Ex. for `Foo` it may return `/smth/Foo.js`. - */ - resolveHasteModule: (name: string) => null | undefined | string; - /** - * Given a name, this should return the full path to the package manifest that - * provides a Haste package of that name. Ex. for `Foo` it may return - * `/smth/Foo/package.json`. - */ - resolveHastePackage: (name: string) => null | undefined | string; - resolveRequest?: null | undefined | CustomResolver; - sourceExts: ReadonlyArray; - unstable_conditionNames: ReadonlyArray; - unstable_conditionsByPlatform: Readonly<{ - [platform: string]: ReadonlyArray; - }>; - unstable_enablePackageExports: boolean; - unstable_incrementalResolution: boolean; - unstable_logWarning: (message: string) => void; -}>; -export type CustomResolutionContext = Readonly & {resolveRequest: CustomResolver}>; -export type CustomResolver = (context: CustomResolutionContext, moduleName: string, platform: string | null) => Resolution; -export type CustomResolverOptions = { - readonly [$$Key$$: string]: unknown; -}; diff --git a/packages/metro-resolver/types/utils/isAssetFile.d.ts b/packages/metro-resolver/types/utils/isAssetFile.d.ts deleted file mode 100644 index 8fba3a76af..0000000000 --- a/packages/metro-resolver/types/utils/isAssetFile.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-resolver/src/utils/isAssetFile.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -/** - * Determine if a file path should be considered an asset file based on the - * given `assetExts`. - */ -declare function isAssetFile(filePath: string, assetExts: ReadonlySet): boolean; -export default isAssetFile; diff --git a/packages/metro-resolver/types/utils/isSubpathDefinedInExportsLike.d.ts b/packages/metro-resolver/types/utils/isSubpathDefinedInExportsLike.d.ts deleted file mode 100644 index 0c1dff3733..0000000000 --- a/packages/metro-resolver/types/utils/isSubpathDefinedInExportsLike.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<81f42fb3ff062f769288a6ff47a47b13>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-resolver/src/utils/isSubpathDefinedInExportsLike.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -/** - * Identifies whether the given subpath is defined in the given "exports"-like - * mapping. Does not reduce exports conditions (therefore does not identify - * whether the subpath is mapped to a value). - */ -import type {NormalizedExportsLikeMap} from '../types'; - -export declare function isSubpathDefinedInExportsLike(exportsLikeMap: NormalizedExportsLikeMap, subpath: string): boolean; diff --git a/packages/metro-resolver/types/utils/matchSubpathFromExportsLike.d.ts b/packages/metro-resolver/types/utils/matchSubpathFromExportsLike.d.ts deleted file mode 100644 index 5470ca4188..0000000000 --- a/packages/metro-resolver/types/utils/matchSubpathFromExportsLike.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<2de88d23d3cf26217cd8ae8ada6c79b7>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-resolver/src/utils/matchSubpathFromExportsLike.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {NormalizedExportsLikeMap, ResolutionContext} from '../types'; -/** - * Get the mapped replacement for the given subpath. - * - * Implements modern package resolution behaviour based on the [Package Entry - * Points spec](https://nodejs.org/docs/latest-v19.x/api/packages.html#package-entry-points). - */ -export declare function matchSubpathFromExportsLike( - context: ResolutionContext, - subpath: string, - exportsLikeMap: NormalizedExportsLikeMap, - platform: string | null, - createConfigError: (reason: string) => Error, -): Readonly<{target: string | null; patternMatch: string | null}>; diff --git a/packages/metro-resolver/types/utils/matchSubpathPattern.d.ts b/packages/metro-resolver/types/utils/matchSubpathPattern.d.ts deleted file mode 100644 index 55b4393a96..0000000000 --- a/packages/metro-resolver/types/utils/matchSubpathPattern.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-resolver/src/utils/matchSubpathPattern.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -/** - * If a subpath pattern expands to the passed subpath, return the subpath match - * (value to substitute for '*'). Otherwise, return `null`. - * - * See https://nodejs.org/docs/latest-v19.x/api/packages.html#subpath-patterns. - */ -export declare function matchSubpathPattern(subpathPattern: string, subpath: string): string | null; diff --git a/packages/metro-resolver/types/utils/paths.d.ts b/packages/metro-resolver/types/utils/paths.d.ts deleted file mode 100644 index ada6b3daa9..0000000000 --- a/packages/metro-resolver/types/utils/paths.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<5fff5c32149db3606cb58437bfe37a8b>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-resolver/src/utils/paths.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -export declare const systemToPosixPath: (relativeSystemPath: string) => string; -export declare type systemToPosixPath = typeof systemToPosixPath; -export declare const posixToSystemPath: (relativePosixPath: string) => string; -export declare type posixToSystemPath = typeof posixToSystemPath; diff --git a/packages/metro-resolver/types/utils/reduceExportsLikeMap.d.ts b/packages/metro-resolver/types/utils/reduceExportsLikeMap.d.ts deleted file mode 100644 index 6f82715231..0000000000 --- a/packages/metro-resolver/types/utils/reduceExportsLikeMap.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<9a510c4b4eda34f59f744e0cb76b055f>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-resolver/src/utils/reduceExportsLikeMap.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -/** - * Reduce an "exports"-like mapping to a flat subpath mapping after resolving - * conditional exports. - */ -import type {FlattenedExportMap, NormalizedExportsLikeMap} from '../types'; - -export declare function reduceExportsLikeMap(exportsLikeMap: NormalizedExportsLikeMap, conditionNames: ReadonlySet, createConfigError: (reason: string) => Error): FlattenedExportMap; diff --git a/packages/metro-runtime/types/modules/types.d.ts b/packages/metro-runtime/types/modules/types.d.ts deleted file mode 100644 index 366a81e8eb..0000000000 --- a/packages/metro-runtime/types/modules/types.d.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<6699c9b4e3ffd1142e3253a834be43e9>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-runtime/src/modules/types.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -export type ModuleMap = ReadonlyArray<[number, string]>; -export type Bundle = { - readonly modules: ModuleMap; - readonly post: string; - readonly pre: string; -}; -export type DeltaBundle = { - readonly added: ModuleMap; - readonly modified: ModuleMap; - readonly deleted: ReadonlyArray; -}; -export type BundleVariant = - | Readonly & {base: true; revisionId: string}> - | Readonly< - Omit & { - base: false; - revisionId: string; - } - >; -export type BundleMetadata = { - readonly pre: number; - readonly post: number; - readonly modules: ReadonlyArray<[number, number]>; -}; -export type FormattedError = { - readonly type: string; - readonly message: string; - readonly errors: Array<{description: string}>; -}; -export type HmrModule = { - readonly module: [number, string]; - readonly sourceMappingURL: string; - readonly sourceURL: string; -}; -export type HmrUpdate = { - readonly added: ReadonlyArray; - readonly deleted: ReadonlyArray; - readonly isInitialUpdate: boolean; - readonly modified: ReadonlyArray; - readonly revisionId: string; -}; -export type HmrUpdateMessage = { - readonly type: 'update'; - readonly body: HmrUpdate; -}; -export type HmrErrorMessage = { - readonly type: 'error'; - readonly body: FormattedError; -}; -export type HmrClientMessage = - | { - readonly type: 'register-entrypoints'; - readonly entryPoints: Array; - } - | { - readonly type: 'log'; - readonly level: 'trace' | 'info' | 'warn' | 'log' | 'group' | 'groupCollapsed' | 'groupEnd' | 'debug'; - readonly data: Array; - } - | {readonly type: 'log-opt-in'} - | {readonly type: 'heartbeat'}; -export type HmrMessage = - | {readonly type: 'bundle-registered'} - | { - readonly type: 'update-start'; - readonly body: {readonly isInitialUpdate: boolean}; - } - | { - readonly type: 'update-done'; - readonly body?: {readonly changeId?: string}; - } - | HmrUpdateMessage - | HmrErrorMessage - | {readonly type: 'heartbeat'}; diff --git a/packages/metro-source-map/API.md b/packages/metro-source-map/API.md new file mode 100644 index 0000000000..a436184ff6 --- /dev/null +++ b/packages/metro-source-map/API.md @@ -0,0 +1,143 @@ +## API Report File for "metro-source-map" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +import type { Node as Node_2 } from '@babel/types'; +import type { PluginObj } from '@babel/core'; + +export type BabelDecodedMap = { + readonly mappings: ReadonlyArray>; + readonly names: ReadonlyArray; +}; + +export type BabelSourceMapSegment = Readonly<{ + generated: Readonly<{column: number; line: number}>; + original?: Readonly<{column: number; line: number}>; + source?: null | undefined | string; + name?: null | undefined | string; +}>; + +export type BasicSourceMap = { + readonly file?: string; + readonly mappings: string; + readonly names: Array; + readonly sourceRoot?: string; + readonly sources: Array; + readonly sourcesContent?: Array; + readonly version: number; + readonly x_facebook_offsets?: Array; + readonly x_metro_module_paths?: Array; + readonly x_facebook_sources?: FBSourcesArray; + readonly x_facebook_segments?: FBSegmentMap; + readonly x_hermes_function_offsets?: HermesFunctionOffsets; + readonly x_google_ignoreList?: Array; +}; + +export class BundleBuilder { + constructor(file: string); + append(code: string, map: null | undefined | MixedSourceMap): this; + getCode(): string; + getMap(): MixedSourceMap; +} + +export function composeSourceMaps(maps: ReadonlyArray): MixedSourceMap; + +export const Consumer: typeof DelegatingConsumer; + +export type Consumer = typeof Consumer; + +export function createIndexMap(file: null | undefined | string, sections: Array): IndexMap; + +export type FBSegmentMap = {[id: string]: MixedSourceMap}; + +export type FBSourceFunctionMap = { + readonly names: ReadonlyArray; + readonly mappings: string; +}; + +export type FBSourceMetadata = [null | undefined | FBSourceFunctionMap]; + +export type FBSourcesArray = ReadonlyArray; + +export function fromRawMappings(modules: ReadonlyArray, offsetLines?: number): Generator_2; + +export function fromRawMappingsIndexed(modules: ReadonlyArray, offsetLines?: number): IndexedSourceMapResult; + +export function fromRawMappingsNonBlocking(modules: ReadonlyArray, offsetLines?: number): Promise; + +export function functionMapBabelPlugin(): PluginObj; + +export function generateFunctionMap(ast: Node_2, context?: Context): FBSourceFunctionMap; + +export type HermesFunctionOffsets = { + [$$Key$$: number]: ReadonlyArray; +}; + +export interface IConsumer { + eachMapping(callback: (mapping: Mapping) => unknown, context?: unknown, order?: IterationOrder): void; + get file(): null | undefined | string; + generatedMappings(): Iterable; + originalPositionFor(generatedPosition: GeneratedPositionLookup): SourcePosition; + sourceContentFor(source: string, nullOnMissing: true): null | undefined | string; +} + +export type IndexMap = { + readonly file?: string; + readonly mappings?: void; + readonly sourcesContent?: void; + readonly sections: Array; + readonly version: number; + readonly x_facebook_offsets?: Array; + readonly x_metro_module_paths?: Array; + readonly x_facebook_sources?: void; + readonly x_facebook_segments?: FBSegmentMap; + readonly x_hermes_function_offsets?: HermesFunctionOffsets; + readonly x_google_ignoreList?: void; +}; + +export type IndexMapSection = { + map: IndexMap | BasicSourceMap; + offset: {line: number; column: number}; +}; + +export function isVlqMap(map: (null | undefined | ReadonlyArray) | VlqMap): map is VlqMap; + +export type MetroSourceMapSegmentTuple = SourceMappingWithName | SourceMapping | GeneratedCodeMapping; + +export type MixedSourceMap = IndexMap | BasicSourceMap; + +export function normalizeSourcePath(sourceInput: string, map: {readonly sourceRoot?: null | undefined | string}): string; + +export type RawMappingsModule = { + readonly map: (null | undefined | ReadonlyArray) | VlqMap; + readonly functionMap: null | undefined | FBSourceFunctionMap; + readonly path: string; + readonly source: string; + readonly code: string; + readonly isIgnored: boolean; + readonly lineCount?: number; +}; + +export interface SourceMapGenerator { + toMap(file?: string, options?: {excludeSource?: boolean}): MixedSourceMap; + toString(file?: string, options?: {excludeSource?: boolean}): string; +} + +export function toBabelSegments(sourceMap: BasicSourceMap): Array; + +export function toSegmentTuple(mapping: BabelSourceMapSegment): MetroSourceMapSegmentTuple; + +export function tuplesFromBabelDecodedMap(decodedMap: BabelDecodedMap): Array; + +export type VlqMap = { + readonly mappings: string; + readonly names: ReadonlyArray; +}; + +export function vlqMapFromBabelDecodedMap(decodedMap: BabelDecodedMap, terminatingMapping: [number, number]): VlqMap; + +export function vlqMapFromTuples(mappings: ReadonlyArray): VlqMap; + +``` diff --git a/packages/metro-source-map/types/B64Builder.d.ts b/packages/metro-source-map/types/B64Builder.d.ts deleted file mode 100644 index 6a8a6f298a..0000000000 --- a/packages/metro-source-map/types/B64Builder.d.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-source-map/src/B64Builder.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -/** - * Efficient builder for base64 VLQ mappings strings. - * - * This class uses a buffer that is preallocated with one megabyte and is - * reallocated dynamically as needed, doubling its size. - * - * Encoding never creates any complex value types (strings, objects), and only - * writes character values to the buffer. - * - * For details about source map terminology and specification, check - * https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit - */ -declare class B64Builder { - buffer: Buffer; - pos: number; - hasSegment: boolean; - constructor(); - /** - * Adds `n` markers for generated lines to the mappings. - */ - markLines(n: number): this; - /** - * Starts a segment at the specified column offset in the current line. - */ - startSegment(column: number): this; - /** - * Appends a single number to the mappings. - */ - append(value: number): this; - /** - * Returns the string representation of the mappings. - */ - toString(): string; -} -export default B64Builder; diff --git a/packages/metro-source-map/types/BundleBuilder.d.ts b/packages/metro-source-map/types/BundleBuilder.d.ts deleted file mode 100644 index b5c6a6a3d6..0000000000 --- a/packages/metro-source-map/types/BundleBuilder.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<7caf8a64a8942cfe2f54a1f82faa1a9b>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-source-map/src/BundleBuilder.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {IndexMap, IndexMapSection, MixedSourceMap} from './source-map'; -/** - * Builds a source-mapped bundle by concatenating strings and their - * corresponding source maps (if any). - * - * Usage: - * - * const builder = new BundleBuilder('bundle.js'); - * builder - * .append('foo\n', fooMap) - * .append('bar\n') - * // ... - * const code = builder.getCode(); - * const map = builder.getMap(); - */ -export declare class BundleBuilder { - constructor(file: string); - append(code: string, map: null | undefined | MixedSourceMap): this; - getMap(): MixedSourceMap; - getCode(): string; -} -export declare function createIndexMap(file: null | undefined | string, sections: Array): IndexMap; diff --git a/packages/metro-source-map/types/Consumer/AbstractConsumer.d.ts b/packages/metro-source-map/types/Consumer/AbstractConsumer.d.ts deleted file mode 100644 index d2a5af5a7d..0000000000 --- a/packages/metro-source-map/types/Consumer/AbstractConsumer.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-source-map/src/Consumer/AbstractConsumer.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {GeneratedPositionLookup, IConsumer, IterationOrder, Mapping, SourcePosition} from './types'; - -declare class AbstractConsumer implements IConsumer { - constructor(sourceMap: {readonly file?: string}); - originalPositionFor(generatedPosition: GeneratedPositionLookup): SourcePosition; - generatedMappings(): Iterable; - eachMapping(callback: (mapping: Mapping) => unknown, context?: unknown, order?: IterationOrder): void; - get file(): null | undefined | string; - sourceContentFor(source: string, nullOnMissing: true): null | undefined | string; -} -export default AbstractConsumer; diff --git a/packages/metro-source-map/types/Consumer/DelegatingConsumer.d.ts b/packages/metro-source-map/types/Consumer/DelegatingConsumer.d.ts deleted file mode 100644 index c180d5ab87..0000000000 --- a/packages/metro-source-map/types/Consumer/DelegatingConsumer.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-source-map/src/Consumer/DelegatingConsumer.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {MixedSourceMap} from '../source-map'; -import type {LookupBias} from './constants.js'; -import type {GeneratedPositionLookup, IConsumer, IterationOrder, Mapping, SourcePosition} from './types'; -/** - * A source map consumer that supports both "basic" and "indexed" source maps. - * Uses `MappingsConsumer` and `SectionsConsumer` under the hood (via - * `createConsumer`). - */ -declare class DelegatingConsumer implements IConsumer { - static readonly GENERATED_ORDER: IterationOrder; - static readonly ORIGINAL_ORDER: IterationOrder; - static readonly GREATEST_LOWER_BOUND: LookupBias; - static readonly LEAST_UPPER_BOUND: LookupBias; - constructor(sourceMap: MixedSourceMap); - originalPositionFor(generatedPosition: GeneratedPositionLookup): SourcePosition; - generatedMappings(): Iterable; - eachMapping(callback: (mapping: Mapping) => unknown, context?: unknown, order?: IterationOrder): void; - get file(): null | undefined | string; - sourceContentFor(source: string, nullOnMissing: true): null | undefined | string; -} -export default DelegatingConsumer; diff --git a/packages/metro-source-map/types/Consumer/MappingsConsumer.d.ts b/packages/metro-source-map/types/Consumer/MappingsConsumer.d.ts deleted file mode 100644 index 0e93923376..0000000000 --- a/packages/metro-source-map/types/Consumer/MappingsConsumer.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<748cc3fc8842720bf0a4d1e9c843f99e>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-source-map/src/Consumer/MappingsConsumer.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {BasicSourceMap} from '../source-map'; -import type {GeneratedPositionLookup, IConsumer, Mapping, SourcePosition} from './types'; - -import AbstractConsumer from './AbstractConsumer'; -/** - * A source map consumer that supports "basic" source maps (that have a - * `mappings` field and no sections). - */ -declare class MappingsConsumer extends AbstractConsumer implements IConsumer { - constructor(sourceMap: BasicSourceMap); - originalPositionFor(generatedPosition: GeneratedPositionLookup): SourcePosition; - generatedMappings(): Iterable; - sourceContentFor(source: string, nullOnMissing: true): null | undefined | string; -} -export default MappingsConsumer; diff --git a/packages/metro-source-map/types/Consumer/SectionsConsumer.d.ts b/packages/metro-source-map/types/Consumer/SectionsConsumer.d.ts deleted file mode 100644 index 8d54ac64a4..0000000000 --- a/packages/metro-source-map/types/Consumer/SectionsConsumer.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<83c35c03bd817b0e1efefa4f6ae159b8>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-source-map/src/Consumer/SectionsConsumer.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {IndexMap} from '../source-map'; -import type {GeneratedPositionLookup, IConsumer, Mapping, SourcePosition} from './types'; - -import AbstractConsumer from './AbstractConsumer'; -/** - * A source map consumer that supports "indexed" source maps (that have a - * `sections` field and no top-level mappings). - */ -declare class SectionsConsumer extends AbstractConsumer implements IConsumer { - constructor(sourceMap: IndexMap); - originalPositionFor(generatedPosition: GeneratedPositionLookup): SourcePosition; - generatedMappings(): Iterable; - sourceContentFor(source: string, nullOnMissing: true): null | undefined | string; -} -export default SectionsConsumer; diff --git a/packages/metro-source-map/types/Consumer/constants.d.ts b/packages/metro-source-map/types/Consumer/constants.d.ts deleted file mode 100644 index c95036fefa..0000000000 --- a/packages/metro-source-map/types/Consumer/constants.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<8d70c30794360bf4eff569fa46f26fb9>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-source-map/src/Consumer/constants.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {Number0, Number1} from 'ob1'; - -declare const FIRST_COLUMN: Number0; -declare const FIRST_LINE: Number1; -export declare type IterationOrder = symbol & {__IterationOrder__: string}; -declare const GENERATED_ORDER: IterationOrder; -declare const ORIGINAL_ORDER: IterationOrder; -export declare type LookupBias = symbol & {__LookupBias__: string}; -declare const GREATEST_LOWER_BOUND: LookupBias; -declare const LEAST_UPPER_BOUND: LookupBias; -declare const EMPTY_POSITION: Readonly<{ - source: null; - name: null; - line: null; - column: null; -}>; -declare function iterationOrderToString(x: IterationOrder): string; -declare function lookupBiasToString(x: LookupBias): string; -export {FIRST_COLUMN, FIRST_LINE, GENERATED_ORDER, ORIGINAL_ORDER, GREATEST_LOWER_BOUND, LEAST_UPPER_BOUND, EMPTY_POSITION, iterationOrderToString, lookupBiasToString}; diff --git a/packages/metro-source-map/types/Consumer/createConsumer.d.ts b/packages/metro-source-map/types/Consumer/createConsumer.d.ts deleted file mode 100644 index 6500b7314b..0000000000 --- a/packages/metro-source-map/types/Consumer/createConsumer.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<3628df6a457f3d3d7c15f9e248338e4e>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-source-map/src/Consumer/createConsumer.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {MixedSourceMap} from '../source-map'; -import type {IConsumer} from './types'; - -declare function createConsumer(sourceMap: MixedSourceMap): IConsumer; -export default createConsumer; diff --git a/packages/metro-source-map/types/Consumer/index.d.ts b/packages/metro-source-map/types/Consumer/index.d.ts deleted file mode 100644 index e02a40ed3b..0000000000 --- a/packages/metro-source-map/types/Consumer/index.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<406a4e912114aee8c49788eecccd6a4d>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-source-map/src/Consumer/index.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import DelegatingConsumer from './DelegatingConsumer'; - -declare const $$EXPORT_DEFAULT_DECLARATION$$: typeof DelegatingConsumer; -declare type $$EXPORT_DEFAULT_DECLARATION$$ = typeof $$EXPORT_DEFAULT_DECLARATION$$; -export default $$EXPORT_DEFAULT_DECLARATION$$; diff --git a/packages/metro-source-map/types/Consumer/normalizeSourcePath.d.ts b/packages/metro-source-map/types/Consumer/normalizeSourcePath.d.ts deleted file mode 100644 index a472a4a77d..0000000000 --- a/packages/metro-source-map/types/Consumer/normalizeSourcePath.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-source-map/src/Consumer/normalizeSourcePath.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -declare function normalizeSourcePath(sourceInput: string, map: {readonly sourceRoot?: null | undefined | string}): string; -export default normalizeSourcePath; diff --git a/packages/metro-source-map/types/Consumer/positionMath.d.ts b/packages/metro-source-map/types/Consumer/positionMath.d.ts deleted file mode 100644 index 9a479f8e1f..0000000000 --- a/packages/metro-source-map/types/Consumer/positionMath.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<6db8c7c1cbb86a47de92e1b9565dd624>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-source-map/src/Consumer/positionMath.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {GeneratedOffset} from './types'; -import type {Number0, Number1} from 'ob1'; - -export declare function shiftPositionByOffset< - T extends { - readonly line: null | undefined | Number1; - readonly column: null | undefined | Number0; - }, ->(pos: T, offset: GeneratedOffset): T; -export declare function subtractOffsetFromPosition< - T extends { - readonly line: null | undefined | Number1; - readonly column: null | undefined | Number0; - }, ->(pos: T, offset: GeneratedOffset): T; diff --git a/packages/metro-source-map/types/Consumer/search.d.ts b/packages/metro-source-map/types/Consumer/search.d.ts deleted file mode 100644 index 2bd36b196b..0000000000 --- a/packages/metro-source-map/types/Consumer/search.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-source-map/src/Consumer/search.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -export declare function greatestLowerBound(elements: ReadonlyArray, target: U, comparator: ($$PARAM_0$$: U, $$PARAM_1$$: T) => number): null | undefined | number; diff --git a/packages/metro-source-map/types/Consumer/types.d.ts b/packages/metro-source-map/types/Consumer/types.d.ts deleted file mode 100644 index 0376281474..0000000000 --- a/packages/metro-source-map/types/Consumer/types.d.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<6c36a6277aa100c3e644e201ed5f0cea>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-source-map/src/Consumer/types.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {IterationOrder, LookupBias} from './constants'; -import type {Number0, Number1} from 'ob1'; - -export type {IterationOrder, LookupBias}; -export type GeneratedOffset = { - readonly lines: Number0; - readonly columns: Number0; -}; -export type SourcePosition = { - source: null | undefined | string; - line: null | undefined | Number1; - column: null | undefined | Number0; - name: null | undefined | string; -}; -export type GeneratedPosition = { - readonly line: Number1; - readonly column: Number0; -}; -export type GeneratedPositionLookup = { - readonly line: null | undefined | Number1; - readonly column: null | undefined | Number0; - readonly bias?: LookupBias; -}; -export type Mapping = Readonly<{ - source: null | undefined | string; - generatedLine: Number1; - generatedColumn: Number0; - originalLine: null | undefined | Number1; - originalColumn: null | undefined | Number0; - name: null | undefined | string; -}>; -export interface IConsumer { - originalPositionFor(generatedPosition: GeneratedPositionLookup): SourcePosition; - generatedMappings(): Iterable; - eachMapping(callback: (mapping: Mapping) => unknown, context?: unknown, order?: IterationOrder): void; - get file(): null | undefined | string; - sourceContentFor(source: string, nullOnMissing: true): null | undefined | string; -} diff --git a/packages/metro-source-map/types/Generator.d.ts b/packages/metro-source-map/types/Generator.d.ts deleted file mode 100644 index 69989ae1f9..0000000000 --- a/packages/metro-source-map/types/Generator.d.ts +++ /dev/null @@ -1,94 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<1faf6a56f194e521c6e8f8a62a0b2754>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-source-map/src/Generator.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {BasicSourceMap, FBSourceFunctionMap, FBSourceMetadata} from './source-map'; - -import B64Builder from './B64Builder'; - -type FileFlags = Readonly<{addToIgnoreList?: boolean}>; -/** - * Generates a source map from raw mappings. - * - * Raw mappings are a set of 2, 4, or five elements: - * - * - line and column number in the generated source - * - line and column number in the original source - * - symbol name in the original source - * - * Mappings have to be passed in the order appearance in the generated source. - */ -declare class Generator { - builder: B64Builder; - last: { - generatedColumn: number; - generatedLine: number; - name: number; - source: number; - sourceColumn: number; - sourceLine: number; - }; - names: IndexedSet; - source: number; - sources: Array; - sourcesContent: Array; - x_facebook_sources: Array; - x_google_ignoreList: Array; - constructor(); - /** - * Mark the beginning of a new source file. - */ - startFile(file: string, code: string, functionMap: null | undefined | FBSourceFunctionMap, flags?: FileFlags): void; - /** - * Mark the end of the current source file - */ - endFile(): void; - /** - * Adds a mapping for generated code without a corresponding source location. - */ - addSimpleMapping(generatedLine: number, generatedColumn: number): void; - /** - * Adds a mapping for generated code with a corresponding source location. - */ - addSourceMapping(generatedLine: number, generatedColumn: number, sourceLine: number, sourceColumn: number): void; - /** - * Adds a mapping for code with a corresponding source location + symbol name. - */ - addNamedSourceMapping(generatedLine: number, generatedColumn: number, sourceLine: number, sourceColumn: number, name: string): void; - /** - * Return the source map as object. - */ - toMap(file?: string, options?: {excludeSource?: boolean}): BasicSourceMap; - /** - * Return the source map as string. - * - * This is ~2.5x faster than calling `JSON.stringify(generator.toMap())` - */ - toString(file?: string, options?: {excludeSource?: boolean}): string; - /** - * Determine whether we need to write the `x_facebook_sources` field. - * If the metadata is all `null`s, we can omit the field entirely. - */ - hasSourcesMetadata(): boolean; -} -export default Generator; -declare class IndexedSet { - map: Map; - nextIndex: number; - constructor(); - indexFor(x: string): number; - items(): Array; -} diff --git a/packages/metro-source-map/types/LineIndexedMappings.d.ts b/packages/metro-source-map/types/LineIndexedMappings.d.ts deleted file mode 100644 index 267b1b138b..0000000000 --- a/packages/metro-source-map/types/LineIndexedMappings.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<605428f0d829e437efe1190f78927609>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-source-map/src/LineIndexedMappings.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -/** - * A compact, lazily-decoded view of one module's VLQ `mappings` for the - * generated -> original position lookup that `/symbolicate` performs. - * - * Construction builds a per-line index: one entry per generated line holding the - * byte offset into `mappings` where that line's segments begin and the - * source-line/source-column delta accumulators as they stand entering the line. - * A lookup jumps to the target line and decodes only that line's segments in - * place over the retained `mappings` string, allocating nothing. - * - * VLQ deltas are cumulative across the whole string, so the index snapshots the - * accumulator state at each line start to make any line independently - * decodable. The index holds O(lines) integers; generated columns reset per - * line and are not stored. - */ -declare class LineIndexedMappings { - constructor(mappings: string); - originalPositionFor(generatedLine1Based: number, generatedColumn0Based: number): null | undefined | {line1Based: number; column0Based: number}; -} -export default LineIndexedMappings; diff --git a/packages/metro-source-map/types/composeSourceMaps.d.ts b/packages/metro-source-map/types/composeSourceMaps.d.ts deleted file mode 100644 index 7a671cd43a..0000000000 --- a/packages/metro-source-map/types/composeSourceMaps.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-source-map/src/composeSourceMaps.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {MixedSourceMap} from './source-map'; - -declare function composeSourceMaps(maps: ReadonlyArray): MixedSourceMap; -export default composeSourceMaps; diff --git a/packages/metro-source-map/types/encode.d.ts b/packages/metro-source-map/types/encode.d.ts deleted file mode 100644 index 50fdbe2392..0000000000 --- a/packages/metro-source-map/types/encode.d.ts +++ /dev/null @@ -1,69 +0,0 @@ -/** - * Portions 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<434f3b5bd72fe24ce754f3f2d57bb686>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-source-map/src/encode.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -/** - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - * - * Based on the Base 64 VLQ implementation in Closure Compiler: - * https://git.io/vymuA - * - * Copyright 2011 The Closure Compiler Authors. All rights reserved. - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following - * disclaimer in the documentation and/or other materials provided - * with the distribution. - * * Neither the name of Google Inc. nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * @copyright - * - * Associate this with the THIRD_PARTY_LICENCE type to ensure it isn't - * stripped by flow-api-translator. - */ -export type THIRD_PARTY_LICENSE = unknown; -/** - * Encodes a number to base64 VLQ format and appends it to the passed-in buffer - * - * DON'T USE COMPOUND OPERATORS (eg `>>>=`) ON `let`-DECLARED VARIABLES! - * V8 WILL DEOPTIMIZE THIS FUNCTION AND MAP CREATION WILL BE 25% SLOWER! - * - * DON'T ADD MORE COMMENTS TO THIS FUNCTION TO KEEP ITS LENGTH SHORT ENOUGH FOR - * V8 OPTIMIZATION! - */ -declare function encode(value: number, buffer: Buffer, position: number): number; -export default encode; diff --git a/packages/metro-source-map/types/generateFunctionMap.d.ts b/packages/metro-source-map/types/generateFunctionMap.d.ts deleted file mode 100644 index c69b243058..0000000000 --- a/packages/metro-source-map/types/generateFunctionMap.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-source-map/src/generateFunctionMap.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {FBSourceFunctionMap} from './source-map'; -import type {PluginObj} from '@babel/core'; -import type {Node as BabelNode} from '@babel/types'; - -type Position = {line: number; column: number}; -type RangeMapping = {name: string; start: Position}; -export type Context = {filename?: null | undefined | string}; -/** - * Generate a map of source positions to function names. The names are meant to - * describe the stack frame in an error trace and may contain more contextual - * information than just the actual name of the function. - * - * The output is encoded for use in a source map. For details about the format, - * see MappingEncoder below. - */ -declare function generateFunctionMap(ast: BabelNode, context?: Context): FBSourceFunctionMap; -/** - * Same as generateFunctionMap, but returns the raw array of mappings instead - * of encoding it for use in a source map. - * - * Lines are 1-based and columns are 0-based. - */ -declare function generateFunctionMappingsArray(ast: BabelNode, context?: Context): ReadonlyArray; -declare function functionMapBabelPlugin(): PluginObj; -export {functionMapBabelPlugin, generateFunctionMap, generateFunctionMappingsArray}; diff --git a/packages/metro-source-map/types/source-map.d.ts b/packages/metro-source-map/types/source-map.d.ts deleted file mode 100644 index bcc54ce577..0000000000 --- a/packages/metro-source-map/types/source-map.d.ts +++ /dev/null @@ -1,188 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-source-map/src/source-map.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {IConsumer} from './Consumer/types'; - -import {BundleBuilder, createIndexMap} from './BundleBuilder'; -import composeSourceMaps from './composeSourceMaps'; -import Consumer from './Consumer'; -import normalizeSourcePath from './Consumer/normalizeSourcePath'; -import {functionMapBabelPlugin, generateFunctionMap} from './generateFunctionMap'; -import Generator from './Generator'; - -export type {IConsumer}; -type GeneratedCodeMapping = [number, number]; -type SourceMapping = [number, number, number, number]; -type SourceMappingWithName = [number, number, number, number, string]; -export type MetroSourceMapSegmentTuple = SourceMappingWithName | SourceMapping | GeneratedCodeMapping; -type BabelDecodedMapSegment = [number] | [number, number, number, number] | [number, number, number, number, number]; -export type BabelDecodedMap = { - readonly mappings: ReadonlyArray>; - readonly names: ReadonlyArray; -}; -export type VlqMap = { - readonly mappings: string; - readonly names: ReadonlyArray; -}; -export type HermesFunctionOffsets = { - [$$Key$$: number]: ReadonlyArray; -}; -export type FBSourcesArray = ReadonlyArray; -export type FBSourceMetadata = [null | undefined | FBSourceFunctionMap]; -export type FBSourceFunctionMap = { - readonly names: ReadonlyArray; - readonly mappings: string; -}; -export type BabelSourceMapSegment = Readonly<{ - generated: Readonly<{column: number; line: number}>; - original?: Readonly<{column: number; line: number}>; - source?: null | undefined | string; - name?: null | undefined | string; -}>; -export type FBSegmentMap = {[id: string]: MixedSourceMap}; -export type BasicSourceMap = { - readonly file?: string; - readonly mappings: string; - readonly names: Array; - readonly sourceRoot?: string; - readonly sources: Array; - readonly sourcesContent?: Array; - readonly version: number; - readonly x_facebook_offsets?: Array; - readonly x_metro_module_paths?: Array; - readonly x_facebook_sources?: FBSourcesArray; - readonly x_facebook_segments?: FBSegmentMap; - readonly x_hermes_function_offsets?: HermesFunctionOffsets; - readonly x_google_ignoreList?: Array; -}; -export type IndexMapSection = { - map: IndexMap | BasicSourceMap; - offset: {line: number; column: number}; -}; -export type IndexMap = { - readonly file?: string; - readonly mappings?: void; - readonly sourcesContent?: void; - readonly sections: Array; - readonly version: number; - readonly x_facebook_offsets?: Array; - readonly x_metro_module_paths?: Array; - readonly x_facebook_sources?: void; - readonly x_facebook_segments?: FBSegmentMap; - readonly x_hermes_function_offsets?: HermesFunctionOffsets; - readonly x_google_ignoreList?: void; -}; -export type MixedSourceMap = IndexMap | BasicSourceMap; -export type RawMappingsModule = { - readonly map: (null | undefined | ReadonlyArray) | VlqMap; - readonly functionMap: null | undefined | FBSourceFunctionMap; - readonly path: string; - readonly source: string; - readonly code: string; - readonly isIgnored: boolean; - readonly lineCount?: number; -}; -export interface SourceMapGenerator { - toMap(file?: string, options?: {excludeSource?: boolean}): MixedSourceMap; - toString(file?: string, options?: {excludeSource?: boolean}): string; -} -/** - * Result of `fromRawMappingsIndexed`: a sectioned (indexed) source map where - * each module is one section. VLQ-stored modules pass through verbatim, which is - * why building this is cheap compared to flattening into a single map. - */ -declare class IndexedSourceMapResult implements SourceMapGenerator { - constructor(sections: Array); - toMap(file?: string, options?: {excludeSource?: boolean}): MixedSourceMap; - toString(file?: string, options?: {excludeSource?: boolean}): string; -} -declare function isVlqMap(map: (null | undefined | ReadonlyArray) | VlqMap): map is VlqMap; -/** - * Creates a source map from modules with "raw mappings", i.e. an array of - * tuples with either 2, 4, or 5 elements: - * generated line, generated column, source line, source line, symbol name. - * Accepts an `offsetLines` argument in case modules' code is to be offset in - * the resulting bundle, e.g. by some prefix code. - */ -declare function fromRawMappings(modules: ReadonlyArray, offsetLines?: number): Generator; -declare function fromRawMappingsNonBlocking(modules: ReadonlyArray, offsetLines?: number): Promise; -/** - * Like `fromRawMappings`, but produces an indexed (sectioned) source map with - * one section per module. VLQ-stored modules pass through verbatim — no - * decode/re-encode — which is the whole point: it's much cheaper to serialize - * than the flat path, at the cost of emitting an indexed map that consumers must - * understand. Per-module work is trivial, so this runs synchronously. - */ -declare function fromRawMappingsIndexed(modules: ReadonlyArray, offsetLines?: number): IndexedSourceMapResult; -/** - * Transforms a standard source map object into a Raw Mappings object, to be - * used across the bundler. - */ -declare function toBabelSegments(sourceMap: BasicSourceMap): Array; -declare function toSegmentTuple(mapping: BabelSourceMapSegment): MetroSourceMapSegmentTuple; -/** - * Converts a Babel/gen-mapping "decoded" source map (`result.decodedMap` from - * `@babel/generator`) into raw mapping tuples, byte-identical to - * `result.rawMappings.map(toSegmentTuple)`. - * - * Preferred over `result.rawMappings` because `decodedMap` is computed eagerly - * during generation, whereas accessing `rawMappings` triggers a second decode - * (`allMappings`) that allocates ~4-5 objects per segment. No terminating - * mapping is appended (callers that need one use `countLinesAndTerminateMap`). - */ -declare function tuplesFromBabelDecodedMap(decodedMap: BabelDecodedMap): Array; -/** - * Encodes raw mapping tuples into a compact VLQ `mappings` string + `names` - * table. Decode the inverse via `decodeVlqMap` (or `toBabelSegments` + - * `toSegmentTuple`). Storing maps in this form uses far less memory than the - * equivalent decoded tuple arrays. - */ -declare function vlqMapFromTuples(mappings: ReadonlyArray): VlqMap; -/** - * Encodes a `VlqMap` directly from a Babel/gen-mapping "decoded" source map - * (`result.decodedMap` from `@babel/generator`), without ever materialising the - * intermediate `Array`. - * - * `@babel/generator` computes `decodedMap` eagerly while generating, so reusing - * it avoids the separate, more expensive `result.rawMappings` decode (which - * allocates a flat array of segment objects) plus the per-segment tuple - * allocation that `vlqMapFromTuples` would otherwise consume. The result is - * byte-identical to `vlqMapFromTuples(decoded -> tuples)`. - * - * `terminatingMapping` is a `[generatedLine1Based, generatedColumn0Based]` - * generated-only mapping appended at the end (matching the transform worker's - * `countLinesAndTerminateMap`) unless the last real mapping already sits there. - */ -declare function vlqMapFromBabelDecodedMap(decodedMap: BabelDecodedMap, terminatingMapping: [number, number]): VlqMap; -export { - BundleBuilder, - composeSourceMaps, - Consumer, - createIndexMap, - generateFunctionMap, - fromRawMappings, - fromRawMappingsIndexed, - fromRawMappingsNonBlocking, - functionMapBabelPlugin, - isVlqMap, - normalizeSourcePath, - toBabelSegments, - toSegmentTuple, - tuplesFromBabelDecodedMap, - vlqMapFromBabelDecodedMap, - vlqMapFromTuples, -}; diff --git a/packages/metro-symbolicate/types/ChromeHeapSnapshot.d.ts b/packages/metro-symbolicate/types/ChromeHeapSnapshot.d.ts deleted file mode 100644 index c45487274e..0000000000 --- a/packages/metro-symbolicate/types/ChromeHeapSnapshot.d.ts +++ /dev/null @@ -1,90 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-symbolicate/src/ChromeHeapSnapshot.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -type RawBuffer = Array; -export type ChromeHeapSnapshot = { - snapshot: { - meta: { - trace_function_info_fields: Array; - location_fields: Array; - edge_fields: Array; - edge_types: Array>; - node_fields: Array; - node_types: Array>; - trace_node_fields: Array; - }; - }; - trace_function_infos: Array; - locations: Array; - edges: Array; - nodes: Array; - strings: Array; - trace_tree: RawBuffer; -}; -export declare class ChromeHeapSnapshotProcessor { - constructor(snapshotData: ChromeHeapSnapshot); - traceFunctionInfos(): ChromeHeapSnapshotRecordIterator; - locations(): ChromeHeapSnapshotRecordIterator; - nodes(): ChromeHeapSnapshotRecordIterator; - edges(): ChromeHeapSnapshotRecordIterator; - traceTree(): ChromeHeapSnapshotRecordIterator; -} -declare class ChromeHeapSnapshotStringTable { - constructor(strings: Array); - add(value: string): number; - get(index: number): string; -} -type ChromeHeapSnapshotFieldType = Array | string; -type DenormalizedRecordInput = Readonly<{ - [field: string]: string | number | ReadonlyArray; -}>; -declare class ChromeHeapSnapshotRecordAccessor { - constructor( - buffer: RawBuffer, - recordFields: Array, - recordTypes: Array | Readonly<{[$$Key$$: string]: ChromeHeapSnapshotFieldType}> | null, - globalStringTable: ChromeHeapSnapshotStringTable, - position: number, - parent?: ChromeHeapSnapshotRecordAccessor, - ); - /** Public API */ - - getString(field: string): string; - getNumber(field: string): number; - getChildren(field: string): ChromeHeapSnapshotRecordIterator; - setString(field: string, value: string): void; - setNumber(field: string, value: number): void; - moveToRecord(recordIndex: number): void; - append(record: DenormalizedRecordInput): number; - moveAndInsert(recordIndex: number, record: DenormalizedRecordInput): number; - /** "Protected" methods (please don't use) */ - - protectedHasNext(): boolean; - protectedTryMoveNext(): void; -} -declare class ChromeHeapSnapshotRecordIterator extends ChromeHeapSnapshotRecordAccessor implements Iterable { - constructor( - buffer: RawBuffer, - recordFields: Array, - recordTypes: Array | Readonly<{[$$Key$$: string]: ChromeHeapSnapshotFieldType}> | null, - globalStringTable: ChromeHeapSnapshotStringTable, - position?: number, - parent?: ChromeHeapSnapshotRecordAccessor, - ); - next(): IteratorResult; - [Symbol.iterator](): ChromeHeapSnapshotRecordIterator; -} diff --git a/packages/metro-symbolicate/types/GoogleIgnoreListConsumer.d.ts b/packages/metro-symbolicate/types/GoogleIgnoreListConsumer.d.ts deleted file mode 100644 index 3f5e329c5d..0000000000 --- a/packages/metro-symbolicate/types/GoogleIgnoreListConsumer.d.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<51f38a91699e743332afd6cd89f52fb8>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-symbolicate/src/GoogleIgnoreListConsumer.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {MixedSourceMap} from 'metro-source-map'; - -type SourceNameNormalizer = ($$PARAM_0$$: string, $$PARAM_1$$: {readonly sourceRoot?: null | undefined | string}) => string; -/** - * Consumes the `x_google_ignoreList` metadata field from a source map and - * exposes various queries on it. - * - * By default, source names are normalized using the same logic that the - * `source-map@0.5.6` package uses internally. This is crucial for keeping the - * sources list in sync with a `SourceMapConsumer` instance. - - * If you're using this with a different source map reader (e.g. one that - * doesn't normalize source names at all), you can switch out the normalization - * function in the constructor, e.g. - * - * new GoogleIgnoreListConsumer(map, source => source) // Don't normalize - */ -declare class GoogleIgnoreListConsumer { - constructor(map: MixedSourceMap, normalizeSourceFn?: SourceNameNormalizer); - /** - * Returns `true` if the given source is in this map's ignore list, `false` - * otherwise. - * - * When used with the `source-map` package, you'll first use - * `SourceMapConsumer#originalPositionFor` to retrieve a source location, - * then pass that location to `isIgnored`. - */ - isIgnored($$PARAM_0$$: {readonly source: null | undefined | string}): boolean; - /** - * Returns this map's ignore list as a new array with indices based on - * `sources`. - * - * This array can be used as the `x_google_ignoreList` field of a map whose - * `sources` field is the array that was passed into this method. - */ - toArray(sources: ReadonlyArray): Array; -} -export default GoogleIgnoreListConsumer; diff --git a/packages/metro-symbolicate/types/SourceMetadataMapConsumer.d.ts b/packages/metro-symbolicate/types/SourceMetadataMapConsumer.d.ts deleted file mode 100644 index a508df16df..0000000000 --- a/packages/metro-symbolicate/types/SourceMetadataMapConsumer.d.ts +++ /dev/null @@ -1,56 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<046b1ebdcd5495851f662a80cd152192>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-symbolicate/src/SourceMetadataMapConsumer.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {FBSourcesArray, MixedSourceMap} from 'metro-source-map'; - -type Position = {readonly line: number; readonly column: number}; -type SourceNameNormalizer = ($$PARAM_0$$: string, $$PARAM_1$$: {readonly sourceRoot?: null | undefined | string}) => string; -/** - * Consumes the `x_facebook_sources` metadata field from a source map and - * exposes various queries on it. - * - * By default, source names are normalized using the same logic that the - * `source-map@0.5.6` package uses internally. This is crucial for keeping the - * sources list in sync with a `SourceMapConsumer` instance. - - * If you're using this with a different source map reader (e.g. one that - * doesn't normalize source names at all), you can switch out the normalization - * function in the constructor, e.g. - * - * new SourceMetadataMapConsumer(map, source => source) // Don't normalize - */ -declare class SourceMetadataMapConsumer { - constructor(map: MixedSourceMap, normalizeSourceFn?: SourceNameNormalizer); - /** - * Retrieves a human-readable name for the function enclosing a particular - * source location. - * - * When used with the `source-map` package, you'll first use - * `SourceMapConsumer#originalPositionFor` to retrieve a source location, - * then pass that location to `functionNameFor`. - */ - functionNameFor($$PARAM_0$$: Position & {readonly source: null | undefined | string}): null | undefined | string; - /** - * Returns this map's source metadata as a new array with the same order as - * `sources`. - * - * This array can be used as the `x_facebook_sources` field of a map whose - * `sources` field is the array that was passed into this method. - */ - toArray(sources: ReadonlyArray): FBSourcesArray; -} -export default SourceMetadataMapConsumer; diff --git a/packages/metro-symbolicate/types/Symbolication.d.ts b/packages/metro-symbolicate/types/Symbolication.d.ts deleted file mode 100644 index 169bcb2b00..0000000000 --- a/packages/metro-symbolicate/types/Symbolication.d.ts +++ /dev/null @@ -1,156 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<91474206d25909f6f6d546877efa6e0a>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-symbolicate/src/Symbolication.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {ChromeHeapSnapshot} from './ChromeHeapSnapshot'; -import type {MixedSourceMap} from 'metro-source-map'; -import type {Writable} from 'node:stream'; - -import SourceMetadataMapConsumer from './SourceMetadataMapConsumer'; -import {type SourceMapConsumer as $$IMPORT_TYPEOF_1$$} from 'source-map'; - -type SourceMapConsumer = typeof $$IMPORT_TYPEOF_1$$; -type SingleMapModuleIds = { - segmentId: number; - localId: null | undefined | number; -}; -type ContextOptionsInput = { - readonly nameSource?: 'function_names' | 'identifier_names'; - readonly inputLineStart?: number; - readonly inputColumnStart?: number; - readonly outputLineStart?: number; - readonly outputColumnStart?: number; -}; -type SizeAttributionMap = { - location: { - file: null | undefined | string; - filename?: string; - bytecodeSize?: number; - virtualOffset?: number; - line: null | undefined | number; - column: null | undefined | number; - }; -}; -type HermesMinidumpCrashInfo = { - readonly callstack: ReadonlyArray; -}; -type HermesMinidumpStackFrame = Readonly<{ - ByteCodeOffset: number; - FunctionID: number; - CJSModuleOffset?: number; - SegmentID?: number; - SourceURL: string; - StackFrameRegOffs: string; - SourceLocation?: string; -}>; -type HermesCoverageInfo = { - readonly executedFunctions: ReadonlyArray; -}; -type HermesCoverageStackFrame = Readonly<{ - line: number; - column: number; - SourceURL: null | undefined | string; -}>; -type NativeCodeStackFrame = Readonly<{ - NativeCode: true; - StackFrameRegOffs: string; -}>; -type SymbolicatedStackTrace = ReadonlyArray; -type SymbolicatedStackFrame = Readonly<{ - line: null | undefined | number; - column: null | undefined | number; - source: null | undefined | string; - functionName: null | undefined | string; - name: null | undefined | string; - isIgnored: boolean; -}>; -declare class SymbolicationContext { - readonly options: { - readonly nameSource: 'function_names' | 'identifier_names'; - readonly inputLineStart: number; - readonly inputColumnStart: number; - readonly outputLineStart: number; - readonly outputColumnStart: number; - }; - constructor(options: ContextOptionsInput); - symbolicate(stackTrace: string): string; - symbolicateProfilerMap(mapFile: string): string; - symbolicateAttribution(obj: SizeAttributionMap): void; - symbolicateChromeTrace(traceFile: string, $$PARAM_1$$: {stdout: Writable; stderr: Writable}): void; - getOriginalPositionFor( - lineNumber: null | undefined | number, - columnNumber: null | undefined | number, - moduleIds: null | undefined | ModuleIdsT, - ): { - line: null | undefined | number; - column: null | undefined | number; - source: null | undefined | string; - name: null | undefined | string; - }; - symbolicateHermesMinidumpTrace(crashInfo: HermesMinidumpCrashInfo): SymbolicatedStackTrace; - /** - * Symbolicates heap alloction stacks in a Chrome-formatted heap - * snapshot/timeline. - * Line and column offsets in options (both input and output) are _ignored_, - * because this format has a well-defined convention (1-based lines and - * columns). - */ - symbolicateHeapSnapshot(snapshotContents: string | ChromeHeapSnapshot): ChromeHeapSnapshot; - symbolicateHermesCoverageTrace(coverageInfo: HermesCoverageInfo): SymbolicatedStackTrace; - getOriginalPositionDetailsFor(lineNumber: null | undefined | number, columnNumber: null | undefined | number, moduleIds: null | undefined | ModuleIdsT): SymbolicatedStackFrame; - parseFileName(str: string): ModuleIdsT; -} -declare class SingleMapSymbolicationContext extends SymbolicationContext { - constructor(SourceMapConsumer: SourceMapConsumer, sourceMapContent: string | MixedSourceMap, options?: ContextOptionsInput); - symbolicateHermesMinidumpTrace(crashInfo: HermesMinidumpCrashInfo): SymbolicatedStackTrace; - symbolicateHermesCoverageTrace(coverageInfo: HermesCoverageInfo): SymbolicatedStackTrace; - getOriginalPositionDetailsFor(lineNumber: null | undefined | number, columnNumber: null | undefined | number, moduleIds: null | undefined | SingleMapModuleIds): SymbolicatedStackFrame; - parseFileName(str: string): SingleMapModuleIds; -} -declare class DirectorySymbolicationContext extends SymbolicationContext { - constructor(SourceMapConsumer: SourceMapConsumer, rootDir: string, options?: ContextOptionsInput); - getOriginalPositionDetailsFor(lineNumber: null | undefined | number, columnNumber: null | undefined | number, filename: null | undefined | string): SymbolicatedStackFrame; - parseFileName(str: string): string; -} -declare function parseSingleMapFileName(str: string): SingleMapModuleIds; -declare function createContext(SourceMapConsumer: SourceMapConsumer, sourceMapContent: string | MixedSourceMap, options?: ContextOptionsInput): SingleMapSymbolicationContext; -declare function unstable_createDirectoryContext(SourceMapConsumer: SourceMapConsumer, rootDir: string, options?: ContextOptionsInput): DirectorySymbolicationContext; -declare function getOriginalPositionFor( - lineNumber: null | undefined | number, - columnNumber: null | undefined | number, - moduleIds: null | undefined | ModuleIdsT, - context: SymbolicationContext, -): { - line: null | undefined | number; - column: null | undefined | number; - source: null | undefined | string; - name: null | undefined | string; -}; -declare function symbolicate(stackTrace: string, context: SymbolicationContext): string; -declare function symbolicateProfilerMap(mapFile: string, context: SymbolicationContext): string; -declare function symbolicateAttribution(obj: SizeAttributionMap, context: SymbolicationContext): void; -declare function symbolicateChromeTrace(traceFile: string, $$PARAM_1$$: {stdout: Writable; stderr: Writable}, context: SymbolicationContext): void; -export { - createContext, - unstable_createDirectoryContext, - getOriginalPositionFor, - parseSingleMapFileName as parseFileName, - symbolicate, - symbolicateProfilerMap, - symbolicateAttribution, - symbolicateChromeTrace, - SourceMetadataMapConsumer, -}; diff --git a/packages/metro-symbolicate/types/index.d.ts b/packages/metro-symbolicate/types/index.d.ts deleted file mode 100644 index 882d13b554..0000000000 --- a/packages/metro-symbolicate/types/index.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<50f7c87b6ec9b7a4297b3ee8b2be2e91>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-symbolicate/src/index.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -// No exports diff --git a/packages/metro-symbolicate/types/symbolicate.d.ts b/packages/metro-symbolicate/types/symbolicate.d.ts deleted file mode 100644 index 7f8893810d..0000000000 --- a/packages/metro-symbolicate/types/symbolicate.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-symbolicate/src/symbolicate.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {Readable, Writable} from 'node:stream'; -import type {ReadStream} from 'node:tty'; - -declare function main( - argvInput?: Array, - $$PARAM_1$$?: Readonly<{ - stdin: Readable | ReadStream; - stderr: Writable; - stdout: Writable; - }>, -): Promise; -export default main; diff --git a/packages/metro-transform-plugins/API.md b/packages/metro-transform-plugins/API.md new file mode 100644 index 0000000000..e323191ed6 --- /dev/null +++ b/packages/metro-transform-plugins/API.md @@ -0,0 +1,7 @@ +## API Report File for "metro-transform-plugins" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +``` diff --git a/packages/metro-transform-plugins/types/addParamsToDefineCall.d.ts b/packages/metro-transform-plugins/types/addParamsToDefineCall.d.ts deleted file mode 100644 index 521912fef6..0000000000 --- a/packages/metro-transform-plugins/types/addParamsToDefineCall.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-transform-plugins/src/addParamsToDefineCall.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -/** - * Simple way of adding additional parameters to the end of the define calls. - * - * This is used to add extra information to the generaic compiled modules (like - * the dependencyMap object or the list of inverse dependencies). - */ -declare function addParamsToDefineCall(code: string, ...paramsToAdd: Array): string; -export default addParamsToDefineCall; diff --git a/packages/metro-transform-plugins/types/constant-folding-plugin.d.ts b/packages/metro-transform-plugins/types/constant-folding-plugin.d.ts deleted file mode 100644 index fbc1cb3aee..0000000000 --- a/packages/metro-transform-plugins/types/constant-folding-plugin.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<37d59c49a8f0dcc16de0ddda97806455>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-transform-plugins/src/constant-folding-plugin.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {PluginObj} from '@babel/core'; -import type $$IMPORT_TYPEOF_1$$ from '@babel/traverse'; -import type * as $$IMPORT_TYPEOF_2$$ from '@babel/types'; - -type Traverse = typeof $$IMPORT_TYPEOF_1$$; -type Types = typeof $$IMPORT_TYPEOF_2$$; -type State = {stripped: boolean}; -declare function constantFoldingPlugin(context: {types: Types; traverse: Traverse}): PluginObj; -export default constantFoldingPlugin; diff --git a/packages/metro-transform-plugins/types/import-export-plugin.d.ts b/packages/metro-transform-plugins/types/import-export-plugin.d.ts deleted file mode 100644 index f6b86bbe3f..0000000000 --- a/packages/metro-transform-plugins/types/import-export-plugin.d.ts +++ /dev/null @@ -1,46 +0,0 @@ -/** - * Portions 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-transform-plugins/src/import-export-plugin.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {PluginObj} from '@babel/core'; -import type * as $$IMPORT_TYPEOF_1$$ from '@babel/types'; -import type {Node, SourceLocation, Statement} from '@babel/types'; - -type Types = typeof $$IMPORT_TYPEOF_1$$; -export type Options = Readonly<{ - importDefault: string; - importAll: string; - resolve: boolean; - out?: {isESModule: boolean}; -}>; -type State = { - exportAll: Array<{file: string; loc: null | undefined | SourceLocation}>; - exportDefault: Array<{ - local: string; - loc: null | undefined | SourceLocation; - }>; - exportNamed: Array<{ - local: string; - remote: string; - loc: null | undefined | SourceLocation; - }>; - imports: Array<{node: Statement}>; - importDefault: Node; - importAll: Node; - opts: Options; -}; -declare function importExportPlugin($$PARAM_0$$: {types: Types}): PluginObj; -export default importExportPlugin; diff --git a/packages/metro-transform-plugins/types/index.d.ts b/packages/metro-transform-plugins/types/index.d.ts deleted file mode 100644 index 0fd5073199..0000000000 --- a/packages/metro-transform-plugins/types/index.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<4831d14939e3956402eac933b0d81f6c>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-transform-plugins/src/index.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type constantFoldingPlugin from './constant-folding-plugin'; -import type importExportPlugin from './import-export-plugin'; -import type inlinePlugin from './inline-plugin'; -import type inlineRequiresPlugin from './inline-requires-plugin'; -import type normalizePseudoGlobals from './normalizePseudoGlobals'; - -interface TransformPlugins { - addParamsToDefineCall(code: string, ...params: unknown[]): string; - constantFoldingPlugin: typeof constantFoldingPlugin; - importExportPlugin: typeof importExportPlugin; - inlinePlugin: typeof inlinePlugin; - inlineRequiresPlugin: typeof inlineRequiresPlugin; - normalizePseudoGlobals: typeof normalizePseudoGlobals; - getTransformPluginCacheKeyFiles(): ReadonlyArray; -} - -declare const transformPlugins: TransformPlugins; -export = transformPlugins; diff --git a/packages/metro-transform-plugins/types/inline-plugin.d.ts b/packages/metro-transform-plugins/types/inline-plugin.d.ts deleted file mode 100644 index 22e860d6b5..0000000000 --- a/packages/metro-transform-plugins/types/inline-plugin.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<6ad5ab4e71a8640def9e767946693ec9>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-transform-plugins/src/inline-plugin.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {PluginObj} from '@babel/core'; -import type * as $$IMPORT_TYPEOF_1$$ from '@babel/types'; - -type Types = typeof $$IMPORT_TYPEOF_1$$; -export type Options = Readonly<{ - dev: boolean; - inlinePlatform: boolean; - isWrapped: boolean; - requireName?: string; - platform: string; -}>; -type State = {opts: Options}; -declare function inlinePlugin($$PARAM_0$$: {types: Types}, options: Options): PluginObj; -export default inlinePlugin; diff --git a/packages/metro-transform-plugins/types/inline-requires-plugin.d.ts b/packages/metro-transform-plugins/types/inline-requires-plugin.d.ts deleted file mode 100644 index 3cf9858c52..0000000000 --- a/packages/metro-transform-plugins/types/inline-requires-plugin.d.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * 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. - * - * @noformat - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-transform-plugins/src/inline-requires-plugin.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type * as $$IMPORT_TYPEOF_1$$ from '@babel/core'; -import type {PluginObj} from '@babel/core'; - -type Babel = typeof $$IMPORT_TYPEOF_1$$; -export type PluginOptions = Readonly<{ - ignoredRequires?: ReadonlyArray; - inlineableCalls?: ReadonlyArray; - nonMemoizedModules?: ReadonlyArray; - memoizeCalls?: boolean; -}>; -export type State = { - opts?: PluginOptions; - ignoredRequires: Set; - inlineableCalls: Set; - membersAssigned: Map>; -}; -/** - * This transform inlines top-level require(...) aliases with to enable lazy - * loading of dependencies. It is able to inline both single references and - * child property references. - * - * For instance: - * var Foo = require('foo'); - * f(Foo); - * - * Will be transformed into: - * f(require('foo')); - * - * When the assigment expression has a property access, it will be inlined too, - * keeping the property. For instance: - * var Bar = require('foo').bar; - * g(Bar); - * - * Will be transformed into: - * g(require('foo').bar); - * - * Destructuring also works the same way. For instance: - * const {Baz} = require('foo'); - * h(Baz); - * - * Is also successfully inlined into: - * g(require('foo').Baz); - */ -declare const $$EXPORT_DEFAULT_DECLARATION$$: ($$PARAM_0$$: Babel) => PluginObj; -declare type $$EXPORT_DEFAULT_DECLARATION$$ = typeof $$EXPORT_DEFAULT_DECLARATION$$; -export default $$EXPORT_DEFAULT_DECLARATION$$; diff --git a/packages/metro-transform-plugins/types/normalizePseudoGlobals.d.ts b/packages/metro-transform-plugins/types/normalizePseudoGlobals.d.ts deleted file mode 100644 index 2572270a89..0000000000 --- a/packages/metro-transform-plugins/types/normalizePseudoGlobals.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<809e7509b0803580cc423eef786d9cd4>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-transform-plugins/src/normalizePseudoGlobals.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {Node as BabelNode} from '@babel/types'; - -export type Options = {reservedNames: ReadonlyArray}; -declare function normalizePseudoglobals(ast: BabelNode, options?: Options): ReadonlyArray; -export default normalizePseudoglobals; diff --git a/packages/metro-transform-plugins/types/utils/createInlinePlatformChecks.d.ts b/packages/metro-transform-plugins/types/utils/createInlinePlatformChecks.d.ts deleted file mode 100644 index 5200d6aff2..0000000000 --- a/packages/metro-transform-plugins/types/utils/createInlinePlatformChecks.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<03de55110a92713945c8e6470f410a10>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-transform-plugins/src/utils/createInlinePlatformChecks.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {Scope} from '@babel/traverse'; -import type * as $$IMPORT_TYPEOF_1$$ from '@babel/types'; -import type {CallExpression, MemberExpression} from '@babel/types'; - -type Types = typeof $$IMPORT_TYPEOF_1$$; -type PlatformChecks = { - isPlatformNode: (node: MemberExpression, scope: Scope, isWrappedModule: boolean) => boolean; - isPlatformSelectNode: (node: CallExpression, scope: Scope, isWrappedModule: boolean) => boolean; -}; -declare function createInlinePlatformChecks(t: Types, requireName?: string): PlatformChecks; -export default createInlinePlatformChecks; diff --git a/packages/metro-transform-worker/API.md b/packages/metro-transform-worker/API.md new file mode 100644 index 0000000000..971efc9706 --- /dev/null +++ b/packages/metro-transform-worker/API.md @@ -0,0 +1,83 @@ +## API Report File for "metro-transform-worker" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +export type CustomTransformOptions = { + [$$Key$$: string]: unknown; +}; + +export const getCacheKey: (config: JsTransformerConfig, opts?: Readonly<{projectRoot: string}>) => string; + +export type getCacheKey = typeof getCacheKey; + +export type JsOutput = Readonly<{ + data: Readonly<{ + code: string; + lineCount: number; + map: VlqMap; + functionMap: null | undefined | FBSourceFunctionMap; + }>; + type: JSFileType; +}>; + +export type JsTransformerConfig = Readonly<{ + assetPlugins: ReadonlyArray; + assetRegistryPath: string; + asyncRequireModulePath: string; + babelTransformerPath: string; + dynamicDepsInPackages: DynamicRequiresBehavior; + enableBabelRCLookup: boolean; + enableBabelRuntime: boolean | string; + globalPrefix: string; + hermesParser: boolean; + minifierConfig: MinifierConfig; + minifierPath: string; + optimizationSizeLimit: number; + publicPath: string; + allowOptionalDependencies: AllowOptionalDependencies; + unstable_dependencyMapReservedName: null | undefined | string; + unstable_disableModuleWrapping: boolean; + unstable_disableNormalizePseudoGlobals: boolean; + unstable_compactOutput: boolean; + unstable_allowRequireContext: boolean; + unstable_memoizeInlineRequires?: boolean; + unstable_nonMemoizedInlineRequires?: ReadonlyArray; +}>; + +export type JsTransformOptions = Readonly<{ + customTransformOptions?: CustomTransformOptions; + dev: boolean; + experimentalImportSupport?: boolean; + inlinePlatform: boolean; + inlineRequires: boolean; + minify: boolean; + nonInlinedRequires?: ReadonlyArray; + platform: null | undefined | string; + type: Type; + unstable_memoizeInlineRequires?: boolean; + unstable_nonMemoizedInlineRequires?: ReadonlyArray; + unstable_staticHermesOptimizedRequire?: boolean; + unstable_transformProfile: TransformProfile; +}>; + +export type Minifier = ($$PARAM_0$$: MinifierOptions) => MinifierResult | Promise; + +export type MinifierOptions = { + code: string; + map: null | undefined | BasicSourceMap; + filename: string; + reserved: ReadonlyArray; + config: MinifierConfig; +}; + +export type MinifierResult = {code: string; map?: BasicSourceMap}; + +export const transform: (config: JsTransformerConfig, projectRoot: string, filename: string, data: Buffer, options: JsTransformOptions) => Promise; + +export type transform = typeof transform; + +export type Type = 'script' | 'module' | 'asset'; + +``` diff --git a/packages/metro-transform-worker/types/index.d.ts b/packages/metro-transform-worker/types/index.d.ts deleted file mode 100644 index 22588727dd..0000000000 --- a/packages/metro-transform-worker/types/index.d.ts +++ /dev/null @@ -1,94 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-transform-worker/src/index.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {CustomTransformOptions, TransformProfile} from 'metro-babel-transformer'; -import type {BasicSourceMap, FBSourceFunctionMap, VlqMap} from 'metro-source-map'; -import type {TransformResultDependency} from 'metro/private/DeltaBundler'; -import type {AllowOptionalDependencies} from 'metro/private/DeltaBundler/types'; -import type {DynamicRequiresBehavior} from 'metro/private/ModuleGraph/worker/collectDependencies'; - -type MinifierConfig = Readonly<{[$$Key$$: string]: unknown}>; -export type MinifierOptions = { - code: string; - map: null | undefined | BasicSourceMap; - filename: string; - reserved: ReadonlyArray; - config: MinifierConfig; -}; -export type MinifierResult = {code: string; map?: BasicSourceMap}; -export type Minifier = ($$PARAM_0$$: MinifierOptions) => MinifierResult | Promise; -export type Type = 'script' | 'module' | 'asset'; -export type JsTransformerConfig = Readonly<{ - assetPlugins: ReadonlyArray; - assetRegistryPath: string; - asyncRequireModulePath: string; - babelTransformerPath: string; - dynamicDepsInPackages: DynamicRequiresBehavior; - enableBabelRCLookup: boolean; - enableBabelRuntime: boolean | string; - globalPrefix: string; - hermesParser: boolean; - minifierConfig: MinifierConfig; - minifierPath: string; - optimizationSizeLimit: number; - publicPath: string; - allowOptionalDependencies: AllowOptionalDependencies; - unstable_dependencyMapReservedName: null | undefined | string; - unstable_disableModuleWrapping: boolean; - unstable_disableNormalizePseudoGlobals: boolean; - unstable_compactOutput: boolean; - /** Enable `require.context` statements which can be used to import multiple files in a directory. */ - unstable_allowRequireContext: boolean; - /** With inlineRequires, enable a module-scope memo var and inline as (v || v=require('foo')) */ - unstable_memoizeInlineRequires?: boolean; - /** With inlineRequires, do not memoize these module specifiers */ - unstable_nonMemoizedInlineRequires?: ReadonlyArray; -}>; -export type {CustomTransformOptions} from 'metro-babel-transformer'; -export type JsTransformOptions = Readonly<{ - customTransformOptions?: CustomTransformOptions; - dev: boolean; - experimentalImportSupport?: boolean; - inlinePlatform: boolean; - inlineRequires: boolean; - minify: boolean; - nonInlinedRequires?: ReadonlyArray; - platform: null | undefined | string; - type: Type; - unstable_memoizeInlineRequires?: boolean; - unstable_nonMemoizedInlineRequires?: ReadonlyArray; - unstable_staticHermesOptimizedRequire?: boolean; - unstable_transformProfile: TransformProfile; -}>; -type JSFileType = 'js/script' | 'js/module' | 'js/module/asset'; -export type JsOutput = Readonly<{ - data: Readonly<{ - code: string; - lineCount: number; - map: VlqMap; - functionMap: null | undefined | FBSourceFunctionMap; - }>; - type: JSFileType; -}>; -type TransformResponse = Readonly<{ - dependencies: ReadonlyArray; - output: ReadonlyArray; -}>; -export declare const transform: (config: JsTransformerConfig, projectRoot: string, filename: string, data: Buffer, options: JsTransformOptions) => Promise; -export declare type transform = typeof transform; -export declare const getCacheKey: (config: JsTransformerConfig, opts?: Readonly<{projectRoot: string}>) => string; -export declare type getCacheKey = typeof getCacheKey; diff --git a/packages/metro-transform-worker/types/utils/assetTransformer.d.ts b/packages/metro-transform-worker/types/utils/assetTransformer.d.ts deleted file mode 100644 index 4fb8b2e0c5..0000000000 --- a/packages/metro-transform-worker/types/utils/assetTransformer.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<63613944aeeed9dbe5db39deb25761e2>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-transform-worker/src/utils/assetTransformer.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {File} from '@babel/types'; -import type {BabelTransformerArgs} from 'metro-babel-transformer'; - -export declare function transform($$PARAM_0$$: BabelTransformerArgs, assetRegistryPath: string, assetDataPlugins: ReadonlyArray): Promise<{ast: File}>; diff --git a/packages/metro-transform-worker/types/utils/getMinifier.d.ts b/packages/metro-transform-worker/types/utils/getMinifier.d.ts deleted file mode 100644 index f3cbb816c1..0000000000 --- a/packages/metro-transform-worker/types/utils/getMinifier.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<410ba17e82af72676f3993ebd1d0f60f>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro-transform-worker/src/utils/getMinifier.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {Minifier} from '../index.js'; - -declare function getMinifier(minifierPath: string): Minifier; -export default getMinifier; diff --git a/packages/metro/API.md b/packages/metro/API.md new file mode 100644 index 0000000000..89baa535d7 --- /dev/null +++ b/packages/metro/API.md @@ -0,0 +1,355 @@ +## API Report File for "metro" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +import type $$IMPORT_TYPEOF_1$$ from 'yargs'; +import EventEmitter from 'node:events'; +import type { HandleFunction } from 'connect'; +import type { IncomingMessage } from 'connect'; +import type { Server } from 'connect'; +import type { Server as Server_2 } from 'node:http'; +import type { Server as Server_3 } from 'node:https'; +import type { Server as Server_4 } from 'ws'; +import type { ServerOptions as ServerOptions_2 } from 'node:https'; +import type { ServerResponse } from 'node:http'; +import type { Socket } from 'node:net'; +import type { Writable } from 'node:stream'; + +export type AssetData = AssetDataWithoutFiles & { + readonly files: Array; +}; + +export type AsyncDependencyType = 'async' | 'maybeSync' | 'prefetch' | 'weak'; + +export const attachMetroCli: (yargs: Yargs, options?: AttachMetroCLIOptions) => Yargs; + +export type attachMetroCli = typeof attachMetroCli; + +export const buildGraph: (config: InputConfigT, $$PARAM_1$$: BuildGraphOptions) => Promise; + +export type buildGraph = typeof buildGraph; + +export type BundleDetails = { + bundleType: string; + customResolverOptions: CustomResolverOptions; + customTransformOptions: CustomTransformOptions; + dev: boolean; + entryFile: string; + minify: boolean; + platform: null | undefined | string; +}; + +export type ContextMode = 'sync' | 'eager' | 'lazy' | 'lazy-once'; + +export const createConnectMiddleware: (config: ConfigT, options?: RunMetroOptions) => Promise; + +export type createConnectMiddleware = typeof createConnectMiddleware; + +export type DeltaResult = { + readonly added: Map>; + readonly modified: Map>; + readonly deleted: Set; + readonly reset: boolean; +}; + +export type Dependency = ResolvedDependency | Readonly<{data: TransformResultDependency}>; + +export class DependencyGraph extends EventEmitter { + constructor( + config: ConfigT, + options?: { + readonly hasReducedPerformance?: boolean; + readonly watch?: boolean; + }, + ); + doesFileExist: (filePath: string) => boolean; + end(): void; + getAllFiles(): Array; + getDependencies(filePath: string): Array; + getHasteName(filePath: string): string; + getOrComputeSha1(mixedPath: string): Promise<{content?: Buffer; sha1: string}>; + getWatcher(): EventEmitter; + matchFilesWithContext(from: string, context: Readonly<{recursive: boolean; filter: RegExp}>): Iterable; + ready(): Promise; + resolveDependency( + originModulePath: string, + dependency: TransformResultDependency, + platform: string | null, + resolverOptions: ResolverInputOptions, + $$PARAM_4$$?: {assumeFlatNodeModules: boolean}, + ): BundlerResolution; +} + +export class JsonReporter { + constructor(stream: Writable); + update(event: TEvent): void; +} + +export function loadConfig(argvInput?: YargArguments, defaultConfigOverrides?: InputConfigT): Promise; + +export function mergeConfig InputConfigT) | ((baseConfig: T) => Promise)>>( +base: T | (() => T), +...configs: R +): R extends ReadonlyArray InputConfigT)> ? T : Promise; + +export type MetroConfig = InputConfigT; + +export class MetroServer { + constructor(config: ConfigT, options?: ServerOptions); + build(bundleOptions: BundleOptions, $$PARAM_1$$?: BuildOptions): Promise<{code: string; map: string; assets?: ReadonlyArray}>; + static DEFAULT_BUNDLE_OPTIONS: Omit< + typeof MetroServer.DEFAULT_GRAPH_OPTIONS, + 'excludeSource' | 'inlineSourceMap' | 'lazy' | 'modulesOnly' | 'onProgress' | 'runModule' | 'shallow' | 'sourceMapUrl' | 'sourceUrl' | 'sourcePaths' + > & { + excludeSource: false; + inlineSourceMap: false; + lazy: false; + modulesOnly: false; + onProgress: null; + runModule: true; + shallow: false; + sourceMapUrl: null; + sourceUrl: null; + sourcePaths: SourcePathsMode; + }; + static DEFAULT_GRAPH_OPTIONS: Readonly<{ + customResolverOptions: CustomResolverOptions; + customTransformOptions: CustomTransformOptions; + dev: boolean; + minify: boolean; + unstable_transformProfile: 'default'; + }>; + end(): void; + getAssets(options: BundleOptions): Promise>; + getBundler(): IncrementalBundler; + getCreateModuleId(): (path: string) => number; + getNewBuildNumber(): number; + getOrderedDependencyPaths(options: {readonly dev: boolean; readonly entryFile: string; readonly minify: boolean; readonly platform: null | undefined | string}): Promise>; + getPlatforms(): ReadonlyArray; + getRamBundleInfo(options: BundleOptions): Promise; + getWatchFolders(): ReadonlyArray; + processRequest: ($$PARAM_0$$: IncomingMessage, $$PARAM_1$$: ServerResponse, $$PARAM_2$$: (e: null | undefined | Error) => void) => void; + ready(): Promise; +} + +export type MixedOutput = {readonly data: unknown; readonly type: string}; + +export type Module = Readonly<{ + dependencies: Map; + inverseDependencies: CountingSet; + output: ReadonlyArray; + path: string; + getSource: () => Buffer; + unstable_transformResultKey?: null | undefined | string; +}>; + +export type ReadOnlyDependencies = ReadonlyMap>; + +export interface ReadOnlyGraph { + readonly dependencies: ReadOnlyDependencies; + readonly entryPoints: ReadonlySet; + readonly transformOptions: Readonly; +} + +export type ReportableEvent = +| {port: number; hasReducedPerformance: boolean; type: 'initialize_started'} +| {type: 'initialize_failed'; port: number; error: Error} +| {type: 'initialize_done'; port: number} +| {buildID: string; type: 'bundle_build_done'} +| {buildID: string; type: 'bundle_build_failed'} +| {type: 'bundle_save_log'; message: string} +| { + buildID: string; + bundleDetails: BundleDetails; + isPrefetch?: boolean; + type: 'bundle_build_started'; +} +| {error: Error; type: 'bundling_error'} +| {type: 'dep_graph_loading'; hasReducedPerformance: boolean} +| {type: 'dep_graph_loaded'} +| { + buildID: string; + type: 'bundle_transform_progressed'; + transformedFileCount: number; + totalFileCount: number; +} +| {type: 'cache_read_error'; error: Error} +| {type: 'cache_write_error'; error: Error} +| {type: 'transform_cache_reset'} +| {type: 'worker_stdout_chunk'; chunk: string} +| {type: 'worker_stderr_chunk'; chunk: string} +| {type: 'hmr_client_error'; error: Error} +| { + type: 'client_log'; + level: 'trace' | 'info' | 'warn' | 'log' | 'group' | 'groupCollapsed' | 'groupEnd' | 'debug'; + data: Array; +} +| {type: 'resolver_warning'; message: string} +| {type: 'server_listening'; port: number; address: string; family: string} +| {type: 'transformer_load_started'} +| {type: 'transformer_load_done'} +| {type: 'transformer_load_failed'; error: Error} +| {type: 'watcher_health_check_result'; result: HealthCheckResult} +| {type: 'watcher_status'; status: WatcherStatus}; + +export type Reporter = {update(event: ReportableEvent): void}; + +export type RequireContextParams = Readonly<{ + recursive: boolean; + filter: Readonly; + mode: ContextMode; +}>; + +export function resolveConfig(filePath?: string, cwd?: string): Promise; + +export const runBuild: (config: ConfigT, $$PARAM_1$$: RunBuildOptions) => Promise; + +export type runBuild = typeof runBuild; + +export type RunBuildOptions = { + entry: string; + assets?: boolean; + dev?: boolean; + out?: string; + bundleOut?: string; + sourceMapOut?: string; + onBegin?: () => void; + onComplete?: () => void; + onProgress?: (transformedFileCount: number, totalFileCount: number) => void; + minify?: boolean; + output?: Readonly<{ + build: ( + $$PARAM_0$$: MetroServer, + $$PARAM_1$$: RequestOptions, + $$PARAM_2$$: void | BuildOptions, + ) => Promise<{ + code: string; + map: string; + assets?: ReadonlyArray; + }>; + save: ($$PARAM_0$$: {code: string; map: string}, $$PARAM_1$$: OutputOptions, $$PARAM_2$$: (logMessage: string) => void) => Promise; + }>; + platform?: string; + sourceMap?: boolean; + sourceMapUrl?: string; + customResolverOptions?: CustomResolverOptions; + customTransformOptions?: CustomTransformOptions; + unstable_transformProfile?: TransformProfile; +}; + +export type RunBuildResult = { + code: string; + map: string; + assets?: ReadonlyArray; +}; + +export function runMetro(config: InputConfigT, options?: RunMetroOptions): Promise; + +export type RunMetroOptions = Omit & { + waitForBundler?: boolean; +}; + +export const runServer: (config: ConfigT, $$PARAM_1$$?: RunServerOptions) => Promise; + +export type runServer = typeof runServer; + +export type RunServerOptions = Readonly<{ + hasReducedPerformance?: boolean; + host?: string; + onError?: ($$PARAM_0$$: Error & {code?: string}) => void; + onReady?: (server: Server_2 | Server_3) => void; + onClose?: () => void; + secureServerOptions?: ServerOptions_2; + secure?: boolean; + secureCert?: string; + secureKey?: string; + unstable_extraMiddleware?: ReadonlyArray; + waitForBundler?: boolean; + watch?: boolean; + websocketEndpoints?: Readonly<{[path: string]: Server_4}>; +}>; + +export type RunServerResult = {httpServer: Server_2 | Server_3}; + +export type SerializerOptions = Readonly<{ + asyncRequireModulePath: string; + createModuleId: ($$PARAM_0$$: string) => number; + dependencyMapReservedName?: null | undefined | string; + dev: boolean; + getRunModuleStatement: (moduleId: number | string, globalPrefix: string) => string; + globalPrefix: string; + includeAsyncPaths: boolean; + inlineSourceMap: null | undefined | boolean; + modulesOnly: boolean; + processModuleFilter: (module: Module) => boolean; + projectRoot: string; + runBeforeMainModule: ReadonlyArray; + runModule: boolean; + serverRoot: string; + shouldAddToIgnoreList: ($$PARAM_0$$: Module) => boolean; + sourceMapUrl: null | undefined | string; + sourceUrl: null | undefined | string; + getSourceUrl: null | undefined | (($$PARAM_0$$: Module) => string); + unstable_inlineDependencyMap?: boolean; +}>; + +export type ServerOptions = Readonly<{ + hasReducedPerformance?: boolean; + onBundleBuilt?: (bundlePath: string) => void; + watch?: boolean; +}>; + +export class Terminal { + constructor(stream: UnderlyingStream, opts?: {ttyPrint?: boolean}); + flush(): Promise; + log(format: string, ...args: Array): void; + persistStatus(): void; + status(format: string, ...args: Array): string; + waitForUpdates(): Promise; +} + +export type TerminalReportableEvent = +| ReportableEvent +| { + buildID: string; + type: 'bundle_transform_progressed_throttled'; + transformedFileCount: number; + totalFileCount: number; +} +| { + type: 'unstable_server_log'; + level: 'info' | 'warn' | 'error'; + data: string | Array; +} +| {type: 'unstable_server_menu_updated'; message: string} +| {type: 'unstable_server_menu_cleared'}; + +export class TerminalReporter { + constructor(terminal: Terminal); + readonly terminal: Terminal; + update(event: TerminalReportableEvent): void; +} + +export type TransformInputOptions = Omit; + +export type TransformResult = Readonly<{ + dependencies: ReadonlyArray; + output: ReadonlyArray; + unstable_transformResultKey?: null | undefined | string; +}>; + +export type TransformResultDependency = Readonly<{ + name: string; + data: Readonly<{ + key: string; + asyncType: AsyncDependencyType | null; + isESMImport: boolean; + isOptional?: boolean; + locs: ReadonlyArray; + contextParams?: RequireContextParams; + }>; +}>; + +``` diff --git a/packages/metro/types/Assets.d.ts b/packages/metro/types/Assets.d.ts deleted file mode 100644 index 1b590cf33b..0000000000 --- a/packages/metro/types/Assets.d.ts +++ /dev/null @@ -1,75 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<0d3fc636e5d57caff49796f58ed58455>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/Assets.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -export type AssetInfo = { - readonly files: Array; - readonly hash: string; - readonly name: string; - readonly scales: Array; - readonly type: string; -}; -export type AssetDataWithoutFiles = { - readonly __packager_asset: boolean; - readonly fileSystemLocation: string; - readonly hash: string; - readonly height: null | undefined | number; - readonly httpServerLocation: string; - readonly name: string; - readonly scales: Array; - readonly type: string; - readonly width: null | undefined | number; -}; -export type AssetDataFiltered = { - readonly __packager_asset: boolean; - readonly hash: string; - readonly height: null | undefined | number; - readonly httpServerLocation: string; - readonly name: string; - readonly scales: Array; - readonly type: string; - readonly width: null | undefined | number; -}; -export declare function isAssetTypeAnImage(type: string): boolean; -export declare function getAssetSize(type: string, content: Buffer, filePath: string): null | undefined | {readonly width: number; readonly height: number}; -export type AssetData = AssetDataWithoutFiles & { - readonly files: Array; -}; -export type AssetDataPlugin = (assetData: AssetData) => AssetData | Promise; -export declare function getAssetData(assetPath: string, localPath: string, assetDataPlugins: ReadonlyArray, platform: null | undefined | string, publicPath: string): Promise; -/** - * Returns all the associated files (for different resolutions) of an asset. - **/ -export declare function getAssetFiles(assetPath: string, platform?: null | undefined | string): Promise>; -/** - * Return a buffer with the actual image given a request for an image by path. - * The relativePath can contain a resolution postfix, in this case we need to - * find that image (or the closest one to it's resolution) in one of the - * project roots: - * - * 1. We first parse the directory of the asset - * 2. We then build a map of all assets and their scales in this directory - * 3. Then try to pick platform-specific asset records - * 4. Then pick the closest resolution (rounding up) to the requested one - */ -export declare function getAsset( - relativePath: string, - projectRoot: string, - watchFolders: ReadonlyArray, - platform: null | undefined | string, - assetExts: ReadonlyArray, - fileExistsInFileMap?: (absolutePath: string) => boolean, -): Promise; diff --git a/packages/metro/types/Bundler.d.ts b/packages/metro/types/Bundler.d.ts deleted file mode 100644 index 91aeac83de..0000000000 --- a/packages/metro/types/Bundler.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/Bundler.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {TransformResultWithSource} from './DeltaBundler'; -import type {TransformOptions} from './DeltaBundler/Worker'; -import type {ConfigT} from 'metro-config'; -import type EventEmitter from 'node:events'; - -import DependencyGraph from './node-haste/DependencyGraph'; - -export type BundlerOptions = Readonly<{ - hasReducedPerformance?: boolean; - watch?: boolean; -}>; -declare class Bundler { - constructor(config: ConfigT, options?: BundlerOptions); - getWatcher(): EventEmitter; - end(): Promise; - getDependencyGraph(): Promise; - transformFile(filePath: string, transformOptions: TransformOptions, fileBuffer?: Buffer): Promise; - ready(): Promise; -} -export default Bundler; diff --git a/packages/metro/types/Bundler/util.d.ts b/packages/metro/types/Bundler/util.d.ts deleted file mode 100644 index 94f502aff0..0000000000 --- a/packages/metro/types/Bundler/util.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<0c77abb301a2bebe2406999ca657087c>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/Bundler/util.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {AssetDataWithoutFiles} from '../Assets'; -import type {ModuleTransportLike} from '../shared/types'; -import type {File} from '@babel/types'; - -type SubTree = (moduleTransport: T, moduleTransportsByPath: Map) => Iterable; -export declare function generateAssetCodeFileAst(assetRegistryPath: string, assetDescriptor: AssetDataWithoutFiles): File; -export declare function createRamBundleGroups(ramGroups: ReadonlyArray, groupableModules: ReadonlyArray, subtree: SubTree): Map>; diff --git a/packages/metro/types/DeltaBundler.d.ts b/packages/metro/types/DeltaBundler.d.ts deleted file mode 100644 index def57f5f78..0000000000 --- a/packages/metro/types/DeltaBundler.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<81e6b665d983033e84ac6517c1012086>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/DeltaBundler.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {DeltaResult, Graph, MixedOutput, Options, ReadOnlyGraph} from './DeltaBundler/types'; -import type EventEmitter from 'node:events'; - -export type {DeltaResult, Graph, Dependencies, MixedOutput, Module, ReadOnlyGraph, TransformFn, TransformResult, TransformResultDependency, TransformResultWithSource} from './DeltaBundler/types'; -/** - * `DeltaBundler` uses the `DeltaTransformer` to build bundle deltas. This - * module handles all the transformer instances so it can support multiple - * concurrent clients requesting their own deltas. This is done through the - * `clientId` param (which maps a client to a specific delta transformer). - */ -declare class DeltaBundler { - constructor(changeEventSource: EventEmitter); - end(): void; - getDependencies(entryPoints: ReadonlyArray, options: Options): Promise['dependencies']>; - buildGraph(entryPoints: ReadonlyArray, options: Options): Promise>; - getDelta(graph: Graph, $$PARAM_1$$: {reset: boolean; shallow: boolean}): Promise>; - listen(graph: Graph, callback: () => Promise): () => void; - endGraph(graph: Graph): void; -} -export default DeltaBundler; diff --git a/packages/metro/types/DeltaBundler/DeltaCalculator.d.ts b/packages/metro/types/DeltaBundler/DeltaCalculator.d.ts deleted file mode 100644 index 2a763230b1..0000000000 --- a/packages/metro/types/DeltaBundler/DeltaCalculator.d.ts +++ /dev/null @@ -1,46 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<9685e297be806c39ff9bf6b57103357c>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/DeltaBundler/DeltaCalculator.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {DeltaResult, Options} from './types'; - -import {Graph} from './Graph'; -import EventEmitter from 'node:events'; -/** - * This class is in charge of calculating the delta of changed modules that - * happen between calls. To do so, it subscribes to file changes, so it can - * traverse the files that have been changed between calls and avoid having to - * traverse the whole dependency tree for trivial small changes. - */ -declare class DeltaCalculator extends EventEmitter { - constructor(entryPoints: ReadonlySet, changeEventSource: EventEmitter, options: Options); - /** - * Stops listening for file changes and clears all the caches. - */ - end(): void; - /** - * Main method to calculate the delta of modules. It returns a DeltaResult, - * which contain the modified/added modules and the removed modules. - */ - getDelta($$PARAM_0$$: {reset: boolean; shallow: boolean}): Promise>; - /** - * Returns the graph with all the dependencies. Each module contains the - * needed information to do the traversing (dependencies, inverseDependencies) - * plus some metadata. - */ - getGraph(): Graph; -} -export default DeltaCalculator; diff --git a/packages/metro/types/DeltaBundler/Graph.d.ts b/packages/metro/types/DeltaBundler/Graph.d.ts deleted file mode 100644 index 4d2dbea872..0000000000 --- a/packages/metro/types/DeltaBundler/Graph.d.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<0724c8d6103d602f036e44226e786cfe>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/DeltaBundler/Graph.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {Dependencies, GraphInputOptions, MixedOutput, Module, Options, TransformInputOptions} from './types'; - -import CountingSet from '../lib/CountingSet'; - -export type Result = { - added: Map>; - modified: Map>; - deleted: Set; -}; -export declare class Graph { - readonly entryPoints: ReadonlySet; - readonly transformOptions: TransformInputOptions; - readonly dependencies: Dependencies; - constructor(options: GraphInputOptions); - /** - * Dependency Traversal logic for the Delta Bundler. This method calculates - * the modules that should be included in the bundle by traversing the - * dependency graph. - * Instead of traversing the whole graph each time, it just calculates the - * difference between runs by only traversing the added/removed dependencies. - * To do so, it uses the passed graph dependencies and it mutates it. - * The paths parameter contains the absolute paths of the root files that the - * method should traverse. Normally, these paths should be the modified files - * since the last traversal. - */ - traverseDependencies(paths: ReadonlyArray, options: Options): Promise>; - initialTraverseDependencies(options: Options): Promise>; - /** - * Collect a list of context modules which include a given file. - */ - markModifiedContextModules(filePath: string, modifiedPaths: Set | CountingSet): void; - /** - * Gets the list of modules affected by the deletion of a given file. The - * caller is expected to mark these modules as modified in the next call to - * traverseDependencies. Note that the list may contain duplicates. - */ - getModifiedModulesForDeletedPath(filePath: string): Iterable; - /** - * Re-traverse the dependency graph in DFS order to reorder the modules and - * guarantee the same order between runs. This method mutates the passed graph. - */ - reorderGraph(options: {shallow: boolean}): void; -} diff --git a/packages/metro/types/DeltaBundler/Serializers/baseJSBundle.d.ts b/packages/metro/types/DeltaBundler/Serializers/baseJSBundle.d.ts deleted file mode 100644 index f7457ef295..0000000000 --- a/packages/metro/types/DeltaBundler/Serializers/baseJSBundle.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<031bce5849e92c342ef2e74f2a84aca6>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/DeltaBundler/Serializers/baseJSBundle.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {Module, ReadOnlyGraph, SerializerOptions} from '../types'; -import type {Bundle} from 'metro-runtime/src/modules/types'; - -declare function baseJSBundle(entryPoint: string, preModules: ReadonlyArray, graph: ReadOnlyGraph, options: SerializerOptions): Bundle; -export default baseJSBundle; diff --git a/packages/metro/types/DeltaBundler/Serializers/getAllFiles.d.ts b/packages/metro/types/DeltaBundler/Serializers/getAllFiles.d.ts deleted file mode 100644 index 6cf7b2271a..0000000000 --- a/packages/metro/types/DeltaBundler/Serializers/getAllFiles.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<9e6c348147d0d26f6c920a9ff53b4157>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/DeltaBundler/Serializers/getAllFiles.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {Module, ReadOnlyGraph} from '../types'; - -type Options = { - platform: null | undefined | string; - readonly processModuleFilter: (module: Module) => boolean; -}; -declare function getAllFiles(pre: ReadonlyArray, graph: ReadOnlyGraph, options: Options): Promise>; -export default getAllFiles; diff --git a/packages/metro/types/DeltaBundler/Serializers/getAssets.d.ts b/packages/metro/types/DeltaBundler/Serializers/getAssets.d.ts deleted file mode 100644 index ade18a862f..0000000000 --- a/packages/metro/types/DeltaBundler/Serializers/getAssets.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/DeltaBundler/Serializers/getAssets.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {AssetData} from '../../Assets'; -import type {Module, ReadOnlyDependencies} from '../types'; - -type Options = { - readonly processModuleFilter: (module: Module) => boolean; - assetPlugins: ReadonlyArray; - platform: null | undefined | string; - projectRoot: string; - publicPath: string; -}; -declare function getAssets(dependencies: ReadOnlyDependencies, options: Options): Promise>; -export default getAssets; diff --git a/packages/metro/types/DeltaBundler/Serializers/getExplodedSourceMap.d.ts b/packages/metro/types/DeltaBundler/Serializers/getExplodedSourceMap.d.ts deleted file mode 100644 index ec71a18248..0000000000 --- a/packages/metro/types/DeltaBundler/Serializers/getExplodedSourceMap.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/DeltaBundler/Serializers/getExplodedSourceMap.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {Module} from '../types'; -import type {FBSourceFunctionMap, MetroSourceMapSegmentTuple, VlqMap} from 'metro-source-map'; - -export type ExplodedSourceMap = ReadonlyArray<{ - readonly map: Array | VlqMap; - readonly firstLine1Based: number; - readonly functionMap: null | undefined | FBSourceFunctionMap; - readonly path: string; -}>; -export declare function getExplodedSourceMap(modules: ReadonlyArray, options: {readonly processModuleFilter: (module: Module) => boolean}): ExplodedSourceMap; diff --git a/packages/metro/types/DeltaBundler/Serializers/getRamBundleInfo.d.ts b/packages/metro/types/DeltaBundler/Serializers/getRamBundleInfo.d.ts deleted file mode 100644 index 5d502dc939..0000000000 --- a/packages/metro/types/DeltaBundler/Serializers/getRamBundleInfo.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/DeltaBundler/Serializers/getRamBundleInfo.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {ModuleTransportLike} from '../../shared/types'; -import type {Module, ReadOnlyGraph, SerializerOptions} from '../types'; -import type {SourceMapGeneratorOptions} from './sourceMapGenerator'; -import type {GetTransformOptions} from 'metro-config'; - -type Options = Readonly< - Omit & - Omit & { - getTransformOptions: null | undefined | GetTransformOptions; - platform: null | undefined | string; - } ->; -export type RamBundleInfo = { - getDependencies: ($$PARAM_0$$: string) => Set; - startupModules: ReadonlyArray; - lazyModules: ReadonlyArray; - groups: Map>; -}; -declare function getRamBundleInfo(entryPoint: string, pre: ReadonlyArray, graph: ReadOnlyGraph, options: Options): Promise; -export default getRamBundleInfo; diff --git a/packages/metro/types/DeltaBundler/Serializers/helpers/getInlineSourceMappingURL.d.ts b/packages/metro/types/DeltaBundler/Serializers/helpers/getInlineSourceMappingURL.d.ts deleted file mode 100644 index 7d7febb759..0000000000 --- a/packages/metro/types/DeltaBundler/Serializers/helpers/getInlineSourceMappingURL.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/DeltaBundler/Serializers/helpers/getInlineSourceMappingURL.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -declare function getInlineSourceMappingURL(sourceMap: string): string; -export default getInlineSourceMappingURL; diff --git a/packages/metro/types/DeltaBundler/Serializers/helpers/getSourceMapInfo.d.ts b/packages/metro/types/DeltaBundler/Serializers/helpers/getSourceMapInfo.d.ts deleted file mode 100644 index f6c4e9f742..0000000000 --- a/packages/metro/types/DeltaBundler/Serializers/helpers/getSourceMapInfo.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/DeltaBundler/Serializers/helpers/getSourceMapInfo.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {Module} from '../../types'; -import type {FBSourceFunctionMap, MetroSourceMapSegmentTuple, VlqMap} from 'metro-source-map'; - -declare function getSourceMapInfo( - module: Module, - options: { - readonly excludeSource: boolean; - readonly shouldAddToIgnoreList: ($$PARAM_0$$: Module) => boolean; - getSourceUrl: null | undefined | ((module: Module) => string); - }, -): { - readonly map: Array | VlqMap; - readonly functionMap: null | undefined | FBSourceFunctionMap; - readonly code: string; - readonly path: string; - readonly source: string; - readonly lineCount: number; - readonly isIgnored: boolean; -}; -export default getSourceMapInfo; diff --git a/packages/metro/types/DeltaBundler/Serializers/helpers/getTransitiveDependencies.d.ts b/packages/metro/types/DeltaBundler/Serializers/helpers/getTransitiveDependencies.d.ts deleted file mode 100644 index 350c67fa87..0000000000 --- a/packages/metro/types/DeltaBundler/Serializers/helpers/getTransitiveDependencies.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/DeltaBundler/Serializers/helpers/getTransitiveDependencies.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {ReadOnlyGraph} from '../../types'; - -declare function getTransitiveDependencies(path: string, graph: ReadOnlyGraph): Set; -export default getTransitiveDependencies; diff --git a/packages/metro/types/DeltaBundler/Serializers/helpers/js.d.ts b/packages/metro/types/DeltaBundler/Serializers/helpers/js.d.ts deleted file mode 100644 index 167d5eaf1d..0000000000 --- a/packages/metro/types/DeltaBundler/Serializers/helpers/js.d.ts +++ /dev/null @@ -1,67 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/DeltaBundler/Serializers/helpers/js.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {MixedOutput, Module} from '../../types'; -import type {JsOutput} from 'metro-transform-worker'; - -import path from 'node:path'; - -export type Options = Readonly<{ - createModuleId: ($$PARAM_0$$: string) => number | string; - dev: boolean; - includeAsyncPaths: boolean; - projectRoot: string; - serverRoot: string; - sourceUrl: null | undefined | string; - dependencyMapReservedName?: null | undefined | string; - unstable_inlineDependencyMap?: boolean; -}>; -export declare function wrapModule(module: Module, options: Options): string; -export declare function getModuleParams(module: Module, options: Options): Array; -/** - * Fast path for inlining module IDs as a cheap string operation, requiring - * neither parsing nor any adjustment to the source map. - * - * Assumptions: - * 1. `dependencyMapReservedName` is a globally reserved string; there are - * no false positives. - * 2. The longest module ID in the bundle does not exceed a length of - * `dependencyMapReservedName.length + 3`. (We assert this below.) - * 3. False negatives (failing to inline occasionally if an assumption - * isn't met) are rare to nonexistent, but safe if they do occur. - * - * Syntax definitions: - * 1. A dependency map reference is a member expression which, if parsed, - * would have the form: - * MemberExpression - * ├──object: Identifier (name = dependencyMapReservedName) - * ├──property: NumericLiteral (value = some integer) - * └──computed: true - * 2. The concrete form of a dependency map reference may contain embedded - * tabs or spaces, but no newlines (which would complicate source maps), - * parens (which would complicate detection) or comments (likewise). - * 3. The numeric literal in a dependency map reference is a base-10 - * integer printed as a simple sequence of digits. - */ -export declare function inlineModuleIdReferences( - code: string, - dependencyMapReservedName: string, - dependencyIds: ReadonlyArray, - $$PARAM_3$$?: Readonly<{ignoreMissingDependencyMapReference?: boolean}>, -): string; -export declare function getJsOutput(module: Readonly<{output: ReadonlyArray; path?: string}>): JsOutput; -export declare function isJsModule(module: Module): boolean; diff --git a/packages/metro/types/DeltaBundler/Serializers/helpers/processModules.d.ts b/packages/metro/types/DeltaBundler/Serializers/helpers/processModules.d.ts deleted file mode 100644 index d22a42b174..0000000000 --- a/packages/metro/types/DeltaBundler/Serializers/helpers/processModules.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<9225c6d36e106c7936277e8158e90dc0>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/DeltaBundler/Serializers/helpers/processModules.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {Module} from '../../types'; - -declare function processModules( - modules: ReadonlyArray, - $$PARAM_1$$: Readonly<{ - filter?: (module: Module) => boolean; - createModuleId: ($$PARAM_0$$: string) => number; - dev: boolean; - includeAsyncPaths: boolean; - projectRoot: string; - serverRoot: string; - sourceUrl: null | undefined | string; - dependencyMapReservedName?: null | undefined | string; - unstable_inlineDependencyMap?: boolean; - }>, -): ReadonlyArray<[Module, string]>; -export default processModules; diff --git a/packages/metro/types/DeltaBundler/Serializers/hmrJSBundle.d.ts b/packages/metro/types/DeltaBundler/Serializers/hmrJSBundle.d.ts deleted file mode 100644 index bb05048ec2..0000000000 --- a/packages/metro/types/DeltaBundler/Serializers/hmrJSBundle.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/DeltaBundler/Serializers/hmrJSBundle.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {DeltaResult, ReadOnlyGraph} from '../types'; -import type {HmrModule} from 'metro-runtime/src/modules/types'; - -type Options = Readonly<{ - clientUrl: URL; - createModuleId: ($$PARAM_0$$: string) => number; - includeAsyncPaths: boolean; - projectRoot: string; - serverRoot: string; -}>; -declare function hmrJSBundle( - delta: DeltaResult, - graph: ReadOnlyGraph, - options: Options, -): { - readonly added: ReadonlyArray; - readonly deleted: ReadonlyArray; - readonly modified: ReadonlyArray; -}; -export default hmrJSBundle; diff --git a/packages/metro/types/DeltaBundler/Serializers/sourceMapGenerator.d.ts b/packages/metro/types/DeltaBundler/Serializers/sourceMapGenerator.d.ts deleted file mode 100644 index 514b912de9..0000000000 --- a/packages/metro/types/DeltaBundler/Serializers/sourceMapGenerator.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/DeltaBundler/Serializers/sourceMapGenerator.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {Module} from '../types'; - -import {fromRawMappingsIndexed} from 'metro-source-map'; - -export type SourceMapGeneratorOptions = Readonly<{ - excludeSource: boolean; - processModuleFilter: (module: Module) => boolean; - shouldAddToIgnoreList: (module: Module) => boolean; - getSourceUrl: null | undefined | ((module: Module) => string); -}>; -declare function sourceMapGenerator(modules: ReadonlyArray, options: SourceMapGeneratorOptions): ReturnType; -declare function sourceMapGeneratorNonBlocking(modules: ReadonlyArray, options: SourceMapGeneratorOptions): Promise>; -export {sourceMapGenerator, sourceMapGeneratorNonBlocking}; diff --git a/packages/metro/types/DeltaBundler/Serializers/sourceMapObject.d.ts b/packages/metro/types/DeltaBundler/Serializers/sourceMapObject.d.ts deleted file mode 100644 index d1d3829c71..0000000000 --- a/packages/metro/types/DeltaBundler/Serializers/sourceMapObject.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<29b3ff9729245b368d3fce2599296550>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/DeltaBundler/Serializers/sourceMapObject.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {Module} from '../types'; -import type {SourceMapGeneratorOptions} from './sourceMapGenerator'; -import type {MixedSourceMap} from 'metro-source-map'; - -declare function sourceMapObject(modules: ReadonlyArray, options: SourceMapGeneratorOptions): MixedSourceMap; -declare function sourceMapObjectNonBlocking(modules: ReadonlyArray, options: SourceMapGeneratorOptions): Promise; -export {sourceMapObject, sourceMapObjectNonBlocking}; diff --git a/packages/metro/types/DeltaBundler/Serializers/sourceMapString.d.ts b/packages/metro/types/DeltaBundler/Serializers/sourceMapString.d.ts deleted file mode 100644 index dfa4fd7d59..0000000000 --- a/packages/metro/types/DeltaBundler/Serializers/sourceMapString.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<4bb218bd3f7ca5143ddd6b5f6ba08eaf>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/DeltaBundler/Serializers/sourceMapString.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {Module} from '../types'; -import type {SourceMapGeneratorOptions} from './sourceMapGenerator'; - -declare function sourceMapString(modules: ReadonlyArray, options: SourceMapGeneratorOptions): string; -declare function sourceMapStringNonBlocking(modules: ReadonlyArray, options: SourceMapGeneratorOptions): Promise; -export {sourceMapString, sourceMapStringNonBlocking}; diff --git a/packages/metro/types/DeltaBundler/Transformer.d.ts b/packages/metro/types/DeltaBundler/Transformer.d.ts deleted file mode 100644 index 1f30e98a0c..0000000000 --- a/packages/metro/types/DeltaBundler/Transformer.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<10d1e5eded56fb590d54553faf71bc70>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/DeltaBundler/Transformer.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {TransformResultWithSource} from '../DeltaBundler'; -import type {TransformOptions} from './Worker'; -import type {ConfigT} from 'metro-config'; - -type GetOrComputeSha1Fn = ($$PARAM_0$$: string) => Promise>; -declare class Transformer { - constructor(config: ConfigT, opts: Readonly<{getOrComputeSha1: GetOrComputeSha1Fn}>); - transformFile(filePath: string, transformerOptions: TransformOptions, fileBuffer?: Buffer): Promise; - end(): Promise; -} -export default Transformer; diff --git a/packages/metro/types/DeltaBundler/Worker.d.ts b/packages/metro/types/DeltaBundler/Worker.d.ts deleted file mode 100644 index 2073e1dade..0000000000 --- a/packages/metro/types/DeltaBundler/Worker.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<3509dc5c33a636571839c79c026dbfa0>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/DeltaBundler/Worker.flow.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {TransformResult} from './types'; -import type {LogEntry} from 'metro-core/private/Logger'; -import type {JsTransformerConfig, JsTransformOptions} from 'metro-transform-worker'; - -export type {JsTransformOptions as TransformOptions} from 'metro-transform-worker'; -export type TransformerConfig = { - transformerPath: string; - transformerConfig: JsTransformerConfig; -}; -type Data = Readonly<{ - result: TransformResult; - sha1: string; - transformFileStartLogEntry: LogEntry; - transformFileEndLogEntry: LogEntry; -}>; -export declare const transform: (filename: string, transformOptions: JsTransformOptions, projectRoot: string, transformerConfig: TransformerConfig, fileBuffer?: Buffer) => Promise; -export declare type transform = typeof transform; -export type Worker = {readonly transform: typeof transform}; diff --git a/packages/metro/types/DeltaBundler/WorkerFarm.d.ts b/packages/metro/types/DeltaBundler/WorkerFarm.d.ts deleted file mode 100644 index e746d56a94..0000000000 --- a/packages/metro/types/DeltaBundler/WorkerFarm.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/DeltaBundler/WorkerFarm.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {TransformResult} from '../DeltaBundler'; -import type {TransformerConfig, TransformOptions} from './Worker'; -import type {ConfigT} from 'metro-config'; - -type TransformerResult = Readonly<{result: TransformResult; sha1: string}>; -declare class WorkerFarm { - constructor(config: ConfigT, transformerConfig: TransformerConfig); - kill(): Promise; - transform(filename: string, options: TransformOptions, fileBuffer?: Buffer): Promise; -} -export default WorkerFarm; diff --git a/packages/metro/types/DeltaBundler/buildSubgraph.d.ts b/packages/metro/types/DeltaBundler/buildSubgraph.d.ts deleted file mode 100644 index 10f567dde2..0000000000 --- a/packages/metro/types/DeltaBundler/buildSubgraph.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * 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. - * - * @noformat - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/DeltaBundler/buildSubgraph.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {RequireContext} from '../lib/contextModule'; -import type {ModuleData, ResolvedDependency, ResolveFn, TransformFn} from './types'; - -type Parameters = Readonly<{ - resolve: ResolveFn; - transform: TransformFn; - shouldTraverse: ($$PARAM_0$$: ResolvedDependency) => boolean; -}>; -export declare function buildSubgraph( - entryPaths: ReadonlySet, - resolvedContexts: ReadonlyMap, - $$PARAM_2$$: Parameters, -): Promise<{ - moduleData: Map>; - errors: Map; -}>; diff --git a/packages/metro/types/DeltaBundler/getTransformCacheKey.d.ts b/packages/metro/types/DeltaBundler/getTransformCacheKey.d.ts deleted file mode 100644 index 8e8cbc6f0f..0000000000 --- a/packages/metro/types/DeltaBundler/getTransformCacheKey.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/DeltaBundler/getTransformCacheKey.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {TransformerConfig} from './Worker'; - -declare function getTransformCacheKey(opts: {readonly cacheVersion: string; readonly projectRoot: string; readonly transformerConfig: TransformerConfig}): string; -export default getTransformCacheKey; diff --git a/packages/metro/types/DeltaBundler/mergeDeltas.d.ts b/packages/metro/types/DeltaBundler/mergeDeltas.d.ts deleted file mode 100644 index 41606dfe21..0000000000 --- a/packages/metro/types/DeltaBundler/mergeDeltas.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/DeltaBundler/mergeDeltas.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {DeltaBundle} from 'metro-runtime/src/modules/types'; - -declare function mergeDeltas(delta1: DeltaBundle, delta2: DeltaBundle): DeltaBundle; -export default mergeDeltas; diff --git a/packages/metro/types/DeltaBundler/types.d.ts b/packages/metro/types/DeltaBundler/types.d.ts deleted file mode 100644 index 379747808d..0000000000 --- a/packages/metro/types/DeltaBundler/types.d.ts +++ /dev/null @@ -1,146 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<1e7de4a3bc2a47dfb8f5031657e74bb6>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/DeltaBundler/types.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {RequireContext} from '../lib/contextModule'; -import type {RequireContextParams} from '../ModuleGraph/worker/collectDependencies'; -import type {ReadonlySourceLocation} from '../shared/types'; -import type {Graph} from './Graph'; -import type {JsTransformOptions} from 'metro-transform-worker'; - -import CountingSet from '../lib/CountingSet'; - -export type MixedOutput = {readonly data: unknown; readonly type: string}; -export type AsyncDependencyType = 'async' | 'maybeSync' | 'prefetch' | 'weak'; -export type TransformResultDependency = Readonly<{ - /** - * The literal name provided to a require or import call. For example 'foo' in - * case of `require('foo')`. - */ - name: string; - /** - * Extra data returned by the dependency extractor. - */ - data: Readonly<{ - /** - * A locally unique key for this dependency within the current module. - */ - key: string; - /** - * If not null, this dependency is due to a dynamic `import()` or `__prefetchImport()` call. - */ - asyncType: AsyncDependencyType | null; - /** - * True if the dependency is declared with a static "import x from 'y'" or - * an import() call. - */ - isESMImport: boolean; - /** - * The dependency is enclosed in a try/catch block. - */ - isOptional?: boolean; - locs: ReadonlyArray; - /** Context for requiring a collection of modules. */ - contextParams?: RequireContextParams; - }>; -}>; -export type ResolvedDependency = Readonly<{ - absolutePath: string; - data: TransformResultDependency; -}>; -export type Dependency = ResolvedDependency | Readonly<{data: TransformResultDependency}>; -export type Module = Readonly<{ - dependencies: Map; - inverseDependencies: CountingSet; - output: ReadonlyArray; - path: string; - getSource: () => Buffer; - unstable_transformResultKey?: null | undefined | string; -}>; -export type ModuleData = Readonly<{ - dependencies: ReadonlyMap; - resolvedContexts: ReadonlyMap; - output: ReadonlyArray; - getSource: () => Buffer; - unstable_transformResultKey?: null | undefined | string; -}>; -export type Dependencies = Map>; -export type ReadOnlyDependencies = ReadonlyMap>; -export type TransformInputOptions = Omit; -export type GraphInputOptions = Readonly<{ - entryPoints: ReadonlySet; - transformOptions: TransformInputOptions; -}>; -export interface ReadOnlyGraph { - readonly entryPoints: ReadonlySet; - readonly transformOptions: Readonly; - readonly dependencies: ReadOnlyDependencies; -} -export type {Graph}; -export type TransformResult = Readonly<{ - dependencies: ReadonlyArray; - output: ReadonlyArray; - unstable_transformResultKey?: null | undefined | string; -}>; -export type TransformResultWithSource = Readonly, 'getSource'> & {getSource: () => Buffer}>; -export type TransformFn = ($$PARAM_0$$: string, $$PARAM_1$$: null | undefined | RequireContext) => Promise>; -export type ResolveFn = (from: string, dependency: TransformResultDependency) => BundlerResolution; -export type AllowOptionalDependenciesWithOptions = { - readonly exclude: Array; -}; -export type AllowOptionalDependencies = boolean | AllowOptionalDependenciesWithOptions; -export type BundlerResolution = Readonly<{ - type: 'sourceFile'; - filePath: string; -}>; -export type Options = Readonly<{ - resolve: ResolveFn; - transform: TransformFn; - transformOptions: TransformInputOptions; - onProgress: null | undefined | ((numProcessed: number, total: number) => unknown); - lazy: boolean; - unstable_allowRequireContext: boolean; - unstable_enablePackageExports: boolean; - unstable_incrementalResolution: boolean; - shallow: boolean; -}>; -export type DeltaResult = { - readonly added: Map>; - readonly modified: Map>; - readonly deleted: Set; - readonly reset: boolean; -}; -export type SerializerOptions = Readonly<{ - asyncRequireModulePath: string; - createModuleId: ($$PARAM_0$$: string) => number; - dependencyMapReservedName?: null | undefined | string; - dev: boolean; - getRunModuleStatement: (moduleId: number | string, globalPrefix: string) => string; - globalPrefix: string; - includeAsyncPaths: boolean; - inlineSourceMap: null | undefined | boolean; - modulesOnly: boolean; - processModuleFilter: (module: Module) => boolean; - projectRoot: string; - runBeforeMainModule: ReadonlyArray; - runModule: boolean; - serverRoot: string; - shouldAddToIgnoreList: ($$PARAM_0$$: Module) => boolean; - sourceMapUrl: null | undefined | string; - sourceUrl: null | undefined | string; - getSourceUrl: null | undefined | (($$PARAM_0$$: Module) => string); - unstable_inlineDependencyMap?: boolean; -}>; diff --git a/packages/metro/types/HmrServer.d.ts b/packages/metro/types/HmrServer.d.ts deleted file mode 100644 index 918eb223fa..0000000000 --- a/packages/metro/types/HmrServer.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -/** - * 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. - * - * @noformat - * @generated SignedSource<<4dfa20563fc3b5d03ab821ba998ef739>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/HmrServer.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {RevisionId, default as IncrementalBundler} from './IncrementalBundler'; -import type {ConfigT} from 'metro-config'; - -export type Client = { - optedIntoHMR: boolean; - revisionIds: Array; - readonly sendFn: ($$PARAM_0$$: string) => void; -}; -/** - * The HmrServer (Hot Module Reloading) implements a lightweight interface - * to communicate easily to the logic in the React Native repository (which - * is the one that handles the Web Socket connections). - * - * This interface allows the HmrServer to hook its own logic to WS clients - * getting connected, disconnected or having errors (through the - * `onClientConnect`, `onClientDisconnect` and `onClientError` methods). - */ -declare class HmrServer { - constructor(bundler: IncrementalBundler, createModuleId: (path: string) => number, config: ConfigT); - onClientConnect: (requestUrl: string, sendFn: (data: string) => void) => Promise; - onClientMessage: (client: TClient, message: string | Buffer | ArrayBuffer | Array, sendFn: (data: string) => void) => Promise; - onClientError: (client: TClient, e: Error) => void; - onClientDisconnect: (client: TClient) => void; -} -export default HmrServer; diff --git a/packages/metro/types/IncrementalBundler.d.ts b/packages/metro/types/IncrementalBundler.d.ts deleted file mode 100644 index 31da3006bb..0000000000 --- a/packages/metro/types/IncrementalBundler.d.ts +++ /dev/null @@ -1,74 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/IncrementalBundler.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {DeltaResult, Graph, Module} from './DeltaBundler'; -import type {Options as DeltaBundlerOptions, ReadOnlyDependencies, TransformInputOptions} from './DeltaBundler/types'; -import type {GraphId} from './lib/getGraphId'; -import type {ResolverInputOptions} from './shared/types'; -import type {ConfigT} from 'metro-config'; - -import Bundler from './Bundler'; -import DeltaBundler from './DeltaBundler'; - -export declare type RevisionId = string; -export type OutputGraph = Graph; -type OtherOptions = Readonly<{ - onProgress: DeltaBundlerOptions['onProgress']; - shallow: boolean; - lazy: boolean; -}>; -export type GraphRevision = { - readonly id: RevisionId; - readonly date: Date; - readonly graphId: GraphId; - readonly graph: OutputGraph; - readonly prepend: ReadonlyArray; -}; -export type IncrementalBundlerOptions = Readonly<{ - hasReducedPerformance?: boolean; - watch?: boolean; -}>; -declare class IncrementalBundler { - static revisionIdFromString: (str: string) => RevisionId; - constructor(config: ConfigT, options?: IncrementalBundlerOptions); - end(): Promise; - getBundler(): Bundler; - getDeltaBundler(): DeltaBundler; - getRevision(revisionId: RevisionId): null | undefined | Promise; - getRevisionByGraphId(graphId: GraphId): null | undefined | Promise; - buildGraphForEntries(entryFiles: ReadonlyArray, transformOptions: TransformInputOptions, resolverOptions: ResolverInputOptions, otherOptions?: OtherOptions): Promise; - getDependencies(entryFiles: ReadonlyArray, transformOptions: TransformInputOptions, resolverOptions: ResolverInputOptions, otherOptions?: OtherOptions): Promise; - buildGraph( - entryFile: string, - transformOptions: TransformInputOptions, - resolverOptions: ResolverInputOptions, - otherOptions?: OtherOptions, - ): Promise<{ - readonly graph: OutputGraph; - readonly prepend: ReadonlyArray; - }>; - initializeGraph( - entryFile: string, - transformOptions: TransformInputOptions, - resolverOptions: ResolverInputOptions, - otherOptions?: OtherOptions, - ): Promise<{delta: DeltaResult; revision: GraphRevision}>; - updateGraph(revision: GraphRevision, reset: boolean): Promise<{delta: DeltaResult; revision: GraphRevision}>; - endGraph(graphId: GraphId): Promise; - ready(): Promise; -} -export default IncrementalBundler; diff --git a/packages/metro/types/IncrementalBundler/GraphNotFoundError.d.ts b/packages/metro/types/IncrementalBundler/GraphNotFoundError.d.ts deleted file mode 100644 index b4a401deb4..0000000000 --- a/packages/metro/types/IncrementalBundler/GraphNotFoundError.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<850ba6867e140fb0973cd13d0fd1bc60>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/IncrementalBundler/GraphNotFoundError.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {GraphId} from '../lib/getGraphId'; - -declare class GraphNotFoundError extends Error { - graphId: GraphId; - constructor(graphId: GraphId); -} -export default GraphNotFoundError; diff --git a/packages/metro/types/IncrementalBundler/ResourceNotFoundError.d.ts b/packages/metro/types/IncrementalBundler/ResourceNotFoundError.d.ts deleted file mode 100644 index b6d6526c14..0000000000 --- a/packages/metro/types/IncrementalBundler/ResourceNotFoundError.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<6a9d75bc74b654362c3563ec8babda0b>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/IncrementalBundler/ResourceNotFoundError.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -declare class ResourceNotFoundError extends Error { - resourcePath: string; - constructor(resourcePath: string); -} -export default ResourceNotFoundError; diff --git a/packages/metro/types/IncrementalBundler/RevisionNotFoundError.d.ts b/packages/metro/types/IncrementalBundler/RevisionNotFoundError.d.ts deleted file mode 100644 index 35b2b5890c..0000000000 --- a/packages/metro/types/IncrementalBundler/RevisionNotFoundError.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<2c2d4a1a2d357eb73806a68bba897795>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/IncrementalBundler/RevisionNotFoundError.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {RevisionId} from '../IncrementalBundler'; - -declare class RevisionNotFoundError extends Error { - revisionId: RevisionId; - constructor(revisionId: RevisionId); -} -export default RevisionNotFoundError; diff --git a/packages/metro/types/ModuleGraph/worker/JsFileWrapping.d.ts b/packages/metro/types/ModuleGraph/worker/JsFileWrapping.d.ts deleted file mode 100644 index f5479a3ab4..0000000000 --- a/packages/metro/types/ModuleGraph/worker/JsFileWrapping.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * 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. - * - * @noformat - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/ModuleGraph/worker/JsFileWrapping.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {File as BabelNodeFile} from '@babel/types'; - -declare function wrapModule( - fileAst: BabelNodeFile, - importDefaultName: string, - importAllName: string, - dependencyMapName: string, - globalPrefix: string, - $$PARAM_5$$?: Readonly<{unstable_useStaticHermesModuleFactory?: boolean}>, -): {ast: BabelNodeFile; requireName: string}; -declare function wrapPolyfill(fileAst: BabelNodeFile): BabelNodeFile; -declare function jsonToCommonJS(source: string): string; -declare function wrapJson(source: string, globalPrefix: string, unstable_useStaticHermesModuleFactory?: boolean): string; -export {wrapJson, jsonToCommonJS, wrapModule, wrapPolyfill}; diff --git a/packages/metro/types/ModuleGraph/worker/collectDependencies.d.ts b/packages/metro/types/ModuleGraph/worker/collectDependencies.d.ts deleted file mode 100644 index e37ba74c90..0000000000 --- a/packages/metro/types/ModuleGraph/worker/collectDependencies.d.ts +++ /dev/null @@ -1,101 +0,0 @@ -/** - * 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. - * - * @noformat - * @generated SignedSource<<780e521123ff9528911d3a6307815dee>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/ModuleGraph/worker/collectDependencies.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {ReadonlySourceLocation} from '../../shared/types'; -import type {NodePath} from '@babel/traverse'; -import type {CallExpression, File as BabelNodeFile, Identifier, StringLiteral} from '@babel/types'; -import type {AllowOptionalDependencies, AsyncDependencyType} from 'metro/private/DeltaBundler/types'; - -export type Dependency = Readonly<{data: DependencyData; name: string}>; -export type ContextMode = 'sync' | 'eager' | 'lazy' | 'lazy-once'; -type ContextFilter = Readonly<{pattern: string; flags: string}>; -export type RequireContextParams = Readonly<{ - recursive: boolean; - filter: Readonly; - /** Mode for resolving dynamic dependencies. Defaults to `sync` */ - mode: ContextMode; -}>; -type DependencyData = Readonly<{ - key: string; - asyncType: AsyncDependencyType | null; - isESMImport: boolean; - isOptional?: boolean; - locs: ReadonlyArray; - /** Context for requiring a collection of modules. */ - contextParams?: RequireContextParams; -}>; -export type MutableInternalDependency = Omit & {locs: Array; index: number; name: string}; -export type InternalDependency = Readonly; -export type State = { - asyncRequireModulePathStringLiteral: null | undefined | StringLiteral; - dependencyCalls: Set; - dependencyRegistry: DependencyRegistry; - dependencyTransformer: DependencyTransformer; - dynamicRequires: DynamicRequiresBehavior; - dependencyMapIdentifier: null | undefined | Identifier; - keepRequireNames: boolean; - allowOptionalDependencies: AllowOptionalDependencies; - /** Enable `require.context` statements which can be used to import multiple files in a directory. */ - unstable_allowRequireContext: boolean; - unstable_isESMImportAtSource: null | undefined | (($$PARAM_0$$: ReadonlySourceLocation) => boolean); -}; -export type Options = Readonly<{ - asyncRequireModulePath: string; - dependencyMapName: null | undefined | string; - dynamicRequires: DynamicRequiresBehavior; - inlineableCalls: ReadonlyArray; - keepRequireNames: boolean; - allowOptionalDependencies: AllowOptionalDependencies; - dependencyTransformer?: DependencyTransformer; - /** Enable `require.context` statements which can be used to import multiple files in a directory. */ - unstable_allowRequireContext: boolean; - unstable_isESMImportAtSource?: null | undefined | (($$PARAM_0$$: ReadonlySourceLocation) => boolean); -}>; -export type CollectedDependencies = Readonly<{ - ast: BabelNodeFile; - dependencyMapName: string; - dependencies: ReadonlyArray; -}>; -export interface DependencyTransformer { - transformSyncRequire(path: NodePath, dependency: InternalDependency, state: State): void; - transformImportCall(path: NodePath, dependency: InternalDependency, state: State): void; - transformImportMaybeSyncCall(path: NodePath, dependency: InternalDependency, state: State): void; - transformPrefetch(path: NodePath, dependency: InternalDependency, state: State): void; - transformIllegalDynamicRequire(path: NodePath, state: State): void; -} -export type DynamicRequiresBehavior = 'throwAtRuntime' | 'reject'; -/** - * Transform all the calls to `require()` and `import()` in a file into ID- - * independent code, and return the list of dependencies. For example, a call - * like `require('Foo')` could be transformed to `require(_depMap[3], 'Foo')` - * where `_depMap` is provided by the outer scope. As such, we don't need to - * know the actual module ID. - * - * The second argument is only provided for debugging purposes. - */ -declare function collectDependencies(ast: BabelNodeFile, options: Options): CollectedDependencies; -export default collectDependencies; -export type ImportQualifier = Readonly<{ - name: string; - asyncType: AsyncDependencyType | null; - isESMImport: boolean; - optional: boolean; - contextParams?: RequireContextParams; -}>; -declare class DependencyRegistry { - registerDependency(qualifier: ImportQualifier): InternalDependency; - getDependencies(): Array; -} diff --git a/packages/metro/types/ModuleGraph/worker/generateImportNames.d.ts b/packages/metro/types/ModuleGraph/worker/generateImportNames.d.ts deleted file mode 100644 index 7d2813be7e..0000000000 --- a/packages/metro/types/ModuleGraph/worker/generateImportNames.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * 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. - * - * @noformat - * @generated SignedSource<<9632d9ca461f1fd6aad9131d7afb5839>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/ModuleGraph/worker/generateImportNames.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {Node} from '@babel/types'; -/** - * Select unused names for "metroImportDefault" and "metroImportAll", by - * calling "generateUid". - */ -declare function generateImportNames(ast: Node): { - importAll: string; - importDefault: string; -}; -export default generateImportNames; diff --git a/packages/metro/types/ModuleGraph/worker/importLocationsPlugin.d.ts b/packages/metro/types/ModuleGraph/worker/importLocationsPlugin.d.ts deleted file mode 100644 index 4e108d65fa..0000000000 --- a/packages/metro/types/ModuleGraph/worker/importLocationsPlugin.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<94bbcd69e891c414b64147d5203c39b7>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/ModuleGraph/worker/importLocationsPlugin.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {ReadonlySourceLocation} from '../../shared/types'; -import type {PluginObj} from '@babel/core'; -import type * as $$IMPORT_TYPEOF_1$$ from '@babel/types'; -import type {MetroBabelFileMetadata} from 'metro-babel-transformer'; - -type Types = typeof $$IMPORT_TYPEOF_1$$; -type ImportDeclarationLocs = Set; -type State = { - importDeclarationLocs: ImportDeclarationLocs; - file: {metadata?: MetroBabelFileMetadata}; -}; -declare function importLocationsPlugin($$PARAM_0$$: {types: Types}): PluginObj; -declare function locToKey(loc: ReadonlySourceLocation): string; -export {importLocationsPlugin, locToKey}; diff --git a/packages/metro/types/ModuleGraph/worker/traverseFile.d.ts b/packages/metro/types/ModuleGraph/worker/traverseFile.d.ts deleted file mode 100644 index de48482779..0000000000 --- a/packages/metro/types/ModuleGraph/worker/traverseFile.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * 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. - * - * @noformat - * @generated SignedSource<<3e34d820d8084791cc6903fa639cb309>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/ModuleGraph/worker/traverseFile.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {IRFile} from './visitDependencyUses'; -import type {TraverseOptions} from '@babel/traverse'; - -declare function traverseFile(file: IRFile, visitors: TraverseOptions, state: TState): void; -export default traverseFile; diff --git a/packages/metro/types/ModuleGraph/worker/visitDependencyUses.d.ts b/packages/metro/types/ModuleGraph/worker/visitDependencyUses.d.ts deleted file mode 100644 index e4e15afd23..0000000000 --- a/packages/metro/types/ModuleGraph/worker/visitDependencyUses.d.ts +++ /dev/null @@ -1,74 +0,0 @@ -/** - * 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. - * - * @noformat - * @generated SignedSource<<55dc931722e3c03272c3d1ed16c151ec>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/ModuleGraph/worker/visitDependencyUses.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {NodePath} from '@babel/traverse'; -import type {CallExpression, File} from '@babel/types'; -import type {TransformResultDependency as Dependency} from 'metro/private/DeltaBundler/types'; - -export type IRFile = Readonly<{ - ast: File; - dependencies: ReadonlyArray; - sourceCode: string; - globalPrefix: string; -}>; -/** - * `visitDependencyUses` is a generic utility for statically analysing / - * meta-evaluating references to dependencies in the body of a module compiled - * by Metro. We pass a file in "Metro IR" form, a dependency filter and a set of - * visitors, which are invoked synchronously as appropriate. - * - * # Metro IR - * - * The form of IR that we analyse here consists of: - * - * * The AST after transformation (**and possibly minification**), including - * wrapping in a module factory and a call to `__d()`. - * * The (unresolved) dependency list extracted by the transformer. - * * The source code of the module (for error reporting). - * * The `globalPrefix` config setting (so we can detect calls to the global - * `__d` function if there is a prefix set). - * - * # Visitors - * - * Each visitor takes a Babel AST node path and, where applicable, a Metro - * dependency descriptor. - * - * A *dependency reference* is an expression that evaluates to a value imported - * from a dependency that passes the filter. The respective dependency is - * described by the `dep` parameter. - * - * * `visitCall(path, dep)`: `path` is a call expression, where the callee is a - * dependency reference to a default export (ESM or CommonJS). - * * `visitOther(path, dep)`: `path` is a dependency reference that does not - * fall into any other analysable bucket (i.e. it's not a call). Most - * analysers will want to throw an error here. - * * `visitNonAnalyzableRequire(path)`: `path` is a reference to the `require` - * function itself (or one of the other Metro builtins e.g. `importAll`, - * `importDefault`) that is used in some way that cannot be analysed - e.g. - * mutated or stored in a variable. Most analysers will want to throw an error - * here. Note that this will only be called if any dependencies pass the - * filter (or if there is no filter). - */ -declare function visitDependencyUses( - file: IRFile, - visitors: Readonly<{ - dependencyFilter?: (dep: Dependency) => boolean; - visitCall: (path: NodePath, dep: Dependency) => void; - visitOther: (path: NodePath, dep: Dependency) => void; - visitNonAnalyzableRequire: (path: NodePath) => void; - }>, -): void; -export default visitDependencyUses; diff --git a/packages/metro/types/Server.d.ts b/packages/metro/types/Server.d.ts deleted file mode 100644 index 688eaf0385..0000000000 --- a/packages/metro/types/Server.d.ts +++ /dev/null @@ -1,82 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/Server.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {AssetData} from './Assets'; -import type {RamBundleInfo} from './DeltaBundler/Serializers/getRamBundleInfo'; -import type {BuildOptions, BundleOptions} from './shared/types'; -import type {IncomingMessage} from 'connect'; -import type {ConfigT} from 'metro-config'; -import type {CustomResolverOptions} from 'metro-resolver/private/types'; -import type {CustomTransformOptions} from 'metro-transform-worker'; -import type {ServerResponse} from 'node:http'; - -import IncrementalBundler from './IncrementalBundler'; -import {SourcePathsMode} from './shared/types'; - -export type SegmentLoadData = { - [$$Key$$: number]: [Array, null | undefined | number]; -}; -export type BundleMetadata = { - hash: string; - otaBuildNumber: null | undefined | string; - mobileConfigs: Array; - segmentHashes: Array; - segmentLoadData: SegmentLoadData; -}; -export type ServerOptions = Readonly<{ - hasReducedPerformance?: boolean; - onBundleBuilt?: (bundlePath: string) => void; - watch?: boolean; -}>; -declare class Server { - constructor(config: ConfigT, options?: ServerOptions); - end(): void; - getBundler(): IncrementalBundler; - getCreateModuleId(): (path: string) => number; - build(bundleOptions: BundleOptions, $$PARAM_1$$?: BuildOptions): Promise<{code: string; map: string; assets?: ReadonlyArray}>; - getRamBundleInfo(options: BundleOptions): Promise; - getAssets(options: BundleOptions): Promise>; - getOrderedDependencyPaths(options: {readonly dev: boolean; readonly entryFile: string; readonly minify: boolean; readonly platform: null | undefined | string}): Promise>; - processRequest: ($$PARAM_0$$: IncomingMessage, $$PARAM_1$$: ServerResponse, $$PARAM_2$$: (e: null | undefined | Error) => void) => void; - getNewBuildNumber(): number; - getPlatforms(): ReadonlyArray; - getWatchFolders(): ReadonlyArray; - static DEFAULT_GRAPH_OPTIONS: Readonly<{ - customResolverOptions: CustomResolverOptions; - customTransformOptions: CustomTransformOptions; - dev: boolean; - minify: boolean; - unstable_transformProfile: 'default'; - }>; - static DEFAULT_BUNDLE_OPTIONS: Omit< - typeof Server.DEFAULT_GRAPH_OPTIONS, - 'excludeSource' | 'inlineSourceMap' | 'lazy' | 'modulesOnly' | 'onProgress' | 'runModule' | 'shallow' | 'sourceMapUrl' | 'sourceUrl' | 'sourcePaths' - > & { - excludeSource: false; - inlineSourceMap: false; - lazy: false; - modulesOnly: false; - onProgress: null; - runModule: true; - shallow: false; - sourceMapUrl: null; - sourceUrl: null; - sourcePaths: SourcePathsMode; - }; - ready(): Promise; -} -export default Server; diff --git a/packages/metro/types/Server/MultipartResponse.d.ts b/packages/metro/types/Server/MultipartResponse.d.ts deleted file mode 100644 index 4eb38acd52..0000000000 --- a/packages/metro/types/Server/MultipartResponse.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<1ea61133bb1f20cfa2e82c2ba414d139>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/Server/MultipartResponse.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {IncomingMessage, ServerResponse} from 'node:http'; - -type Data = string | Buffer | Uint8Array; -type Headers = {[$$Key$$: string]: string | number}; -declare class MultipartResponse { - static wrapIfSupported(req: IncomingMessage, res: ServerResponse): MultipartResponse | ServerResponse; - static serializeHeaders(headers: Headers): string; - res: ServerResponse; - headers: Headers; - constructor(res: ServerResponse); - writeChunk(headers: Headers | null, data?: Data, isLast?: boolean): void; - writeHead(status: number, headers?: Headers): void; - setHeader(name: string, value: string | number): void; - end(data?: Data): void; - once(name: string, fn: () => unknown): this; -} -export default MultipartResponse; diff --git a/packages/metro/types/Server/symbolicate.d.ts b/packages/metro/types/Server/symbolicate.d.ts deleted file mode 100644 index 494195184e..0000000000 --- a/packages/metro/types/Server/symbolicate.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<2f4c251ae251c041be068cf3d50ce560>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/Server/symbolicate.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {ExplodedSourceMap} from '../DeltaBundler/Serializers/getExplodedSourceMap'; -import type {ConfigT} from 'metro-config'; - -export type StackFrameInput = { - readonly file: null | undefined | string; - readonly lineNumber: null | undefined | number; - readonly column: null | undefined | number; - readonly methodName: null | undefined | string; -}; -export type IntermediateStackFrame = Omit & { - collapse?: boolean; -}; -export type StackFrameOutput = Readonly; -declare function symbolicate(stack: ReadonlyArray, maps: Iterable<[string, ExplodedSourceMap]>, config: ConfigT, extraData: unknown): Promise>; -export default symbolicate; diff --git a/packages/metro/types/cli-utils.d.ts b/packages/metro/types/cli-utils.d.ts deleted file mode 100644 index 89a01cf665..0000000000 --- a/packages/metro/types/cli-utils.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<0e9cc643ba84fba1cffc77c6f9931b27>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/cli-utils.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -export declare const watchFile: (filename: string, callback: () => unknown) => Promise; -export declare type watchFile = typeof watchFile; -export declare const makeAsyncCommand: (command: (argv: T) => Promise) => (argv: T) => void; -export declare type makeAsyncCommand = typeof makeAsyncCommand; diff --git a/packages/metro/types/cli/parseKeyValueParamArray.d.ts b/packages/metro/types/cli/parseKeyValueParamArray.d.ts deleted file mode 100644 index 446582fefb..0000000000 --- a/packages/metro/types/cli/parseKeyValueParamArray.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/cli/parseKeyValueParamArray.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -declare function coerceKeyValueArray(keyValueArray: ReadonlyArray): { - [key: string]: string; -}; -export default coerceKeyValueArray; diff --git a/packages/metro/types/commands/build.d.ts b/packages/metro/types/commands/build.d.ts deleted file mode 100644 index 148c036e4a..0000000000 --- a/packages/metro/types/commands/build.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<3081d0713da0471f8a82884cfd9dfe09>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/commands/build.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {CommandModule} from 'yargs'; - -declare const $$EXPORT_DEFAULT_DECLARATION$$: () => CommandModule; -declare type $$EXPORT_DEFAULT_DECLARATION$$ = typeof $$EXPORT_DEFAULT_DECLARATION$$; -export default $$EXPORT_DEFAULT_DECLARATION$$; diff --git a/packages/metro/types/commands/dependencies.d.ts b/packages/metro/types/commands/dependencies.d.ts deleted file mode 100644 index 140d44cda1..0000000000 --- a/packages/metro/types/commands/dependencies.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/commands/dependencies.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {CommandModule} from 'yargs'; - -declare const $$EXPORT_DEFAULT_DECLARATION$$: () => CommandModule; -declare type $$EXPORT_DEFAULT_DECLARATION$$ = typeof $$EXPORT_DEFAULT_DECLARATION$$; -export default $$EXPORT_DEFAULT_DECLARATION$$; diff --git a/packages/metro/types/commands/serve.d.ts b/packages/metro/types/commands/serve.d.ts deleted file mode 100644 index 485e0236c7..0000000000 --- a/packages/metro/types/commands/serve.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<8b373916e2250d6fb08f205c021fa542>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/commands/serve.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {CommandModule} from 'yargs'; - -declare const $$EXPORT_DEFAULT_DECLARATION$$: () => CommandModule; -declare type $$EXPORT_DEFAULT_DECLARATION$$ = typeof $$EXPORT_DEFAULT_DECLARATION$$; -export default $$EXPORT_DEFAULT_DECLARATION$$; diff --git a/packages/metro/types/index.d.ts b/packages/metro/types/index.d.ts deleted file mode 100644 index 0fe870cbf1..0000000000 --- a/packages/metro/types/index.d.ts +++ /dev/null @@ -1,150 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<4aca97550eb6e579e435254037e38616>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/index.flow.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {AssetData} from './Assets'; -import type {ReadOnlyGraph} from './DeltaBundler'; -import type {ServerOptions} from './Server'; -import type {BuildOptions, OutputOptions, RequestOptions} from './shared/types'; -import type {HandleFunction} from 'connect'; -import type {TransformProfile} from 'metro-babel-transformer'; -import type {ConfigT, InputConfigT, MetroConfig, Middleware} from 'metro-config'; -import type {CustomResolverOptions} from 'metro-resolver'; -import type {CustomTransformOptions} from 'metro-transform-worker'; -import type {Server as HttpServer} from 'node:http'; -import type {Server as HttpsServer, ServerOptions as HttpsServerOptions} from 'node:https'; -import type {Server as WebSocketServer} from 'ws'; -import type $$IMPORT_TYPEOF_1$$ from 'yargs'; - -import JsonReporter from './lib/JsonReporter'; -import TerminalReporter from './lib/TerminalReporter'; -import MetroServer from './Server'; -import {loadConfig, mergeConfig, resolveConfig} from 'metro-config'; -import {Terminal} from 'metro-core'; - -type Yargs = typeof $$IMPORT_TYPEOF_1$$; -type MetroMiddleWare = { - attachHmrServer: (httpServer: HttpServer | HttpsServer) => void; - end: () => Promise; - metroServer: MetroServer; - middleware: Middleware; -}; -export type RunMetroOptions = Omit & { - waitForBundler?: boolean; -}; -export type RunServerOptions = Readonly<{ - hasReducedPerformance?: boolean; - host?: string; - onError?: ($$PARAM_0$$: Error & {code?: string}) => void; - onReady?: (server: HttpServer | HttpsServer) => void; - onClose?: () => void; - secureServerOptions?: HttpsServerOptions; - secure?: boolean; - secureCert?: string; - secureKey?: string; - unstable_extraMiddleware?: ReadonlyArray; - waitForBundler?: boolean; - watch?: boolean; - websocketEndpoints?: Readonly<{[path: string]: WebSocketServer}>; -}>; -export type RunServerResult = {httpServer: HttpServer | HttpsServer}; -type BuildGraphOptions = { - entries: ReadonlyArray; - customTransformOptions?: CustomTransformOptions; - dev?: boolean; - minify?: boolean; - onProgress?: (transformedFileCount: number, totalFileCount: number) => void; - platform?: string; - type?: 'module' | 'script'; -}; -export type RunBuildOptions = { - entry: string; - assets?: boolean; - dev?: boolean; - out?: string; - bundleOut?: string; - sourceMapOut?: string; - onBegin?: () => void; - onComplete?: () => void; - onProgress?: (transformedFileCount: number, totalFileCount: number) => void; - minify?: boolean; - output?: Readonly<{ - build: ( - $$PARAM_0$$: MetroServer, - $$PARAM_1$$: RequestOptions, - $$PARAM_2$$: void | BuildOptions, - ) => Promise<{ - code: string; - map: string; - assets?: ReadonlyArray; - }>; - save: ($$PARAM_0$$: {code: string; map: string}, $$PARAM_1$$: OutputOptions, $$PARAM_2$$: (logMessage: string) => void) => Promise; - }>; - platform?: string; - sourceMap?: boolean; - sourceMapUrl?: string; - customResolverOptions?: CustomResolverOptions; - customTransformOptions?: CustomTransformOptions; - unstable_transformProfile?: TransformProfile; -}; -export type RunBuildResult = { - code: string; - map: string; - assets?: ReadonlyArray; -}; -type BuildCommandOptions = Readonly<{[$$Key$$: string]: unknown}> | null; -type ServeCommandOptions = Readonly<{[$$Key$$: string]: unknown}> | null; -type DependenciesCommandOptions = Readonly<{ - [$$Key$$: string]: unknown; -}> | null; -export {Terminal, JsonReporter, TerminalReporter}; -export type {AssetData} from './Assets'; -export type { - AsyncDependencyType, - DeltaResult, - Dependency, - MixedOutput, - Module, - ReadOnlyDependencies, - ReadOnlyGraph, - SerializerOptions, - TransformInputOptions, - TransformResult, - TransformResultDependency, -} from './DeltaBundler/types'; -export type {default as DependencyGraph} from './node-haste/DependencyGraph'; -export type {BundleDetails, Reporter, ReportableEvent} from './lib/reporting'; -export type {TerminalReportableEvent} from './lib/TerminalReporter'; -export type {ContextMode, RequireContextParams} from './ModuleGraph/worker/collectDependencies'; -export type {ServerOptions} from './Server'; -export type {MetroConfig, MetroServer}; -export declare function runMetro(config: InputConfigT, options?: RunMetroOptions): Promise; -export {loadConfig, mergeConfig, resolveConfig}; -export declare const createConnectMiddleware: (config: ConfigT, options?: RunMetroOptions) => Promise; -export declare type createConnectMiddleware = typeof createConnectMiddleware; -export declare const runServer: (config: ConfigT, $$PARAM_1$$?: RunServerOptions) => Promise; -export declare type runServer = typeof runServer; -export declare const runBuild: (config: ConfigT, $$PARAM_1$$: RunBuildOptions) => Promise; -export declare type runBuild = typeof runBuild; -export declare const buildGraph: (config: InputConfigT, $$PARAM_1$$: BuildGraphOptions) => Promise; -export declare type buildGraph = typeof buildGraph; -type AttachMetroCLIOptions = { - build?: BuildCommandOptions; - serve?: ServeCommandOptions; - dependencies?: DependenciesCommandOptions; -}; -export declare const attachMetroCli: (yargs: Yargs, options?: AttachMetroCLIOptions) => Yargs; -export declare type attachMetroCli = typeof attachMetroCli; diff --git a/packages/metro/types/lib/BatchProcessor.d.ts b/packages/metro/types/lib/BatchProcessor.d.ts deleted file mode 100644 index 21655decc1..0000000000 --- a/packages/metro/types/lib/BatchProcessor.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<310bea2deb24a5861b0a2cc2f5a13424>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/lib/BatchProcessor.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -type ProcessBatch = (batch: Array) => Promise>; -type BatchProcessorOptions = { - maximumDelayMs: number; - maximumItems: number; - concurrency: number; -}; -/** - * We batch items together trying to minimize their processing, for example as - * network queries. For that we wait a small moment before processing a batch. - * We limit also the number of items we try to process in a single batch so that - * if we have many items pending in a short amount of time, we can start - * processing right away. - */ -declare class BatchProcessor { - constructor(options: BatchProcessorOptions, processBatch: ProcessBatch); - queue(item: TItem): Promise; - getQueueLength(): number; -} -export default BatchProcessor; diff --git a/packages/metro/types/lib/CountingSet.d.ts b/packages/metro/types/lib/CountingSet.d.ts deleted file mode 100644 index 7e7050ac09..0000000000 --- a/packages/metro/types/lib/CountingSet.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<1577f522f8120f35ec9ced81388166fe>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/lib/CountingSet.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -export interface ReadOnlyCountingSet extends Iterable { - has(item: T): boolean; - readonly size: number; - count(item: T): number; - forEach(callbackFn: (this: ThisT, value: T, key: T, set: ReadOnlyCountingSet) => unknown, thisArg: ThisT): void; -} -/** - * A Set that only deletes a given item when the number of delete(item) calls - * matches the number of add(item) calls. Iteration and `size` are in terms of - * *unique* items. - */ -declare class CountingSet implements ReadOnlyCountingSet { - constructor(items?: Iterable); - has(item: T): boolean; - add(item: T): void; - delete(item: T): void; - keys(): Iterator; - values(): Iterator; - entries(): Iterator<[T, T]>; - [Symbol.iterator](): Iterator; - get size(): number; - count(item: T): number; - clear(): void; - forEach(callbackFn: (this: ThisT, value: T, key: T, set: CountingSet) => unknown, thisArg: ThisT): void; - toJSON(): unknown; -} -export default CountingSet; diff --git a/packages/metro/types/lib/JsonReporter.d.ts b/packages/metro/types/lib/JsonReporter.d.ts deleted file mode 100644 index ae637cb643..0000000000 --- a/packages/metro/types/lib/JsonReporter.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<1c9e77c89ab61bbb8fea403a63e33ab2>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/lib/JsonReporter.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {Writable} from 'node:stream'; - -export type SerializedError = { - message: string; - stack: string; - errors?: ReadonlyArray; - cause?: SerializedError; -}; -export type SerializedEvent = TEvent extends {error: Error} ? Omit, 'error'> & {error: SerializedError} : TEvent; -declare class JsonReporter { - constructor(stream: Writable); - /** - * There is a special case for errors because they have non-enumerable fields. - * (Perhaps we should switch in favor of plain object?) - */ - update(event: TEvent): void; -} -export default JsonReporter; diff --git a/packages/metro/types/lib/RamBundleParser.d.ts b/packages/metro/types/lib/RamBundleParser.d.ts deleted file mode 100644 index 8e554fe0bc..0000000000 --- a/packages/metro/types/lib/RamBundleParser.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * 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. - * - * @noformat - * @generated SignedSource<<7be940ed3f4c6dffc465780640e301ec>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/lib/RamBundleParser.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -/** - * Implementation of a RAM bundle parser in JS. - * - * It receives a Buffer as an input and implements two main methods, which are - * able to run in constant time no matter the size of the bundle: - * - * getStartupCode(): returns the runtime and the startup code of the bundle. - * getModule(): returns the code for the specified module. - */ -declare class RamBundleParser { - constructor(buffer: Buffer); - getStartupCode(): string; - getModule(id: number): string; -} -export default RamBundleParser; diff --git a/packages/metro/types/lib/TerminalReporter.d.ts b/packages/metro/types/lib/TerminalReporter.d.ts deleted file mode 100644 index d06308770e..0000000000 --- a/packages/metro/types/lib/TerminalReporter.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<14645ae49e4ed5ce74bdd181db9098d4>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/lib/TerminalReporter.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {ReportableEvent} from './reporting'; -import type {Terminal} from 'metro-core'; - -export type TerminalReportableEvent = - | ReportableEvent - | { - buildID: string; - type: 'bundle_transform_progressed_throttled'; - transformedFileCount: number; - totalFileCount: number; - } - | { - type: 'unstable_server_log'; - level: 'info' | 'warn' | 'error'; - data: string | Array; - } - | {type: 'unstable_server_menu_updated'; message: string} - | {type: 'unstable_server_menu_cleared'}; -/** - * We try to print useful information to the terminal for interactive builds. - * This implements the `Reporter` interface from the './reporting' module. - */ -declare class TerminalReporter { - readonly terminal: Terminal; - constructor(terminal: Terminal); - /** - * Single entry point for reporting events. That allows us to implement the - * corresponding JSON reporter easily and have a consistent reporting. - */ - update(event: TerminalReportableEvent): void; -} -export default TerminalReporter; diff --git a/packages/metro/types/lib/bundleProgressUtils.d.ts b/packages/metro/types/lib/bundleProgressUtils.d.ts deleted file mode 100644 index 2904331561..0000000000 --- a/packages/metro/types/lib/bundleProgressUtils.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<85de7e7d8df567af8ee14c290455b1b2>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/lib/bundleProgressUtils.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -/** - * Calculates a conservative progress ratio for bundle building. - * - * Because we know the `totalFileCount` is going to progressively increase - * starting with 1: - * - We use Math.max(totalFileCount, 10) to prevent the ratio from raising too - * quickly when the total file count is low. (e.g 1/2 5/6) - * - We use Math.pow(ratio, 2) as a conservative measure of progress. - * - The ratio is capped at 0.999 to ensure we don't display 100% until done. - * - If previousRatio is provided, the ratio will not go backwards. - */ -export declare function calculateBundleProgressRatio(transformedFileCount: number, totalFileCount: number, previousRatio?: number): number; diff --git a/packages/metro/types/lib/bundleToString.d.ts b/packages/metro/types/lib/bundleToString.d.ts deleted file mode 100644 index aa3435b1ba..0000000000 --- a/packages/metro/types/lib/bundleToString.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<89a26e72bdd126e3feb0abc9b3186d33>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/lib/bundleToString.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {Bundle, BundleMetadata} from 'metro-runtime/src/modules/types'; -/** - * Serializes a bundle into a plain JS bundle. - */ -declare function bundleToString(bundle: Bundle): { - readonly code: string; - readonly metadata: BundleMetadata; -}; -export default bundleToString; diff --git a/packages/metro/types/lib/contextModule.d.ts b/packages/metro/types/lib/contextModule.d.ts deleted file mode 100644 index 803e09ac13..0000000000 --- a/packages/metro/types/lib/contextModule.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<742406027aa7f8ed4ff81272b8325505>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/lib/contextModule.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {ContextMode, RequireContextParams} from '../ModuleGraph/worker/collectDependencies'; - -export type RequireContext = Readonly<{ - recursive: boolean; - filter: RegExp; - /** Mode for resolving dynamic dependencies. Defaults to `sync` */ - mode: ContextMode; - /** Absolute path of the directory to search in */ - from: string; -}>; -/** Given a fully qualified require context, return a virtual file path that ensures uniqueness between paths with different contexts. */ -export declare function deriveAbsolutePathFromContext(from: string, context: RequireContextParams): string; -/** Match a file against a require context. */ -export declare function fileMatchesContext(testPath: string, context: RequireContext): boolean; diff --git a/packages/metro/types/lib/contextModuleTemplates.d.ts b/packages/metro/types/lib/contextModuleTemplates.d.ts deleted file mode 100644 index 220c612f75..0000000000 --- a/packages/metro/types/lib/contextModuleTemplates.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/lib/contextModuleTemplates.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {ContextMode} from '../ModuleGraph/worker/collectDependencies'; -/** - * Generate a context module as a virtual file string. - * - * @prop {ContextMode} mode indicates how the modules should be loaded. - * @prop {string} modulePath virtual file path for the virtual module. Example: `require.context('./src')` -> `'/path/to/project/src'`. - * @prop {string[]} files list of absolute file paths that must be exported from the context module. Example: `['/path/to/project/src/index.js']`. - * - * @returns a string representing a context module (virtual file contents). - */ -export declare function getContextModuleTemplate(mode: ContextMode, modulePath: string, files: string[]): string; diff --git a/packages/metro/types/lib/countLines.d.ts b/packages/metro/types/lib/countLines.d.ts deleted file mode 100644 index 7b059f6dbd..0000000000 --- a/packages/metro/types/lib/countLines.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/lib/countLines.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -declare function countLines(string: string): number; -export default countLines; diff --git a/packages/metro/types/lib/createWebsocketServer.d.ts b/packages/metro/types/lib/createWebsocketServer.d.ts deleted file mode 100644 index 504e48c9b9..0000000000 --- a/packages/metro/types/lib/createWebsocketServer.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/lib/createWebsocketServer.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import ws from 'ws'; - -type WebsocketServiceInterface = { - readonly onClientConnect: (url: string, sendFn: (data: string) => void) => Promise; - readonly onClientDisconnect?: (client: T) => unknown; - readonly onClientError?: (client: T, e: Error) => unknown; - readonly onClientMessage?: (client: T, message: string | Buffer | ArrayBuffer | Array, sendFn: (data: string) => void) => unknown; -}; -type HMROptions = { - websocketServer: WebsocketServiceInterface; -}; -/** - * Returns a WebSocketServer to be attached to an existing HTTP instance. It forwards - * the received events on the given "websocketServer" parameter. It must be an - * object with the following fields: - * - * - onClientConnect - * - onClientError - * - onClientMessage - * - onClientDisconnect - */ - -declare function createWebsocketServer($$PARAM_0$$: HMROptions): ws.Server; -export default createWebsocketServer; diff --git a/packages/metro/types/lib/debounceAsyncQueue.d.ts b/packages/metro/types/lib/debounceAsyncQueue.d.ts deleted file mode 100644 index 7a71cf744c..0000000000 --- a/packages/metro/types/lib/debounceAsyncQueue.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<3393b22da266c40b31527fb852b7c99c>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/lib/debounceAsyncQueue.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -declare function debounceAsyncQueue(fn: () => Promise, delay: number): () => Promise; -export default debounceAsyncQueue; diff --git a/packages/metro/types/lib/formatBundlingError.d.ts b/packages/metro/types/lib/formatBundlingError.d.ts deleted file mode 100644 index 1c0bb92668..0000000000 --- a/packages/metro/types/lib/formatBundlingError.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * 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. - * - * @noformat - * @generated SignedSource<<0c18118765a7730747fbadfd10e5d8f6>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/lib/formatBundlingError.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {FormattedError} from 'metro-runtime/src/modules/types'; - -export type CustomError = Error & { - readonly type?: string; - filename?: string; - lineNumber?: number; - errors?: Array<{ - description: string; - filename: string; - lineNumber: number; - }>; -}; -declare function formatBundlingError(error: CustomError): FormattedError; -export default formatBundlingError; diff --git a/packages/metro/types/lib/getAppendScripts.d.ts b/packages/metro/types/lib/getAppendScripts.d.ts deleted file mode 100644 index aa1b517b23..0000000000 --- a/packages/metro/types/lib/getAppendScripts.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<308e44ef8ddbcb661be2578c143f26bc>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/lib/getAppendScripts.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {Module} from '../DeltaBundler'; - -type Options = Readonly<{ - asyncRequireModulePath: string; - createModuleId: ($$PARAM_0$$: string) => T; - getRunModuleStatement: (moduleId: T, globalPrefix: string) => string; - globalPrefix: string; - inlineSourceMap: null | undefined | boolean; - runBeforeMainModule: ReadonlyArray; - runModule: boolean; - shouldAddToIgnoreList: ($$PARAM_0$$: Module) => boolean; - sourceMapUrl: null | undefined | string; - sourceUrl: null | undefined | string; - getSourceUrl: null | undefined | (($$PARAM_0$$: Module) => string); -}>; -declare function getAppendScripts(entryPoint: string, modules: ReadonlyArray, options: Options): ReadonlyArray; -export default getAppendScripts; diff --git a/packages/metro/types/lib/getGraphId.d.ts b/packages/metro/types/lib/getGraphId.d.ts deleted file mode 100644 index 3ac088ef92..0000000000 --- a/packages/metro/types/lib/getGraphId.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/lib/getGraphId.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {TransformInputOptions} from '../DeltaBundler/types'; -import type {ResolverInputOptions} from '../shared/types'; - -export declare type GraphId = string; -declare function getGraphId( - entryFile: string, - options: TransformInputOptions, - $$PARAM_2$$: Readonly<{ - shallow: boolean; - lazy: boolean; - unstable_allowRequireContext: boolean; - resolverOptions: ResolverInputOptions; - }>, -): GraphId; -export default getGraphId; diff --git a/packages/metro/types/lib/getPreludeCode.d.ts b/packages/metro/types/lib/getPreludeCode.d.ts deleted file mode 100644 index db40e398f2..0000000000 --- a/packages/metro/types/lib/getPreludeCode.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/lib/getPreludeCode.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -declare function getPreludeCode($$PARAM_0$$: { - readonly extraVars?: {[$$Key$$: string]: unknown}; - readonly isDev: boolean; - readonly globalPrefix: string; - readonly requireCycleIgnorePatterns: ReadonlyArray; - readonly unstable_forceFullRefreshPatterns: ReadonlyArray; -}): string; -export default getPreludeCode; diff --git a/packages/metro/types/lib/getPrependedScripts.d.ts b/packages/metro/types/lib/getPrependedScripts.d.ts deleted file mode 100644 index 58907c2142..0000000000 --- a/packages/metro/types/lib/getPrependedScripts.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/lib/getPrependedScripts.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type Bundler from '../Bundler'; -import type {Module, default as DeltaBundler} from '../DeltaBundler'; -import type {TransformInputOptions} from '../DeltaBundler/types'; -import type {ResolverInputOptions} from '../shared/types'; -import type {ConfigT} from 'metro-config'; - -declare function getPrependedScripts( - config: ConfigT, - options: Omit, - resolverOptions: ResolverInputOptions, - bundler: Bundler, - deltaBundler: DeltaBundler, -): Promise>; -export default getPrependedScripts; diff --git a/packages/metro/types/lib/isResolvedDependency.d.ts b/packages/metro/types/lib/isResolvedDependency.d.ts deleted file mode 100644 index 417e1f6c7b..0000000000 --- a/packages/metro/types/lib/isResolvedDependency.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/lib/isResolvedDependency.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {Dependency, ResolvedDependency} from '../DeltaBundler/types'; - -export declare function isResolvedDependency(dep: Dependency): dep is ResolvedDependency; diff --git a/packages/metro/types/lib/logToConsole.d.ts b/packages/metro/types/lib/logToConsole.d.ts deleted file mode 100644 index b97b7ccaac..0000000000 --- a/packages/metro/types/lib/logToConsole.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * 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. - * - * @noformat - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/lib/logToConsole.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {Terminal} from 'metro-core'; - -declare const $$EXPORT_DEFAULT_DECLARATION$$: (terminal: Terminal, level: string, ...data: Array) => void; -declare type $$EXPORT_DEFAULT_DECLARATION$$ = typeof $$EXPORT_DEFAULT_DECLARATION$$; -export default $$EXPORT_DEFAULT_DECLARATION$$; diff --git a/packages/metro/types/lib/parseBundleOptionsFromBundleRequestUrl.d.ts b/packages/metro/types/lib/parseBundleOptionsFromBundleRequestUrl.d.ts deleted file mode 100644 index be62439edd..0000000000 --- a/packages/metro/types/lib/parseBundleOptionsFromBundleRequestUrl.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/lib/parseBundleOptionsFromBundleRequestUrl.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {BundleOptions} from '../shared/types'; - -declare function parseBundleOptionsFromBundleRequestUrl(rawNonJscSafeUrlEncodedUrl: string, platforms: Set): Omit & {bundleType: string}; -export default parseBundleOptionsFromBundleRequestUrl; diff --git a/packages/metro/types/lib/parseCustomResolverOptions.d.ts b/packages/metro/types/lib/parseCustomResolverOptions.d.ts deleted file mode 100644 index 6d1c21e197..0000000000 --- a/packages/metro/types/lib/parseCustomResolverOptions.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/lib/parseCustomResolverOptions.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {CustomResolverOptions} from 'metro-resolver'; - -declare function parseCustomResolverOptions(searchParams: URLSearchParams): CustomResolverOptions; -export default parseCustomResolverOptions; diff --git a/packages/metro/types/lib/parseCustomTransformOptions.d.ts b/packages/metro/types/lib/parseCustomTransformOptions.d.ts deleted file mode 100644 index 98ac247e2d..0000000000 --- a/packages/metro/types/lib/parseCustomTransformOptions.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<91fabaafea5f0638b2c273e3087ef077>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/lib/parseCustomTransformOptions.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {CustomTransformOptions} from 'metro-transform-worker'; - -declare function parseCustomTransformOptions(searchParams: URLSearchParams): CustomTransformOptions; -export default parseCustomTransformOptions; diff --git a/packages/metro/types/lib/parseJsonBody.d.ts b/packages/metro/types/lib/parseJsonBody.d.ts deleted file mode 100644 index 5a656b8771..0000000000 --- a/packages/metro/types/lib/parseJsonBody.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<209b39c4ed4b1d1fb864533ac8c70ec3>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/lib/parseJsonBody.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {IncomingMessage} from 'node:http'; - -export type JsonData = {[$$Key$$: string]: JsonData} | Array | string | number | boolean | null; -/** - * Attempt to parse a request body as JSON. - */ -declare function parseJsonBody(req: IncomingMessage, options?: {strict?: boolean}): Promise; -export default parseJsonBody; diff --git a/packages/metro/types/lib/pathUtils.d.ts b/packages/metro/types/lib/pathUtils.d.ts deleted file mode 100644 index d1de201af3..0000000000 --- a/packages/metro/types/lib/pathUtils.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * 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. - * - * @noformat - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/lib/pathUtils.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -export declare const normalizePathSeparatorsToPosix: ($$PARAM_0$$: string) => string; -export declare type normalizePathSeparatorsToPosix = typeof normalizePathSeparatorsToPosix; diff --git a/packages/metro/types/lib/relativizeSourceMap.d.ts b/packages/metro/types/lib/relativizeSourceMap.d.ts deleted file mode 100644 index d3a0357295..0000000000 --- a/packages/metro/types/lib/relativizeSourceMap.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/lib/relativizeSourceMap.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {MixedSourceMap} from 'metro-source-map'; - -declare function relativizeSourceMapInline(sourceMap: MixedSourceMap, sourcesRoot: string): void; -export default relativizeSourceMapInline; diff --git a/packages/metro/types/lib/reporting.d.ts b/packages/metro/types/lib/reporting.d.ts deleted file mode 100644 index ce356ec0a9..0000000000 --- a/packages/metro/types/lib/reporting.d.ts +++ /dev/null @@ -1,115 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/lib/reporting.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {Terminal} from 'metro-core'; -import type {HealthCheckResult, WatcherStatus} from 'metro-file-map'; -import type {CustomResolverOptions} from 'metro-resolver'; -import type {CustomTransformOptions} from 'metro-transform-worker'; - -export type BundleDetails = { - bundleType: string; - customResolverOptions: CustomResolverOptions; - customTransformOptions: CustomTransformOptions; - dev: boolean; - entryFile: string; - minify: boolean; - platform: null | undefined | string; -}; -/** - * A tagged union of all the actions that may happen and we may want to - * report to the tool user. - */ -export type ReportableEvent = - | {port: number; hasReducedPerformance: boolean; type: 'initialize_started'} - | {type: 'initialize_failed'; port: number; error: Error} - | {type: 'initialize_done'; port: number} - | {buildID: string; type: 'bundle_build_done'} - | {buildID: string; type: 'bundle_build_failed'} - | {type: 'bundle_save_log'; message: string} - | { - buildID: string; - bundleDetails: BundleDetails; - isPrefetch?: boolean; - type: 'bundle_build_started'; - } - | {error: Error; type: 'bundling_error'} - | {type: 'dep_graph_loading'; hasReducedPerformance: boolean} - | {type: 'dep_graph_loaded'} - | { - buildID: string; - type: 'bundle_transform_progressed'; - transformedFileCount: number; - totalFileCount: number; - } - | {type: 'cache_read_error'; error: Error} - | {type: 'cache_write_error'; error: Error} - | {type: 'transform_cache_reset'} - | {type: 'worker_stdout_chunk'; chunk: string} - | {type: 'worker_stderr_chunk'; chunk: string} - | {type: 'hmr_client_error'; error: Error} - | { - type: 'client_log'; - level: 'trace' | 'info' | 'warn' | 'log' | 'group' | 'groupCollapsed' | 'groupEnd' | 'debug'; - data: Array; - } - | {type: 'resolver_warning'; message: string} - | {type: 'server_listening'; port: number; address: string; family: string} - | {type: 'transformer_load_started'} - | {type: 'transformer_load_done'} - | {type: 'transformer_load_failed'; error: Error} - | {type: 'watcher_health_check_result'; result: HealthCheckResult} - | {type: 'watcher_status'; status: WatcherStatus}; -/** - * Code across the application takes a reporter as an option and calls the - * update whenever one of the ReportableEvent happens. Code does not directly - * write to the standard output, because a build would be: - * - * 1. ad-hoc, embedded into another tool, in which case we do not want to - * pollute that tool's own output. The tool is free to present the - * warnings/progress we generate any way they want, by specifing a custom - * reporter. - * 2. run as a background process from another tool, in which case we want - * to expose updates in a way that is easily machine-readable, for example - * a JSON-stream. We don't want to pollute it with textual messages. - * - * We centralize terminal reporting into a single place because we want the - * output to be robust and consistent. The most common reporter is - * TerminalReporter, that should be the only place in the application should - * access the `terminal` module (nor the `console`). - */ -export type Reporter = {update(event: ReportableEvent): void}; -/** - * A standard way to log a warning to the terminal. This should not be called - * from some arbitrary Metro logic, only from the reporters. Instead of - * calling this, add a new type of ReportableEvent instead, and implement a - * proper handler in the reporter(s). - */ -export declare function logWarning(terminal: Terminal, format: string, ...args: Array): void; -/** - * Similar to `logWarning`, but for messages that require the user to act. - */ -export declare function logError(terminal: Terminal, format: string, ...args: Array): void; -/** - * Similar to `logWarning`, but for informational messages. - */ -export declare function logInfo(terminal: Terminal, format: string, ...args: Array): void; -/** - * A reporter that does nothing. Errors and warnings will be swallowed, that - * is generally not what you want. - */ -export declare const nullReporter: {update(): void}; -export declare type nullReporter = typeof nullReporter; diff --git a/packages/metro/types/lib/splitBundleOptions.d.ts b/packages/metro/types/lib/splitBundleOptions.d.ts deleted file mode 100644 index e9444a9a0f..0000000000 --- a/packages/metro/types/lib/splitBundleOptions.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/lib/splitBundleOptions.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {BundleOptions, SplitBundleOptions} from '../shared/types'; -/** - * Splits a BundleOptions object into smaller, more manageable parts. - */ -declare function splitBundleOptions(options: BundleOptions): SplitBundleOptions; -export default splitBundleOptions; diff --git a/packages/metro/types/lib/transformHelpers.d.ts b/packages/metro/types/lib/transformHelpers.d.ts deleted file mode 100644 index 6a404a922a..0000000000 --- a/packages/metro/types/lib/transformHelpers.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<27388cefc38bf3652ac17e24a200dcb1>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/lib/transformHelpers.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type Bundler from '../Bundler'; -import type {TransformFn, default as DeltaBundler} from '../DeltaBundler'; -import type {BundlerResolution, TransformInputOptions, TransformResultDependency} from '../DeltaBundler/types'; -import type {ResolverInputOptions} from '../shared/types'; -import type {ConfigT} from 'metro-config'; - -export declare function getTransformFn( - entryFiles: ReadonlyArray, - bundler: Bundler, - deltaBundler: DeltaBundler, - config: ConfigT, - options: TransformInputOptions, - resolverOptions: ResolverInputOptions, -): Promise; -export declare function getResolveDependencyFn( - bundler: Bundler, - platform: null | undefined | string, - resolverOptions: ResolverInputOptions, -): Promise<(from: string, dependency: TransformResultDependency) => BundlerResolution>; diff --git a/packages/metro/types/node-haste/DependencyGraph.d.ts b/packages/metro/types/node-haste/DependencyGraph.d.ts deleted file mode 100644 index c887241180..0000000000 --- a/packages/metro/types/node-haste/DependencyGraph.d.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<30d76234544ec70f02b4a784d55cd7af>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/node-haste/DependencyGraph.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {BundlerResolution, TransformResultDependency} from '../DeltaBundler/types'; -import type {ResolverInputOptions} from '../shared/types'; -import type {ConfigT} from 'metro-config'; - -import EventEmitter from 'node:events'; - -declare class DependencyGraph extends EventEmitter { - constructor( - config: ConfigT, - options?: { - readonly hasReducedPerformance?: boolean; - readonly watch?: boolean; - }, - ); - ready(): Promise; - getAllFiles(): Array; - /** - * Used when watcher.unstable_lazySha1 is true - */ - getOrComputeSha1(mixedPath: string): Promise<{content?: Buffer; sha1: string}>; - getWatcher(): EventEmitter; - end(): void; - /** Given a search context, return a list of file paths matching the query. */ - matchFilesWithContext(from: string, context: Readonly<{recursive: boolean; filter: RegExp}>): Iterable; - resolveDependency( - originModulePath: string, - dependency: TransformResultDependency, - platform: string | null, - resolverOptions: ResolverInputOptions, - $$PARAM_4$$?: {assumeFlatNodeModules: boolean}, - ): BundlerResolution; - doesFileExist: (filePath: string) => boolean; - getHasteName(filePath: string): string; - getDependencies(filePath: string): Array; -} -export default DependencyGraph; diff --git a/packages/metro/types/node-haste/DependencyGraph/ModuleResolution.d.ts b/packages/metro/types/node-haste/DependencyGraph/ModuleResolution.d.ts deleted file mode 100644 index 0036e31c5c..0000000000 --- a/packages/metro/types/node-haste/DependencyGraph/ModuleResolution.d.ts +++ /dev/null @@ -1,84 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<43a17be6ce381d721fd182d335d64e84>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/node-haste/DependencyGraph/ModuleResolution.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {BundlerResolution, TransformResultDependency} from '../../DeltaBundler/types'; -import type {Reporter} from '../../lib/reporting'; -import type {ResolverInputOptions} from '../../shared/types'; -import type {CustomResolver, DoesFileExist, FileSystemLookup, ResolveAsset} from 'metro-resolver'; -import type {PackageForModule, PackageJson} from 'metro-resolver/private/types'; - -export type DirExistsFn = (filePath: string) => boolean; -type Options = Readonly<{ - assetExts: ReadonlySet; - dirExists: DirExistsFn; - disableHierarchicalLookup: boolean; - doesFileExist: DoesFileExist; - emptyModulePath: string; - extraNodeModules: null | undefined | object; - fileSystemLookup: FileSystemLookup; - getHasteModulePath: (name: string, platform: null | undefined | string) => null | undefined | string; - getHastePackagePath: (name: string, platform: null | undefined | string) => null | undefined | string; - mainFields: ReadonlyArray; - getPackage: (packageJsonPath: string) => null | undefined | PackageJson; - getPackageForModule: (absolutePath: string) => null | undefined | PackageForModule; - nodeModulesPaths: ReadonlyArray; - preferNativePlatform: boolean; - projectRoot: string; - reporter: Reporter; - resolveAsset: ResolveAsset; - resolveRequest: null | undefined | CustomResolver; - sourceExts: ReadonlyArray; - unstable_conditionNames: ReadonlyArray; - unstable_conditionsByPlatform: Readonly<{ - [platform: string]: ReadonlyArray; - }>; - unstable_enablePackageExports: boolean; - unstable_incrementalResolution: boolean; -}>; -export declare class ModuleResolver { - constructor(options: Options); - resolveDependency(originModulePath: string, dependency: TransformResultDependency, allowHaste: boolean, platform: string | null, resolverOptions: ResolverInputOptions): BundlerResolution; -} -export declare class UnableToResolveError extends Error { - /** - * File path of the module that tried to require a module, ex. `/js/foo.js`. - */ - originModulePath: string; - /** - * The name of the module that was required, no necessarily a path, - * ex. `./bar`, or `invariant`. - */ - targetModuleName: string; - /** - * Original error that causes this error - */ - cause: null | undefined | Error; - /** - * Fixed type field in common with other Metro build errors. - */ - readonly type: 'UnableToResolveError'; - constructor( - originModulePath: string, - targetModuleName: string, - message: string, - options?: Readonly<{ - dependency?: null | undefined | TransformResultDependency; - cause?: Error; - }>, - ); - buildCodeFrameMessage(dependency: null | undefined | TransformResultDependency): null | undefined | string; -} diff --git a/packages/metro/types/node-haste/DependencyGraph/createFileMap.d.ts b/packages/metro/types/node-haste/DependencyGraph/createFileMap.d.ts deleted file mode 100644 index 756ad15de7..0000000000 --- a/packages/metro/types/node-haste/DependencyGraph/createFileMap.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/node-haste/DependencyGraph/createFileMap.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {ConfigT} from 'metro-config'; -import type {HasteMap} from 'metro-file-map'; - -import MetroFileMap, {DependencyPlugin} from 'metro-file-map'; - -declare function createFileMap( - config: ConfigT, - options?: Readonly<{ - extractDependencies?: boolean; - watch?: boolean; - throwOnModuleCollision?: boolean; - cacheFilePrefix?: string; - }>, -): { - fileMap: MetroFileMap; - hasteMap: HasteMap; - dependencyPlugin: null | undefined | DependencyPlugin; -}; -export default createFileMap; diff --git a/packages/metro/types/node-haste/PackageCache.d.ts b/packages/metro/types/node-haste/PackageCache.d.ts deleted file mode 100644 index 1b93dfad30..0000000000 --- a/packages/metro/types/node-haste/PackageCache.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/node-haste/PackageCache.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {PackageJson} from 'metro-resolver/private/types'; - -type GetClosestPackageFn = (absoluteFilePath: string) => null | undefined | {packageJsonPath: string; packageRelativePath: string}; -type PackageForModule = Readonly<{ - packageJson: PackageJson; - rootPath: string; - packageRelativePath: string; -}>; -export declare class PackageCache { - constructor(options: {getClosestPackage: GetClosestPackageFn}); - getPackage(filePath: string): Readonly<{rootPath: string; packageJson: PackageJson}>; - getPackageForModule(absoluteModulePath: string): null | undefined | PackageForModule; - invalidate(filePath: string): void; -} diff --git a/packages/metro/types/node-haste/lib/AssetPaths.d.ts b/packages/metro/types/node-haste/lib/AssetPaths.d.ts deleted file mode 100644 index 1c0af26f8e..0000000000 --- a/packages/metro/types/node-haste/lib/AssetPaths.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<4adbd3ce4f1290c6b7509072a8c0afd2>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/node-haste/lib/AssetPaths.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -export type AssetPath = { - assetName: string; - name: string; - platform: null | undefined | string; - resolution: number; - type: string; -}; -/** - * Return `null` if the `filePath` doesn't have a valid extension, required - * to describe the type of an asset. - */ -export declare function tryParse(filePath: string, platforms: ReadonlySet): null | undefined | AssetPath; -export declare function parse(filePath: string, platforms: ReadonlySet): AssetPath; diff --git a/packages/metro/types/node-haste/lib/parsePlatformFilePath.d.ts b/packages/metro/types/node-haste/lib/parsePlatformFilePath.d.ts deleted file mode 100644 index 6a3325284b..0000000000 --- a/packages/metro/types/node-haste/lib/parsePlatformFilePath.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<98249ae77c7e37e5f94c8235a071868f>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/node-haste/lib/parsePlatformFilePath.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -type PlatformFilePathParts = { - dirPath: string; - baseName: string; - platform: null | undefined | string; - extension: null | undefined | string; -}; -/** - * Extract the components of a file path that can have a platform specifier: Ex. - * `index.ios.js` is specific to the `ios` platform and has the extension `js`. - */ -declare function parsePlatformFilePath(filePath: string, platforms: ReadonlySet): PlatformFilePathParts; -export default parsePlatformFilePath; diff --git a/packages/metro/types/shared/output/RamBundle.d.ts b/packages/metro/types/shared/output/RamBundle.d.ts deleted file mode 100644 index 308cf5d156..0000000000 --- a/packages/metro/types/shared/output/RamBundle.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/shared/output/RamBundle.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {RamBundleInfo} from '../../DeltaBundler/Serializers/getRamBundleInfo'; -import type {OutputOptions, RequestOptions} from '../types'; - -import Server from '../../Server'; - -export declare function build(packagerClient: Server, requestOptions: RequestOptions): Promise; -export declare function save(bundle: RamBundleInfo, options: OutputOptions, log: (x: string) => void): Promise; -export declare const formatName: 'bundle'; -export declare type formatName = typeof formatName; diff --git a/packages/metro/types/shared/output/RamBundle/as-assets.d.ts b/packages/metro/types/shared/output/RamBundle/as-assets.d.ts deleted file mode 100644 index adddb0c6d3..0000000000 --- a/packages/metro/types/shared/output/RamBundle/as-assets.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<478ab7a9604901ec14e354b95c670a01>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/shared/output/RamBundle/as-assets.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {RamBundleInfo} from '../../../DeltaBundler/Serializers/getRamBundleInfo'; -import type {OutputOptions} from '../../types'; -/** - * Saves all JS modules of an app as single files - * The startup code (prelude, polyfills etc.) are written to the file - * designated by the `bundleOuput` option. - * All other modules go into a 'js-modules' folder that in the same parent - * directory as the startup file. - */ -declare function saveAsAssets(bundle: RamBundleInfo, options: OutputOptions, log: (...args: Array) => void): Promise; -export default saveAsAssets; diff --git a/packages/metro/types/shared/output/RamBundle/as-indexed-file.d.ts b/packages/metro/types/shared/output/RamBundle/as-indexed-file.d.ts deleted file mode 100644 index 7f7bfe2e73..0000000000 --- a/packages/metro/types/shared/output/RamBundle/as-indexed-file.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/shared/output/RamBundle/as-indexed-file.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {RamBundleInfo} from '../../../DeltaBundler/Serializers/getRamBundleInfo'; -import type {ModuleGroups, ModuleTransportLike, OutputOptions} from '../../types'; -/** - * Saves all JS modules of an app as a single file, separated with null bytes. - * The file begins with an offset table that contains module ids and their - * lengths/offsets. - * The module id for the startup code (prelude, polyfills etc.) is the - * empty string. - */ -export declare function save(bundle: RamBundleInfo, options: OutputOptions, log: (...args: Array) => void): Promise; -export declare function buildTableAndContents(startupCode: string, modules: ReadonlyArray, moduleGroups: ModuleGroups, encoding?: 'utf8' | 'utf16le' | 'ascii'): Array; -export declare function createModuleGroups(groups: Map>, modules: ReadonlyArray): ModuleGroups; diff --git a/packages/metro/types/shared/output/RamBundle/buildSourcemapWithMetadata.d.ts b/packages/metro/types/shared/output/RamBundle/buildSourcemapWithMetadata.d.ts deleted file mode 100644 index a9aec1ab08..0000000000 --- a/packages/metro/types/shared/output/RamBundle/buildSourcemapWithMetadata.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<29dbb4ae72dd9770f59bc70f28370686>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/shared/output/RamBundle/buildSourcemapWithMetadata.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {ModuleGroups, ModuleTransportLike} from '../../types'; -import type {IndexMap} from 'metro-source-map'; - -type Params = { - fixWrapperOffset: boolean; - lazyModules: ReadonlyArray; - moduleGroups: null | undefined | ModuleGroups; - startupModules: ReadonlyArray; -}; -declare const $$EXPORT_DEFAULT_DECLARATION$$: ($$PARAM_0$$: Params) => IndexMap; -declare type $$EXPORT_DEFAULT_DECLARATION$$ = typeof $$EXPORT_DEFAULT_DECLARATION$$; -export default $$EXPORT_DEFAULT_DECLARATION$$; diff --git a/packages/metro/types/shared/output/RamBundle/magic-number.d.ts b/packages/metro/types/shared/output/RamBundle/magic-number.d.ts deleted file mode 100644 index c5d091ef57..0000000000 --- a/packages/metro/types/shared/output/RamBundle/magic-number.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<24a7023cf7c68adf63e59eef41d6dcb3>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/shared/output/RamBundle/magic-number.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -declare const $$EXPORT_DEFAULT_DECLARATION$$: 0xfb0bd1e5; -declare type $$EXPORT_DEFAULT_DECLARATION$$ = typeof $$EXPORT_DEFAULT_DECLARATION$$; -export default $$EXPORT_DEFAULT_DECLARATION$$; diff --git a/packages/metro/types/shared/output/RamBundle/util.d.ts b/packages/metro/types/shared/output/RamBundle/util.d.ts deleted file mode 100644 index a72646302b..0000000000 --- a/packages/metro/types/shared/output/RamBundle/util.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<0902bf54a355f11f0f04cdaa5b0588d9>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/shared/output/RamBundle/util.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {ModuleGroups, ModuleTransportLike} from '../../types'; -import type {BasicSourceMap, IndexMap} from 'metro-source-map'; - -import countLines from '../../../lib/countLines'; - -declare function lineToLineSourceMap(source: string, filename?: string): BasicSourceMap; -type CombineOptions = {fixWrapperOffset: boolean}; -declare function combineSourceMaps(modules: ReadonlyArray, moduleGroups?: ModuleGroups, options?: null | undefined | CombineOptions): IndexMap; -declare function combineSourceMapsAddingOffsets( - modules: ReadonlyArray, - x_metro_module_paths: Array, - moduleGroups?: null | undefined | ModuleGroups, - options?: null | undefined | CombineOptions, -): IndexMap; -declare const joinModules: (modules: ReadonlyArray<{readonly code: string}>) => string; -export {combineSourceMaps, combineSourceMapsAddingOffsets, countLines, joinModules, lineToLineSourceMap}; diff --git a/packages/metro/types/shared/output/RamBundle/write-sourcemap.d.ts b/packages/metro/types/shared/output/RamBundle/write-sourcemap.d.ts deleted file mode 100644 index 89cf7c3d04..0000000000 --- a/packages/metro/types/shared/output/RamBundle/write-sourcemap.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<012256ba84cab6f440ac7663ddb2ce48>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/shared/output/RamBundle/write-sourcemap.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -declare function writeSourcemap(fileName: string, contents: string, log: (...args: Array) => void): Promise; -export default writeSourcemap; diff --git a/packages/metro/types/shared/output/bundle.d.ts b/packages/metro/types/shared/output/bundle.d.ts deleted file mode 100644 index 481252902d..0000000000 --- a/packages/metro/types/shared/output/bundle.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<23a067ad2286faaebd0e8afbb6e6ba02>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/shared/output/bundle.flow.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {AssetData} from '../../Assets'; -import type {BuildOptions, OutputOptions, RequestOptions} from '../types'; - -import Server from '../../Server'; - -export declare function build(packagerClient: Server, requestOptions: RequestOptions, buildOptions?: BuildOptions): Promise<{code: string; map: string; assets?: ReadonlyArray}>; -export declare function save(bundle: {code: string; map: string}, options: OutputOptions, log: ($$PARAM_0$$: string) => void): Promise; -export declare const formatName: 'bundle'; -export declare type formatName = typeof formatName; diff --git a/packages/metro/types/shared/output/meta.d.ts b/packages/metro/types/shared/output/meta.d.ts deleted file mode 100644 index 3afc407ae7..0000000000 --- a/packages/metro/types/shared/output/meta.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<43f035756b9c964c9ac5461adaa9a38e>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/shared/output/meta.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -declare function meta(code: Buffer | string, encoding?: 'ascii' | 'utf16le' | 'utf8'): Buffer; -export default meta; diff --git a/packages/metro/types/shared/output/unbundle.d.ts b/packages/metro/types/shared/output/unbundle.d.ts deleted file mode 100644 index 524f634f46..0000000000 --- a/packages/metro/types/shared/output/unbundle.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<12b27507f799c8170067738c227bb2f3>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/shared/output/unbundle.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -export * from './RamBundle'; diff --git a/packages/metro/types/shared/output/writeFile.d.ts b/packages/metro/types/shared/output/writeFile.d.ts deleted file mode 100644 index b0c9a4ed88..0000000000 --- a/packages/metro/types/shared/output/writeFile.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<82f089c2ca16d6724ba639289eea82c0>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/shared/output/writeFile.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -declare function writeFile(filePath: string, data: string | Buffer | Uint8Array, encoding?: string): Promise; -export default writeFile; diff --git a/packages/metro/types/shared/types.d.ts b/packages/metro/types/shared/types.d.ts deleted file mode 100644 index c79266edab..0000000000 --- a/packages/metro/types/shared/types.d.ts +++ /dev/null @@ -1,133 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<6d2429c6b34b624881402caa12117d34>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/metro/src/shared/types.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -import type {Options as DeltaBundlerOptions, TransformInputOptions} from '../DeltaBundler/types'; -import type {TransformProfile} from 'metro-babel-transformer'; -import type {CustomResolverOptions} from 'metro-resolver'; -import type {MetroSourceMapSegmentTuple, MixedSourceMap} from 'metro-source-map'; -import type {CustomTransformOptions, MinifierOptions} from 'metro-transform-worker'; - -type MetroSourceMapOrMappings = MixedSourceMap | Array; -export declare enum SourcePathsMode { - Absolute = 'absolute', - ServerUrl = 'url-server', -} -export declare namespace SourcePathsMode { - export function cast(value: string | null | undefined): SourcePathsMode; - export function isValid(value: string | null | undefined): value is SourcePathsMode; - export function members(): IterableIterator; - export function getName(value: SourcePathsMode): string; -} -export type ReadonlySourceLocation = Readonly<{ - start: Readonly<{line: number; column: number}>; - end: Readonly<{line: number; column: number}>; -}>; -export type BundleOptions = { - readonly customResolverOptions: CustomResolverOptions; - customTransformOptions: CustomTransformOptions; - dev: boolean; - entryFile: string; - readonly excludeSource: boolean; - readonly inlineSourceMap: boolean; - readonly lazy: boolean; - minify: boolean; - readonly modulesOnly: boolean; - onProgress: null | undefined | ((doneCont: number, totalCount: number) => unknown); - readonly platform: null | undefined | string; - readonly runModule: boolean; - readonly shallow: boolean; - sourceMapUrl: null | undefined | string; - sourceUrl: null | undefined | string; - createModuleIdFactory?: () => (path: string) => number; - readonly unstable_transformProfile: TransformProfile; - readonly sourcePaths: SourcePathsMode; -}; -export type BuildOptions = Readonly<{withAssets?: boolean}>; -export type ResolverInputOptions = Readonly<{ - customResolverOptions?: CustomResolverOptions; - dev: boolean; -}>; -export type SerializerOptions = { - readonly sourceMapUrl: null | undefined | string; - readonly sourceUrl: null | undefined | string; - readonly runModule: boolean; - readonly excludeSource: boolean; - readonly inlineSourceMap: boolean; - readonly modulesOnly: boolean; - readonly sourcePaths: SourcePathsMode; -}; -export type GraphOptions = { - readonly lazy: boolean; - readonly shallow: boolean; -}; -export type SplitBundleOptions = Readonly<{ - entryFile: string; - resolverOptions: ResolverInputOptions; - transformOptions: TransformInputOptions; - serializerOptions: SerializerOptions; - graphOptions: GraphOptions; - onProgress: DeltaBundlerOptions['onProgress']; -}>; -export type ModuleGroups = { - groups: Map>; - modulesById: Map; - modulesInGroups: Set; -}; -export type ModuleTransportLike = { - readonly code: string; - readonly id: number; - readonly map: null | undefined | MetroSourceMapOrMappings; - readonly name?: string; - readonly sourcePath: string; -}; -export type ModuleTransportLikeStrict = { - readonly code: string; - readonly id: number; - readonly map: null | undefined | MetroSourceMapOrMappings; - readonly name?: string; - readonly sourcePath: string; -}; -export type RamModuleTransport = Omit & {readonly source: string; readonly type: string}; -export type OutputOptions = { - bundleOutput: string; - bundleEncoding?: 'utf8' | 'utf16le' | 'ascii'; - dev?: boolean; - indexedRamBundle?: boolean; - platform: string; - sourcemapOutput?: string; - sourcemapSourcesRoot?: string; - sourcemapUseAbsolutePath?: boolean; -}; -type SafeOptionalProps = { - [K in keyof T]: T[K] extends void ? void | T[K] : T[K]; -}; -export type RequestOptions = Readonly< - SafeOptionalProps<{ - entryFile: string; - inlineSourceMap?: boolean; - sourceMapUrl?: string; - dev?: boolean; - minify: boolean; - platform: string; - createModuleIdFactory?: () => (path: string) => number; - onProgress?: (transformedFileCount: number, totalFileCount: number) => void; - customResolverOptions?: CustomResolverOptions; - customTransformOptions?: CustomTransformOptions; - unstable_transformProfile?: TransformProfile; - }> ->; -export type {MinifierOptions}; diff --git a/packages/ob1/API.md b/packages/ob1/API.md new file mode 100644 index 0000000000..e7780f1afb --- /dev/null +++ b/packages/ob1/API.md @@ -0,0 +1,29 @@ +## API Report File for "ob1" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +export function add(a: number, b: number): number; + +export function add0(x: number): Number0; + +export function add1(x: Number0 | number): Number1; + +export function get0(x: number): number; + +export function get1(x: number): number; + +export function inc(x: number): number; + +export function neg(x: Number0): Number0; + +export type Number0 = symbol & {__Number0__: string}; + +export type Number1 = symbol & {__Number1__: string}; + +export function sub(a: number, b: number): number; + +export function sub1(x: Number1): Number0; + +``` diff --git a/packages/ob1/types/ob1.d.ts b/packages/ob1/types/ob1.d.ts deleted file mode 100644 index 334841a6ca..0000000000 --- a/packages/ob1/types/ob1.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * 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. - * - * @noformat - * @oncall react_native - * @generated SignedSource<<60dfc45cb0b1c5cfcb0b454c7539e9c9>> - * - * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js - * Original file: packages/ob1/src/ob1.js - * To regenerate, run: - * js1 build metro-ts-defs (internal) OR - * yarn run build-ts-defs (OSS) - */ - -export declare type Number0 = symbol & {__Number0__: string}; -export declare type Number1 = symbol & {__Number1__: string}; -export declare function add(a: number, b: number): number; -export declare function sub(a: number, b: number): number; -export declare function get0(x: number): number; -export declare function get1(x: number): number; -export declare function add1(x: Number0 | number): Number1; -export declare function sub1(x: Number1): Number0; -export declare function neg(x: Number0): Number0; -export declare function add0(x: number): Number0; -export declare function inc(x: number): number; diff --git a/scripts/__tests__/ts-defs-sync-test.js b/scripts/__tests__/api-snapshots-sync-test.js similarity index 51% rename from scripts/__tests__/ts-defs-sync-test.js rename to scripts/__tests__/api-snapshots-sync-test.js index 599f99fe86..84fcc484d3 100644 --- a/scripts/__tests__/ts-defs-sync-test.js +++ b/scripts/__tests__/api-snapshots-sync-test.js @@ -9,23 +9,20 @@ * @oncall react_native */ -import { - AUTO_GENERATED_PATTERNS, - generateTsDefsForJsGlobs, -} from '../generateTypeScriptDefinitions'; +import {generateApiSnapshots} from '../generateApiSnapshots'; -test('TypeScript defs are in sync (yarn run build-ts-defs produces no changes)', async () => { +test('Public API snapshots are in sync (yarn run build-api-snapshots produces no changes)', async () => { let error; try { - await generateTsDefsForJsGlobs(AUTO_GENERATED_PATTERNS, {verifyOnly: true}); + await generateApiSnapshots({verifyOnly: true}); } catch (e) { error = e; } - // If this is the usual type of error (issues with specific source files), - // have Jest print the errors array so logs are a bit more helpful. - // **If this fails, run `js1 build metro-ts-defs` (FB) / `yarn run build-ts-defs` (OSS)** + // If this is the usual type of error (a stale snapshot), have Jest print the + // errors array so logs are a bit more helpful. + // **If this fails, run `js1 build metro-ts-defs` (FB) / `yarn run build-api-snapshots` (OSS)** if (error instanceof AggregateError) { expect(error.errors).toEqual([]); } expect(error).toBeUndefined(); -}, 60000); +}, 120000); diff --git a/scripts/generateApiSnapshots.js b/scripts/generateApiSnapshots.js new file mode 100644 index 0000000000..4bd7d1db19 --- /dev/null +++ b/scripts/generateApiSnapshots.js @@ -0,0 +1,423 @@ +/** + * 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. + * + * @flow strict-local + * @format + * @oncall react_native + */ + +'use strict'; + +import { + AUTO_GENERATED_PATTERNS, + generateTsDefsForJsGlobs, +} from './generateTypeScriptDefinitions'; +import {Extractor, ExtractorConfig} from '@microsoft/api-extractor'; +import fs from 'node:fs'; +import os from 'node:os'; +import path from 'node:path'; + +const WORKSPACE_ROOT = path.resolve(__dirname, '..'); +const PACKAGES_DIR = path.join(WORKSPACE_ROOT, 'packages'); +// Extraction-only tsconfig (adds the "dom" lib on top of the project config). +const TSCONFIG_PATH = path.join(WORKSPACE_ROOT, 'tsconfig.api-extractor.json'); + +// Committed public API snapshot file, written at each package's root. One +// report is generated per public entry point. +const SNAPSHOT_FILENAME = 'API.md'; + +// package.json exports subpaths that never describe a public, type-generated +// entry point and are therefore excluded from snapshotting. +const NON_API_EXPORT_KEYS = new Set(['./package.json']); + +// A package.json `exports` field: either a single module path, or a map of +// subpath to target. Targets are untyped in package.json, so they're modelled +// as `mixed` and narrowed at read time (see `resolveExportTarget`). +type ExportsMap = {readonly [subpath: string]: unknown, ...}; +type ExportsField = string | ExportsMap; + +type EntryPoint = { + // Committed snapshot file name, relative to the package root (e.g. + // `API.md`). + outputFileName: string, + // Scratch report file name handed to API Extractor (e.g. + // `metro-core.api.md`), unique per entry point so reports can share one + // temp folder. + tempReportFileName: string, + // Absolute path to the generated `.d.ts` for this entry point. + dtsPath: string, + // The exports subpath this entry point corresponds to, for diagnostics. + exportKey: string, +}; + +function readJson(filePath: string): {[string]: unknown, ...} { + return JSON.parse(fs.readFileSync(filePath, 'utf-8')); +} + +function unscopedName(packageName: string): string { + return packageName.replace(/^@[^/]+\//, ''); +} + +// Resolve the exports target for a subpath to a single module path string, +// unwrapping conditional exports (picking a plain "." / "default" / first). +function resolveExportTarget(value: unknown): ?string { + if (typeof value === 'string') { + return value; + } + if (value == null || typeof value !== 'object') { + return null; + } + const resolved = + value.import ?? value.default ?? value.require ?? Object.values(value)[0]; + return typeof resolved === 'string' ? resolved : null; +} + +// Whether a `.d.ts` declares any exports. API Extractor treats a declaration +// file with no exports as a non-module and errors out, so such entry points +// (e.g. CLI-only packages) are skipped rather than snapshotted. +function hasExports(dtsPath: string): boolean { + const source = fs.readFileSync(dtsPath, 'utf-8'); + return /^\s*export[\s{*=]/m.test(source); +} + +// Map a `./src/.js` exports target to its generated `types/.d.ts`. +function sourceTargetToDts(packageDir: string, target: string): ?string { + const match = /^\.\/src\/(.+)\.js$/.exec(target); + if (match == null) { + return null; + } + return path.join(packageDir, 'types', match[1] + '.d.ts'); +} + +// Committed snapshot file name for an entry point, written at the package +// root. The main entry is `API.md`; secondary subpaths are suffixed, e.g. +// `API-.md`. +function outputFileNameFor(exportKey: string): string { + if (exportKey === '.') { + return SNAPSHOT_FILENAME; + } + const suffix = exportKey.replace(/^\.\//, '').replace(/\//g, '-'); + return `API-${suffix}.md`; +} + +// Unique scratch report name handed to API Extractor, derived from the package +// name and exports subpath so all reports can share a single temp folder. +function tempReportFileNameFor(packageName: string, exportKey: string): string { + const base = unscopedName(packageName); + if (exportKey === '.') { + return `${base}.api.md`; + } + const suffix = exportKey.replace(/^\.\//, '').replace(/\//g, '-'); + return `${base}-${suffix}.api.md`; +} + +// Collect the public entry points for a package from its `exports` field. +// Wildcard, `./package.json`, and non-`./src/*.js` targets are excluded, as +// are entry points whose `.d.ts` has not been generated (e.g. runtime-only +// modules) — those are returned separately as `skipped`. +function collectEntryPoints( + packageDir: string, + packageJson: {[string]: unknown, ...}, +): {entryPoints: Array, skipped: Array} { + const packageName = String(packageJson.name); + // `packageJson.exports` is typed as `unknown`; narrow with `typeof` before + // casting so the shape is validated at runtime rather than waved through. + const rawExports = packageJson.exports; + const exportsField: ?ExportsField = + typeof rawExports === 'string' + ? rawExports + : typeof rawExports === 'object' && rawExports != null + ? (rawExports as ExportsMap) + : null; + const entryPoints: Array = []; + const skipped: Array = []; + + if (exportsField == null) { + return {entryPoints, skipped}; + } + + const entries: Array<[string, unknown]> = + typeof exportsField === 'string' + ? [['.', exportsField]] + : Object.entries(exportsField); + + for (const [exportKey, rawValue] of entries) { + if (NON_API_EXPORT_KEYS.has(exportKey) || exportKey.includes('*')) { + continue; + } + const target = resolveExportTarget(rawValue); + if (target == null) { + continue; + } + const dtsPath = sourceTargetToDts(packageDir, target); + if (dtsPath == null) { + // A public entry point whose target isn't a `./src/.js` module (e.g. + // `./src/foo.mjs`, `./lib/foo.js`, or a bare specifier), so we can't map + // it to a generated `.d.ts`. Record it so misconfigured exports surface + // in the summary rather than being silently dropped. + skipped.push( + `${packageName} "${exportKey}" (unsupported exports target "${target}")`, + ); + continue; + } + if (!fs.existsSync(dtsPath)) { + // A public entry point without generated types (e.g. metro-runtime's + // runtime-only modules). Record it so the summary can surface it. + skipped.push( + `${packageName} "${exportKey}" (no ${path.relative(WORKSPACE_ROOT, dtsPath)})`, + ); + continue; + } + if (!hasExports(dtsPath)) { + // A public entry point with no exported API surface (e.g. a CLI-only + // package). There is nothing to snapshot. + skipped.push(`${packageName} "${exportKey}" (no exported API surface)`); + continue; + } + entryPoints.push({ + outputFileName: outputFileNameFor(exportKey), + tempReportFileName: tempReportFileNameFor(packageName, exportKey), + dtsPath, + exportKey, + }); + } + + return {entryPoints, skipped}; +} + +// Post-process an API Extractor report into a committed snapshot. API Extractor +// tags every export with a release tag and flags the absence of TSDoc, but +// Metro's public surface is documented by its Flow types rather than TSDoc, so +// those annotations are pure noise. There is no config option to suppress them +// (they are hardcoded in API Extractor's ApiReportGenerator), so we strip them +// here: `(undocumented)` markers, the release-tag comment lines (`// @public` +// etc.), and the missing-`@packageDocumentation` notice, then collapse the +// blank lines left behind. +function cleanReport(report: string): string { + const result: Array = []; + for (const raw of report.split('\n')) { + const rawTrimmed = raw.trim(); + // Drop standalone `(undocumented)` markers and the missing-packageDoc + // notice entirely. (Checked before the inline strip below, which would + // otherwise reduce `// (undocumented)` to a bare `//`.) + if ( + rawTrimmed === '// (undocumented)' || + rawTrimmed === '// (No @packageDocumentation comment for this package)' + ) { + continue; + } + + // Normalize inline `(undocumented)` suffixes (e.g. `// @public + // (undocumented)` becomes `// @public`). + let line = raw.replace(/ \(undocumented\)/g, ''); + + // Strip the release-tag token from AEDoc comment lines, preserving any + // other modifiers (e.g. `// @public @deprecated` becomes `// @deprecated`). + const tagMatch = line.match( + /^(\s*)\/\/ @(?:public|beta|alpha|internal)\b ?(.*)$/, + ); + if (tagMatch != null) { + const rest = tagMatch[2].trim(); + if (rest === '') { + // Nothing but the release tag — drop the whole comment line. + continue; + } + line = `${tagMatch[1]}// ${rest}`; + } + + // Collapse runs of blank lines left by the removals above. + if (line.trim() === '' && result[result.length - 1]?.trim() === '') { + continue; + } + result.push(line); + } + return result.join('\n'); +} + +// Run API Extractor for a single entry point and return its report text. The +// report is written to (and read back from) a scratch folder; the caller owns +// writing it to its committed location so we control the file name, path, and +// post-processing. +function runExtractor( + packageDir: string, + packageJsonPath: string, + entryPoint: EntryPoint, + tempFolder: string, +): {succeeded: boolean, report: string} { + const configObject = { + projectFolder: packageDir, + mainEntryPointFilePath: entryPoint.dtsPath, + // Emit unix line endings to match repo conventions. + newlineKind: 'lf', + compiler: {tsconfigFilePath: TSCONFIG_PATH}, + apiReport: { + enabled: true, + reportFolder: tempFolder, + reportFileName: entryPoint.tempReportFileName, + reportTempFolder: tempFolder, + }, + docModel: {enabled: false}, + dtsRollup: {enabled: false}, + tsdocMetadata: {enabled: false}, + // Keep snapshots focused on the API surface, not on lint-style advice. + messages: { + extractorMessageReporting: { + default: {logLevel: 'none', addToApiReportFile: false}, + }, + compilerMessageReporting: {default: {logLevel: 'none'}}, + tsdocMessageReporting: {default: {logLevel: 'none'}}, + }, + }; + + const extractorConfig = ExtractorConfig.prepare({ + configObject, + configObjectFullPath: path.join(packageDir, 'api-extractor.json'), + packageJsonFullPath: packageJsonPath, + }); + + // Always write to the scratch folder (localBuild); the caller diffs/commits + // the result itself. + const result = Extractor.invoke(extractorConfig, { + localBuild: true, + showVerboseMessages: false, + showDiagnostics: false, + }); + + const report = fs.readFileSync( + path.join(tempFolder, entryPoint.tempReportFileName), + 'utf-8', + ); + + return {succeeded: result.succeeded, report}; +} + +export async function generateApiSnapshots( + opts: Readonly<{verifyOnly: boolean}> = {verifyOnly: false}, +): Promise { + const {verifyOnly} = opts; + + // The `.d.ts` files that feed API Extractor are build artifacts and are not + // checked in. Regenerate them from the current Flow sources (always in write + // mode, even when only verifying snapshots) so the extracted API reflects the + // working tree. This is what lets a private-API change require no committed + // output while a public-API change surfaces as a snapshot diff. + await generateTsDefsForJsGlobs(AUTO_GENERATED_PATTERNS, {verifyOnly: false}); + + const errors: Array<{context: string, error: Error}> = []; + const allSkipped: Array = []; + let generatedCount = 0; + + const tempFolder = fs.mkdtempSync( + path.join(os.tmpdir(), 'metro-api-snapshots-'), + ); + + try { + const packageDirs = fs + .readdirSync(PACKAGES_DIR) + .map(name => path.join(PACKAGES_DIR, name)) + .filter(dir => fs.lstatSync(dir).isDirectory()); + + for (const packageDir of packageDirs) { + const packageJsonPath = path.join(packageDir, 'package.json'); + if (!fs.existsSync(packageJsonPath)) { + continue; + } + const packageJson = readJson(packageJsonPath); + const {entryPoints, skipped} = collectEntryPoints( + packageDir, + packageJson, + ); + allSkipped.push(...skipped); + + if (entryPoints.length === 0) { + continue; + } + + for (const entryPoint of entryPoints) { + const context = `${String(packageJson.name)} (${entryPoint.exportKey})`; + try { + const {succeeded, report} = runExtractor( + packageDir, + packageJsonPath, + entryPoint, + tempFolder, + ); + if (!succeeded) { + errors.push({ + context, + error: new Error('API Extractor reported errors'), + }); + continue; + } + + const snapshot = cleanReport(report); + const outputPath = path.join(packageDir, entryPoint.outputFileName); + + if (verifyOnly) { + let existing = null; + try { + existing = fs.readFileSync(outputPath, 'utf-8'); + } catch {} + if (existing !== snapshot) { + errors.push({ + context, + error: new Error( + `Public API snapshot ${entryPoint.outputFileName} is out ` + + 'of date. Run `js1 build metro-ts-defs` (internal) or ' + + '`yarn run build-api-snapshots` (OSS) to update it.', + ), + }); + } + // Count every processed entry point so the summary reflects the + // total number of snapshots verified, not just those already up to + // date. + generatedCount++; + } else { + fs.writeFileSync(outputPath, snapshot); + generatedCount++; + } + } catch (error) { + errors.push({context, error}); + } + } + } + } finally { + fs.rmSync(tempFolder, {recursive: true, force: true}); + } + + if (allSkipped.length > 0) { + console.warn( + 'Skipped public entry points without generated TypeScript ' + + `definitions:\n ${allSkipped.join('\n ')}`, + ); + } + + const verb = verifyOnly ? 'Verified' : 'Generated'; + process.stdout.write( + `${verb} ${generatedCount} public API snapshot(s) across Metro's OSS ` + + 'packages.\n', + ); + + if (errors.length > 0) { + errors.sort((a, b) => a.context.localeCompare(b.context)); + throw new AggregateError( + errors.map(({context, error}) => { + error.message = `${context}: ${error.message}`; + return error; + }), + 'Errors encountered while generating public API snapshots', + ); + } +} + +// When run as a script, generate (or, with --verify, verify) all snapshots. +if (require.main === module) { + const verifyOnly = process.argv.includes('--verify'); + generateApiSnapshots({verifyOnly}).catch(error => { + process.exitCode = 1; + console.error(error); + }); +} diff --git a/tsconfig.api-extractor.json b/tsconfig.api-extractor.json new file mode 100644 index 0000000000..25413e3258 --- /dev/null +++ b/tsconfig.api-extractor.json @@ -0,0 +1,11 @@ +{ + // TypeScript configuration used only by scripts/generateApiSnapshots.js. + // It mirrors the project tsconfig but adds the "dom" lib: API Extractor + // cannot follow ambient globals such as URLSearchParams when they resolve + // through @types/node, but treats them as built-ins when they come from a + // standard lib. This does not affect `tsc`/`flow` typechecking. + "extends": "./tsconfig.json", + "compilerOptions": { + "lib": ["es2023", "dom"] + } +} diff --git a/yarn.lock b/yarn.lock index 00249b51a8..396f73c75b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7,34 +7,34 @@ resolved "https://registry.yarnpkg.com/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz#bd9154aec9983f77b3a034ecaa015c2e4201f6cf" integrity sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA== -"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.16.0", "@babel/code-frame@^7.27.1", "@babel/code-frame@^7.28.6", "@babel/code-frame@^7.29.0": - version "7.29.0" - resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.29.0.tgz#7cd7a59f15b3cc0dcd803038f7792712a7d0b15c" - integrity sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw== +"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.16.0", "@babel/code-frame@^7.29.0", "@babel/code-frame@^7.29.7": + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.29.7.tgz#f2fbbfea87c44a21590ec515b778b2c26d8866e7" + integrity sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw== dependencies: - "@babel/helper-validator-identifier" "^7.28.5" + "@babel/helper-validator-identifier" "^7.29.7" js-tokens "^4.0.0" picocolors "^1.1.1" -"@babel/compat-data@^7.22.6", "@babel/compat-data@^7.27.2": - version "7.28.0" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.28.0.tgz#9fc6fd58c2a6a15243cd13983224968392070790" - integrity sha512-60X7qkglvrap8mn1lh2ebxXdZYtUcpd7gsmy9kLaBJ4i/WdY8PqTSdxyA8qraikqKQK5C1KRBKXqznrVapyNaw== - -"@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.24.7", "@babel/core@^7.25.2": - version "7.28.5" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.28.5.tgz#4c81b35e51e1b734f510c99b07dfbc7bbbb48f7e" - integrity sha512-e7jT4DxYvIDLk1ZHmU/m/mB19rex9sv0c2ftBtjSBv+kVM/902eh0fINUzD7UwLLNR+jU585GxUJ8/EBfAM5fw== - dependencies: - "@babel/code-frame" "^7.27.1" - "@babel/generator" "^7.28.5" - "@babel/helper-compilation-targets" "^7.27.2" - "@babel/helper-module-transforms" "^7.28.3" - "@babel/helpers" "^7.28.4" - "@babel/parser" "^7.28.5" - "@babel/template" "^7.27.2" - "@babel/traverse" "^7.28.5" - "@babel/types" "^7.28.5" +"@babel/compat-data@^7.28.6", "@babel/compat-data@^7.29.7": + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.29.7.tgz#6f0237f0f36d2e51c0570a636faed9d2d0efe629" + integrity sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg== + +"@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.23.9", "@babel/core@^7.24.7", "@babel/core@^7.25.2": + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.29.7.tgz#80c10b17248082968b57a857b91640971f2070f7" + integrity sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA== + dependencies: + "@babel/code-frame" "^7.29.7" + "@babel/generator" "^7.29.7" + "@babel/helper-compilation-targets" "^7.29.7" + "@babel/helper-module-transforms" "^7.29.7" + "@babel/helpers" "^7.29.7" + "@babel/parser" "^7.29.7" + "@babel/template" "^7.29.7" + "@babel/traverse" "^7.29.7" + "@babel/types" "^7.29.7" "@jridgewell/remapping" "^2.3.5" convert-source-map "^2.0.0" debug "^4.1.0" @@ -42,197 +42,181 @@ json5 "^2.2.3" semver "^6.3.1" -"@babel/generator@^7.28.5", "@babel/generator@^7.29.0", "@babel/generator@^7.29.1", "@babel/generator@^7.4.0", "@babel/generator@^7.7.2": - version "7.29.1" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.29.1.tgz#d09876290111abbb00ef962a7b83a5307fba0d50" - integrity sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw== +"@babel/generator@^7.29.1", "@babel/generator@^7.29.7", "@babel/generator@^7.4.0", "@babel/generator@^7.7.2": + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.29.7.tgz#cca0b8827e6bcf3ba176788e7f3b180ad6db2fa3" + integrity sha512-DkXD5OJQaAQIdZ1bt3UZdEnHAn9Imd3IVBdX03UFe+ony9Ojw5pzr9YVKGDY1jt+Gcn/FnGkNf8r+Vj5NOJWtQ== dependencies: - "@babel/parser" "^7.29.0" - "@babel/types" "^7.29.0" + "@babel/parser" "^7.29.7" + "@babel/types" "^7.29.7" "@jridgewell/gen-mapping" "^0.3.12" "@jridgewell/trace-mapping" "^0.3.28" jsesc "^3.0.2" -"@babel/helper-annotate-as-pure@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.25.9.tgz#d8eac4d2dc0d7b6e11fa6e535332e0d3184f06b4" - integrity sha512-gv7320KBUFJz1RnylIg5WWYPRXKZ884AGkYpgpWW02TH66Dl+HaC1t1CKd0z3R4b6hdYEcmrNZHUmfCP+1u3/g== +"@babel/helper-annotate-as-pure@^7.29.7": + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.29.7.tgz#c70fe3c6ecbdc3fd2dd1b0f498428b88b82ce47f" + integrity sha512-OoK6239jHPuSQOoS0kfTVKn0b/rVTk0seKq4Gd2UMLtmOVLjDC0ki3e+c90Trqv2gMfvJFqkiljrr568+qddiw== dependencies: - "@babel/types" "^7.25.9" + "@babel/types" "^7.29.7" -"@babel/helper-compilation-targets@^7.22.6", "@babel/helper-compilation-targets@^7.25.9", "@babel/helper-compilation-targets@^7.27.2": - version "7.27.2" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.2.tgz#46a0f6efab808d51d29ce96858dd10ce8732733d" - integrity sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ== +"@babel/helper-compilation-targets@^7.28.6", "@babel/helper-compilation-targets@^7.29.7": + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.7.tgz#7a1def704302401c47f64fa85589e974ae217042" + integrity sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g== dependencies: - "@babel/compat-data" "^7.27.2" - "@babel/helper-validator-option" "^7.27.1" + "@babel/compat-data" "^7.29.7" + "@babel/helper-validator-option" "^7.29.7" browserslist "^4.24.0" lru-cache "^5.1.1" semver "^6.3.1" -"@babel/helper-create-class-features-plugin@^7.25.9": - version "7.26.9" - resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.26.9.tgz#d6f83e3039547fbb39967e78043cd3c8b7820c71" - integrity sha512-ubbUqCofvxPRurw5L8WTsCLSkQiVpov4Qx0WMA+jUN+nXBK8ADPlJO1grkFw5CWKC5+sZSOfuGMdX1aI1iT9Sg== - dependencies: - "@babel/helper-annotate-as-pure" "^7.25.9" - "@babel/helper-member-expression-to-functions" "^7.25.9" - "@babel/helper-optimise-call-expression" "^7.25.9" - "@babel/helper-replace-supers" "^7.26.5" - "@babel/helper-skip-transparent-expression-wrappers" "^7.25.9" - "@babel/traverse" "^7.26.9" +"@babel/helper-create-class-features-plugin@^7.29.7": + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.29.7.tgz#6eddf286f2ec418f740c91d60a83347c55838ddd" + integrity sha512-IY3ZD9Tmooqr3TUhc3DUWxiuo8xx1DWLhd5M7hQ+ZWJamqM2BbalrBJb2MisSLoYorOj75U03qULCxQTY9r3hg== + dependencies: + "@babel/helper-annotate-as-pure" "^7.29.7" + "@babel/helper-member-expression-to-functions" "^7.29.7" + "@babel/helper-optimise-call-expression" "^7.29.7" + "@babel/helper-replace-supers" "^7.29.7" + "@babel/helper-skip-transparent-expression-wrappers" "^7.29.7" + "@babel/traverse" "^7.29.7" semver "^6.3.1" -"@babel/helper-create-regexp-features-plugin@^7.25.9": - version "7.26.3" - resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.26.3.tgz#5169756ecbe1d95f7866b90bb555b022595302a0" - integrity sha512-G7ZRb40uUgdKOQqPLjfD12ZmGA54PzqDFUv2BKImnC9QIfGhIHKvVML0oN8IUiDq4iRqpq74ABpvOaerfWdong== +"@babel/helper-create-regexp-features-plugin@^7.29.7": + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.29.7.tgz#5d4c3f928f315cf6c4184ea2fc3b5b38745b2430" + integrity sha512-907Uymvqgg1dwUA+7IGwFAOSYzQOuzPXKNJ1yxzwPffzkYFg2q2eHi1fIOs6sXkG9NbIUMunnUlkYsfRFNvomg== dependencies: - "@babel/helper-annotate-as-pure" "^7.25.9" - regexpu-core "^6.2.0" + "@babel/helper-annotate-as-pure" "^7.29.7" + regexpu-core "^6.3.1" semver "^6.3.1" -"@babel/helper-define-polyfill-provider@^0.6.2": - version "0.6.3" - resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.3.tgz#f4f2792fae2ef382074bc2d713522cf24e6ddb21" - integrity sha512-HK7Bi+Hj6H+VTHA3ZvBis7V/6hu9QuTrnMXNybfUf2iiuU/N97I8VjB+KbhFF8Rld/Lx5MzoCwPCpPjfK+n8Cg== +"@babel/helper-define-polyfill-provider@^0.6.5", "@babel/helper-define-polyfill-provider@^0.6.8": + version "0.6.8" + resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.8.tgz#cf1e4462b613f2b54c41e6ff758d5dfcaa2c85d1" + integrity sha512-47UwBLPpQi1NoWzLuHNjRoHlYXMwIJoBf7MFou6viC/sIHWYygpvr0B6IAyh5sBdA2nr2LPIRww8lfaUVQINBA== dependencies: - "@babel/helper-compilation-targets" "^7.22.6" - "@babel/helper-plugin-utils" "^7.22.5" - debug "^4.1.1" - lodash.debounce "^4.0.8" - resolve "^1.14.2" - -"@babel/helper-define-polyfill-provider@^0.6.3": - version "0.6.5" - resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.5.tgz#742ccf1cb003c07b48859fc9fa2c1bbe40e5f753" - integrity sha512-uJnGFcPsWQK8fvjgGP5LZUZZsYGIoPeRjSF5PGwrelYgq7Q15/Ft9NGFp1zglwgIv//W0uG4BevRuSJRyylZPg== - dependencies: - "@babel/helper-compilation-targets" "^7.27.2" - "@babel/helper-plugin-utils" "^7.27.1" - debug "^4.4.1" + "@babel/helper-compilation-targets" "^7.28.6" + "@babel/helper-plugin-utils" "^7.28.6" + debug "^4.4.3" lodash.debounce "^4.0.8" - resolve "^1.22.10" - -"@babel/helper-globals@^7.28.0": - version "7.28.0" - resolved "https://registry.yarnpkg.com/@babel/helper-globals/-/helper-globals-7.28.0.tgz#b9430df2aa4e17bc28665eadeae8aa1d985e6674" - integrity sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw== - -"@babel/helper-member-expression-to-functions@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.25.9.tgz#9dfffe46f727005a5ea29051ac835fb735e4c1a3" - integrity sha512-wbfdZ9w5vk0C0oyHqAJbc62+vet5prjj01jjJ8sKn3j9h3MQQlflEdXYvuqRWjHnM12coDEqiC1IRCi0U/EKwQ== - dependencies: - "@babel/traverse" "^7.25.9" - "@babel/types" "^7.25.9" - -"@babel/helper-module-imports@^7.25.9", "@babel/helper-module-imports@^7.27.1": - version "7.27.1" - resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.27.1.tgz#7ef769a323e2655e126673bb6d2d6913bbead204" - integrity sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w== - dependencies: - "@babel/traverse" "^7.27.1" - "@babel/types" "^7.27.1" - -"@babel/helper-module-transforms@^7.26.0", "@babel/helper-module-transforms@^7.28.3": - version "7.28.3" - resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.28.3.tgz#a2b37d3da3b2344fe085dab234426f2b9a2fa5f6" - integrity sha512-gytXUbs8k2sXS9PnQptz5o0QnpLL51SwASIORY6XaBKF88nsOT0Zw9szLqlSGQDP/4TljBAD5y98p2U1fqkdsw== - dependencies: - "@babel/helper-module-imports" "^7.27.1" - "@babel/helper-validator-identifier" "^7.27.1" - "@babel/traverse" "^7.28.3" - -"@babel/helper-optimise-call-expression@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.25.9.tgz#3324ae50bae7e2ab3c33f60c9a877b6a0146b54e" - integrity sha512-FIpuNaz5ow8VyrYcnXQTDRGvV6tTjkNtCK/RYNDXGSLlUD6cBuQTSw43CShGxjvfBTfcUA/r6UhUCbtYqkhcuQ== - dependencies: - "@babel/types" "^7.25.9" - -"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.18.9", "@babel/helper-plugin-utils@^7.22.5", "@babel/helper-plugin-utils@^7.25.9", "@babel/helper-plugin-utils@^7.26.5", "@babel/helper-plugin-utils@^7.8.0", "@babel/helper-plugin-utils@^7.8.3": - version "7.26.5" - resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.26.5.tgz#18580d00c9934117ad719392c4f6585c9333cc35" - integrity sha512-RS+jZcRdZdRFzMyr+wcsaqOmld1/EqTghfaBGQQd/WnRdzdlvSZ//kF7U8VQTxf1ynZ4cjUcYgjVGx13ewNPMg== - -"@babel/helper-plugin-utils@^7.27.1": - version "7.28.6" - resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.28.6.tgz#6f13ea251b68c8532e985fd532f28741a8af9ac8" - integrity sha512-S9gzZ/bz83GRysI7gAD4wPT/AI3uCnY+9xn+Mx/KPs2JwHJIz1W8PZkg2cqyt3RNOBM8ejcXhV6y8Og7ly/Dug== - -"@babel/helper-remap-async-to-generator@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.25.9.tgz#e53956ab3d5b9fb88be04b3e2f31b523afd34b92" - integrity sha512-IZtukuUeBbhgOcaW2s06OXTzVNJR0ybm4W5xC1opWFFJMZbwRj5LCk+ByYH7WdZPZTt8KnFwA8pvjN2yqcPlgw== - dependencies: - "@babel/helper-annotate-as-pure" "^7.25.9" - "@babel/helper-wrap-function" "^7.25.9" - "@babel/traverse" "^7.25.9" - -"@babel/helper-replace-supers@^7.25.9", "@babel/helper-replace-supers@^7.26.5": - version "7.26.5" - resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.26.5.tgz#6cb04e82ae291dae8e72335dfe438b0725f14c8d" - integrity sha512-bJ6iIVdYX1YooY2X7w1q6VITt+LnUILtNk7zT78ykuwStx8BauCzxvFqFaHjOpW1bVnSUM1PN1f0p5P21wHxvg== - dependencies: - "@babel/helper-member-expression-to-functions" "^7.25.9" - "@babel/helper-optimise-call-expression" "^7.25.9" - "@babel/traverse" "^7.26.5" - -"@babel/helper-skip-transparent-expression-wrappers@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.25.9.tgz#0b2e1b62d560d6b1954893fd2b705dc17c91f0c9" - integrity sha512-K4Du3BFa3gvyhzgPcntrkDgZzQaq6uozzcpGbOO1OEJaI+EJdqWIMTLgFgQf6lrfiDFo5FU+BxKepI9RmZqahA== - dependencies: - "@babel/traverse" "^7.25.9" - "@babel/types" "^7.25.9" - -"@babel/helper-string-parser@^7.27.1": - version "7.27.1" - resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz#54da796097ab19ce67ed9f88b47bb2ec49367687" - integrity sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA== - -"@babel/helper-validator-identifier@^7.27.1", "@babel/helper-validator-identifier@^7.28.5": - version "7.28.5" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz#010b6938fab7cb7df74aa2bbc06aa503b8fe5fb4" - integrity sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q== - -"@babel/helper-validator-option@^7.25.9", "@babel/helper-validator-option@^7.27.1": - version "7.27.1" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz#fa52f5b1e7db1ab049445b421c4471303897702f" - integrity sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg== - -"@babel/helper-wrap-function@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.25.9.tgz#d99dfd595312e6c894bd7d237470025c85eea9d0" - integrity sha512-ETzz9UTjQSTmw39GboatdymDq4XIQbR8ySgVrylRhPOFpsd+JrKHIuF0de7GCWmem+T4uC5z7EZguod7Wj4A4g== - dependencies: - "@babel/template" "^7.25.9" - "@babel/traverse" "^7.25.9" - "@babel/types" "^7.25.9" - -"@babel/helpers@^7.28.4": - version "7.28.4" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.28.4.tgz#fe07274742e95bdf7cf1443593eeb8926ab63827" - integrity sha512-HFN59MmQXGHVyYadKLVumYsA9dBFun/ldYxipEjzA4196jpLZd8UjEEBLkbEkvfYreDqJhZxYAWFPtrfhNpj4w== - dependencies: - "@babel/template" "^7.27.2" - "@babel/types" "^7.28.4" - -"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.24.7", "@babel/parser@^7.25.3", "@babel/parser@^7.28.5", "@babel/parser@^7.28.6", "@babel/parser@^7.29.0", "@babel/parser@^7.4.3": - version "7.29.0" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.29.0.tgz#669ef345add7d057e92b7ed15f0bac07611831b6" - integrity sha512-IyDgFV5GeDUVX4YdF/3CPULtVGSXXMLh1xVIgdCgxApktqnQV0r7/8Nqthg+8YLGaAtdyIlo2qIdZrbCv4+7ww== + resolve "^1.22.11" + +"@babel/helper-globals@^7.29.7": + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/helper-globals/-/helper-globals-7.29.7.tgz#f04a96fbd8473241b1079243f5b3f03a3010ab7b" + integrity sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA== + +"@babel/helper-member-expression-to-functions@^7.29.7": + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.29.7.tgz#8dbdb3ce0b5c487e1aec10e13c9a43a500814df8" + integrity sha512-j+7JYmk1JYDtACIGj0QJqqWZjoUpMoEikQGADMaHgCMCSDqd2+P32rfcibUNrGOMWrlzK1WJBdxrB3JJQZwWtg== + dependencies: + "@babel/traverse" "^7.29.7" + "@babel/types" "^7.29.7" + +"@babel/helper-module-imports@^7.29.7": + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.29.7.tgz#ef25048a518e828d7393fac5882ddd73921d7396" + integrity sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g== + dependencies: + "@babel/traverse" "^7.29.7" + "@babel/types" "^7.29.7" + +"@babel/helper-module-transforms@^7.29.7": + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.29.7.tgz#b062747a5997ba138637201328bbff77960574ae" + integrity sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg== + dependencies: + "@babel/helper-module-imports" "^7.29.7" + "@babel/helper-validator-identifier" "^7.29.7" + "@babel/traverse" "^7.29.7" + +"@babel/helper-optimise-call-expression@^7.29.7": + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.29.7.tgz#77b0b5b94f1997fa9d6e3125f445227b1faf9d85" + integrity sha512-+kmGVjcT9RGYzoDwdwEqEvGgKe3BYq+O1iGzjFubaNgZHwYHP6lsF2Yghf4kEuv9BV7tYDZ913aBW9am6YKong== + dependencies: + "@babel/types" "^7.29.7" + +"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.18.9", "@babel/helper-plugin-utils@^7.28.6", "@babel/helper-plugin-utils@^7.29.7", "@babel/helper-plugin-utils@^7.8.0", "@babel/helper-plugin-utils@^7.8.3": + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.29.7.tgz#c0a0766f1a13617d8a17407d7ab8f9d486225ea4" + integrity sha512-G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw== + +"@babel/helper-remap-async-to-generator@^7.29.7": + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.29.7.tgz#34b1f68dd75b86d31df781a29c3ff2df88da82e6" + integrity sha512-16AMiW26DbXWBbr3B8wNozKM0ydMLB892vaOaJW/fPJdnT8vJk5sdkQcU/isqUxyCE0cEoa8wZOcbgDuC4b6Og== + dependencies: + "@babel/helper-annotate-as-pure" "^7.29.7" + "@babel/helper-wrap-function" "^7.29.7" + "@babel/traverse" "^7.29.7" + +"@babel/helper-replace-supers@^7.29.7": + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.29.7.tgz#bc3c3964329043c79112e513c1b198f16589ac21" + integrity sha512-atfGXWSeCiF4DnKZIfmJfQRkSw9b9gNNXR1kqKjbhG4pGYCOnkp8OcTB8E3NXjBu8NpheSnOeNKz8KT7UNFTmQ== + dependencies: + "@babel/helper-member-expression-to-functions" "^7.29.7" + "@babel/helper-optimise-call-expression" "^7.29.7" + "@babel/traverse" "^7.29.7" + +"@babel/helper-skip-transparent-expression-wrappers@^7.29.7": + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.29.7.tgz#50c95c7e4c4f54936cfa0116428edc559862d551" + integrity sha512-brcMGQaVzIeUb+6/bs1Av0f8YuNNjKY2JyvfRCsFuFsdKccEQ5Ges2y74D74NZ1Rz8lKJ9ksJkfqwQFJ/iNEyQ== + dependencies: + "@babel/traverse" "^7.29.7" + "@babel/types" "^7.29.7" + +"@babel/helper-string-parser@^7.29.7": + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz#7f0871d99824d23137d60f86fcf6130fd5a1b51f" + integrity sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw== + +"@babel/helper-validator-identifier@^7.29.7": + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz#bd87084ced0c796ec46bda492de6e83d29e89fc2" + integrity sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg== + +"@babel/helper-validator-option@^7.29.7": + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.29.7.tgz#cf315be940213b354eb4abcc0bd01ebe3f73bc2a" + integrity sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw== + +"@babel/helper-wrap-function@^7.29.7": + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.29.7.tgz#eec72163044548a0935e9d182bf2d547ec5ff483" + integrity sha512-iES0Skag9ERIF68aXadpO6dbXa03mNWK3sEqJaMnLNs/eC3l0lkImdfoy6Y09/SfkpawdAB4RjQ7PVA7TcVGdw== + dependencies: + "@babel/template" "^7.29.7" + "@babel/traverse" "^7.29.7" + "@babel/types" "^7.29.7" + +"@babel/helpers@^7.29.7": + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.29.7.tgz#45abfde7548997e34376c3e69feb475cffb4a607" + integrity sha512-1k2lAGRMfHTcwuNYcCNUmaUffmQv8KWMfh2iJUUeRlwlwH4FdNG7mfPI10NPfLHJFThE4Tyr4mv7kTNZOiPuBg== + dependencies: + "@babel/template" "^7.29.7" + "@babel/types" "^7.29.7" + +"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.23.9", "@babel/parser@^7.24.7", "@babel/parser@^7.25.3", "@babel/parser@^7.29.0", "@babel/parser@^7.29.7", "@babel/parser@^7.4.3": + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.29.7.tgz#837b87387cbf5ec5530cb634b3c622f68edb9334" + integrity sha512-hnORnjP/1P/zFEndoeX+n+t1RwWRJiJpM/jO7FW32Kn9r5+sJB2JWOdYo4L6k78j15eCwY3Gm/7364B1EMwtNg== dependencies: - "@babel/types" "^7.29.0" + "@babel/types" "^7.29.7" "@babel/plugin-proposal-export-default-from@^7.24.7": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-export-default-from/-/plugin-proposal-export-default-from-7.25.9.tgz#52702be6ef8367fc8f18b8438278332beeb8f87c" - integrity sha512-ykqgwNfSnNOB+C8fV5X4mG3AVmvu+WVxcaU9xHHtBb7PCrPeweMmPjGsn8eMaeJg6SJuoUuZENeeSWaarWqonQ== + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-export-default-from/-/plugin-proposal-export-default-from-7.29.7.tgz#73bd63e538a050def0f5341c42439630b4923da9" + integrity sha512-p+G5BNXDcy3bOXplhY4HybQ1GxH3i2Tppmdm/3epyRu2VgJJZuUlZ61MqRTg582Q7ZLBdP7fePYvsumSEkMxcQ== dependencies: - "@babel/helper-plugin-utils" "^7.25.9" + "@babel/helper-plugin-utils" "^7.29.7" "@babel/plugin-proposal-export-namespace-from@^7.18.9": version "7.18.9" @@ -271,11 +255,11 @@ "@babel/helper-plugin-utils" "^7.8.0" "@babel/plugin-syntax-export-default-from@^7.24.7": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-export-default-from/-/plugin-syntax-export-default-from-7.25.9.tgz#86614767a9ff140366f0c3766ef218beb32a730a" - integrity sha512-9MhJ/SMTsVqsd69GyQg89lYR4o9T+oDGv5F6IsigxxqFVOyR/IflDLYP8WDI1l8fkhNGGktqkvL5qwNCtGEpgQ== + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-export-default-from/-/plugin-syntax-export-default-from-7.29.7.tgz#52402c74fbd5d684ca63784bde4bb6d7af1e9e37" + integrity sha512-foag0BB37ROhdeIX9O8G0jX7hw0UekJc04cHMrYLOnrErsnBKqJGHJ8eDRpoCFZBvEPPygmmtw4qyU97qa4oOw== dependencies: - "@babel/helper-plugin-utils" "^7.25.9" + "@babel/helper-plugin-utils" "^7.29.7" "@babel/plugin-syntax-export-namespace-from@^7.8.3": version "7.8.3" @@ -284,12 +268,12 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.3" -"@babel/plugin-syntax-flow@^7.12.1", "@babel/plugin-syntax-flow@^7.26.0": - version "7.26.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.26.0.tgz#96507595c21b45fccfc2bc758d5c45452e6164fa" - integrity sha512-B+O2DnPc0iG+YXFqOxv2WNuNU97ToWjOomUQ78DouOENWUaM5sVrmet9mcomUGQFwpJd//gvUagXBSdzO1fRKg== +"@babel/plugin-syntax-flow@^7.12.1", "@babel/plugin-syntax-flow@^7.29.7": + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.29.7.tgz#3f3278c11c896c43bf8098250819785fd1231881" + integrity sha512-ajMX6QPcyomotqwpzhkYGxcK2i/us0rs1Qo9QvUpa+Fca0FTmqrzKrctoIYLMxcOhGZldGT/BAVkRGTWBiR8gQ== dependencies: - "@babel/helper-plugin-utils" "^7.25.9" + "@babel/helper-plugin-utils" "^7.29.7" "@babel/plugin-syntax-import-meta@^7.8.3": version "7.10.4" @@ -305,12 +289,12 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.0" -"@babel/plugin-syntax-jsx@^7.25.9", "@babel/plugin-syntax-jsx@^7.7.2": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.25.9.tgz#a34313a178ea56f1951599b929c1ceacee719290" - integrity sha512-ld6oezHQMZsZfp6pWtbjaNDF2tiiCYYDqQszHt5VV437lewP9aSi2Of99CK0D0XB21k7FLgnLcmQKyKzynfeAA== +"@babel/plugin-syntax-jsx@^7.29.7", "@babel/plugin-syntax-jsx@^7.7.2": + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.29.7.tgz#622c16f9ad63782fe6e83dadc7e40330744b7f1e" + integrity sha512-TSu8+mHCoEaaCDEZ0I3+6mvTBYR4PCxQwf2z9/r5Tbztv6NaLR3B9thGTTxX2WGuGHJqRiAbKPeGTJ5XWXVg6A== dependencies: - "@babel/helper-plugin-utils" "^7.25.9" + "@babel/helper-plugin-utils" "^7.29.7" "@babel/plugin-syntax-logical-assignment-operators@^7.8.3": version "7.10.4" @@ -361,314 +345,316 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-syntax-typescript@^7.25.9", "@babel/plugin-syntax-typescript@^7.7.2": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.25.9.tgz#67dda2b74da43727cf21d46cf9afef23f4365399" - integrity sha512-hjMgRy5hb8uJJjUcdWunWVcoi9bGpJp8p5Ol1229PoN6aytsLwNMgmdftO23wnCLMfVmTwZDWMPNq/D1SY60JQ== +"@babel/plugin-syntax-typescript@^7.29.7", "@babel/plugin-syntax-typescript@^7.7.2": + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.29.7.tgz#7c29388932313ed58413a0343048d75d92fb5b24" + integrity sha512-ngr+82Sh0xMz25TPCZi+nC2iTzjfCdWS2ONXTp/PtSCHCgaCNBpdMqgvJ2ccdLlClVZ7sisIgB914j/JFe+RZA== dependencies: - "@babel/helper-plugin-utils" "^7.25.9" + "@babel/helper-plugin-utils" "^7.29.7" "@babel/plugin-transform-arrow-functions@^7.24.7": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.25.9.tgz#7821d4410bee5daaadbb4cdd9a6649704e176845" - integrity sha512-6jmooXYIwn9ca5/RylZADJ+EnSxVUS5sjeJ9UPk6RWRzXCmOJCy6dqItPJFpw2cuCangPK4OYr5uhGKcmrm5Qg== + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.29.7.tgz#d651343f562c03f47951bd1802195d0e10605f27" + integrity sha512-N7zArUXWzAMzm+/N0uPBeVB3Fam5lMxtUwMmDK5f/IBBS7a7p1qeUoxd/6CckXoxUdgsntq1Dh8xNW06maZbDQ== dependencies: - "@babel/helper-plugin-utils" "^7.25.9" + "@babel/helper-plugin-utils" "^7.29.7" "@babel/plugin-transform-async-generator-functions@^7.25.4": - version "7.26.8" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.26.8.tgz#5e3991135e3b9c6eaaf5eff56d1ae5a11df45ff8" - integrity sha512-He9Ej2X7tNf2zdKMAGOsmg2MrFc+hfoAhd3po4cWfo/NWjzEAKa0oQruj1ROVUdl0e6fb6/kE/G3SSxE0lRJOg== + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.29.7.tgz#a5365617921d82a1fee33124a1102bb38a1e677d" + integrity sha512-d98gXZkgswvkyohMBABkhm3GeXhYj8psWfwQ2C7gtfrKGTykQa/iOIi+JJhwMjPlZ6Vm2XN+DCf3Es1EoG4ZLA== dependencies: - "@babel/helper-plugin-utils" "^7.26.5" - "@babel/helper-remap-async-to-generator" "^7.25.9" - "@babel/traverse" "^7.26.8" + "@babel/helper-plugin-utils" "^7.29.7" + "@babel/helper-remap-async-to-generator" "^7.29.7" + "@babel/traverse" "^7.29.7" "@babel/plugin-transform-async-to-generator@^7.24.7": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.25.9.tgz#c80008dacae51482793e5a9c08b39a5be7e12d71" - integrity sha512-NT7Ejn7Z/LjUH0Gv5KsBCxh7BH3fbLTV0ptHvpeMvrt3cPThHfJfst9Wrb7S8EvJ7vRTFI7z+VAvFVEQn/m5zQ== + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.29.7.tgz#3b5e8f1fb58133cf701bcf0baaf6f01bfd1a8889" + integrity sha512-pcUb2SS+RMo9TWVBwKGI5ShtoG7R+zBsFmCKDa6fe8c+hPr3XJlZgoE5j6i8W7gDjhyvy+85vmYexanvXh3d1w== dependencies: - "@babel/helper-module-imports" "^7.25.9" - "@babel/helper-plugin-utils" "^7.25.9" - "@babel/helper-remap-async-to-generator" "^7.25.9" + "@babel/helper-module-imports" "^7.29.7" + "@babel/helper-plugin-utils" "^7.29.7" + "@babel/helper-remap-async-to-generator" "^7.29.7" "@babel/plugin-transform-block-scoping@^7.25.0": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.25.9.tgz#c33665e46b06759c93687ca0f84395b80c0473a1" - integrity sha512-1F05O7AYjymAtqbsFETboN1NvBdcnzMerO+zlMyJBEz6WkMdejvGWw9p05iTSjC85RLlBseHHQpYaM4gzJkBGg== + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.29.7.tgz#baa376691ae16244cd14335422fca6900f54e17d" + integrity sha512-ONyr4+AZhKh8yKWInVxU9AXA9EbsyeLcL6V0dJy6M2/62vuvpGm29zzuymbTpdc451GEpDIdAyPLP3r+P61yKQ== dependencies: - "@babel/helper-plugin-utils" "^7.25.9" + "@babel/helper-plugin-utils" "^7.29.7" "@babel/plugin-transform-class-properties@^7.24.7", "@babel/plugin-transform-class-properties@^7.25.4": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.25.9.tgz#a8ce84fedb9ad512549984101fa84080a9f5f51f" - integrity sha512-bbMAII8GRSkcd0h0b4X+36GksxuheLFjP65ul9w6C3KgAamI3JqErNgSrosX6ZPj+Mpim5VvEbawXxJCyEUV3Q== + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.29.7.tgz#034897b8a21beec163332fac2de235b14409abdf" + integrity sha512-GtcpjFvanPfzNQi3eTitsCqtRRmmqzpy/A+yhTR1HaZo1Ly3EA8ZXxlPyHdR8/IuRMYc3E4wdGBewB2QKQjAaA== dependencies: - "@babel/helper-create-class-features-plugin" "^7.25.9" - "@babel/helper-plugin-utils" "^7.25.9" + "@babel/helper-create-class-features-plugin" "^7.29.7" + "@babel/helper-plugin-utils" "^7.29.7" "@babel/plugin-transform-classes@^7.25.4": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.25.9.tgz#7152457f7880b593a63ade8a861e6e26a4469f52" - integrity sha512-mD8APIXmseE7oZvZgGABDyM34GUmK45Um2TXiBUt7PnuAxrgoSVf123qUzPxEr/+/BHrRn5NMZCdE2m/1F8DGg== + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.29.7.tgz#61d3e5aaae0c838acc3204d9db7c8dc05c25815b" + integrity sha512-qV0OGGBVacduzQHE649JyCneOFI/maT+YKsO+K4Yi3xv2wTPNjM/W2o2gdzMwEAZz7fXNTHAe0NcSg30bIN69g== dependencies: - "@babel/helper-annotate-as-pure" "^7.25.9" - "@babel/helper-compilation-targets" "^7.25.9" - "@babel/helper-plugin-utils" "^7.25.9" - "@babel/helper-replace-supers" "^7.25.9" - "@babel/traverse" "^7.25.9" - globals "^11.1.0" + "@babel/helper-annotate-as-pure" "^7.29.7" + "@babel/helper-compilation-targets" "^7.29.7" + "@babel/helper-globals" "^7.29.7" + "@babel/helper-plugin-utils" "^7.29.7" + "@babel/helper-replace-supers" "^7.29.7" + "@babel/traverse" "^7.29.7" "@babel/plugin-transform-computed-properties@^7.24.7": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.25.9.tgz#db36492c78460e534b8852b1d5befe3c923ef10b" - integrity sha512-HnBegGqXZR12xbcTHlJ9HGxw1OniltT26J5YpfruGqtUHlz/xKf/G2ak9e+t0rVqrjXa9WOhvYPz1ERfMj23AA== + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.29.7.tgz#95028787ca31901b9a20b5c6d9605c32346f55ad" + integrity sha512-RK7/IyU5phpuCdBAuig5VkzG/EnbDaui5SQGdU9BFrHdV+mV4cUjLMQ9lJDjLNtWHsqtiefpGZUXQP2BiTYMsA== dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - "@babel/template" "^7.25.9" + "@babel/helper-plugin-utils" "^7.29.7" + "@babel/template" "^7.29.7" -"@babel/plugin-transform-destructuring@^7.24.8": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.25.9.tgz#966ea2595c498224340883602d3cfd7a0c79cea1" - integrity sha512-WkCGb/3ZxXepmMiX101nnGiU+1CAdut8oHyEOHxkKuS1qKpU2SMXE2uSvfz8PBuLd49V6LEsbtyPhWC7fnkgvQ== +"@babel/plugin-transform-destructuring@^7.24.8", "@babel/plugin-transform-destructuring@^7.29.7": + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.29.7.tgz#5781ec6947852e27b64c1165f0db431f408090e4" + integrity sha512-iPX8aD6H9zV5s7ZsqTdNocPN/MGQ5sSMnElKrktxjJRMnB2jN/1p2+R7GkfD6CAYoVFqy5A4XnSIUeGgJzIWpg== dependencies: - "@babel/helper-plugin-utils" "^7.25.9" + "@babel/helper-plugin-utils" "^7.29.7" + "@babel/traverse" "^7.29.7" -"@babel/plugin-transform-flow-strip-types@^7.25.2", "@babel/plugin-transform-flow-strip-types@^7.25.9": - version "7.26.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.26.5.tgz#2904c85a814e7abb1f4850b8baf4f07d0a2389d4" - integrity sha512-eGK26RsbIkYUns3Y8qKl362juDDYK+wEdPGHGrhzUl6CewZFo55VZ7hg+CyMFU4dd5QQakBN86nBMpRsFpRvbQ== +"@babel/plugin-transform-flow-strip-types@^7.25.2", "@babel/plugin-transform-flow-strip-types@^7.29.7": + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.29.7.tgz#911bcb31608c3576510d7e0c95ccf64f9e1812d0" + integrity sha512-wRHeUjUjCZnMHmiO5bRgjFLcoEh7JyTdByOW11ahhwNa4V0bmeGEaIvt51yq0zQp2yWIpqfxXXPyUP6GFJZHOQ== dependencies: - "@babel/helper-plugin-utils" "^7.26.5" - "@babel/plugin-syntax-flow" "^7.26.0" + "@babel/helper-plugin-utils" "^7.29.7" + "@babel/plugin-syntax-flow" "^7.29.7" "@babel/plugin-transform-for-of@^7.24.7": - version "7.26.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.26.9.tgz#27231f79d5170ef33b5111f07fe5cafeb2c96a56" - integrity sha512-Hry8AusVm8LW5BVFgiyUReuoGzPUpdHQQqJY5bZnbbf+ngOHWuCuYFKw/BqaaWlvEUrF91HMhDtEaI1hZzNbLg== + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.29.7.tgz#c65a678592117717aacdb10c1b73a9cb85e830be" + integrity sha512-zeSIHh0+E1Um1WJRXCFlHQYu2ieJNdivLLjlBEp+dIBu3S51n+SZZmIXjxnItw6pz56Cn+KvK68BIBVsxq2JiQ== dependencies: - "@babel/helper-plugin-utils" "^7.26.5" - "@babel/helper-skip-transparent-expression-wrappers" "^7.25.9" + "@babel/helper-plugin-utils" "^7.29.7" + "@babel/helper-skip-transparent-expression-wrappers" "^7.29.7" "@babel/plugin-transform-function-name@^7.25.1": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.25.9.tgz#939d956e68a606661005bfd550c4fc2ef95f7b97" - integrity sha512-8lP+Yxjv14Vc5MuWBpJsoUCd3hD6V9DgBon2FVYL4jJgbnVQ9fTgYmonchzZJOVNgzEgbxp4OwAf6xz6M/14XA== + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.29.7.tgz#8b87f8a7504dbcd96135167e3fc4f61126a7bd86" + integrity sha512-otRWaHXE6fbAGkePvaj/kvs3HsqXfPhlnzwSOlnFgbqCPMd975dW+4wZ00WFBt+/YlBGcJwNrARQTOJOb4ZrIg== dependencies: - "@babel/helper-compilation-targets" "^7.25.9" - "@babel/helper-plugin-utils" "^7.25.9" - "@babel/traverse" "^7.25.9" + "@babel/helper-compilation-targets" "^7.29.7" + "@babel/helper-plugin-utils" "^7.29.7" + "@babel/traverse" "^7.29.7" "@babel/plugin-transform-literals@^7.25.2": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.25.9.tgz#1a1c6b4d4aa59bc4cad5b6b3a223a0abd685c9de" - integrity sha512-9N7+2lFziW8W9pBl2TzaNht3+pgMIRP74zizeCSrtnSKVdUl8mAjjOP2OOVQAfZ881P2cNjDj1uAMEdeD50nuQ== + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.29.7.tgz#b90bd47463326c2a9d779e1bd5e1f88b9f421921" + integrity sha512-DZ/oLP21ZuWx1vKqnoNv6/tvEK48AQOBRai40CX9dTjGluvT/YZCyY3rryDtyUqCEoyNroy5KKPwX2iQCiRvyw== dependencies: - "@babel/helper-plugin-utils" "^7.25.9" + "@babel/helper-plugin-utils" "^7.29.7" "@babel/plugin-transform-logical-assignment-operators@^7.24.7": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.25.9.tgz#b19441a8c39a2fda0902900b306ea05ae1055db7" - integrity sha512-wI4wRAzGko551Y8eVf6iOY9EouIDTtPb0ByZx+ktDGHwv6bHFimrgJM/2T021txPZ2s4c7bqvHbd+vXG6K948Q== + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.29.7.tgz#9b29425adf5c794967aabe4b046a046a167bac2f" + integrity sha512-A0H91hh6W8MFRkp5TqJmMr39jzGD1A1E1Ysiv2O06Sfbhkapm+XyIzxWCEh5kqwOZ1/8QZ0dY3SeQ7XBqfJd5Q== dependencies: - "@babel/helper-plugin-utils" "^7.25.9" + "@babel/helper-plugin-utils" "^7.29.7" -"@babel/plugin-transform-modules-commonjs@^7.24.7", "@babel/plugin-transform-modules-commonjs@^7.24.8", "@babel/plugin-transform-modules-commonjs@^7.25.9": - version "7.26.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.26.3.tgz#8f011d44b20d02c3de44d8850d971d8497f981fb" - integrity sha512-MgR55l4q9KddUDITEzEFYn5ZsGDXMSsU9E+kh7fjRXTIC3RHqfCo8RPRbyReYJh44HQ/yomFkqbOFohXvDCiIQ== +"@babel/plugin-transform-modules-commonjs@^7.24.7", "@babel/plugin-transform-modules-commonjs@^7.24.8", "@babel/plugin-transform-modules-commonjs@^7.29.7": + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.29.7.tgz#70e6835abf2663dafbe94b8ef1f51de7351ef135" + integrity sha512-j0vCldybPC5b5dwCQOJ21uKtHzt7hxLygJTg9eF1ScfaikEDNfzn94XoW5Fi+seBR0nCyL23xaBFFkq7dTM8XQ== dependencies: - "@babel/helper-module-transforms" "^7.26.0" - "@babel/helper-plugin-utils" "^7.25.9" + "@babel/helper-module-transforms" "^7.29.7" + "@babel/helper-plugin-utils" "^7.29.7" "@babel/plugin-transform-named-capturing-groups-regex@^7.24.7": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.25.9.tgz#454990ae6cc22fd2a0fa60b3a2c6f63a38064e6a" - integrity sha512-oqB6WHdKTGl3q/ItQhpLSnWWOpjUJLsOCLVyeFgeTktkBSCiurvPOsyt93gibI9CmuKvTUEtWmG5VhZD+5T/KA== + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.29.7.tgz#21e75d847b31189842fa7a77703722ed4b43d27d" + integrity sha512-vuFoLwr4qnv2xbZ16SQd6uPcH5FNrLHhk/Jzo++0XJFcaDsr4gjJVg6j398oMHiC+83k/GiBzviwF5KBJkPUtQ== dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.25.9" - "@babel/helper-plugin-utils" "^7.25.9" + "@babel/helper-create-regexp-features-plugin" "^7.29.7" + "@babel/helper-plugin-utils" "^7.29.7" "@babel/plugin-transform-nullish-coalescing-operator@^7.24.7": - version "7.26.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.26.6.tgz#fbf6b3c92cb509e7b319ee46e3da89c5bedd31fe" - integrity sha512-CKW8Vu+uUZneQCPtXmSBUC6NCAUdya26hWCElAWh5mVSlSRsmiCPUUDKb3Z0szng1hiAJa098Hkhg9o4SE35Qw== + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.29.7.tgz#8a54cdf88c3f50433a6173117a286195b67714cc" + integrity sha512-idmp1dFaekP9GbcMvG24Kvw2BfhFZjHnNJCkV4WuIY4PskJzwI3f1N5OdgYke38T7rftO6ERulFRn2cFeZwRkg== dependencies: - "@babel/helper-plugin-utils" "^7.26.5" + "@babel/helper-plugin-utils" "^7.29.7" "@babel/plugin-transform-numeric-separator@^7.24.7": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.25.9.tgz#bfed75866261a8b643468b0ccfd275f2033214a1" - integrity sha512-TlprrJ1GBZ3r6s96Yq8gEQv82s8/5HnCVHtEJScUj90thHQbwe+E5MLhi2bbNHBEJuzrvltXSru+BUxHDoog7Q== + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.29.7.tgz#0266d5cd42ab87ec40fee45a4e36483cfdcbc66a" + integrity sha512-zR7fv/z14OjgHl4AgRtkDBvBMhIzCxqV/qN/2BCRC7LjFwvuzjYe7gDWxC4Wl/SNsLM6SE1IWvRPYMgSJaUvNw== dependencies: - "@babel/helper-plugin-utils" "^7.25.9" + "@babel/helper-plugin-utils" "^7.29.7" "@babel/plugin-transform-object-rest-spread@^7.24.7": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.25.9.tgz#0203725025074164808bcf1a2cfa90c652c99f18" - integrity sha512-fSaXafEE9CVHPweLYw4J0emp1t8zYTXyzN3UuG+lylqkvYd7RMrsOQ8TYx5RF231be0vqtFC6jnx3UmpJmKBYg== + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.29.7.tgz#e0d5060241803922c545676613cc8acbbda0d266" + integrity sha512-Ld98jn4c0smUywL57m7SgsHq3OpThOa6LqZJif3G6jYOovPleoFhVrBJ1WegRApSFB2wu4+RelAj9AC9G08Z4A== dependencies: - "@babel/helper-compilation-targets" "^7.25.9" - "@babel/helper-plugin-utils" "^7.25.9" - "@babel/plugin-transform-parameters" "^7.25.9" + "@babel/helper-compilation-targets" "^7.29.7" + "@babel/helper-plugin-utils" "^7.29.7" + "@babel/plugin-transform-destructuring" "^7.29.7" + "@babel/plugin-transform-parameters" "^7.29.7" + "@babel/traverse" "^7.29.7" "@babel/plugin-transform-optional-catch-binding@^7.24.7": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.25.9.tgz#10e70d96d52bb1f10c5caaac59ac545ea2ba7ff3" - integrity sha512-qM/6m6hQZzDcZF3onzIhZeDHDO43bkNNlOX0i8n3lR6zLbu0GN2d8qfM/IERJZYauhAHSLHy39NF0Ctdvcid7g== + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.29.7.tgz#729664f79985be504eba112c51de9f71d009030b" + integrity sha512-sLsyndxK2VwX6yNUOakMb7Sh553ZTe/vVM1XJ+9Z5aW1ytsc8xOIwmyk05NNjN60vkc5/KqoTH6hB4V41LJhng== dependencies: - "@babel/helper-plugin-utils" "^7.25.9" + "@babel/helper-plugin-utils" "^7.29.7" "@babel/plugin-transform-optional-chaining@^7.24.7", "@babel/plugin-transform-optional-chaining@^7.24.8": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.25.9.tgz#e142eb899d26ef715435f201ab6e139541eee7dd" - integrity sha512-6AvV0FsLULbpnXeBjrY4dmWF8F7gf8QnvTEoO/wX/5xm/xE1Xo8oPuD3MPS+KS9f9XBEAWN7X1aWr4z9HdOr7A== + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.29.7.tgz#b84a1b574b3c73001023092567e16c492b720e51" + integrity sha512-6GM1dhvK3gNODkXcEcMCOLEDCLSoZ/sBbro2Ax8HURyasQ4NshagQixkRFdh5niI6E4gmA/jYI/4aT7rRos3ZQ== dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - "@babel/helper-skip-transparent-expression-wrappers" "^7.25.9" + "@babel/helper-plugin-utils" "^7.29.7" + "@babel/helper-skip-transparent-expression-wrappers" "^7.29.7" -"@babel/plugin-transform-parameters@^7.24.7", "@babel/plugin-transform-parameters@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.25.9.tgz#b856842205b3e77e18b7a7a1b94958069c7ba257" - integrity sha512-wzz6MKwpnshBAiRmn4jR8LYz/g8Ksg0o80XmwZDlordjwEk9SxBzTWC7F5ef1jhbrbOW2DJ5J6ayRukrJmnr0g== +"@babel/plugin-transform-parameters@^7.24.7", "@babel/plugin-transform-parameters@^7.29.7": + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.29.7.tgz#a5ddc3b9bfb534814cb8334cbeba47d9cf9db090" + integrity sha512-ZDOBqV/qLYJI0YElr8DcENEyARsFQeESqWXH6gZlghYXuPPjvweuDhP4VyEi4BlUBlLRFZVjxoZDMjxhLW766g== dependencies: - "@babel/helper-plugin-utils" "^7.25.9" + "@babel/helper-plugin-utils" "^7.29.7" "@babel/plugin-transform-private-methods@^7.24.7": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.25.9.tgz#847f4139263577526455d7d3223cd8bda51e3b57" - integrity sha512-D/JUozNpQLAPUVusvqMxyvjzllRaF8/nSrP1s2YGQT/W4LHK4xxsMcHjhOGTS01mp9Hda8nswb+FblLdJornQw== + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.29.7.tgz#cea8bd3ab99533892897a02999d5b752584ad145" + integrity sha512-/6Rz4DK1ETDEM/bWHsPHcaEe7ZaT1EqSXjtSP/L0DijOYuaUhiRiOKcwpZ8P7zR4xXEHc2ITdiCgBm9Tpyv9ug== dependencies: - "@babel/helper-create-class-features-plugin" "^7.25.9" - "@babel/helper-plugin-utils" "^7.25.9" + "@babel/helper-create-class-features-plugin" "^7.29.7" + "@babel/helper-plugin-utils" "^7.29.7" "@babel/plugin-transform-private-property-in-object@^7.24.7": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.25.9.tgz#9c8b73e64e6cc3cbb2743633885a7dd2c385fe33" - integrity sha512-Evf3kcMqzXA3xfYJmZ9Pg1OvKdtqsDMSWBDzZOPLvHiTt36E75jLDQo5w1gtRU95Q4E5PDttrTf25Fw8d/uWLw== + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.29.7.tgz#4a2f6be5aba47be7afbdb4cd7903c46edf3a7661" + integrity sha512-+BNo06dnrzdNNqCm1X6YUaVv0DKk8Q+JYcoZfOkLhYWNCXzlwTSRq8zGWayT1csjcpNXV9CQTBRRbmTLZac5cA== dependencies: - "@babel/helper-annotate-as-pure" "^7.25.9" - "@babel/helper-create-class-features-plugin" "^7.25.9" - "@babel/helper-plugin-utils" "^7.25.9" + "@babel/helper-annotate-as-pure" "^7.29.7" + "@babel/helper-create-class-features-plugin" "^7.29.7" + "@babel/helper-plugin-utils" "^7.29.7" "@babel/plugin-transform-react-display-name@^7.24.7": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.25.9.tgz#4b79746b59efa1f38c8695065a92a9f5afb24f7d" - integrity sha512-KJfMlYIUxQB1CJfO3e0+h0ZHWOTLCPP115Awhaz8U0Zpq36Gl/cXlpoyMRnUWlhNUBAzldnCiAZNvCDj7CrKxQ== + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.29.7.tgz#bf161a6d750267b79db7ff6f8fb89c3369b02df3" + integrity sha512-+1wdDMGNb4UPeY3Q4L5yLiYe6TXPXubs4NjrgRFw13hPRLJfEMw2Q5OXkee6/IfdqePIeW4Jjwe3aBh7SdKz4Q== dependencies: - "@babel/helper-plugin-utils" "^7.25.9" + "@babel/helper-plugin-utils" "^7.29.7" "@babel/plugin-transform-react-jsx-self@^7.24.7": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.25.9.tgz#c0b6cae9c1b73967f7f9eb2fca9536ba2fad2858" - integrity sha512-y8quW6p0WHkEhmErnfe58r7x0A70uKphQm8Sp8cV7tjNQwK56sNVK0M73LK3WuYmsuyrftut4xAkjjgU0twaMg== + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.29.7.tgz#c24424527858220624fd59a5b1eab4fa413c803a" + integrity sha512-TL0hMc9xzy86VD31nUiwzd5otRAcyEPcsegCxolO0PvcXuH1v0kECe/UIznYFihpkvU5wg/jk4v0TTEFfm53fw== dependencies: - "@babel/helper-plugin-utils" "^7.25.9" + "@babel/helper-plugin-utils" "^7.29.7" "@babel/plugin-transform-react-jsx-source@^7.24.7": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.25.9.tgz#4c6b8daa520b5f155b5fb55547d7c9fa91417503" - integrity sha512-+iqjT8xmXhhYv4/uiYd8FNQsraMFZIfxVSqxxVSZP0WbbSAWvBXAul0m/zu+7Vv4O/3WtApy9pmaTMiumEZgfg== + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.29.7.tgz#5cf25a3689906b58e2f0a2f2b374789e6627b15f" + integrity sha512-06IyK09H3wi4cGbhDBwp5gUGo0IKtnYa8tyTiephirPCK6fbobVGiXMMI5zLQ4aKEYP3wZ3ArU44o+8KMrSG/Q== dependencies: - "@babel/helper-plugin-utils" "^7.25.9" + "@babel/helper-plugin-utils" "^7.29.7" "@babel/plugin-transform-react-jsx@^7.25.2": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.25.9.tgz#06367940d8325b36edff5e2b9cbe782947ca4166" - integrity sha512-s5XwpQYCqGerXl+Pu6VDL3x0j2d82eiV77UJ8a2mDHAW7j9SWRqQ2y1fNo1Z74CdcYipl5Z41zvjj4Nfzq36rw== + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.29.7.tgz#3d16a0e5773f079400a8c82a190709cdf92ee204" + integrity sha512-WsZulLVBUHXVj2cUcPVx6UE21TpalB6bHbSFErKT0Ib++ax24jjXe73FqlWvdylFOjiuPHYi6VCcgRad1ItN+A== dependencies: - "@babel/helper-annotate-as-pure" "^7.25.9" - "@babel/helper-module-imports" "^7.25.9" - "@babel/helper-plugin-utils" "^7.25.9" - "@babel/plugin-syntax-jsx" "^7.25.9" - "@babel/types" "^7.25.9" + "@babel/helper-annotate-as-pure" "^7.29.7" + "@babel/helper-module-imports" "^7.29.7" + "@babel/helper-plugin-utils" "^7.29.7" + "@babel/plugin-syntax-jsx" "^7.29.7" + "@babel/types" "^7.29.7" "@babel/plugin-transform-regenerator@^7.24.7": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.25.9.tgz#03a8a4670d6cebae95305ac6defac81ece77740b" - integrity sha512-vwDcDNsgMPDGP0nMqzahDWE5/MLcX8sv96+wfX7as7LoF/kr97Bo/7fI00lXY4wUXYfVmwIIyG80fGZ1uvt2qg== + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.29.7.tgz#0f42626a7dbb0e7a7f52e036d3e43deebdc3ea4e" + integrity sha512-rNNFV0DBAJp988xW2DOntfDoYn1eR8GGF5AT5vYc+rjyfaQkM242c9tZUHHPe7KYaiJizXPWhQTzzdbXySyhBw== dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - regenerator-transform "^0.15.2" + "@babel/helper-plugin-utils" "^7.29.7" "@babel/plugin-transform-runtime@^7.24.7": - version "7.26.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.26.9.tgz#ea8be19ef134668e98f7b54daf7c4f853859dc44" - integrity sha512-Jf+8y9wXQbbxvVYTM8gO5oEF2POdNji0NMltEkG7FtmzD9PVz7/lxpqSdTvwsjTMU5HIHuDVNf2SOxLkWi+wPQ== - dependencies: - "@babel/helper-module-imports" "^7.25.9" - "@babel/helper-plugin-utils" "^7.26.5" - babel-plugin-polyfill-corejs2 "^0.4.10" - babel-plugin-polyfill-corejs3 "^0.10.6" - babel-plugin-polyfill-regenerator "^0.6.1" + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.29.7.tgz#7c7fb6e2a46dce67e278b6cc84421c1d16da5695" + integrity sha512-xmAscdE/AsqRW7vutbPNoUmu/nF5SrLKPs7aoJgEjo35lLKA/Bc0i2rMv/hr1+Y0o1bQCiVtith3u2vdgRL39Q== + dependencies: + "@babel/helper-module-imports" "^7.29.7" + "@babel/helper-plugin-utils" "^7.29.7" + babel-plugin-polyfill-corejs2 "^0.4.14" + babel-plugin-polyfill-corejs3 "^0.13.0" + babel-plugin-polyfill-regenerator "^0.6.5" semver "^6.3.1" "@babel/plugin-transform-shorthand-properties@^7.24.7": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.25.9.tgz#bb785e6091f99f826a95f9894fc16fde61c163f2" - integrity sha512-MUv6t0FhO5qHnS/W8XCbHmiRWOphNufpE1IVxhK5kuN3Td9FT1x4rx4K42s3RYdMXCXpfWkGSbCSd0Z64xA7Ng== + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.29.7.tgz#25c0436b98f4bd9ca4b98e1fbd662743bbaab9bf" + integrity sha512-I+WYbGBAiCn7nA6xBrlgPH+MB7HWb4u8pv5S0Pv7OtwNvIFvCCb24YlttKEeUFVurfBCEaOTnuhlqsb7f0Z5Dg== dependencies: - "@babel/helper-plugin-utils" "^7.25.9" + "@babel/helper-plugin-utils" "^7.29.7" "@babel/plugin-transform-spread@^7.24.7": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.25.9.tgz#24a35153931b4ba3d13cec4a7748c21ab5514ef9" - integrity sha512-oNknIB0TbURU5pqJFVbOOFspVlrpVwo2H1+HUIsVDvp5VauGGDP1ZEvO8Nn5xyMEs3dakajOxlmkNW7kNgSm6A== + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.29.7.tgz#a128bcdd6b5e5e47054907b2e50bc19c3f856edd" + integrity sha512-/u5K1QWada7tbYNqTjMh96718g9NTwh9tfPJMsSmVsQwGT447FskV+KcfeXkXq2GWki4EM/MuTdmBec+hOuVTQ== dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - "@babel/helper-skip-transparent-expression-wrappers" "^7.25.9" + "@babel/helper-plugin-utils" "^7.29.7" + "@babel/helper-skip-transparent-expression-wrappers" "^7.29.7" "@babel/plugin-transform-sticky-regex@^7.24.7": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.25.9.tgz#c7f02b944e986a417817b20ba2c504dfc1453d32" - integrity sha512-WqBUSgeVwucYDP9U/xNRQam7xV8W5Zf+6Eo7T2SRVUFlhRiMNFdFz58u0KZmCVVqs2i7SHgpRnAhzRNmKfi2uA== + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.29.7.tgz#a42c0fd1fa42f7e98e1e0c7757f72a1bbca3a015" + integrity sha512-BCHzNYJGe9l7EpwwDBN/ztlL2NYFFq8hp9ddjtUEM9f2O7S7kKV/lL6Fwo7IF7NSkYhPK2vO+86nIGltA90MsA== dependencies: - "@babel/helper-plugin-utils" "^7.25.9" + "@babel/helper-plugin-utils" "^7.29.7" -"@babel/plugin-transform-typescript@^7.25.2", "@babel/plugin-transform-typescript@^7.25.9": - version "7.26.8" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.26.8.tgz#2e9caa870aa102f50d7125240d9dbf91334b0950" - integrity sha512-bME5J9AC8ChwA7aEPJ6zym3w7aObZULHhbNLU0bKUhKsAkylkzUdq+0kdymh9rzi8nlNFl2bmldFBCKNJBUpuw== +"@babel/plugin-transform-typescript@^7.25.2", "@babel/plugin-transform-typescript@^7.29.7": + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.29.7.tgz#f0449c3df7037bbe232043476851c38f5e4a7615" + integrity sha512-jK52h8LaLc7JarhQV2ofeFMts4H7vnOXnqZNA6fYglBTZewRBE51KWt3BUltW1P+KoPsYkHoJeXePuz4zo2LMw== dependencies: - "@babel/helper-annotate-as-pure" "^7.25.9" - "@babel/helper-create-class-features-plugin" "^7.25.9" - "@babel/helper-plugin-utils" "^7.26.5" - "@babel/helper-skip-transparent-expression-wrappers" "^7.25.9" - "@babel/plugin-syntax-typescript" "^7.25.9" + "@babel/helper-annotate-as-pure" "^7.29.7" + "@babel/helper-create-class-features-plugin" "^7.29.7" + "@babel/helper-plugin-utils" "^7.29.7" + "@babel/helper-skip-transparent-expression-wrappers" "^7.29.7" + "@babel/plugin-syntax-typescript" "^7.29.7" "@babel/plugin-transform-unicode-regex@^7.24.7": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.25.9.tgz#5eae747fe39eacf13a8bd006a4fb0b5d1fa5e9b1" - integrity sha512-yoxstj7Rg9dlNn9UQxzk4fcNivwv4nUYz7fYXBaKxvw/lnmPuOm/ikoELygbYq68Bls3D/D+NBPHiLwZdZZ4HA== + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.29.7.tgz#c3064b293ff7f1794b71f7650eec8db9896d3e59" + integrity sha512-7D/x/23/d/3VqZ0QA+LGbZMlGwZjztBygSWWWsfTPoQ1oQ6Q1P6Mr3d0kk42XabyUVw+fha3LqdRsFqeKqvCyA== dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.25.9" - "@babel/helper-plugin-utils" "^7.25.9" + "@babel/helper-create-regexp-features-plugin" "^7.29.7" + "@babel/helper-plugin-utils" "^7.29.7" "@babel/preset-flow@^7.24.7": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/preset-flow/-/preset-flow-7.25.9.tgz#ef8b5e7e3f24a42b3711e77fb14919b87dffed0a" - integrity sha512-EASHsAhE+SSlEzJ4bzfusnXSHiU+JfAYzj+jbw2vgQKgq5HrUr8qs+vgtiEL5dOH6sEweI+PNt2D7AqrDSHyqQ== + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/preset-flow/-/preset-flow-7.29.7.tgz#ae33812dc267a296bd3709843affbb2d811c4709" + integrity sha512-KYIRV0BuaN68CDdsqFkAD7MU7yipUqQNuNElwATdxaIdpTjhvtY82QvkBJs7zV3Evxj2jFAAZ1iO8nyy0nhjqA== dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - "@babel/helper-validator-option" "^7.25.9" - "@babel/plugin-transform-flow-strip-types" "^7.25.9" + "@babel/helper-plugin-utils" "^7.29.7" + "@babel/helper-validator-option" "^7.29.7" + "@babel/plugin-transform-flow-strip-types" "^7.29.7" "@babel/preset-typescript@^7.24.7": - version "7.26.0" - resolved "https://registry.yarnpkg.com/@babel/preset-typescript/-/preset-typescript-7.26.0.tgz#4a570f1b8d104a242d923957ffa1eaff142a106d" - integrity sha512-NMk1IGZ5I/oHhoXEElcm+xUnL/szL6xflkFZmoEU9xj1qSJXpiS7rsspYo92B4DRCDvZn2erT5LdsCeXAKNCkg== + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/preset-typescript/-/preset-typescript-7.29.7.tgz#de9be1f47b785c979ec7b3a71f4cd8bae5267b62" + integrity sha512-/Foi8vKY2EVbed/1eZx0gJEEwHAIxogrySI7rULcRIvhZzbvoE/b5qG5Ghc0WKAFKOHA9SD1x7RsFlOYdutIiQ== dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - "@babel/helper-validator-option" "^7.25.9" - "@babel/plugin-syntax-jsx" "^7.25.9" - "@babel/plugin-transform-modules-commonjs" "^7.25.9" - "@babel/plugin-transform-typescript" "^7.25.9" + "@babel/helper-plugin-utils" "^7.29.7" + "@babel/helper-validator-option" "^7.29.7" + "@babel/plugin-syntax-jsx" "^7.29.7" + "@babel/plugin-transform-modules-commonjs" "^7.29.7" + "@babel/plugin-transform-typescript" "^7.29.7" "@babel/register@^7.24.6": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/register/-/register-7.25.9.tgz#1c465acf7dc983d70ccc318eb5b887ecb04f021b" - integrity sha512-8D43jXtGsYmEeDvm4MWHYUpWf8iiXgWYx3fW7E7Wb7Oe6FWqJPl5K6TuFW0dOwNZzEE5rjlaSJYH9JjrUKJszA== + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/register/-/register-7.29.7.tgz#d5bb4337065512f643b29cb565b6e8ccadcc1ec6" + integrity sha512-AMGJoWuES861riy6pcB0fphE1YXybtQnBYQMuIyPv6mKLiosfa79BKTnAOyx215c/3RJPJpdQwoHZ3earVH7AA== dependencies: clone-deep "^4.0.1" find-cache-dir "^2.0.0" @@ -677,49 +663,46 @@ source-map-support "^0.5.16" "@babel/runtime-corejs3@^7.10.2": - version "7.26.9" - resolved "https://registry.yarnpkg.com/@babel/runtime-corejs3/-/runtime-corejs3-7.26.9.tgz#8b73bae47453aa3dd2839ac52598581a7dd8332f" - integrity sha512-5EVjbTegqN7RSJle6hMWYxO4voo4rI+9krITk+DWR+diJgGrjZjrIBnJhjrHYYQsFgI7j1w1QnrvV7YSKBfYGg== - dependencies: - core-js-pure "^3.30.2" - regenerator-runtime "^0.14.0" - -"@babel/runtime@^7.10.2", "@babel/runtime@^7.18.3", "@babel/runtime@^7.25.0", "@babel/runtime@^7.8.4": - version "7.25.0" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.25.0.tgz#3af9a91c1b739c569d5d80cc917280919c544ecb" - integrity sha512-7dRy4DwXwtzBrPbZflqxnvfxLF8kdZXPkhymtDeFoFqE6ldzjQFgYTtYIFARcLEYDrqfBfYcZt1WqFxRoyC9Rw== - dependencies: - regenerator-runtime "^0.14.0" - -"@babel/template@^7.25.0", "@babel/template@^7.25.9", "@babel/template@^7.27.2", "@babel/template@^7.28.6", "@babel/template@^7.3.3", "@babel/template@^7.4.0": - version "7.28.6" - resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.28.6.tgz#0e7e56ecedb78aeef66ce7972b082fce76a23e57" - integrity sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ== - dependencies: - "@babel/code-frame" "^7.28.6" - "@babel/parser" "^7.28.6" - "@babel/types" "^7.28.6" - -"@babel/traverse@^7.25.3", "@babel/traverse@^7.25.9", "@babel/traverse@^7.26.5", "@babel/traverse@^7.26.8", "@babel/traverse@^7.26.9", "@babel/traverse@^7.27.1", "@babel/traverse@^7.28.3", "@babel/traverse@^7.28.5", "@babel/traverse@^7.29.0", "@babel/traverse@^7.4.3": - version "7.29.0" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.29.0.tgz#f323d05001440253eead3c9c858adbe00b90310a" - integrity sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA== - dependencies: - "@babel/code-frame" "^7.29.0" - "@babel/generator" "^7.29.0" - "@babel/helper-globals" "^7.28.0" - "@babel/parser" "^7.29.0" - "@babel/template" "^7.28.6" - "@babel/types" "^7.29.0" + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/runtime-corejs3/-/runtime-corejs3-7.29.7.tgz#2030fda34f3433647818660093751fb1ca2debf0" + integrity sha512-ppj9ouYku+RX0ljtgZd+KMO5mkM2bCqg8H2PYAFWnLsHEIKIdRojqbJ2i3eVHrisuxy7nOFCmngTDdWtUCdXUQ== + dependencies: + core-js-pure "^3.48.0" + +"@babel/runtime@^7.10.2", "@babel/runtime@^7.18.3", "@babel/runtime@^7.25.0": + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.29.7.tgz#12022450c45a4da6d8d8287b18a4ff2ddb23f768" + integrity sha512-Nq8OhGWiZIZGV6hLHoyAKLLcJihP/xFeBMGJoUrxTX2psI8dCifzLhZISFb+VWS3wFMRDmCGw5R+dOySCqPLhw== + +"@babel/template@^7.25.0", "@babel/template@^7.28.6", "@babel/template@^7.29.7", "@babel/template@^7.3.3", "@babel/template@^7.4.0": + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.29.7.tgz#4d9d4004f645cdd304de958c725162784ecac700" + integrity sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg== + dependencies: + "@babel/code-frame" "^7.29.7" + "@babel/parser" "^7.29.7" + "@babel/types" "^7.29.7" + +"@babel/traverse@^7.25.3", "@babel/traverse@^7.29.0", "@babel/traverse@^7.29.7", "@babel/traverse@^7.4.3": + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.29.7.tgz#c47b07a41b95da0907d026b5dd894d98de7d2f2d" + integrity sha512-EhlfNQtZ+NK22w5BM61ciuiq1m58ed33Wr1Xan//ZRTy6hgjnwyCffRYwzsGXdASJSUJ1guZILsErh1eQcl+zw== + dependencies: + "@babel/code-frame" "^7.29.7" + "@babel/generator" "^7.29.7" + "@babel/helper-globals" "^7.29.7" + "@babel/parser" "^7.29.7" + "@babel/template" "^7.29.7" + "@babel/types" "^7.29.7" debug "^4.3.1" -"@babel/types@^7.0.0", "@babel/types@^7.25.9", "@babel/types@^7.27.1", "@babel/types@^7.28.4", "@babel/types@^7.28.5", "@babel/types@^7.28.6", "@babel/types@^7.29.0", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.4.0": - version "7.29.0" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.29.0.tgz#9f5b1e838c446e72cf3cd4b918152b8c605e37c7" - integrity sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A== +"@babel/types@^7.0.0", "@babel/types@^7.29.0", "@babel/types@^7.29.7", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.4.0": + version "7.29.7" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.29.7.tgz#8005e31d82712ee7adaef6e23c63b71a62770a92" + integrity sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA== dependencies: - "@babel/helper-string-parser" "^7.27.1" - "@babel/helper-validator-identifier" "^7.28.5" + "@babel/helper-string-parser" "^7.29.7" + "@babel/helper-validator-identifier" "^7.29.7" "@bcoe/v8-coverage@^0.2.3": version "0.2.3" @@ -799,10 +782,10 @@ js-yaml "^3.13.1" resolve-from "^5.0.0" -"@istanbuljs/schema@^0.1.2": - version "0.1.2" - resolved "https://registry.yarnpkg.com/@istanbuljs/schema/-/schema-0.1.2.tgz#26520bf09abe4a5644cd5414e37125a8954241dd" - integrity sha512-tsAQNx32a8CoFhjhijUIhI4kccIAgmGhy8LZMZgGfmXcpMbPRUqn5LWmgRttILi6yeGmBJd2xsPkFMs0PzgPCw== +"@istanbuljs/schema@^0.1.2", "@istanbuljs/schema@^0.1.3": + version "0.1.3" + resolved "https://registry.yarnpkg.com/@istanbuljs/schema/-/schema-0.1.3.tgz#e45e384e4b8ec16bce2fd903af78450f6bf7ec98" + integrity sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA== "@jest/console@^29.7.0": version "29.7.0" @@ -996,16 +979,7 @@ "@types/yargs" "^17.0.8" chalk "^4.0.0" -"@jridgewell/gen-mapping@^0.3.0", "@jridgewell/gen-mapping@^0.3.5": - version "0.3.5" - resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz#dcce6aff74bdf6dad1a95802b69b04a2fcb1fb36" - integrity sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg== - dependencies: - "@jridgewell/set-array" "^1.2.1" - "@jridgewell/sourcemap-codec" "^1.4.10" - "@jridgewell/trace-mapping" "^0.3.24" - -"@jridgewell/gen-mapping@^0.3.12": +"@jridgewell/gen-mapping@^0.3.12", "@jridgewell/gen-mapping@^0.3.5": version "0.3.13" resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz#6342a19f44347518c93e43b1ac69deb3c4656a1f" integrity sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA== @@ -1022,45 +996,27 @@ "@jridgewell/trace-mapping" "^0.3.24" "@jridgewell/resolve-uri@^3.1.0": - version "3.1.1" - resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz#c08679063f279615a3326583ba3a90d1d82cc721" - integrity sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA== + version "3.1.2" + resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz#7a0ee601f60f99a20c7c7c5ff0c80388c1189bd6" + integrity sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw== -"@jridgewell/set-array@^1.2.1": - version "1.2.1" - resolved "https://registry.yarnpkg.com/@jridgewell/set-array/-/set-array-1.2.1.tgz#558fb6472ed16a4c850b889530e6b36438c49280" - integrity sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A== - -"@jridgewell/source-map@^0.3.2": - version "0.3.2" - resolved "https://registry.yarnpkg.com/@jridgewell/source-map/-/source-map-0.3.2.tgz#f45351aaed4527a298512ec72f81040c998580fb" - integrity sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw== +"@jridgewell/source-map@^0.3.3": + version "0.3.6" + resolved "https://registry.yarnpkg.com/@jridgewell/source-map/-/source-map-0.3.6.tgz#9d71ca886e32502eb9362c9a74a46787c36df81a" + integrity sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ== dependencies: - "@jridgewell/gen-mapping" "^0.3.0" - "@jridgewell/trace-mapping" "^0.3.9" - -"@jridgewell/sourcemap-codec@^1.4.10", "@jridgewell/sourcemap-codec@^1.4.14": - version "1.4.15" - resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz#d7c6e6755c78567a951e04ab52ef0fd26de59f32" - integrity sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg== - -"@jridgewell/sourcemap-codec@^1.5.0": - version "1.5.5" - resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz#6912b00d2c631c0d15ce1a7ab57cd657f2a8f8ba" - integrity sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og== + "@jridgewell/gen-mapping" "^0.3.5" + "@jridgewell/trace-mapping" "^0.3.25" -"@jridgewell/trace-mapping@^0.3.12", "@jridgewell/trace-mapping@^0.3.18", "@jridgewell/trace-mapping@^0.3.24", "@jridgewell/trace-mapping@^0.3.9": - version "0.3.25" - resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz#15f190e98895f3fc23276ee14bc76b675c2e50f0" - integrity sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ== - dependencies: - "@jridgewell/resolve-uri" "^3.1.0" - "@jridgewell/sourcemap-codec" "^1.4.14" +"@jridgewell/sourcemap-codec@^1.4.14", "@jridgewell/sourcemap-codec@^1.5.0": + version "1.5.0" + resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz#3188bcb273a414b0d215fd22a58540b989b9409a" + integrity sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ== -"@jridgewell/trace-mapping@^0.3.28": - version "0.3.31" - resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz#db15d6781c931f3a251a3dac39501c98a6082fd0" - integrity sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw== +"@jridgewell/trace-mapping@^0.3.12", "@jridgewell/trace-mapping@^0.3.18", "@jridgewell/trace-mapping@^0.3.24", "@jridgewell/trace-mapping@^0.3.25", "@jridgewell/trace-mapping@^0.3.28": + version "0.3.30" + resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.30.tgz#4a76c4daeee5df09f5d3940e087442fb36ce2b99" + integrity sha512-GQ7Nw5G2lTu/BtHTKfXhKHok2WGetd4XYcVKGx00SjAk8GMwgJM3zr6zORiPGuOE+/vkc90KtTosSSvaCjKb2Q== dependencies: "@jridgewell/resolve-uri" "^3.1.0" "@jridgewell/sourcemap-codec" "^1.4.14" @@ -1109,6 +1065,49 @@ "@jsonjoy.com/buffers" "^1.0.0" "@jsonjoy.com/codegen" "^1.0.0" +"@microsoft/api-extractor-model@7.30.5": + version "7.30.5" + resolved "https://registry.yarnpkg.com/@microsoft/api-extractor-model/-/api-extractor-model-7.30.5.tgz#09b4412a3344ce8e6b58114bf350d6d0b8c86b63" + integrity sha512-0ic4rcbcDZHz833RaTZWTGu+NpNgrxVNjVaor0ZDUymfDFzjA/Uuk8hYziIUIOEOSTfmIQqyzVwlzxZxPe7tOA== + dependencies: + "@microsoft/tsdoc" "~0.15.1" + "@microsoft/tsdoc-config" "~0.17.1" + "@rushstack/node-core-library" "5.13.0" + +"@microsoft/api-extractor@^7.52.2": + version "7.52.2" + resolved "https://registry.yarnpkg.com/@microsoft/api-extractor/-/api-extractor-7.52.2.tgz#0b3ac9ddedc643290319b376002f7432a5198b7e" + integrity sha512-RX37V5uhBBPUvrrcmIxuQ8TPsohvr6zxo7SsLPOzBYcH9nbjbvtdXrts4cxHCXGOin9JR5ar37qfxtCOuEBTHA== + dependencies: + "@microsoft/api-extractor-model" "7.30.5" + "@microsoft/tsdoc" "~0.15.1" + "@microsoft/tsdoc-config" "~0.17.1" + "@rushstack/node-core-library" "5.13.0" + "@rushstack/rig-package" "0.5.3" + "@rushstack/terminal" "0.15.2" + "@rushstack/ts-command-line" "4.23.7" + lodash "~4.17.15" + minimatch "~3.0.3" + resolve "~1.22.1" + semver "~7.5.4" + source-map "~0.6.1" + typescript "5.8.2" + +"@microsoft/tsdoc-config@~0.17.1": + version "0.17.1" + resolved "https://registry.yarnpkg.com/@microsoft/tsdoc-config/-/tsdoc-config-0.17.1.tgz#e0f0b50628f4ad7fe121ca616beacfe6a25b9335" + integrity sha512-UtjIFe0C6oYgTnad4q1QP4qXwLhe6tIpNTRStJ2RZEPIkqQPREAwE5spzVxsdn9UaEMUqhh0AqSx3X4nWAKXWw== + dependencies: + "@microsoft/tsdoc" "0.15.1" + ajv "~8.12.0" + jju "~1.4.0" + resolve "~1.22.2" + +"@microsoft/tsdoc@0.15.1", "@microsoft/tsdoc@~0.15.1": + version "0.15.1" + resolved "https://registry.yarnpkg.com/@microsoft/tsdoc/-/tsdoc-0.15.1.tgz#d4f6937353bc4568292654efb0a0e0532adbcba2" + integrity sha512-4aErSrCR/On/e5G2hDP0wjooqDdauzEbIq8hIkIe5pXV0rtWJZvdCEKL0ykZxex+IxIwBp0eGeV48hQN07dXtw== + "@noble/hashes@1.4.0": version "1.4.0" resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.4.0.tgz#45814aa329f30e4fe0ba49426f49dfccdd066426" @@ -1345,6 +1344,46 @@ resolved "https://registry.yarnpkg.com/@rtsao/scc/-/scc-1.1.0.tgz#927dd2fae9bc3361403ac2c7a00c32ddce9ad7e8" integrity sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g== +"@rushstack/node-core-library@5.13.0": + version "5.13.0" + resolved "https://registry.yarnpkg.com/@rushstack/node-core-library/-/node-core-library-5.13.0.tgz#f79d6868b74be102eee75b93c37be45fb9b47ead" + integrity sha512-IGVhy+JgUacAdCGXKUrRhwHMTzqhWwZUI+qEPcdzsb80heOw0QPbhhoVsoiMF7Klp8eYsp7hzpScMXmOa3Uhfg== + dependencies: + ajv "~8.13.0" + ajv-draft-04 "~1.0.0" + ajv-formats "~3.0.1" + fs-extra "~11.3.0" + import-lazy "~4.0.0" + jju "~1.4.0" + resolve "~1.22.1" + semver "~7.5.4" + +"@rushstack/rig-package@0.5.3": + version "0.5.3" + resolved "https://registry.yarnpkg.com/@rushstack/rig-package/-/rig-package-0.5.3.tgz#ea4d8a3458540b1295500149c04e645f23134e5d" + integrity sha512-olzSSjYrvCNxUFZowevC3uz8gvKr3WTpHQ7BkpjtRpA3wK+T0ybep/SRUMfr195gBzJm5gaXw0ZMgjIyHqJUow== + dependencies: + resolve "~1.22.1" + strip-json-comments "~3.1.1" + +"@rushstack/terminal@0.15.2": + version "0.15.2" + resolved "https://registry.yarnpkg.com/@rushstack/terminal/-/terminal-0.15.2.tgz#8fa030409603a22db606ecb18709050e46517add" + integrity sha512-7Hmc0ysK5077R/IkLS9hYu0QuNafm+TbZbtYVzCMbeOdMjaRboLKrhryjwZSRJGJzu+TV1ON7qZHeqf58XfLpA== + dependencies: + "@rushstack/node-core-library" "5.13.0" + supports-color "~8.1.1" + +"@rushstack/ts-command-line@4.23.7": + version "4.23.7" + resolved "https://registry.yarnpkg.com/@rushstack/ts-command-line/-/ts-command-line-4.23.7.tgz#9c6f05a00f776c7b8ea3321e2b5a03acc5e9efa8" + integrity sha512-Gr9cB7DGe6uz5vq2wdr89WbVDKz0UeuFEn5H2CfWDe7JvjFFaiV15gi6mqDBTbHhHCWS7w8mF1h3BnIfUndqdA== + dependencies: + "@rushstack/terminal" "0.15.2" + "@types/argparse" "1.0.38" + argparse "~1.0.9" + string-argv "~0.3.1" + "@sinclair/typebox@^0.27.8": version "0.27.8" resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.27.8.tgz#6667fac16c436b5434a387a34dedb013198f6e6e" @@ -1369,6 +1408,11 @@ resolved "https://registry.yarnpkg.com/@tsconfig/node20/-/node20-20.1.4.tgz#3457d42eddf12d3bde3976186ab0cd22b85df928" integrity sha512-sqgsT69YFeLWf5NtJ4Xq/xAF8p4ZQHlmGW74Nu2tD4+g5fAsposc4ZfaaPixVu4y01BEiDCWLRDCvDM5JOsRxg== +"@types/argparse@1.0.38": + version "1.0.38" + resolved "https://registry.yarnpkg.com/@types/argparse/-/argparse-1.0.38.tgz#a81fd8606d481f873a3800c6ebae4f1d768a56a9" + integrity sha512-ebDJ9b0e702Yr7pWgB0jzm+CX4Srzz8RcXtLJDJB+BSccqMa36uyH/zUsSYao5+BD1ytv3k3rPYCq4mAE1hsXA== + "@types/babel__core@^7.1.14": version "7.1.19" resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.1.19.tgz#7b497495b7d1b4812bdb9d02804d0576f43ee460" @@ -1445,12 +1489,12 @@ resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee" integrity sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ== -"@types/node@*": - version "20.17.16" - resolved "https://registry.yarnpkg.com/@types/node/-/node-20.17.16.tgz#b33b0edc1bf925b27349e494b871ca4451fabab4" - integrity sha512-vOTpLduLkZXePLxHiHsBLp98mHGnl8RptV4YAO3HfKO5UHjDvySGbxKtpYfy8Sx5+WKcgc45qNreJJRVM3L6mw== +"@types/node@*", "@types/node@^22.0.0": + version "22.20.1" + resolved "https://registry.yarnpkg.com/@types/node/-/node-22.20.1.tgz#84e7cdf63cdaa20c134aa317ccc901aa21e16f0e" + integrity sha512-EANqOCF9QFyra+4pfxUcX9STKJpCLjMbObVzljIJomAWSnuSIEAvyzEU53GaajbXJEgdh0iEcPL+DGvpUd4k1Q== dependencies: - undici-types "~6.19.2" + undici-types "~6.21.0" "@types/stack-utils@^2.0.0": version "2.0.0" @@ -1465,34 +1509,27 @@ "@types/node" "*" "@types/yargs-parser@*": - version "15.0.0" - resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-15.0.0.tgz#cb3f9f741869e20cce330ffbeb9271590483882d" - integrity sha512-FA/BWv8t8ZWJ+gEOnLLd8ygxH/2UFbAvgEonyfN6yWGLKc7zVjbpl2Y4CTjid9h2RfgPP6SEt6uHwEOply00yw== + version "21.0.3" + resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-21.0.3.tgz#815e30b786d2e8f0dcd85fd5bcf5e1a04d008f15" + integrity sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ== -"@types/yargs@^17.0.35": +"@types/yargs@^17.0.35", "@types/yargs@^17.0.8": version "17.0.35" resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-17.0.35.tgz#07013e46aa4d7d7d50a49e15604c1c5340d4eb24" integrity sha512-qUHkeCyQFxMXg79wQfTtfndEC+N9ZZg76HJftDJp+qH2tV7Gj4OJi7l+PiWwJ+pWtW8GwSmqsDj/oymhrTWXjg== dependencies: "@types/yargs-parser" "*" -"@types/yargs@^17.0.8": - version "17.0.12" - resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-17.0.12.tgz#0745ff3e4872b4ace98616d4b7e37ccbd75f9526" - integrity sha512-Nz4MPhecOFArtm81gFQvQqdV7XYCrWKx5uUt6GNHredFHn1i2mtWqXTON7EPXMtNi1qjtjEM/VCHDhcHsAMLXQ== - dependencies: - "@types/yargs-parser" "*" - "@typescript-eslint/eslint-plugin@^8.59.2": - version "8.59.3" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.59.3.tgz#5d6da7e7b236b46452fa00d3904bb6f59615bfde" - integrity sha512-PwFvSKsXGShKGW6n5bZOhGHEcCZXM8HofLK9fNsEwZXzFRjoY+XT1Vsf1zgyXdwTr0ZYz1/2tkZ0DBTT9jZjhw== + version "8.59.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.59.2.tgz#f37b2c189a0177141fe3de3b08f2a83991bfdbfa" + integrity sha512-j/bwmkBvHUtPNxzuWe5z6BEk3q54YRyGlBXkSsmfoih7zNrBvl5A9A98anlp/7JbyZcWIJ8KXo/3Tq/DjFLtuQ== dependencies: "@eslint-community/regexpp" "^4.12.2" - "@typescript-eslint/scope-manager" "8.59.3" - "@typescript-eslint/type-utils" "8.59.3" - "@typescript-eslint/utils" "8.59.3" - "@typescript-eslint/visitor-keys" "8.59.3" + "@typescript-eslint/scope-manager" "8.59.2" + "@typescript-eslint/type-utils" "8.59.2" + "@typescript-eslint/utils" "8.59.2" + "@typescript-eslint/visitor-keys" "8.59.2" ignore "^7.0.5" natural-compare "^1.4.0" ts-api-utils "^2.5.0" @@ -1509,14 +1546,14 @@ debug "^4.3.4" "@typescript-eslint/parser@^8.59.2": - version "8.59.3" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-8.59.3.tgz#f46cbc70ae0a25119ef94eac9ecd46714788e1a1" - integrity sha512-HPwA+hVkfcriajbNvTmZv4VRauibay+cWArYUYq7u7W7PmGShMxbPxLvrwDme55a6d5alG3nrYfhyJ/G28XlLg== - dependencies: - "@typescript-eslint/scope-manager" "8.59.3" - "@typescript-eslint/types" "8.59.3" - "@typescript-eslint/typescript-estree" "8.59.3" - "@typescript-eslint/visitor-keys" "8.59.3" + version "8.59.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-8.59.2.tgz#e2fd0084baa5dd0c24cd789af1c72cbc3a7a1c62" + integrity sha512-plR3pp6D+SSUn1HM7xvSkx12/DhoHInI2YF35KAcVFNZvlC0gtrWqx7Qq1oH2Ssgi0vlFRCTbP+DZc7B9+TtsQ== + dependencies: + "@typescript-eslint/scope-manager" "8.59.2" + "@typescript-eslint/types" "8.59.2" + "@typescript-eslint/typescript-estree" "8.59.2" + "@typescript-eslint/visitor-keys" "8.59.2" debug "^4.4.3" "@typescript-eslint/project-service@8.38.0": @@ -1528,22 +1565,22 @@ "@typescript-eslint/types" "^8.38.0" debug "^4.3.4" -"@typescript-eslint/project-service@8.39.1": - version "8.39.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/project-service/-/project-service-8.39.1.tgz#63525878d488ebf27c485f295e83434a1398f52d" - integrity sha512-8fZxek3ONTwBu9ptw5nCKqZOSkXshZB7uAxuFF0J/wTMkKydjXCzqqga7MlFMpHi9DoG4BadhmTkITBcg8Aybw== +"@typescript-eslint/project-service@8.43.0": + version "8.43.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/project-service/-/project-service-8.43.0.tgz#958dbaa16fbd1e81d46ab86e139f6276757140f8" + integrity sha512-htB/+D/BIGoNTQYffZw4uM4NzzuolCoaA/BusuSIcC8YjmBYQioew5VUZAYdAETPjeed0hqCaW7EHg+Robq8uw== dependencies: - "@typescript-eslint/tsconfig-utils" "^8.39.1" - "@typescript-eslint/types" "^8.39.1" + "@typescript-eslint/tsconfig-utils" "^8.43.0" + "@typescript-eslint/types" "^8.43.0" debug "^4.3.4" -"@typescript-eslint/project-service@8.59.3": - version "8.59.3" - resolved "https://registry.yarnpkg.com/@typescript-eslint/project-service/-/project-service-8.59.3.tgz#1be5ae152aad987a156c9a1a9b4256e75cfbbe0c" - integrity sha512-ECiUWa/KYRGDFUqTNehaRgzDshnJfkTABJxVemHk4ko22gcr0ukloKjWvyQ64g8YCV/UI47kN1dbmjf/GaQYng== +"@typescript-eslint/project-service@8.59.2": + version "8.59.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/project-service/-/project-service-8.59.2.tgz#f8b8cbf8692e3a51c2c394acf8cf6900f7e755af" + integrity sha512-+2hqvEkeyf/0FBor67duF0Ll7Ot8jyKzDQOSrxazF/danillRq2DwR9dLptsXpoZQqxE1UisSmoZewrlPas9Vw== dependencies: - "@typescript-eslint/tsconfig-utils" "^8.59.3" - "@typescript-eslint/types" "^8.59.3" + "@typescript-eslint/tsconfig-utils" "^8.59.2" + "@typescript-eslint/types" "^8.59.2" debug "^4.4.3" "@typescript-eslint/scope-manager@8.38.0": @@ -1554,45 +1591,45 @@ "@typescript-eslint/types" "8.38.0" "@typescript-eslint/visitor-keys" "8.38.0" -"@typescript-eslint/scope-manager@8.39.1": - version "8.39.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-8.39.1.tgz#1253fe3e1f2f33f08a3e438a05b5dd7faf9fbca6" - integrity sha512-RkBKGBrjgskFGWuyUGz/EtD8AF/GW49S21J8dvMzpJitOF1slLEbbHnNEtAHtnDAnx8qDEdRrULRnWVx27wGBw== +"@typescript-eslint/scope-manager@8.43.0": + version "8.43.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-8.43.0.tgz#009ebc09cc6e7e0dd67898a0e9a70d295361c6b9" + integrity sha512-daSWlQ87ZhsjrbMLvpuuMAt3y4ba57AuvadcR7f3nl8eS3BjRc8L9VLxFLk92RL5xdXOg6IQ+qKjjqNEimGuAg== dependencies: - "@typescript-eslint/types" "8.39.1" - "@typescript-eslint/visitor-keys" "8.39.1" + "@typescript-eslint/types" "8.43.0" + "@typescript-eslint/visitor-keys" "8.43.0" -"@typescript-eslint/scope-manager@8.59.3": - version "8.59.3" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-8.59.3.tgz#91a60f66803fe9dae0696fbab2451f5723f119d2" - integrity sha512-t2LvZnoEfzKtnPjgeEu41xw5gxq9mQVfYy4OoZ4Vlt0sk3JwxmhCca/AR7DwOiHrjWgjAj6as4AhRLKSDfvZIA== +"@typescript-eslint/scope-manager@8.59.2": + version "8.59.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-8.59.2.tgz#63cbd0af2e3180949d6be81122cc555bc71e736d" + integrity sha512-JzfyEpEtOU89CcFSwyNS3mu4MLvLSXqnmX05+aKBDM+TdR5jzcGOEBwxwGNxrEQ7p/z6kK2WyioCGBf2zZBnvg== dependencies: - "@typescript-eslint/types" "8.59.3" - "@typescript-eslint/visitor-keys" "8.59.3" + "@typescript-eslint/types" "8.59.2" + "@typescript-eslint/visitor-keys" "8.59.2" "@typescript-eslint/tsconfig-utils@8.38.0": version "8.38.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.38.0.tgz#6de4ce224a779601a8df667db56527255c42c4d0" integrity sha512-Lum9RtSE3EroKk/bYns+sPOodqb2Fv50XOl/gMviMKNvanETUuUcC9ObRbzrJ4VSd2JalPqgSAavwrPiPvnAiQ== -"@typescript-eslint/tsconfig-utils@8.39.1", "@typescript-eslint/tsconfig-utils@^8.38.0", "@typescript-eslint/tsconfig-utils@^8.39.1": - version "8.39.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.39.1.tgz#17f13b4ad481e7bec7c249ee1854078645b34b12" - integrity sha512-ePUPGVtTMR8XMU2Hee8kD0Pu4NDE1CN9Q1sxGSGd/mbOtGZDM7pnhXNJnzW63zk/q+Z54zVzj44HtwXln5CvHA== +"@typescript-eslint/tsconfig-utils@8.43.0", "@typescript-eslint/tsconfig-utils@^8.38.0", "@typescript-eslint/tsconfig-utils@^8.43.0": + version "8.43.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.43.0.tgz#e6721dba183d61769a90ffdad202aebc383b18c8" + integrity sha512-ALC2prjZcj2YqqL5X/bwWQmHA2em6/94GcbB/KKu5SX3EBDOsqztmmX1kMkvAJHzxk7TazKzJfFiEIagNV3qEA== -"@typescript-eslint/tsconfig-utils@8.59.3", "@typescript-eslint/tsconfig-utils@^8.59.3": - version "8.59.3" - resolved "https://registry.yarnpkg.com/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.59.3.tgz#88ca9036b42ccdd1e630cfdafd2e042c2ca6a835" - integrity sha512-PcIJHjmaREXLgIAIzLnSY9VucEzz8FKXsRgFa1DmdGCK/5tJpW03TKJF01Q6VZd1lLdz2sIKPWaDUZN9dp//dw== +"@typescript-eslint/tsconfig-utils@8.59.2", "@typescript-eslint/tsconfig-utils@^8.59.2": + version "8.59.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.59.2.tgz#6e92bc412083753185a79c9f1431e78169d9232f" + integrity sha512-BKK4alN7oi4C/zv4VqHQ+uRU+lTa6JGIZ7s1juw7b3RHo9OfKB+bKX3u0iVZetdsUCBBkSbdWbarJbmN0fTeSw== -"@typescript-eslint/type-utils@8.59.3": - version "8.59.3" - resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-8.59.3.tgz#421fb2448bdfeb301d134a01cd02503f67fd8192" - integrity sha512-g71d8QD8UaiHGvrJwyIS1hCX5r63w6Jll+4VEYhEAHXTDIqX1JgxhTAbEHtKntL9kuc4jRo7/GWw5xfCepSccQ== +"@typescript-eslint/type-utils@8.59.2": + version "8.59.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-8.59.2.tgz#a60a1192a804fa472a92c41656853ac6a9ba7176" + integrity sha512-nhqaj1nmTdVVl/BP5omXNRGO38jn5iosis2vbdmupF2txCf8ylWT8lx+JlvMYYVqzGVKtjojUFoQ3JRWK+mfzQ== dependencies: - "@typescript-eslint/types" "8.59.3" - "@typescript-eslint/typescript-estree" "8.59.3" - "@typescript-eslint/utils" "8.59.3" + "@typescript-eslint/types" "8.59.2" + "@typescript-eslint/typescript-estree" "8.59.2" + "@typescript-eslint/utils" "8.59.2" debug "^4.4.3" ts-api-utils "^2.5.0" @@ -1601,15 +1638,15 @@ resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-8.38.0.tgz#297351c994976b93c82ac0f0e206c8143aa82529" integrity sha512-wzkUfX3plUqij4YwWaJyqhiPE5UCRVlFpKn1oCRn2O1bJ592XxWJj8ROQ3JD5MYXLORW84063z3tZTb/cs4Tyw== -"@typescript-eslint/types@8.39.1", "@typescript-eslint/types@^8.38.0", "@typescript-eslint/types@^8.39.1": - version "8.39.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-8.39.1.tgz#f0ab996c8ab2c3b046bbf86bb1990b03529869a1" - integrity sha512-7sPDKQQp+S11laqTrhHqeAbsCfMkwJMrV7oTDvtDds4mEofJYir414bYKUEb8YPUm9QL3U+8f6L6YExSoAGdQw== +"@typescript-eslint/types@8.43.0", "@typescript-eslint/types@^8.38.0", "@typescript-eslint/types@^8.43.0": + version "8.43.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-8.43.0.tgz#00d34a5099504eb1b263e022cc17c4243ff2302e" + integrity sha512-vQ2FZaxJpydjSZJKiSW/LJsabFFvV7KgLC5DiLhkBcykhQj8iK9BOaDmQt74nnKdLvceM5xmhaTF+pLekrxEkw== -"@typescript-eslint/types@8.59.3", "@typescript-eslint/types@^8.59.3": - version "8.59.3" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-8.59.3.tgz#b7ca539c5e302fdde9a7cadb73caed107ef8f2cd" - integrity sha512-ePFoH0g4ludssdRFqqDxQePCxU4WQyRa9+XVwjm7yLn0FKhMeoetC+qBEEI1Eyb1pGSDveTIT09Bvw2WhlGayg== +"@typescript-eslint/types@8.59.2", "@typescript-eslint/types@^8.59.2": + version "8.59.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-8.59.2.tgz#01caabcd7e4715c33ad5e11cab260829714d6b9c" + integrity sha512-e82GVOE8Ps3E++Egvb6Y3Dw0S10u8NkQ9KXmtRhCWJJ8kDhOJTvtMAWnFL16kB1583goCWXsr0NieKCZMs2/0Q== "@typescript-eslint/typescript-estree@8.38.0": version "8.38.0" @@ -1627,15 +1664,15 @@ semver "^7.6.0" ts-api-utils "^2.1.0" -"@typescript-eslint/typescript-estree@8.39.1": - version "8.39.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-8.39.1.tgz#8825d3ea7ea2144c577859ae489eec24ef7318a5" - integrity sha512-EKkpcPuIux48dddVDXyQBlKdeTPMmALqBUbEk38McWv0qVEZwOpVJBi7ugK5qVNgeuYjGNQxrrnoM/5+TI/BPw== +"@typescript-eslint/typescript-estree@8.43.0": + version "8.43.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-8.43.0.tgz#39e5d431239b4d90787072ae0c2290cbd3e0a562" + integrity sha512-7Vv6zlAhPb+cvEpP06WXXy/ZByph9iL6BQRBDj4kmBsW98AqEeQHlj/13X+sZOrKSo9/rNKH4Ul4f6EICREFdw== dependencies: - "@typescript-eslint/project-service" "8.39.1" - "@typescript-eslint/tsconfig-utils" "8.39.1" - "@typescript-eslint/types" "8.39.1" - "@typescript-eslint/visitor-keys" "8.39.1" + "@typescript-eslint/project-service" "8.43.0" + "@typescript-eslint/tsconfig-utils" "8.43.0" + "@typescript-eslint/types" "8.43.0" + "@typescript-eslint/visitor-keys" "8.43.0" debug "^4.3.4" fast-glob "^3.3.2" is-glob "^4.0.3" @@ -1643,40 +1680,40 @@ semver "^7.6.0" ts-api-utils "^2.1.0" -"@typescript-eslint/typescript-estree@8.59.3": - version "8.59.3" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-8.59.3.tgz#e6bb1408e00b47e431427a40268db4e86cb121ab" - integrity sha512-CbRjVRAf7Lr9Kr8RopKcbY45p2VfmmHrm0ygOCYFi7oU8q19m0Fs/6iHS7kNOmwpp+ob07ZVcAqlxUod9lYdmg== +"@typescript-eslint/typescript-estree@8.59.2": + version "8.59.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-8.59.2.tgz#6a217ef65b18dbd12c718fc86a675d1d7a1414cc" + integrity sha512-o0XPGNwcWw+FIwStOWn+BwBuEmL6QXP0rsvAFg7ET1dey1Nr6Wb1ac8p5HEsK0ygO/6mUxlk+YWQD9xcb/nnXg== dependencies: - "@typescript-eslint/project-service" "8.59.3" - "@typescript-eslint/tsconfig-utils" "8.59.3" - "@typescript-eslint/types" "8.59.3" - "@typescript-eslint/visitor-keys" "8.59.3" + "@typescript-eslint/project-service" "8.59.2" + "@typescript-eslint/tsconfig-utils" "8.59.2" + "@typescript-eslint/types" "8.59.2" + "@typescript-eslint/visitor-keys" "8.59.2" debug "^4.4.3" minimatch "^10.2.2" semver "^7.7.3" tinyglobby "^0.2.15" ts-api-utils "^2.5.0" -"@typescript-eslint/utils@8.59.3": - version "8.59.3" - resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-8.59.3.tgz#f693f979deb4dc3994de03ff8b23976d625c36c5" - integrity sha512-JAvT14goBzRzzzZyqq3P9BLArIxTtQURUtFgQ/V7FO+eU+Gg6ES+5ymOPP1wRxXcxAYeivCk4uS3jCKWI1K8Zg== +"@typescript-eslint/utils@8.59.2": + version "8.59.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-8.59.2.tgz#ff619a6a3075f4017fa91b8610b752a8ca3366aa" + integrity sha512-Juw3EinkXqjaffxz6roowvV7GZT/kET5vSKKZT6upl5TXdWkLkYmNPXwDDL2Vkt2DPn0nODIS4egC/0AGxKo/Q== dependencies: "@eslint-community/eslint-utils" "^4.9.1" - "@typescript-eslint/scope-manager" "8.59.3" - "@typescript-eslint/types" "8.59.3" - "@typescript-eslint/typescript-estree" "8.59.3" + "@typescript-eslint/scope-manager" "8.59.2" + "@typescript-eslint/types" "8.59.2" + "@typescript-eslint/typescript-estree" "8.59.2" "@typescript-eslint/utils@^8.0.0": - version "8.39.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-8.39.1.tgz#58a834f89f93b786ada2cd14d77fa63c3c8f408b" - integrity sha512-VF5tZ2XnUSTuiqZFXCZfZs1cgkdd3O/sSYmdo2EpSyDlC86UM/8YytTmKnehOW3TGAlivqTDT6bS87B/GQ/jyg== + version "8.43.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-8.43.0.tgz#5c391133a52f8500dfdabd7026be72a537d7b59e" + integrity sha512-S1/tEmkUeeswxd0GGcnwuVQPFWo8NzZTOMxCvw8BX7OMxnNae+i8Tm7REQen/SwUIPoPqfKn7EaZ+YLpiB3k9g== dependencies: "@eslint-community/eslint-utils" "^4.7.0" - "@typescript-eslint/scope-manager" "8.39.1" - "@typescript-eslint/types" "8.39.1" - "@typescript-eslint/typescript-estree" "8.39.1" + "@typescript-eslint/scope-manager" "8.43.0" + "@typescript-eslint/types" "8.43.0" + "@typescript-eslint/typescript-estree" "8.43.0" "@typescript-eslint/visitor-keys@8.38.0": version "8.38.0" @@ -1686,20 +1723,20 @@ "@typescript-eslint/types" "8.38.0" eslint-visitor-keys "^4.2.1" -"@typescript-eslint/visitor-keys@8.39.1": - version "8.39.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-8.39.1.tgz#a467742a98f2fa3c03d7bed4979dc0db3850a77a" - integrity sha512-W8FQi6kEh2e8zVhQ0eeRnxdvIoOkAp/CPAahcNio6nO9dsIwb9b34z90KOlheoyuVf6LSOEdjlkxSkapNEc+4A== +"@typescript-eslint/visitor-keys@8.43.0": + version "8.43.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-8.43.0.tgz#633d3414afec3cf0a0e4583e1575f4101ef51d30" + integrity sha512-T+S1KqRD4sg/bHfLwrpF/K3gQLBM1n7Rp7OjjikjTEssI2YJzQpi5WXoynOaQ93ERIuq3O8RBTOUYDKszUCEHw== dependencies: - "@typescript-eslint/types" "8.39.1" + "@typescript-eslint/types" "8.43.0" eslint-visitor-keys "^4.2.1" -"@typescript-eslint/visitor-keys@8.59.3": - version "8.59.3" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-8.59.3.tgz#820843b1b5ca4290009cf189382abcf6fe00dfa6" - integrity sha512-f1UQF7ggd42YiwI5wGrRaPsa+P0CINBlrkLPmGfpq/u/I/oVtecoEIfFR9ag/oa1sLOsRNZ6xehf6qMZhQGBDg== +"@typescript-eslint/visitor-keys@8.59.2": + version "8.59.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-8.59.2.tgz#5ccc486913cd347883d69158836b1189a660bfe6" + integrity sha512-NwjLUnGy8/Zfx23fl50tRC8rYaYnM52xNRYFAXvmiil9yh1+K6aRVQMnzW6gQB/1DLgWt977lYQn7C+wtgXZiA== dependencies: - "@typescript-eslint/types" "8.59.3" + "@typescript-eslint/types" "8.59.2" eslint-visitor-keys "^5.0.0" "@ungap/structured-clone@^1.2.0": @@ -1720,17 +1757,27 @@ acorn-jsx@^5.3.2: resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937" integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== -acorn@^8.5.0, acorn@^8.7.1, acorn@^8.9.0: - version "8.10.0" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.10.0.tgz#8be5b3907a67221a81ab23c7889c4c5526b62ec5" - integrity sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw== +acorn@^8.14.0, acorn@^8.5.0, acorn@^8.7.1, acorn@^8.9.0: + version "8.14.1" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.14.1.tgz#721d5dc10f7d5b5609a891773d47731796935dfb" + integrity sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg== -agent-base@^7.0.2: - version "7.1.1" - resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-7.1.1.tgz#bdbded7dfb096b751a2a087eeeb9664725b2e317" - integrity sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA== +agent-base@^7.1.2: + version "7.1.3" + resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-7.1.3.tgz#29435eb821bc4194633a5b89e5bc4703bafc25a1" + integrity sha512-jRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw== + +ajv-draft-04@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/ajv-draft-04/-/ajv-draft-04-1.0.0.tgz#3b64761b268ba0b9e668f0b41ba53fce0ad77fc8" + integrity sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw== + +ajv-formats@~3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/ajv-formats/-/ajv-formats-3.0.1.tgz#3d5dc762bca17679c3c2ea7e90ad6b7532309578" + integrity sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ== dependencies: - debug "^4.3.4" + ajv "^8.0.0" ajv@^6.12.4: version "6.12.6" @@ -1742,6 +1789,36 @@ ajv@^6.12.4: json-schema-traverse "^0.4.1" uri-js "^4.2.2" +ajv@^8.0.0: + version "8.17.1" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.17.1.tgz#37d9a5c776af6bc92d7f4f9510eba4c0a60d11a6" + integrity sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g== + dependencies: + fast-deep-equal "^3.1.3" + fast-uri "^3.0.1" + json-schema-traverse "^1.0.0" + require-from-string "^2.0.2" + +ajv@~8.12.0: + version "8.12.0" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.12.0.tgz#d1a0527323e22f53562c567c00991577dfbe19d1" + integrity sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA== + dependencies: + fast-deep-equal "^3.1.1" + json-schema-traverse "^1.0.0" + require-from-string "^2.0.2" + uri-js "^4.2.2" + +ajv@~8.13.0: + version "8.13.0" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.13.0.tgz#a3939eaec9fb80d217ddf0c3376948c023f28c91" + integrity sha512-PRA911Blj99jR5RMeTunVbNXMF6Lp4vZXnk5GQjcnUWUTsrXtekg/pnmFFI2u/I36Y/2bITGS30GZCXei6uNkA== + dependencies: + fast-deep-equal "^3.1.3" + json-schema-traverse "^1.0.0" + require-from-string "^2.0.2" + uri-js "^4.4.1" + ansi-escapes@^4.2.1: version "4.3.1" resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.1.tgz#a5c47cc43181f1f38ffd7076837700d395522a61" @@ -1794,7 +1871,7 @@ append-transform@^1.0.0: dependencies: default-require-extensions "^2.0.0" -argparse@^1.0.7: +argparse@^1.0.7, argparse@~1.0.9: version "1.0.10" resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== @@ -1917,7 +1994,7 @@ asn1js@^3.0.6: ast-types-flow@^0.0.7: version "0.0.7" resolved "https://registry.yarnpkg.com/ast-types-flow/-/ast-types-flow-0.0.7.tgz#f70b735c6bca1a5c9c22d982c3e39e7feba3bdad" - integrity sha1-9wtzXGvKGlycItmCw+Oef+ujva0= + integrity sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag== ast-types@^0.16.1: version "0.16.1" @@ -1932,9 +2009,9 @@ async-function@^1.0.0: integrity sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA== async@^2.6.2: - version "2.6.3" - resolved "https://registry.yarnpkg.com/async/-/async-2.6.3.tgz#d72625e2344a3656e3a3ad4fa749fa83299d82ff" - integrity sha512-zflvls11DCy+dQWzTW2dzuilv8Z5X/pjfmZOWba6TNIVDm+2UDaJmXSOXlasHKfNBs8oo3M0aT50fDEWfKZjXg== + version "2.6.4" + resolved "https://registry.yarnpkg.com/async/-/async-2.6.4.tgz#706b7ff6084664cd7eae713f6f965433b5504221" + integrity sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA== dependencies: lodash "^4.17.14" @@ -1989,29 +2066,29 @@ babel-plugin-jest-hoist@^29.6.3: "@types/babel__core" "^7.1.14" "@types/babel__traverse" "^7.0.6" -babel-plugin-polyfill-corejs2@^0.4.10: - version "0.4.12" - resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.12.tgz#ca55bbec8ab0edeeef3d7b8ffd75322e210879a9" - integrity sha512-CPWT6BwvhrTO2d8QVorhTCQw9Y43zOu7G9HigcfxvepOU6b8o3tcWad6oVgZIsZCTt42FFv97aA7ZJsbM4+8og== +babel-plugin-polyfill-corejs2@^0.4.14: + version "0.4.17" + resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.17.tgz#198f970f1c99a856b466d1187e88ce30bd199d91" + integrity sha512-aTyf30K/rqAsNwN76zYrdtx8obu0E4KoUME29B1xj+B3WxgvWkp943vYQ+z8Mv3lw9xHXMHpvSPOBxzAkIa94w== dependencies: - "@babel/compat-data" "^7.22.6" - "@babel/helper-define-polyfill-provider" "^0.6.3" + "@babel/compat-data" "^7.28.6" + "@babel/helper-define-polyfill-provider" "^0.6.8" semver "^6.3.1" -babel-plugin-polyfill-corejs3@^0.10.6: - version "0.10.6" - resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.10.6.tgz#2deda57caef50f59c525aeb4964d3b2f867710c7" - integrity sha512-b37+KR2i/khY5sKmWNVQAnitvquQbNdWy6lJdsr0kmquCKEEUgMKK4SboVM3HtfnZilfjr4MMQ7vY58FVWDtIA== +babel-plugin-polyfill-corejs3@^0.13.0: + version "0.13.0" + resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.13.0.tgz#bb7f6aeef7addff17f7602a08a6d19a128c30164" + integrity sha512-U+GNwMdSFgzVmfhNm8GJUX88AadB3uo9KpJqS3FaqNIPKgySuvMb+bHPsOmmuWyIcuqZj/pzt1RUIUZns4y2+A== dependencies: - "@babel/helper-define-polyfill-provider" "^0.6.2" - core-js-compat "^3.38.0" + "@babel/helper-define-polyfill-provider" "^0.6.5" + core-js-compat "^3.43.0" -babel-plugin-polyfill-regenerator@^0.6.1: - version "0.6.3" - resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.6.3.tgz#abeb1f3f1c762eace37587f42548b08b57789bc8" - integrity sha512-LiWSbl4CRSIa5x/JAU6jZiG9eit9w6mz+yVMFwDE83LAWvt0AfGBoZ7HS/mkhrKuh2ZlzfVZYKoLjXdqw6Yt7Q== +babel-plugin-polyfill-regenerator@^0.6.5: + version "0.6.8" + resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.6.8.tgz#8a6bfd5dd54239362b3d06ce47ac52b2d95d7721" + integrity sha512-M762rNHfSF1EV3SLtnCJXFoQbbIIz0OyRwnCmV0KPC7qosSfCO0QLTSuJX3ayAebubhE6oYBAYPrBA5ljowaZg== dependencies: - "@babel/helper-define-polyfill-provider" "^0.6.3" + "@babel/helper-define-polyfill-provider" "^0.6.8" babel-plugin-replace-ts-export-assignment@^0.0.2: version "0.0.2" @@ -2077,24 +2154,36 @@ babel-preset-jest@^29.6.3: babel-preset-current-node-syntax "^1.0.0" balanced-match@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" - integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== + version "1.0.0" + resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" + integrity sha512-9Y0g0Q8rmSt+H33DfKv7FOc3v+iRI+o1lbzt8jGcIosYW37IIW/2XVYq5NPdmaD5NQ59Nk26Kl/vZbwW9Fr8vg== balanced-match@^4.0.2: version "4.0.4" resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-4.0.4.tgz#bfb10662feed8196a2c62e7c68e17720c274179a" integrity sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA== +baseline-browser-mapping@^2.10.44: + version "2.11.4" + resolved "https://registry.yarnpkg.com/baseline-browser-mapping/-/baseline-browser-mapping-2.11.4.tgz#3da1a877a8be2ec06495123ce994b43af58cc55e" + integrity sha512-s4+sLr9mZ/CyqeRritFeYV/Zx73OAtmaHn6kkBS1XRoJn1hrg3xIDUcpicAEX68tkcIN0iBCgti31C8zxtkhsQ== + brace-expansion@^1.1.7: - version "1.1.15" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.15.tgz#a6d90d54067236e5f42570a3b7378d594d9b7738" - integrity sha512-EwOCDEex4quD37XhqM3omwtMoJjr//isUZz1JopUNWms+4Z2ViyM/k1YIRePpoVNnQhENnxtFjLaxNHrT7xIUg== + version "1.1.11" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" + integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== dependencies: balanced-match "^1.0.0" concat-map "0.0.1" -brace-expansion@^5.0.2, brace-expansion@^5.0.5: +brace-expansion@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.0.1.tgz#1edc459e0f0c548486ecf9fc99f2221364b9a0ae" + integrity sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA== + dependencies: + balanced-match "^1.0.0" + +brace-expansion@^5.0.5: version "5.0.6" resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-5.0.6.tgz#ec68fe0a641a29d8711579caf641d05bae1f2285" integrity sha512-kLpxurY4Z4r9sgMsyG0Z9uzsBlgiU/EFKhj/h91/8yHu0edo7XuixOIH3VcJ8kkxs6/jPzoI6U9Vj3WqbMQ94g== @@ -2108,27 +2197,28 @@ braces@^3.0.3: dependencies: fill-range "^7.1.1" -browserslist@^4.24.0, browserslist@^4.24.4: - version "4.24.4" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.24.4.tgz#c6b2865a3f08bcb860a0e827389003b9fe686e4b" - integrity sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A== +browserslist@^4.24.0, browserslist@^4.28.1: + version "4.28.7" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.28.7.tgz#409046517fccd2e51cdc20f077454b7141184028" + integrity sha512-JxV13hNrFxqjOc8alRbq9dK1MM79NEXYpma2B2J4wAtpWS5zIEIKqWPGCl7N4o7Uc7B7itylh7SuDujATRyyTw== dependencies: - caniuse-lite "^1.0.30001688" - electron-to-chromium "^1.5.73" - node-releases "^2.0.19" - update-browserslist-db "^1.1.1" + baseline-browser-mapping "^2.10.44" + caniuse-lite "^1.0.30001806" + electron-to-chromium "^1.5.393" + node-releases "^2.0.51" + update-browserslist-db "^1.2.3" -bser@2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/bser/-/bser-2.1.1.tgz#e6787da20ece9d07998533cfd9de6f5c38f4bc05" - integrity sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ== +bser@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/bser/-/bser-2.1.0.tgz#65fc784bf7f87c009b973c12db6546902fa9c7b5" + integrity sha512-8zsjWrQkkBoLK6uxASk1nJ2SKv97ltiGDo6A3wA0/yRPz+CwmEyDo0hUrhIuukG2JHpAl3bvFIixw2/3Hi0DOg== dependencies: node-int64 "^0.4.0" buffer-from@^1.0.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" - integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A== + version "1.0.0" + resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.0.0.tgz#4cb8832d23612589b0406e9e2956c17f06fdf531" + integrity sha512-83apNb8KK0Se60UE1+4Ukbe3HbfELJ6UlI4ldtOGs7So4KD26orJM8hIY9lxdzP+UpItH1Yh/Y8GUvNFWFFRxA== bytestreamjs@^2.0.1: version "2.0.1" @@ -2162,9 +2252,9 @@ call-bound@^1.0.2, call-bound@^1.0.3, call-bound@^1.0.4: get-intrinsic "^1.3.0" callsites@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" - integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== + version "3.0.0" + resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.0.0.tgz#fb7eb569b72ad7a45812f93fd9430a3e410b3dd3" + integrity sha512-tWnkwu9YEq2uzlBDI4RcLn8jrFvF9AOi8PxDNU3hZZjJcjkcRAq3vCI+vZcg1SuxISDYe86k9VZFwAxDiJGoAw== camelcase@^5.3.1: version "5.3.1" @@ -2176,15 +2266,15 @@ camelcase@^6.2.0: resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== -caniuse-lite@^1.0.30001688: - version "1.0.30001702" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001702.tgz#cde16fa8adaa066c04aec2967b6cde46354644c4" - integrity sha512-LoPe/D7zioC0REI5W73PeR1e1MLCipRGq/VkovJnd6Df+QVqT+vT33OXCp8QUd7kA7RZrHWxb1B36OQKI/0gOA== +caniuse-lite@^1.0.30001806: + version "1.0.30001806" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001806.tgz#1bc8e502b723fa393455dfbedd5ccec0c29bb74e" + integrity sha512-72Cuvd95zbSYPKq6Fhg8eDJRlzgWDf7/mtoZv6Qe/DYNCEBdNxoA3+rZAU2ZhGCpZlns3EssFavaZomckT5Uuw== chalk@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.0.0.tgz#6e98081ed2d17faab615eb52ac66ec1fe6209e72" - integrity sha512-N9oWFcegS0sFr9oh1oz2d7Npos6vNoWW9HvtCg5N1KRFpUhaAhvTv5Y58g880fZaEYSNm3qDz8SU1UrGvp+n7A== + version "4.1.2" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" + integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== dependencies: ansi-styles "^4.1.0" supports-color "^7.1.0" @@ -2235,7 +2325,7 @@ clone-deep@^4.0.1: co@^4.6.0: version "4.6.0" resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" - integrity sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ= + integrity sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ== collect-v8-coverage@^1.0.0: version "1.0.1" @@ -2260,14 +2350,14 @@ commander@^2.20.0: integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== common-tags@^1.4.0: - version "1.8.2" - resolved "https://registry.yarnpkg.com/common-tags/-/common-tags-1.8.2.tgz#94ebb3c076d26032745fd54face7f688ef5ac9c6" - integrity sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA== + version "1.8.0" + resolved "https://registry.yarnpkg.com/common-tags/-/common-tags-1.8.0.tgz#8e3153e542d4a39e9b10554434afaaf98956a937" + integrity sha512-6P6g0uetGpW/sdyUy/iQQCbFF0kWVMSIVSyYz7Zgjcgh8mgw8PQzDNZeyZ5DQ2gM7LBoZPHmnjz8rUthkBG5tw== commondir@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b" - integrity sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs= + integrity sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg== compare-versions@^3.4.0: version "3.6.0" @@ -2280,19 +2370,19 @@ concat-map@0.0.1: integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg== connect@^3.6.5: - version "3.7.0" - resolved "https://registry.yarnpkg.com/connect/-/connect-3.7.0.tgz#5d49348910caa5e07a01800b030d0c35f20484f8" - integrity sha512-ZqRXc+tZukToSNmh5C2iWMSoV3X1YUcPbqEM4DkEG5tNQXrQUZCNVGGv3IuicnkMtPfGf3Xtp8WCXs295iQ1pQ== + version "3.6.5" + resolved "https://registry.yarnpkg.com/connect/-/connect-3.6.5.tgz#fb8dde7ba0763877d0ec9df9dac0b4b40e72c7da" + integrity sha512-B+WTJ0bDgjQugnbNF7fWGvwEgTj9Isdk3Y7yTZlgCuVe+hpl/do8frEMeimx7sRMPW3oZA+EsC9uDZL8MaaAwQ== dependencies: debug "2.6.9" - finalhandler "1.1.2" - parseurl "~1.3.3" + finalhandler "1.0.6" + parseurl "~1.3.2" utils-merge "1.0.1" convert-source-map@^1.6.0: - version "1.7.0" - resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.7.0.tgz#17a2cb882d7f77d3490585e2ce6c524424a3a442" - integrity sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA== + version "1.8.0" + resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.8.0.tgz#f3373c32d21b4d780dd8004514684fb791ca4369" + integrity sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA== dependencies: safe-buffer "~5.1.1" @@ -2301,17 +2391,17 @@ convert-source-map@^2.0.0: resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-2.0.0.tgz#4b560f649fc4e918dd0ab75cf4961e8bc882d82a" integrity sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg== -core-js-compat@^3.38.0: - version "3.41.0" - resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.41.0.tgz#4cdfce95f39a8f27759b667cf693d96e5dda3d17" - integrity sha512-RFsU9LySVue9RTwdDVX/T0e2Y6jRYWXERKElIjpuEOEnxaXffI0X7RUwVzfYLfzuLXSNJDYoRYUAmRUcyln20A== +core-js-compat@^3.43.0: + version "3.49.0" + resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.49.0.tgz#06145447d92f4aaf258a0c44f24b47afaeaffef6" + integrity sha512-VQXt1jr9cBz03b331DFDCCP90b3fanciLkgiOoy8SBHy06gNf+vQ1A3WFLqG7I8TipYIKeYK9wxd0tUrvHcOZA== dependencies: - browserslist "^4.24.4" + browserslist "^4.28.1" -core-js-pure@^3.30.2: - version "3.41.0" - resolved "https://registry.yarnpkg.com/core-js-pure/-/core-js-pure-3.41.0.tgz#349fecad168d60807a31e83c99d73d786fe80811" - integrity sha512-71Gzp96T9YPk63aUvE5Q5qP+DryB4ZloUZPSOebGM88VNw8VNfvdA7z6kGA8iGOTEzAomsRidp4jXSmUIJsL+Q== +core-js-pure@^3.48.0: + version "3.49.0" + resolved "https://registry.yarnpkg.com/core-js-pure/-/core-js-pure-3.49.0.tgz#ff8436b7251a3832f5fdbbe3e10f7f2e58e51fb1" + integrity sha512-XM4RFka59xATyJv/cS3O3Kml72hQXUeGRuuTmMYFxwzc9/7C8OYTaIR/Ji+Yt8DXzsFLNhat15cE/JP15HrCgw== create-jest@^29.7.0: version "29.7.0" @@ -2327,9 +2417,9 @@ create-jest@^29.7.0: prompts "^2.0.1" cross-spawn@^7.0.2, cross-spawn@^7.0.3: - version "7.0.3" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" - integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== + version "7.0.6" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.6.tgz#8a58fe78f00dcd70c370451759dfbfaf03e8ee9f" + integrity sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA== dependencies: path-key "^3.1.0" shebang-command "^2.0.0" @@ -2375,9 +2465,9 @@ debug@2.6.9: ms "2.0.0" debug@4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.4, debug@^4.4.0: - version "4.4.0" - resolved "https://registry.yarnpkg.com/debug/-/debug-4.4.0.tgz#2b3f2aea2ffeb776477460267377dc8710faba8a" - integrity sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA== + version "4.4.1" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.4.1.tgz#e5a8bc6cbc4c6cd3e64308b0693a3d4fa550189b" + integrity sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ== dependencies: ms "^2.1.3" @@ -2388,7 +2478,7 @@ debug@^3.2.7: dependencies: ms "^2.1.1" -debug@^4.4.1, debug@^4.4.3: +debug@^4.4.3: version "4.4.3" resolved "https://registry.yarnpkg.com/debug/-/debug-4.4.3.tgz#c6ae432d9bd9662582fce08709b038c58e9e3d6a" integrity sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA== @@ -2398,7 +2488,7 @@ debug@^4.4.1, debug@^4.4.3: dedent@^0.7.0: version "0.7.0" resolved "https://registry.yarnpkg.com/dedent/-/dedent-0.7.0.tgz#2495ddbaf6eb874abb0e1be9df22d2e5a544326c" - integrity sha1-JJXduvbrh0q7Dhvp3yLS5aVEMmw= + integrity sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA== dedent@^1.0.0: version "1.5.1" @@ -2408,17 +2498,17 @@ dedent@^1.0.0: deep-is@^0.1.3: version "0.1.3" resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" - integrity sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ= + integrity sha512-GtxAN4HvBachZzm4OnWqc45ESpUCMwkYcsjnsPs23FwJbsO+k4t0k9bQCgOmzIlpHO28+WPK/KRbRk0DDHuuDw== deepmerge@^4.2.2: - version "4.2.2" - resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.2.2.tgz#44d2ea3679b8f4d4ffba33f03d865fc1e7bf4955" - integrity sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg== + version "4.3.1" + resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.3.1.tgz#44b5f2147cd3b00d4b56137685966f26fd25dd4a" + integrity sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A== default-require-extensions@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/default-require-extensions/-/default-require-extensions-2.0.0.tgz#f5f8fbb18a7d6d50b21f641f649ebb522cfe24f7" - integrity sha1-9fj7sYp9bVCyH2QfZJ67Uiz+JPc= + integrity sha512-B0n2zDIXpzLzKeoEozorDSa1cHc1t0NjmxP0zuAxbizNU2MBqYJJKYXrrFdKuQliojXynrxgd7l4ahfg/+aA5g== dependencies: strip-bom "^3.0.0" @@ -2475,18 +2565,18 @@ dunder-proto@^1.0.0, dunder-proto@^1.0.1: duplexer@^0.1.1: version "0.1.1" - resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.1.tgz#ace6ff808c1ce66b57d1ebf97977acb02334cfc1" - integrity sha1-rOb/gIwc5mtX0ev5eXessCM0z8E= + resolved duplexer-0.1.1.tgz#ace6ff808c1ce66b57d1ebf97977acb02334cfc1 + integrity sha512-sxNZ+ljy+RA1maXoUReeqBBpBC6RLKmg5ewzV+x+mSETmWNoKdZN6vcQjpFROemza23hGFskJtFNoUWUaQ+R4Q== ee-first@1.1.1: version "1.1.1" - resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" - integrity sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0= + resolved ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d + integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow== -electron-to-chromium@^1.5.73: - version "1.5.112" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.112.tgz#8d3d95d4d5653836327890282c8eda5c6f26626d" - integrity sha512-oen93kVyqSb3l+ziUgzIOlWt/oOuy4zRmpwestMn4rhFWAoFJeFuCVte9F2fASjeZZo7l/Cif9TiyrdW4CwEMA== +electron-to-chromium@^1.5.393: + version "1.5.396" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.396.tgz#4aa96428486c8d1c9c8aeb205b2d6e04928ca046" + integrity sha512-yHiw2Y3C3H9U6TMbOfoWK/BPreiOPXRfTWPBwQBoZG6/8TB6eOPnsy5oaRYuatR7Fw2SJ4kKforgufeo7fq0EQ== emittery@^0.13.1: version "0.13.1" @@ -2503,10 +2593,10 @@ emoji-regex@^9.2.2: resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-9.2.2.tgz#840c8803b0d8047f4ff0cf963176b32d4ef3ed72" integrity sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg== -encodeurl@~1.0.2: +encodeurl@~1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" - integrity sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k= + integrity sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w== error-ex@^1.3.1: version "1.3.2" @@ -2654,13 +2744,13 @@ escalade@^3.1.1, escalade@^3.2.0: escape-html@~1.0.3: version "1.0.3" - resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" - integrity sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg= + resolved escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988 + integrity sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow== escape-string-regexp@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" - integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= + integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg== escape-string-regexp@^2.0.0: version "2.0.0" @@ -2894,9 +2984,9 @@ esprima@^4.0.0, esprima@~4.0.0: integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== esquery@^1.4.0, esquery@^1.4.2: - version "1.6.0" - resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.6.0.tgz#91419234f804d852a82dceec3e16cdc22cf9dae7" - integrity sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg== + version "1.5.0" + resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.5.0.tgz#6ce17738de8577694edd7361c57182ac8cb0db0b" + integrity sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg== dependencies: estraverse "^5.1.0" @@ -2935,7 +3025,7 @@ execa@^5.0.0: exit@^0.1.2: version "0.1.2" resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c" - integrity sha1-BjJjj42HfMghB9MKD/8aF8uhzQw= + integrity sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ== expect@^29.7.0: version "29.7.0" @@ -2977,7 +3067,12 @@ fast-json-stable-stringify@^2.0.0, fast-json-stable-stringify@^2.1.0: fast-levenshtein@^2.0.6: version "2.0.6" resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" - integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc= + integrity sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw== + +fast-uri@^3.0.1: + version "3.0.6" + resolved "https://registry.yarnpkg.com/fast-uri/-/fast-uri-3.0.6.tgz#88f130b77cfaea2378d56bf970dea21257a68748" + integrity sha512-Atfo14OibSv5wAp4VWNsFYE1AchQRTv9cBGWET4pZWHzYshFSS9NQI6I57rdKn9croWVMbYFbLhJ+yJvmZIIHw== fastq@^1.6.0: version "1.13.0" @@ -2987,11 +3082,11 @@ fastq@^1.6.0: reusify "^1.0.4" fb-watchman@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-2.0.1.tgz#fc84fb39d2709cf3ff6d743706157bb5708a8a85" - integrity sha512-DkPJKQeY6kKwmuMretBhr7G6Vodr7bFwDYTXIkfG1gjvNpaxBTQV3PbXg6bR1c1UP4jPOX0jHUbbHANL9vRjVg== + version "2.0.0" + resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-2.0.0.tgz#54e9abf7dfa2f26cd9b1636c588c1afc05de5d58" + integrity sha512-+6dk4acfiWsbMc8pH0boQDeQprOM4mO/kS4IAvZVJZk4B6CZYLg4DkTGbL82vhglUXDtkJPnLfO0WXv3uxGNfA== dependencies: - bser "2.1.1" + bser "^2.0.0" fdir@^6.5.0: version "6.5.0" @@ -3008,7 +3103,7 @@ file-entry-cache@^6.0.1: fileset@^2.0.3: version "2.0.3" resolved "https://registry.yarnpkg.com/fileset/-/fileset-2.0.3.tgz#8e7548a96d3cc2327ee5e674168723a333bba2a0" - integrity sha1-jnVIqW08wjJ+5eZ0FocjozO7oqA= + integrity sha512-UxowFKnAFIwtmSxgKjWAVgjE3Fk7MQJT0ZIyl0NwIFZTrx4913rLaonGJ84V+x/2+w/pe4ULHRns+GZPs1TVuw== dependencies: glob "^7.0.3" minimatch "^3.0.3" @@ -3020,17 +3115,17 @@ fill-range@^7.1.1: dependencies: to-regex-range "^5.0.1" -finalhandler@1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.1.2.tgz#b7e7d000ffd11938d0fdb053506f6ebabe9f587d" - integrity sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA== +finalhandler@1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.0.6.tgz#007aea33d1a4d3e42017f624848ad58d212f814f" + integrity sha512-immlyyYCPWG2tajlYBhZ6cjLAv1QAclU8tKS0d27ZtPqm/+iddy16GT3xLExg+V4lIETLpPwaYQAlZHNE//dPA== dependencies: debug "2.6.9" - encodeurl "~1.0.2" + encodeurl "~1.0.1" escape-html "~1.0.3" on-finished "~2.3.0" - parseurl "~1.3.3" - statuses "~1.5.0" + parseurl "~1.3.2" + statuses "~1.3.1" unpipe "~1.0.0" find-cache-dir@^2.0.0: @@ -3074,9 +3169,9 @@ flat-cache@^3.0.4: rimraf "^3.0.2" flatted@^3.1.0: - version "3.4.2" - resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.4.2.tgz#f5c23c107f0f37de8dbdf24f13722b3b98d52726" - integrity sha512-PjDse7RzhcPkIJwy5t7KPWQSZ9cAbzQXcafsetQoD7sOJRQlGikNbx7yZp2OotDnJyrDcbyRq3Ttb18iYOqkxA== + version "3.2.7" + resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.7.tgz#609f39207cb614b89d0765b477cb2d437fbf9787" + integrity sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ== flow-api-translator@0.37.0: version "0.37.0" @@ -3104,9 +3199,9 @@ flow-enums-runtime@^0.0.6: integrity sha512-3PYnM29RFXwvAN6Pc/scUfkI7RwhQ/xqyLUyPNlXUp9S40zI8nup9tUSrTLSVnWGBN38FNiGWbwZOB6uR4OGdw== flow-parser@0.*: - version "0.213.1" - resolved "https://registry.yarnpkg.com/flow-parser/-/flow-parser-0.213.1.tgz#c1916465050b165c9d8b931c02d78fe582e6c20c" - integrity sha512-l+vyZO6hrWG60DredryA8mq62fK9vxL6/RR13HA/aVLBNh9No/wEJsKI+CJqPRkF4CIRUfcJQBeaMXSKcncxUQ== + version "0.163.0" + resolved "https://registry.yarnpkg.com/flow-parser/-/flow-parser-0.163.0.tgz#c2d5c77c57c53e8357016a837f3e3af04a0c87a6" + integrity sha512-txOsBcZ1nKsKtoAsBFnArFdq0cnPCmEHI5S2jQIgU1ZO1xtWpg64TsZSRktsaOyoWLpAvVxPap4Qbdd/TCJ3FQ== for-each@^0.3.3, for-each@^0.3.5: version "0.3.5" @@ -3115,10 +3210,19 @@ for-each@^0.3.3, for-each@^0.3.5: dependencies: is-callable "^1.2.7" +fs-extra@~11.3.0: + version "11.3.0" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-11.3.0.tgz#0daced136bbaf65a555a326719af931adc7a314d" + integrity sha512-Z4XaCL6dUDHfP/jT25jJKMmtxvuwbkrD1vNSMFlo9lNLY2c5FHYSQgHPRZUjAB26TpDEoW9HCOgplrdbaPV/ew== + dependencies: + graceful-fs "^4.2.0" + jsonfile "^6.0.1" + universalify "^2.0.0" + fs.realpath@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" - integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= + integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== fsevents@^2.3.2: version "2.3.2" @@ -3220,26 +3324,21 @@ glob-to-regex.js@^1.0.1: integrity sha512-CG/iEvgQqfzoVsMUbxSJcwbG2JwyZ3naEqPkeltwl0BSS8Bp83k3xlGms+0QdWFUAwV+uvo80wNswKF6FWEkKg== glob@^7.0.3, glob@^7.1.1, glob@^7.1.3, glob@^7.1.4: - version "7.1.6" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6" - integrity sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA== + version "7.2.3" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b" + integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== dependencies: fs.realpath "^1.0.0" inflight "^1.0.4" inherits "2" - minimatch "^3.0.4" + minimatch "^3.1.1" once "^1.3.0" path-is-absolute "^1.0.0" -globals@^11.1.0: - version "11.12.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" - integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== - globals@^13.19.0: - version "13.21.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-13.21.0.tgz#163aae12f34ef502f5153cfbdd3600f36c63c571" - integrity sha512-ybyme3s4yy/t/3s35bewwXKOf7cvzfreG2lH0lZl0JB7I4GxRP2ghxOK/Nb9EkRXdbBXZLfq/p/0W2JUONB/Gg== + version "13.20.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-13.20.0.tgz#ea276a1e508ffd4f1612888f9d1bad1e2717bf82" + integrity sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ== dependencies: type-fest "^0.20.2" @@ -3256,10 +3355,10 @@ gopd@^1.0.1, gopd@^1.2.0: resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.2.0.tgz#89f56b8217bdbc8802bd299df6d7f1081d7e51a1" integrity sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg== -graceful-fs@^4.2.4, graceful-fs@^4.2.9: - version "4.2.10" - resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.10.tgz#147d3a006da4ca3ce14728c7aefc287c367d7a6c" - integrity sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA== +graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.4, graceful-fs@^4.2.9: + version "4.2.11" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" + integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== graphemer@^1.4.0: version "1.4.0" @@ -3272,14 +3371,14 @@ graphemer@^1.4.0: integrity sha512-AnnKk7hFQFmU/2I9YSQf3xw44ctnSFCfp3zE0N6W174gqe9fWG/2rKaKxROK7CcI3XtERpjEKFqts8o319Kf7A== has-bigints@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/has-bigints/-/has-bigints-1.0.2.tgz#0871bd3e3d51626f6ca0966668ba35d5602d6eaa" - integrity sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ== + version "1.1.0" + resolved "https://registry.yarnpkg.com/has-bigints/-/has-bigints-1.1.0.tgz#28607e965ac967e03cd2a2c70a2636a1edad49fe" + integrity sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg== has-flag@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" - integrity sha1-tdRU3CGZriJWmfNGfloH87lVuv0= + integrity sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw== has-flag@^4.0.0: version "4.0.0" @@ -3377,11 +3476,11 @@ html-escaper@^2.0.0: integrity sha512-a4u9BeERWGu/S8JiWEAQcdrg9v4QArtP9keViQjGMdff20fBdd8waotXaNmODqBe6uZ3Nafi7K/ho4gCQHV3Ig== https-proxy-agent@^7.0.5: - version "7.0.5" - resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-7.0.5.tgz#9e8b5013873299e11fab6fd548405da2d6c602b2" - integrity sha512-1e4Wqeblerz+tMKPIq2EMGiiWW1dIjZOksyHWSUm1rmuvw/how9hBHZ38lAGj5ID4Ik6EdkOw7NmWPy6LAwalw== + version "7.0.6" + resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz#da8dfeac7da130b05c2ba4b59c9b6cd66611a6b9" + integrity sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw== dependencies: - agent-base "^7.0.2" + agent-base "^7.1.2" debug "4" human-signals@^2.1.0: @@ -3395,9 +3494,9 @@ hyperdyperid@^1.2.0: integrity sha512-Y93lCzHYgGWdrJ66yIktxiaGULYc6oGiABxhcO5AufBeOyoIdZF7bIfLaOrbM0iGIOXQQgxxRrFEnb+Y6w1n4A== ignore@^5.2.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.0.tgz#6d3bac8fa7fe0d45d9f9be7bac2fc279577e345a" - integrity sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ== + version "5.2.4" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.4.tgz#a291c0c6178ff1b960befe47fcdec301674a6324" + integrity sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ== ignore@^7.0.5: version "7.0.5" @@ -3412,13 +3511,18 @@ image-size@^1.0.2: queue "6.0.2" import-fresh@^3.2.1: - version "3.2.2" - resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.2.2.tgz#fc129c160c5d68235507f4331a6baad186bdbc3e" - integrity sha512-cTPNrlvJT6twpYy+YmKUKrTSjWFs3bjYjAhCwm+z4EOCubZxAuO+hHpRN64TqjEaYSHs7tJAE0w1CKMGmsG/lw== + version "3.3.0" + resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b" + integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw== dependencies: parent-module "^1.0.0" resolve-from "^4.0.0" +import-lazy@~4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/import-lazy/-/import-lazy-4.0.0.tgz#e8eb627483a0a43da3c03f3e35548be5cb0cc153" + integrity sha512-rKtvo6a868b5Hu3heneU+L4yEQ4jYKLtjpnPeUdK7h0yzXGmyBTypknlkCvHFBqfX9YlorEiMM6Dnq/5atfHkw== + import-local@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/import-local/-/import-local-3.0.2.tgz#a8cfd0431d1de4a2199703d003e3e62364fa6db6" @@ -3430,12 +3534,12 @@ import-local@^3.0.2: imurmurhash@^0.1.4: version "0.1.4" resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" - integrity sha1-khi5srkoojixPcT7a21XbyMUU+o= + integrity sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA== inflight@^1.0.4: version "1.0.6" resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" - integrity sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk= + integrity sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA== dependencies: once "^1.3.0" wrappy "1" @@ -3472,8 +3576,8 @@ is-array-buffer@^3.0.4, is-array-buffer@^3.0.5: is-arrayish@^0.2.1: version "0.2.1" - resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" - integrity sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0= + resolved is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d + integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg== is-async-function@^2.0.0: version "2.1.1" @@ -3533,7 +3637,7 @@ is-date-object@^1.0.5, is-date-object@^1.1.0: is-extglob@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" - integrity sha1-qIwCU1eR8C7TfHahueqXc8gz+MI= + integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ== is-finalizationregistry@^1.1.0: version "1.1.1" @@ -3548,9 +3652,9 @@ is-fullwidth-code-point@^3.0.0: integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== is-generator-fn@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-2.1.0.tgz#7d140adc389aaf3011a8f2a2a4cfa6faadffb118" - integrity sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ== + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-2.0.0.tgz#038c31b774709641bda678b1f06a4e3227c10b3e" + integrity sha512-elzyIdM7iKoFHzcrndIqjYomImhxrFRnGP3galODoII4TB9gI7mZ+FnlLQmmjf27SxHS2gKEeyhX5/+YRS6H9g== is-generator-function@^1.0.10: version "1.1.2" @@ -3684,12 +3788,12 @@ isarray@^2.0.5: isexe@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" - integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA= + integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== isobject@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" - integrity sha1-TkMekrEalzFjaqH5yNHMvP2reN8= + integrity sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg== istanbul-api@3.0.0: version "3.0.0" @@ -3758,13 +3862,13 @@ istanbul-lib-instrument@^5.0.4: semver "^6.3.0" istanbul-lib-instrument@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.0.tgz#7a8af094cbfff1d5bb280f62ce043695ae8dd5b8" - integrity sha512-x58orMzEVfzPUKqlbLd1hXCnySCxKdDKa6Rjg97CwuLLRI4g3FHTdnExu1OqffVFay6zeMW+T6/DowFLndWnIw== + version "6.0.3" + resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.3.tgz#fa15401df6c15874bcb2105f773325d78c666765" + integrity sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q== dependencies: - "@babel/core" "^7.12.3" - "@babel/parser" "^7.14.7" - "@istanbuljs/schema" "^0.1.2" + "@babel/core" "^7.23.9" + "@babel/parser" "^7.23.9" + "@istanbuljs/schema" "^0.1.3" istanbul-lib-coverage "^3.2.0" semver "^7.5.4" @@ -4219,15 +4323,20 @@ jest@^29.7.0: import-local "^3.0.2" jest-cli "^29.7.0" +jju@~1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/jju/-/jju-1.4.0.tgz#a3abe2718af241a2b2904f84a625970f389ae32a" + integrity sha512-8wb9Yw966OSxApiCt0K3yNJL8pnNeIv+OEq2YMidz4FKP6nonSRoOXc80iXY4JaN2FC11B9qsNmDsm+ZOfMROA== + "js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== js-yaml@^3.13.1: - version "3.13.1" - resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.13.1.tgz#aff151b30bfdfa8e49e05da22e7415e9dfa37847" - integrity sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw== + version "3.14.1" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.1.tgz#dae812fdb3825fa306609a8717383c50c36a0537" + integrity sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g== dependencies: argparse "^1.0.7" esprima "^4.0.0" @@ -4268,16 +4377,11 @@ jscodeshift@^17.0.0: tmp "^0.2.3" write-file-atomic "^5.0.1" -jsesc@^3.0.2: +jsesc@^3.0.2, jsesc@~3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-3.1.0.tgz#74d335a234f67ed19907fdadfac7ccf9d409825d" integrity sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA== -jsesc@~3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-3.0.2.tgz#bb8b09a6597ba426425f2e4a07245c3d00b9343e" - integrity sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g== - json-parse-even-better-errors@^2.3.0: version "2.3.1" resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz#7c47805a94319928e05777405dc12e1f7a4ee02d" @@ -4288,30 +4392,51 @@ json-schema-traverse@^0.4.1: resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== +json-schema-traverse@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz#ae7bcb3656ab77a73ba5c49bf654f38e6b6860e2" + integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug== + json-stable-stringify-without-jsonify@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" - integrity sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE= + integrity sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw== + +json5@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/json5/-/json5-1.0.2.tgz#63d98d60f21b313b77c4d6da18bfa69d80e1d593" + integrity sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA== + dependencies: + minimist "^1.2.0" -json5@2.2.3, json5@^1.0.2, json5@^2.2.3: +json5@^2.2.3: version "2.2.3" resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283" integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg== jsonc-eslint-parser@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/jsonc-eslint-parser/-/jsonc-eslint-parser-2.3.0.tgz#7c2de97d01bff7227cbef2f25d1025d42a36198b" - integrity sha512-9xZPKVYp9DxnM3sd1yAsh/d59iIaswDkai8oTxbursfKYbg/ibjX0IzFt35+VZ8iEW453TVTXztnRvYUQlAfUQ== + version "2.4.0" + resolved "https://registry.yarnpkg.com/jsonc-eslint-parser/-/jsonc-eslint-parser-2.4.0.tgz#74ded53f9d716e8d0671bd167bf5391f452d5461" + integrity sha512-WYDyuc/uFcGp6YtM2H0uKmUwieOuzeE/5YocFJLnLfclZ4inf3mRn8ZVy1s7Hxji7Jxm6Ss8gqpexD/GlKoGgg== dependencies: acorn "^8.5.0" eslint-visitor-keys "^3.0.0" espree "^9.0.0" semver "^7.3.5" +jsonfile@^6.0.1: + version "6.1.0" + resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-6.1.0.tgz#bc55b2634793c679ec6403094eb13698a6ec0aae" + integrity sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ== + dependencies: + universalify "^2.0.0" + optionalDependencies: + graceful-fs "^4.1.6" + jsonparse@^1.2.0: - version "1.3.1" - resolved "https://registry.yarnpkg.com/jsonparse/-/jsonparse-1.3.1.tgz#3f4dae4a91fac315f71062f8521cc239f1366280" - integrity sha1-P02uSpH6wxX3EGL4UhzCOfE2YoA= + version "1.2.0" + resolved jsonparse-1.2.0.tgz#5c0c5685107160e72fe7489bddea0b44c2bc67bd + integrity sha512-LkDEYtKnPFI9hQ/IURETe6F1dUH80cbRkaF6RaViSwoSNPwaxQpi6TgJGvJKyLQ2/9pQW+XCxK3hBoR44RAjkg== "jsx-ast-utils@^2.4.1 || ^3.0.0", jsx-ast-utils@^3.3.1: version "3.3.2" @@ -4339,7 +4464,7 @@ language-subtag-registry@~0.3.2: language-tags@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/language-tags/-/language-tags-1.0.5.tgz#d321dbc4da30ba8bf3024e040fa5c14661f9193a" - integrity sha1-0yHbxNowuovzAk4ED6XBRmH5GTo= + integrity sha512-qJhlO9cGXi6hBGKoxEG/sKZDAHD5Hnu9Hs4WbOY3pCWXDhw0N8x1NenNzm2EnNLkLkk7J2SdxAkDSbb6ftT+UQ== dependencies: language-subtag-registry "~0.3.2" @@ -4359,7 +4484,7 @@ levn@^0.4.1: lines-and-columns@^1.1.6: version "1.1.6" resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.1.6.tgz#1c00c743b433cd0a4e80758f7b64a57440d9ff00" - integrity sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA= + integrity sha512-8ZmlJFVK9iCmtLz19HpSsR8HaAMWBT284VMNednLwlIMDP2hJDCIhUp0IZ2xUcZ+Ob6BM0VvCSJwzASDM45NLQ== locate-path@^3.0.0: version "3.0.0" @@ -4386,7 +4511,7 @@ locate-path@^6.0.0: lodash.debounce@^4.0.8: version "4.0.8" resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af" - integrity sha1-gteb/zCmfEAF/9XiUVMArZyk168= + integrity sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow== lodash.merge@^4.6.2: version "4.6.2" @@ -4401,13 +4526,18 @@ lodash.mergewith@^4.6.0: lodash.throttle@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/lodash.throttle/-/lodash.throttle-4.1.1.tgz#c23e91b710242ac70c37f1e1cda9274cc39bf2f4" - integrity sha1-wj6RtxAkKscMN/HhzaknTMOb8vQ= + integrity sha512-wIkUCfVKpVsWo3JSZlc+8MB5it+2AN5W8J7YVMST30UrvcQNZ1Okbj+rbVniijTWE6FGYy4XJq/rHkas8qJMLQ== lodash@^4.17.14, lodash@^4.17.21: version "4.18.1" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.18.1.tgz#ff2b66c1f6326d59513de2407bf881439812771c" integrity sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q== +lodash@~4.17.15: + version "4.17.21" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" + integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== + loose-envify@^1.0.0, loose-envify@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf" @@ -4422,6 +4552,13 @@ lru-cache@^5.1.1: dependencies: yallist "^3.0.2" +lru-cache@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94" + integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA== + dependencies: + yallist "^4.0.0" + make-dir@^2.0.0, make-dir@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-2.1.0.tgz#5f0310e18b8be898cc07009295a30ae41e91e6f5" @@ -4503,24 +4640,31 @@ minimatch@^10.2.2: dependencies: brace-expansion "^5.0.5" -minimatch@^3.0.3, minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.2: - version "3.1.5" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.5.tgz#580c88f8d5445f2bd6aa8f3cadefa0de79fbd69e" - integrity sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w== +minimatch@^3.0.3, minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" + integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== dependencies: brace-expansion "^1.1.7" minimatch@^9.0.4: - version "9.0.7" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.7.tgz#d76c4d0b3b527877016d6cc1b9922fc8e0ffe7b0" - integrity sha512-MOwgjc8tfrpn5QQEvjijjmDVtMw2oL88ugTevzxQnzRLm6l3fVEF2gzU0kYeYYKD8C66+IdGX6peJ4MyUlUnPg== + version "9.0.5" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.5.tgz#d74f9dd6b57d83d8e98cfb82133b03978bc929e5" + integrity sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow== dependencies: - brace-expansion "^5.0.2" + brace-expansion "^2.0.1" -minimist@^1.2.6: - version "1.2.7" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.7.tgz#daa1c4d91f507390437c6a8bc01078e7000c4d18" - integrity sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g== +minimatch@~3.0.3: + version "3.0.8" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.8.tgz#5e6a59bd11e2ab0de1cfb843eb2d82e546c321c1" + integrity sha512-6FsRAQsxQ61mw+qP1ZzbL9Bc78x2p5OqNgNpnoAFLTrX8n5Kxph0CsnhmKKNXTWjXqU5L0pGPR7hYk+XWZr60Q== + dependencies: + brace-expansion "^1.1.7" + +minimist@^1.2.0, minimist@^1.2.6: + version "1.2.8" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c" + integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== mkdirp@^1.0.4: version "1.0.4" @@ -4550,7 +4694,7 @@ ms@^2.1.1, ms@^2.1.3: natural-compare@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" - integrity sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc= + integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== negotiator@^1.0.0: version "1.0.0" @@ -4558,19 +4702,19 @@ negotiator@^1.0.0: integrity sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg== neo-async@^2.5.0: - version "2.6.2" - resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f" - integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw== + version "2.6.1" + resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.1.tgz#ac27ada66167fa8849a6addd837f6b189ad2081c" + integrity sha512-iyam8fBuCUpWeKPGpaNMetEocMt364qkCsfL9JuhjXX6dRnguRVOfk2GZaDpPjcOKiiXCPINZC1GczQ7iTq3Zw== node-int64@^0.4.0: version "0.4.0" - resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" - integrity sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs= + resolved node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b + integrity sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw== -node-releases@^2.0.19: - version "2.0.19" - resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.19.tgz#9e445a52950951ec4d177d843af370b411caf314" - integrity sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw== +node-releases@^2.0.51: + version "2.0.51" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.51.tgz#cdc08433577f5b32ad01694481726e22eeb54aef" + integrity sha512-wRNIrw4DmVLKQlbgOMdkMx27Wrpzes2hh5Jtbi2bjPd+4wJstWIqP5A+lscnqbm0xxmT5Bpg8Lec5ItEBwx6BQ== normalize-path@^3.0.0: version "3.0.0" @@ -4592,7 +4736,7 @@ nullthrows@^1.1.1: object-assign@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" - integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM= + integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg== object-inspect@^1.13.3, object-inspect@^1.13.4: version "1.13.4" @@ -4657,15 +4801,15 @@ object.values@^1.2.1: on-finished@~2.3.0: version "2.3.0" - resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947" - integrity sha1-IPEzZIGwg811M3mSoWlxqi2QaUc= + resolved on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947 + integrity sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww== dependencies: ee-first "1.1.1" once@^1.3.0, once@^1.4.0: version "1.4.0" - resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" - integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E= + resolved once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1 + integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== dependencies: wrappy "1" @@ -4754,7 +4898,7 @@ parse-json@^5.2.0: json-parse-even-better-errors "^2.3.0" lines-and-columns "^1.1.6" -parseurl@~1.3.3: +parseurl@~1.3.2: version "1.3.3" resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.3.tgz#9da19e7bee8d12dff0513ed5b76957793bc2e8d4" integrity sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ== @@ -4762,7 +4906,7 @@ parseurl@~1.3.3: path-exists@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" - integrity sha1-zg6+ql94yxiSXqfYENe1mwEP1RU= + integrity sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ== path-exists@^4.0.0: version "4.0.0" @@ -4771,8 +4915,8 @@ path-exists@^4.0.0: path-is-absolute@^1.0.0: version "1.0.1" - resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" - integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18= + resolved path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f + integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg== path-key@^3.0.0, path-key@^3.1.0: version "3.1.1" @@ -4790,14 +4934,14 @@ picocolors@^1.0.1, picocolors@^1.1.1: integrity sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA== picomatch@^2.0.4, picomatch@^2.2.3, picomatch@^2.3.1: - version "2.3.2" - resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.2.tgz#5a942915e26b372dc0f0e6753149a16e6b1c5601" - integrity sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA== + version "2.3.1" + resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" + integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== picomatch@^4.0.3: - version "4.0.4" - resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-4.0.4.tgz#fd6f5e00a143086e074dffe4c924b8fb293b0589" - integrity sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A== + version "4.0.3" + resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-4.0.3.tgz#796c76136d1eead715db1e7bad785dedd695a042" + integrity sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q== pify@^4.0.1: version "4.0.1" @@ -4865,12 +5009,12 @@ progress@^2.0.0: integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== prompts@^2.0.1: - version "2.3.2" - resolved "https://registry.yarnpkg.com/prompts/-/prompts-2.3.2.tgz#480572d89ecf39566d2bd3fe2c9fccb7c4c0b068" - integrity sha512-Q06uKs2CkNYVID0VqwfAl9mipo99zkBv/n2JtWY89Yxa3ZabWSrs0e2KTudKVa3peLUvYXMefDqIleLPVUBZMA== + version "2.4.2" + resolved "https://registry.yarnpkg.com/prompts/-/prompts-2.4.2.tgz#7b57e73b3a48029ad10ebd44f74b01722a4cb069" + integrity sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q== dependencies: kleur "^3.0.3" - sisteransi "^1.0.4" + sisteransi "^1.0.5" prop-types@^15.8.1: version "15.8.1" @@ -4882,9 +5026,9 @@ prop-types@^15.8.1: react-is "^16.13.1" punycode@^2.1.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" - integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== + version "2.3.0" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.3.0.tgz#f67fa67c94da8f4d0cfff981aee4118064199b8f" + integrity sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA== pure-rand@^6.0.0: version "6.0.2" @@ -4921,9 +5065,9 @@ react-is@^16.13.1: integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ== react-is@^18.0.0: - version "18.2.0" - resolved "https://registry.yarnpkg.com/react-is/-/react-is-18.2.0.tgz#199431eeaaa2e09f86427efbb4f1473edb47609b" - integrity sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w== + version "18.3.1" + resolved "https://registry.yarnpkg.com/react-is/-/react-is-18.3.1.tgz#e83557dc12eae63a99e003a46388b1dcbb44db7e" + integrity sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg== react-is@^19.2.3: version "19.2.3" @@ -4978,10 +5122,10 @@ reflect.getprototypeof@^1.0.6, reflect.getprototypeof@^1.0.9: get-proto "^1.0.1" which-builtin-type "^1.2.1" -regenerate-unicode-properties@^10.2.0: - version "10.2.0" - resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-10.2.0.tgz#626e39df8c372338ea9b8028d1f99dc3fd9c3db0" - integrity sha512-DqHn3DwbmmPVzeKj9woBadqmXxLvQoQIwu7nopMc72ztvxVmVk2SBhSnx67zuye5TP+lJsb/TBQsjLKhnDf3MA== +regenerate-unicode-properties@^10.2.2: + version "10.2.2" + resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-10.2.2.tgz#aa113812ba899b630658c7623466be71e1f86f66" + integrity sha512-m03P+zhBeQd1RGnYxrGyDAPpWX/epKirLrp8e3qevZdVkKtnCrjjWczIbYc8+xd6vcTStVlqfycTx1KR4LOr0g== dependencies: regenerate "^1.4.2" @@ -4990,18 +5134,6 @@ regenerate@^1.4.2: resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.2.tgz#b9346d8827e8f5a32f7ba29637d398b69014848a" integrity sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A== -regenerator-runtime@^0.14.0: - version "0.14.1" - resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz#356ade10263f685dda125100cd862c1db895327f" - integrity sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw== - -regenerator-transform@^0.15.2: - version "0.15.2" - resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.15.2.tgz#5bbae58b522098ebdf09bca2f83838929001c7a4" - integrity sha512-hfMp2BoF0qOk3uc5V20ALGDS2ddjQaLrdl7xrGXvAIow7qeWRM2VA2HuCHkUKk9slq3VwEwLNK3DFBqDfPGYtg== - dependencies: - "@babel/runtime" "^7.8.4" - regexp.prototype.flags@^1.5.3, regexp.prototype.flags@^1.5.4: version "1.5.4" resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.5.4.tgz#1ad6c62d44a259007e55b3970e00f746efbcaa19" @@ -5014,34 +5146,39 @@ regexp.prototype.flags@^1.5.3, regexp.prototype.flags@^1.5.4: gopd "^1.2.0" set-function-name "^2.0.2" -regexpu-core@^6.2.0: - version "6.2.0" - resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-6.2.0.tgz#0e5190d79e542bf294955dccabae04d3c7d53826" - integrity sha512-H66BPQMrv+V16t8xtmq+UC0CBpiTBA60V8ibS1QVReIp8T1z8hwFxqcGzm9K6lgsN7sB5edVH8a+ze6Fqm4weA== +regexpu-core@^6.3.1: + version "6.4.0" + resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-6.4.0.tgz#3580ce0c4faedef599eccb146612436b62a176e5" + integrity sha512-0ghuzq67LI9bLXpOX/ISfve/Mq33a4aFRzoQYhnnok1JOFpmE/A2TBGkNVenOGEeSBCjIiWcc6MVOG5HEQv0sA== dependencies: regenerate "^1.4.2" - regenerate-unicode-properties "^10.2.0" + regenerate-unicode-properties "^10.2.2" regjsgen "^0.8.0" - regjsparser "^0.12.0" + regjsparser "^0.13.0" unicode-match-property-ecmascript "^2.0.0" - unicode-match-property-value-ecmascript "^2.1.0" + unicode-match-property-value-ecmascript "^2.2.1" regjsgen@^0.8.0: version "0.8.0" resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.8.0.tgz#df23ff26e0c5b300a6470cad160a9d090c3a37ab" integrity sha512-RvwtGe3d7LvWiDQXeQw8p5asZUmfU1G/l6WbUXeHta7Y2PEIvBTwH6E2EfmYUK8pxcxEdEmaomqyp0vZZ7C+3Q== -regjsparser@^0.12.0: - version "0.12.0" - resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.12.0.tgz#0e846df6c6530586429377de56e0475583b088dc" - integrity sha512-cnE+y8bz4NhMjISKbgeVJtqNbtf5QpjZP+Bslo+UqkIt9QPnX9q095eiRRASJG1/tz6dlNr6Z5NsBiWYokp6EQ== +regjsparser@^0.13.0: + version "0.13.2" + resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.13.2.tgz#f654734b5c588b22ba3e21693b30523417180808" + integrity sha512-NgRBy2Nx/bE+9F27nVHnqcN5HjyLmecqsqx2PJHu3/IEtADD4WuxuXIVExD5PoSDFVrl78dOonfcOe5O+5nbzQ== dependencies: - jsesc "~3.0.2" + jsesc "~3.1.0" require-directory@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" - integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= + integrity sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q== + +require-from-string@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909" + integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== resolve-cwd@^3.0.0: version "3.0.0" @@ -5065,7 +5202,7 @@ resolve.exports@^2.0.0: resolved "https://registry.yarnpkg.com/resolve.exports/-/resolve.exports-2.0.2.tgz#f8c934b8e6a13f539e38b7098e2e36134f01e800" integrity sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg== -resolve@^1.14.2, resolve@^1.20.0, resolve@^1.22.10, resolve@^1.22.4: +resolve@^1.20.0, resolve@^1.22.11, resolve@^1.22.4, resolve@~1.22.1, resolve@~1.22.2: version "1.22.11" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.11.tgz#aad857ce1ffb8bfa9b0b1ac29f1156383f68c262" integrity sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ== @@ -5121,9 +5258,9 @@ safe-array-concat@^1.1.3: isarray "^2.0.5" safe-buffer@~5.1.1: - version "5.1.2" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" - integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== + version "5.1.1" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.1.tgz#893312af69b2123def71f57889001671eeb2c853" + integrity sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg== safe-push-apply@^1.0.0: version "1.0.0" @@ -5156,9 +5293,9 @@ selfsigned@^5.5.0: pkijs "^3.3.3" semver@^5.6.0: - version "5.7.2" - resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.2.tgz#48d55db737c3287cd4835e17fa13feace1c41ef8" - integrity sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g== + version "5.7.1" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" + integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== semver@^6.0.0, semver@^6.3.0, semver@^6.3.1: version "6.3.1" @@ -5166,19 +5303,26 @@ semver@^6.0.0, semver@^6.3.0, semver@^6.3.1: integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== semver@^7.3.5, semver@^7.5.3, semver@^7.5.4, semver@^7.6.0: - version "7.6.3" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.3.tgz#980f7b5550bc175fb4dc09403085627f9eb33143" - integrity sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A== + version "7.7.2" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.7.2.tgz#67d99fdcd35cec21e6f8b87a7fd515a33f982b58" + integrity sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA== semver@^7.7.3: - version "7.7.4" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.7.4.tgz#28464e36060e991fa7a11d0279d2d3f3b57a7e8a" - integrity sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA== + version "7.7.3" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.7.3.tgz#4b5f4143d007633a8dc671cd0a6ef9147b8bb946" + integrity sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q== + +semver@~7.5.4: + version "7.5.4" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.4.tgz#483986ec4ed38e1c6c48c34894a9182dbff68a6e" + integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA== + dependencies: + lru-cache "^6.0.0" serialize-error@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/serialize-error/-/serialize-error-2.1.0.tgz#50b679d5635cdf84667bdc8e59af4e5b81d5f60a" - integrity sha1-ULZ51WNc34Rme9yOWa9OW4HV9go= + integrity sha512-ghgmKt5o4Tly5yEG/UJp8qTd0AN7Xalw4XBtDEKP655B699qMEtra1WlXeE6WIvdEG481JvRxULKsInq/iNysw== set-function-length@^1.2.2: version "1.2.2" @@ -5285,7 +5429,7 @@ signedsource@^2.0.0: resolved "https://registry.yarnpkg.com/signedsource/-/signedsource-2.0.0.tgz#f72dc0f98f5bca2763b464a555511a84a4da8eee" integrity sha512-MscTxXbMij5JVgrW1xDiMIc+vFa0+H0+HP+rRrFjwa7ef2VAxIP/4L/E75I5H4xvyb4l1X+a9ch+6Zy5uFu7Fg== -sisteransi@^1.0.4: +sisteransi@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/sisteransi/-/sisteransi-1.0.5.tgz#134d681297756437cc05ca01370d3a7a571075ed" integrity sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg== @@ -5319,7 +5463,7 @@ source-map-support@^0.5.16, source-map-support@~0.5.20: source-map@^0.5.6: version "0.5.7" resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" - integrity sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w= + integrity sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ== source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1: version "0.6.1" @@ -5329,12 +5473,12 @@ source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1: sprintf-js@~1.0.2: version "1.0.3" resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" - integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw= + integrity sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g== stack-trace@^0.0.10: version "0.0.10" resolved "https://registry.yarnpkg.com/stack-trace/-/stack-trace-0.0.10.tgz#547c70b347e8d32b4e108ea1a2a159e5fdde19c0" - integrity sha1-VHxws0fo0ytOEI6hoqFZ5f3eGcA= + integrity sha512-KGzahc7puUKkzyMt+IqAep+TVNbKP+k2Lmwhub39m1AsTSkaDutx56aDCo+HLDzf/D26BIHTJWNiTG1KAJiQCg== stack-utils@^2.0.3: version "2.0.5" @@ -5348,10 +5492,10 @@ stackframe@^1.1.1: resolved "https://registry.yarnpkg.com/stackframe/-/stackframe-1.1.1.tgz#ffef0a3318b1b60c3b58564989aca5660729ec71" integrity sha512-0PlYhdKh6AfFxRyK/v+6/k+/mMfyiEBbTM5L94D0ZytQnJ166wuwoTYLHFWGbs2dpA8Rgq763KGWmN1EQEYHRQ== -statuses@~1.5.0: - version "1.5.0" - resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c" - integrity sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow= +statuses@~1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.3.1.tgz#faf51b9eb74aaef3b3acf4ad5f61abf24cb7b93e" + integrity sha512-wuTCPGlJONk/a1kqZ4fQM2+908lC7fa7nPYpTC1EhnvqLX/IICbeP1OZGDtA374trpSq68YubKUMo8oRhN46yg== stop-iteration-iterator@^1.1.0: version "1.1.0" @@ -5361,6 +5505,11 @@ stop-iteration-iterator@^1.1.0: es-errors "^1.3.0" internal-slot "^1.1.0" +string-argv@~0.3.1: + version "0.3.2" + resolved "https://registry.yarnpkg.com/string-argv/-/string-argv-0.3.2.tgz#2b6d0ef24b656274d957d54e0a4bbf6153dc02b6" + integrity sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q== + string-length@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/string-length/-/string-length-4.0.1.tgz#4a973bf31ef77c4edbceadd6af2611996985f8a1" @@ -5466,8 +5615,8 @@ strip-ansi@^7.0.1: strip-bom@^3.0.0: version "3.0.0" - resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" - integrity sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM= + resolved strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3 + integrity sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA== strip-bom@^4.0.0: version "4.0.0" @@ -5484,7 +5633,7 @@ strip-indent@^2.0.0: resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-2.0.0.tgz#5ef8db295d01e6ed6cbf7aab96998d7822527b68" integrity sha512-RsSNPLpq6YUL7QYy44RnPVTn/lcVZtb48Uof3X5JLbF4zD/Gs7ZFDv2HWol+leoQN2mT86LAzSshGfkTlSOpsA== -strip-json-comments@^3.1.1: +strip-json-comments@^3.1.1, strip-json-comments@~3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== @@ -5503,7 +5652,7 @@ supports-color@^7.1.0: dependencies: has-flag "^4.0.0" -supports-color@^8.0.0: +supports-color@^8.0.0, supports-color@~8.1.1: version "8.1.1" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-8.1.1.tgz#cd6fc17e28500cff56c1b86c0a7fd4a54a73005c" integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q== @@ -5516,12 +5665,12 @@ supports-preserve-symlinks-flag@^1.0.0: integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== terser@^5.15.0: - version "5.15.0" - resolved "https://registry.yarnpkg.com/terser/-/terser-5.15.0.tgz#e16967894eeba6e1091509ec83f0c60e179f2425" - integrity sha512-L1BJiXVmheAQQy+as0oF3Pwtlo4s3Wi1X2zNZ2NxOB4wx9bdS9Vk67XQENLFdLYGCK/Z2di53mTj/hBafR+dTA== + version "5.41.0" + resolved "https://registry.yarnpkg.com/terser/-/terser-5.41.0.tgz#11646bba11eff72d506fbafbd0086f57173141e1" + integrity sha512-H406eLPXpZbAX14+B8psIuvIr8+3c+2hkuYzpMkoE0ij+NdsVATbA78vb8neA/eqrj7rywa2pIkdmWRsXW6wmw== dependencies: - "@jridgewell/source-map" "^0.3.2" - acorn "^8.5.0" + "@jridgewell/source-map" "^0.3.3" + acorn "^8.14.0" commander "^2.20.0" source-map-support "~0.5.20" @@ -5537,7 +5686,7 @@ test-exclude@^6.0.0: text-table@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" - integrity sha1-f17oI66AUgfACvLfSoTsP8+lcLQ= + integrity sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw== thingies@^2.5.0: version "2.5.0" @@ -5551,8 +5700,8 @@ throat@^5.0.0: "through@>=2.2.7 <3": version "2.3.8" - resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" - integrity sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU= + resolved through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5 + integrity sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg== tiny-invariant@^1.3.3: version "1.3.3" @@ -5568,9 +5717,9 @@ tinyglobby@^0.2.15: picomatch "^4.0.3" tmp@^0.2.3: - version "0.2.7" - resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.2.7.tgz#26f4db11d1601ce8012dcb8a798ece1c06a99059" - integrity sha512-e0votIpp4Uo2AJYSzVHV6xCcawuiez3DzqDAbrTc3YxBkplN6e+dM13ZeIcZnDg/QpSuU2zfZ3rzwY8ukEnaXw== + version "0.2.3" + resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.2.3.tgz#eb783cc22bc1e8bebd0671476d46ea4eb32a79ae" + integrity sha512-nZD7m9iCPC5g0pYmcaxogYKggSfLsdxl8of3Q/oIbqCqLLIO9IAF0GWjX1z9NZRHPiXv8Wex4yDCaZsgEw0Y8w== tmpl@1.0.5: version "1.0.5" @@ -5703,6 +5852,11 @@ typescript@5.3.2: resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.3.2.tgz#00d1c7c1c46928c5845c1ee8d0cc2791031d4c43" integrity sha512-6l+RyNy7oAHDfxC4FzSJcz9vnjTKxrLpDG5M2Vu4SHRVNg6xzqZp6LYSR9zjqQTu8DU/f5xwxUdADOkbrIX2gQ== +typescript@5.8.2: + version "5.8.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.8.2.tgz#8170b3702f74b79db2e5a96207c15e65807999e4" + integrity sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ== + typescript@^6.0.3: version "6.0.3" resolved "https://registry.yarnpkg.com/typescript/-/typescript-6.0.3.tgz#90251dc007916e972786cb94d74d15b185577d21" @@ -5718,10 +5872,10 @@ unbox-primitive@^1.1.0: has-symbols "^1.1.0" which-boxed-primitive "^1.1.1" -undici-types@~6.19.2: - version "6.19.8" - resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.19.8.tgz#35111c9d1437ab83a7cdc0abae2f26d88eda0a02" - integrity sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw== +undici-types@~6.21.0: + version "6.21.0" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.21.0.tgz#691d00af3909be93a7faa13be61b3a5b50ef12cb" + integrity sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ== unicode-canonical-property-names-ecmascript@^2.0.0: version "2.0.0" @@ -5736,40 +5890,45 @@ unicode-match-property-ecmascript@^2.0.0: unicode-canonical-property-names-ecmascript "^2.0.0" unicode-property-aliases-ecmascript "^2.0.0" -unicode-match-property-value-ecmascript@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.1.0.tgz#cb5fffdcd16a05124f5a4b0bf7c3770208acbbe0" - integrity sha512-qxkjQt6qjg/mYscYMC0XKRn3Rh0wFPlfxB0xkt9CfyTvpX1Ra0+rAmdX2QyAobptSEvuy4RtpPRui6XkV+8wjA== +unicode-match-property-value-ecmascript@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.2.1.tgz#65a7adfad8574c219890e219285ce4c64ed67eaa" + integrity sha512-JQ84qTuMg4nVkx8ga4A16a1epI9H6uTXAknqxkGF/aFfRLw1xC/Bp24HNLaZhHSkWd3+84t8iXnp1J0kYcZHhg== unicode-property-aliases-ecmascript@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.0.0.tgz#0a36cb9a585c4f6abd51ad1deddb285c165297c8" integrity sha512-5Zfuy9q/DFr4tfO7ZPeVXb1aPoeQSdeFMLpYuFebehDAhbuevLs5yxSZmIFN1tP5F9Wl4IpJrYojg85/zgyZHQ== +universalify@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/universalify/-/universalify-2.0.0.tgz#75a4984efedc4b08975c5aeb73f530d02df25717" + integrity sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ== + unpipe@~1.0.0: version "1.0.0" - resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" - integrity sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw= + resolved unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec + integrity sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ== -update-browserslist-db@^1.1.1: - version "1.1.3" - resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz#348377dd245216f9e7060ff50b15a1b740b75420" - integrity sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw== +update-browserslist-db@^1.2.3: + version "1.2.3" + resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz#64d76db58713136acbeb4c49114366cc6cc2e80d" + integrity sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w== dependencies: escalade "^3.2.0" picocolors "^1.1.1" -uri-js@^4.2.2: - version "4.2.2" - resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.2.2.tgz#94c540e1ff772956e2299507c010aea6c8838eb0" - integrity sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ== +uri-js@^4.2.2, uri-js@^4.4.1: + version "4.4.1" + resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e" + integrity sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg== dependencies: punycode "^2.1.0" utils-merge@1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713" - integrity sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM= + integrity sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA== uuid@^8.3.2: version "8.3.2" @@ -5786,9 +5945,9 @@ v8-to-istanbul@^9.0.1: convert-source-map "^1.6.0" vlq@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/vlq/-/vlq-1.0.1.tgz#c003f6e7c0b4c1edd623fd6ee50bbc0d6a1de468" - integrity sha512-gQpnTgkubC6hQgdIcRdYGDSDc+SaujOdyesZQMv6JlfQee/9Mp0Qhnys6WxDWvQnL5WZdT7o2Ul187aSt0Rq+w== + version "1.0.0" + resolved "https://registry.yarnpkg.com/vlq/-/vlq-1.0.0.tgz#8101be90843422954c2b13eb27f2f3122bdcc806" + integrity sha512-o3WmXySo+oI5thgqr7Qy8uBkT/v9Zr+sRyrh1lr8aWPUkgDWdWt4Nae2WKBrLsocgE8BuWWD0jLc+VW8LeU+2g== walker@^1.0.7, walker@^1.0.8: version "1.0.8" @@ -5869,7 +6028,7 @@ wrap-ansi@^7.0.0: wrappy@1: version "1.0.2" resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" - integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= + integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== write-file-atomic@^4.0.2: version "4.0.2" @@ -5907,15 +6066,20 @@ yallist@^3.0.2: resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd" integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g== +yallist@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" + integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== + yargs-parser@^21.1.1: version "21.1.1" resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-21.1.1.tgz#9096bceebf990d21bb31fa9516e0ede294a77d35" integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw== yargs@^17.3.1, yargs@^17.6.2: - version "17.7.1" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.7.1.tgz#34a77645201d1a8fc5213ace787c220eabbd0967" - integrity sha512-cwiTb08Xuv5fqF4AovYacTFNxk62th7LKJ6BL9IGUpTJrWoU7/7WdQGTP2SjKf1dUNBGzDd28p/Yfs/GI6JrLw== + version "17.7.2" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.7.2.tgz#991df39aca675a192b816e1e0363f9d75d2aa269" + integrity sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w== dependencies: cliui "^8.0.1" escalade "^3.1.1"