first commit

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

47
node_modules/@expo/metro/metro-core/Logger.d.ts generated vendored Normal file
View File

@@ -0,0 +1,47 @@
/**
* 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.
*
*
* @format
* @oncall react_native
*/
import type { BundleOptions } from "../metro/shared/types";
export interface ActionLogEntryData {
action_name: string;
log_entry_label?: string;
}
export interface ActionStartLogEntry {
action_name?: string;
action_phase?: string;
log_entry_label: string;
log_session?: string;
start_timestamp?: [number, number];
}
export interface 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 };

2
node_modules/@expo/metro/metro-core/Logger.js generated vendored Normal file
View File

@@ -0,0 +1,2 @@
module.exports = require("metro-core/private/Logger");
module.exports.default = module.exports;

53
node_modules/@expo/metro/metro-core/Terminal.d.ts generated vendored Normal file
View File

@@ -0,0 +1,53 @@
/**
* 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.
*
*
* @format
* @oncall react_native
*/
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<void>;
flush(): Promise<void>;
status(format: string, ...args: Array<any>): string;
log(format: string, ...args: Array<any>): void;
persistStatus(): void;
}
export default Terminal;

1
node_modules/@expo/metro/metro-core/Terminal.js generated vendored Normal file
View File

@@ -0,0 +1 @@
module.exports = require("metro-core/private/Terminal");

13
node_modules/@expo/metro/metro-core/canonicalize.d.ts generated vendored Normal file
View File

@@ -0,0 +1,13 @@
/**
* 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.
*
*
* @format
* @oncall react_native
*/
declare function canonicalize(key: string, value: any): any;
export default canonicalize;

1
node_modules/@expo/metro/metro-core/canonicalize.js generated vendored Normal file
View File

@@ -0,0 +1 @@
module.exports = require("metro-core/private/canonicalize");

14
node_modules/@expo/metro/metro-core/errors.d.ts generated vendored Normal file
View File

@@ -0,0 +1,14 @@
/**
* 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.
*
*
* @format
* @oncall react_native
*/
import AmbiguousModuleResolutionError from "./errors/AmbiguousModuleResolutionError";
import PackageResolutionError from "./errors/PackageResolutionError";
export { AmbiguousModuleResolutionError, PackageResolutionError };

2
node_modules/@expo/metro/metro-core/errors.js generated vendored Normal file
View File

@@ -0,0 +1,2 @@
module.exports = require("metro-core/private/errors");
module.exports.default = module.exports;

View File

@@ -0,0 +1,18 @@
/**
* 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.
*
*
* @format
* @oncall react_native
*/
import type { DuplicateHasteCandidatesError } from "../../metro-file-map";
declare class AmbiguousModuleResolutionError extends Error {
fromModulePath: string;
hasteError: DuplicateHasteCandidatesError;
constructor(fromModulePath: string, hasteError: DuplicateHasteCandidatesError);
}
export default AmbiguousModuleResolutionError;

View File

@@ -0,0 +1 @@
module.exports = require("metro-core/private/errors/AmbiguousModuleResolutionError");

View File

@@ -0,0 +1,23 @@
/**
* 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.
*
*
* @format
* @oncall react_native
*/
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;

View File

@@ -0,0 +1 @@
module.exports = require("metro-core/private/errors/PackageResolutionError");

22
node_modules/@expo/metro/metro-core/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,22 @@
/**
* 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.
*
*
* @format
* @oncall react_native
*/
import AmbiguousModuleResolutionError from "./errors/AmbiguousModuleResolutionError";
import PackageResolutionError from "./errors/PackageResolutionError";
import * as Logger from "./Logger";
import Terminal from "./Terminal";
export { AmbiguousModuleResolutionError, Logger, PackageResolutionError, Terminal };
/**
* Backwards-compatibility with CommonJS consumers using interopRequireDefault.
* Do not add to this list.
*
* @deprecated Default import from 'metro-core' is deprecated, use named exports.
*/

1
node_modules/@expo/metro/metro-core/index.js generated vendored Normal file
View File

@@ -0,0 +1 @@
module.exports = require("metro-core");