Updates
This commit is contained in:
2
backend/node_modules/tsx/dist/esm/api/index.cjs
generated
vendored
Normal file
2
backend/node_modules/tsx/dist/esm/api/index.cjs
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
37
backend/node_modules/tsx/dist/esm/api/index.d.cts
generated
vendored
Normal file
37
backend/node_modules/tsx/dist/esm/api/index.d.cts
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
import { MessagePort } from 'node:worker_threads';
|
||||
|
||||
type ScopedImport = (specifier: string, parent: string) => Promise<any>;
|
||||
|
||||
type TsconfigOptions = false | string;
|
||||
type InitializationOptions = {
|
||||
namespace?: string;
|
||||
port?: MessagePort;
|
||||
tsconfig?: TsconfigOptions;
|
||||
};
|
||||
type RegisterOptions = {
|
||||
namespace?: string;
|
||||
onImport?: (url: string) => void;
|
||||
tsconfig?: TsconfigOptions;
|
||||
};
|
||||
type Unregister = () => Promise<void>;
|
||||
type NamespacedUnregister = Unregister & {
|
||||
import: ScopedImport;
|
||||
unregister: Unregister;
|
||||
};
|
||||
type Register = {
|
||||
(options: RegisterOptions & {
|
||||
namespace: string;
|
||||
}): NamespacedUnregister;
|
||||
(options?: RegisterOptions): Unregister;
|
||||
};
|
||||
declare const register: Register;
|
||||
|
||||
type Options = {
|
||||
parentURL: string;
|
||||
onImport?: (url: string) => void;
|
||||
tsconfig?: TsconfigOptions;
|
||||
};
|
||||
declare const tsImport: (specifier: string, options: string | Options) => Promise<any>;
|
||||
|
||||
export { register, tsImport };
|
||||
export type { InitializationOptions, NamespacedUnregister, Register, RegisterOptions, ScopedImport, Unregister };
|
||||
37
backend/node_modules/tsx/dist/esm/api/index.d.mts
generated
vendored
Normal file
37
backend/node_modules/tsx/dist/esm/api/index.d.mts
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
import { MessagePort } from 'node:worker_threads';
|
||||
|
||||
type ScopedImport = (specifier: string, parent: string) => Promise<any>;
|
||||
|
||||
type TsconfigOptions = false | string;
|
||||
type InitializationOptions = {
|
||||
namespace?: string;
|
||||
port?: MessagePort;
|
||||
tsconfig?: TsconfigOptions;
|
||||
};
|
||||
type RegisterOptions = {
|
||||
namespace?: string;
|
||||
onImport?: (url: string) => void;
|
||||
tsconfig?: TsconfigOptions;
|
||||
};
|
||||
type Unregister = () => Promise<void>;
|
||||
type NamespacedUnregister = Unregister & {
|
||||
import: ScopedImport;
|
||||
unregister: Unregister;
|
||||
};
|
||||
type Register = {
|
||||
(options: RegisterOptions & {
|
||||
namespace: string;
|
||||
}): NamespacedUnregister;
|
||||
(options?: RegisterOptions): Unregister;
|
||||
};
|
||||
declare const register: Register;
|
||||
|
||||
type Options = {
|
||||
parentURL: string;
|
||||
onImport?: (url: string) => void;
|
||||
tsconfig?: TsconfigOptions;
|
||||
};
|
||||
declare const tsImport: (specifier: string, options: string | Options) => Promise<any>;
|
||||
|
||||
export { register, tsImport };
|
||||
export type { InitializationOptions, NamespacedUnregister, Register, RegisterOptions, ScopedImport, Unregister };
|
||||
2
backend/node_modules/tsx/dist/esm/api/index.mjs
generated
vendored
Normal file
2
backend/node_modules/tsx/dist/esm/api/index.mjs
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env node
|
||||
var s=Object.defineProperty;var i=(t,r)=>s(t,"name",{value:r,configurable:!0});import{r as p}from"../../register-nyXW-TH3.mjs";import n from"node:crypto";import{r as c,i as u,c as d}from"../../require-CBjy4Foe.mjs";import{i as f,e as g}from"../../temporary-directory-Du7LpLp9.mjs";import"node:module";import"node:worker_threads";import"node:url";import"node:fs";import"node:fs/promises";import"../../index-DE3OBZuV.mjs";import"node:path";import"esbuild";import"node:os";import"fs";import"os";import"path";import"node:net";import"../../index-Bqjv9TxC.mjs";import"node:util";const U=i((t,r)=>{if(!r||typeof r=="object"&&!r.parentURL)throw new Error("The current file path (import.meta.url) must be provided in the second argument of tsImport()");const e=typeof r=="string",o=e?r:r.parentURL,m=n.randomUUID(),a=c({namespace:m});return!f(g)&&!u.test(t)&&d.test(t)?Promise.resolve(a.require(t,o)):p({namespace:m,...e?{}:r}).import(t,o)},"tsImport");export{p as register,U as tsImport};
|
||||
Reference in New Issue
Block a user