@ohos-ports/prisma-internals 7.10.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/dist/Generator.d.ts +42 -0
- package/dist/Generator.js +29 -0
- package/dist/WasmPanicRegistry.d.ts +5 -0
- package/dist/WasmPanicRegistry.js +25 -0
- package/dist/WasmSchemaEngineLoader.d.ts +5 -0
- package/dist/WasmSchemaEngineLoader.js +25 -0
- package/dist/built-in-provider.d.ts +5 -0
- package/dist/built-in-provider.js +25 -0
- package/dist/chunk-2B26F5N3.js +72 -0
- package/dist/chunk-2IOZUH3U.js +26 -0
- package/dist/chunk-2SDPW6AX.js +39 -0
- package/dist/chunk-3IMRWXIL.js +176 -0
- package/dist/chunk-3TYD3ZGQ.js +115 -0
- package/dist/chunk-3U4QB2G3.js +166 -0
- package/dist/chunk-3VD46SL7.js +151 -0
- package/dist/chunk-3YOF262C.js +176 -0
- package/dist/chunk-3ZHE2IX4.js +55 -0
- package/dist/chunk-4VNS5WPM.js +61 -0
- package/dist/chunk-5AI4FIZ3.js +1342 -0
- package/dist/chunk-5BDP445D.js +51 -0
- package/dist/chunk-5DBOS77Y.js +609 -0
- package/dist/chunk-5FJ3MENK.js +30 -0
- package/dist/chunk-5I4ERIIY.js +30 -0
- package/dist/chunk-5PJQQKQI.js +106 -0
- package/dist/chunk-5VQNKCKW.js +38 -0
- package/dist/chunk-5WRIOIZY.js +31 -0
- package/dist/chunk-6JE6QGSJ.js +37 -0
- package/dist/chunk-6PWHYRKR.js +74 -0
- package/dist/chunk-6QMQ2JYG.js +122 -0
- package/dist/chunk-6Z766KGR.js +95 -0
- package/dist/chunk-74RGCSUJ.js +44 -0
- package/dist/chunk-7B5PXS6N.js +29 -0
- package/dist/chunk-ANU3HEGF.js +29 -0
- package/dist/chunk-BERN76ZI.js +347 -0
- package/dist/chunk-BGMZPA2F.js +39 -0
- package/dist/chunk-BPDMLM32.js +105 -0
- package/dist/chunk-C47SCASR.js +37 -0
- package/dist/chunk-CGFNDGGI.js +40 -0
- package/dist/chunk-CTQD6OLG.js +438 -0
- package/dist/chunk-CUD726EK.js +36 -0
- package/dist/chunk-CXEXLFVL.js +166 -0
- package/dist/chunk-CYAS6B5N.js +48 -0
- package/dist/chunk-D4VZUY3O.js +71 -0
- package/dist/chunk-DODIJPCS.js +34 -0
- package/dist/chunk-DTPFRZWV.js +31 -0
- package/dist/chunk-DUDEWDFC.js +101 -0
- package/dist/chunk-DZ4QWHTB.js +127 -0
- package/dist/chunk-E23HYCQJ.js +37 -0
- package/dist/chunk-E476ARWS.js +2091 -0
- package/dist/chunk-EKGEKB22.js +28 -0
- package/dist/chunk-EU6UOKRD.js +26 -0
- package/dist/chunk-EWPXLBGE.js +115 -0
- package/dist/chunk-FCYHZHVW.js +43 -0
- package/dist/chunk-FRVJZOHP.js +1823 -0
- package/dist/chunk-GJSFP4V4.js +30 -0
- package/dist/chunk-GXW4NTU2.js +34 -0
- package/dist/chunk-H4NI2RIK.js +35 -0
- package/dist/chunk-HHG4DGHC.js +496 -0
- package/dist/chunk-HPVMQFIY.js +407 -0
- package/dist/chunk-I2CBQZJY.js +122 -0
- package/dist/chunk-I4K46RGG.js +31 -0
- package/dist/chunk-I6WLABB2.js +429 -0
- package/dist/chunk-ICFLO5JW.js +26 -0
- package/dist/chunk-IL7PSY44.js +26 -0
- package/dist/chunk-IOIAK7V7.js +53 -0
- package/dist/chunk-IYN5VKMD.js +110 -0
- package/dist/chunk-J77ZIDXB.js +69 -0
- package/dist/chunk-J7ZPY2XA.js +47 -0
- package/dist/chunk-JFXHOFJA.js +46 -0
- package/dist/chunk-JOIHHXR6.js +2067 -0
- package/dist/chunk-JPZYSRK3.js +6412 -0
- package/dist/chunk-JTKAT4KZ.js +26 -0
- package/dist/chunk-K2EOOA2X.js +91 -0
- package/dist/chunk-KDP6C3CB.js +56 -0
- package/dist/chunk-L3LDE52J.js +51 -0
- package/dist/chunk-L6V54WGO.js +39 -0
- package/dist/chunk-LMVSIVKQ.js +62 -0
- package/dist/chunk-LPNBWFQ3.js +38 -0
- package/dist/chunk-LRBXMV4B.js +26 -0
- package/dist/chunk-LRU47BGE.js +78 -0
- package/dist/chunk-M3GBKLGE.js +24 -0
- package/dist/chunk-MCS5ZY6Y.js +27 -0
- package/dist/chunk-NBWRGVYR.js +47 -0
- package/dist/chunk-NIWBAJZV.js +36 -0
- package/dist/chunk-NTDBN2N2.js +104 -0
- package/dist/chunk-NVNI2SRU.js +4230 -0
- package/dist/chunk-OIVPX3BR.js +32 -0
- package/dist/chunk-PFYALFCY.js +26 -0
- package/dist/chunk-PG5FDKSF.js +79 -0
- package/dist/chunk-PKF53VLJ.js +26 -0
- package/dist/chunk-PTPRBA7K.js +6675 -0
- package/dist/chunk-QBNYSYZK.js +74 -0
- package/dist/chunk-QMNPESAP.js +124 -0
- package/dist/chunk-QN6PSQY7.js +37 -0
- package/dist/chunk-QVJ2BXKF.js +3997 -0
- package/dist/chunk-R47SFJ5Z.js +104 -0
- package/dist/chunk-R6QH57HZ.js +311 -0
- package/dist/chunk-RBDYOTWB.js +193 -0
- package/dist/chunk-SBUSVJCV.js +62 -0
- package/dist/chunk-SP2ETLT2.js +41 -0
- package/dist/chunk-TPCPXGC5.js +218 -0
- package/dist/chunk-TWSLDIFL.js +48 -0
- package/dist/chunk-UGR6KLZN.js +30 -0
- package/dist/chunk-UMM35VP5.js +1193 -0
- package/dist/chunk-VFNP7Q3Y.js +15529 -0
- package/dist/chunk-VNIE2AZB.js +41 -0
- package/dist/chunk-VUGB2H7M.js +438 -0
- package/dist/chunk-WFMA7DI5.js +92 -0
- package/dist/chunk-WV4QHCSM.js +26 -0
- package/dist/chunk-WXRVYSYN.js +33 -0
- package/dist/chunk-X3P4J7WW.js +28 -0
- package/dist/chunk-X77CS5RK.js +33 -0
- package/dist/chunk-XAAVALN7.js +110 -0
- package/dist/chunk-XXTPN4LB.js +41 -0
- package/dist/chunk-XYCIH36R.js +29 -0
- package/dist/chunk-Y4TOGY6I.js +30 -0
- package/dist/chunk-YNDZCLVL.js +307 -0
- package/dist/chunk-YXB6APHS.js +447 -0
- package/dist/chunk-ZJWZK45Z.js +68 -0
- package/dist/chunk-ZKWDIAVF.js +29 -0
- package/dist/cli/Help.d.ts +11 -0
- package/dist/cli/Help.js +27 -0
- package/dist/cli/checkUnsupportedDataProxy.d.ts +16 -0
- package/dist/cli/checkUnsupportedDataProxy.js +125 -0
- package/dist/cli/completion-values.d.ts +24 -0
- package/dist/cli/completion-values.js +47 -0
- package/dist/cli/directoryConfig.d.ts +11 -0
- package/dist/cli/directoryConfig.js +25 -0
- package/dist/cli/getGeneratorSuccessMessage.d.ts +7 -0
- package/dist/cli/getGeneratorSuccessMessage.js +29 -0
- package/dist/cli/getSchema.d.ts +46 -0
- package/dist/cli/getSchema.js +31 -0
- package/dist/cli/getTypescriptVersion.d.ts +1 -0
- package/dist/cli/getTypescriptVersion.js +25 -0
- package/dist/cli/hashes.d.ts +11 -0
- package/dist/cli/hashes.js +28 -0
- package/dist/cli/schemaContext.d.ts +56 -0
- package/dist/cli/schemaContext.js +126 -0
- package/dist/cli/types.d.ts +63 -0
- package/dist/cli/types.js +1 -0
- package/dist/cli/utils.d.ts +13 -0
- package/dist/cli/utils.js +27 -0
- package/dist/convertCredentials.d.ts +10 -0
- package/dist/convertCredentials.js +28 -0
- package/dist/engine-commands/errorHelpers.d.ts +4 -0
- package/dist/engine-commands/errorHelpers.js +28 -0
- package/dist/engine-commands/formatSchema.d.ts +22 -0
- package/dist/engine-commands/formatSchema.js +124 -0
- package/dist/engine-commands/getConfig.d.ts +27 -0
- package/dist/engine-commands/getConfig.js +39 -0
- package/dist/engine-commands/getDmmf.d.ts +21 -0
- package/dist/engine-commands/getDmmf.js +40 -0
- package/dist/engine-commands/getEngineVersion.d.ts +4 -0
- package/dist/engine-commands/getEngineVersion.js +33 -0
- package/dist/engine-commands/getEnginesInfo.d.ts +20 -0
- package/dist/engine-commands/getEnginesInfo.js +36 -0
- package/dist/engine-commands/index.d.ts +10 -0
- package/dist/engine-commands/index.js +136 -0
- package/dist/engine-commands/lintSchema.d.ts +26 -0
- package/dist/engine-commands/lintSchema.js +34 -0
- package/dist/engine-commands/mergeSchemas.d.ts +12 -0
- package/dist/engine-commands/mergeSchemas.js +39 -0
- package/dist/engine-commands/queryEngineCommons.d.ts +31 -0
- package/dist/engine-commands/queryEngineCommons.js +33 -0
- package/dist/engine-commands/relativizePathInPSLError.d.ts +1 -0
- package/dist/engine-commands/relativizePathInPSLError.js +25 -0
- package/dist/engine-commands/validate.d.ts +12 -0
- package/dist/engine-commands/validate.js +39 -0
- package/dist/errorReporting.d.ts +25 -0
- package/dist/errorReporting.js +29 -0
- package/dist/get-generators/getGenerators.d.ts +71 -0
- package/dist/get-generators/getGenerators.js +127 -0
- package/dist/get-generators/utils/binaryTypeToEngineType.d.ts +3 -0
- package/dist/get-generators/utils/binaryTypeToEngineType.js +25 -0
- package/dist/get-generators/utils/engineTypeToBinaryType.d.ts +3 -0
- package/dist/get-generators/utils/engineTypeToBinaryType.js +25 -0
- package/dist/get-generators/utils/fixBinaryTargets.d.ts +3 -0
- package/dist/get-generators/utils/fixBinaryTargets.js +25 -0
- package/dist/get-generators/utils/getBinaryPathsByVersion.d.ts +7 -0
- package/dist/get-generators/utils/getBinaryPathsByVersion.js +30 -0
- package/dist/get-generators/utils/getEngineVersionForGenerator.d.ts +2 -0
- package/dist/get-generators/utils/getEngineVersionForGenerator.js +25 -0
- package/dist/get-generators/utils/printGeneratorConfig.d.ts +9 -0
- package/dist/get-generators/utils/printGeneratorConfig.js +29 -0
- package/dist/getPackedPackage.d.ts +1 -0
- package/dist/getPackedPackage.js +29 -0
- package/dist/highlight/highlight.d.ts +3 -0
- package/dist/highlight/highlight.js +32 -0
- package/dist/highlight/languages/dml.d.ts +2 -0
- package/dist/highlight/languages/dml.js +25 -0
- package/dist/highlight/languages/sql.d.ts +2 -0
- package/dist/highlight/languages/sql.js +25 -0
- package/dist/highlight/prism.d.ts +6 -0
- package/dist/highlight/prism.js +28 -0
- package/dist/highlight/theme.d.ts +2 -0
- package/dist/highlight/theme.js +26 -0
- package/dist/highlight/types.d.ts +35 -0
- package/dist/highlight/types.js +1 -0
- package/dist/index.d.ts +80 -0
- package/dist/index.js +257 -0
- package/dist/logger.d.ts +14 -0
- package/dist/logger.js +32 -0
- package/dist/magic-string.es-B2CP4FDB.js +1324 -0
- package/dist/migrateTypes.d.ts +99 -0
- package/dist/migrateTypes.js +1 -0
- package/dist/multipart-parser-3AFJFP6K.js +374 -0
- package/dist/panic.d.ts +31 -0
- package/dist/panic.js +29 -0
- package/dist/resolveBinary.d.ts +6 -0
- package/dist/resolveBinary.js +34 -0
- package/dist/resolveOutput.d.ts +5 -0
- package/dist/resolveOutput.js +25 -0
- package/dist/resolvePkg.d.ts +7 -0
- package/dist/resolvePkg.js +25 -0
- package/dist/schemaEngineCommands.d.ts +36 -0
- package/dist/schemaEngineCommands.js +36 -0
- package/dist/sendPanic.d.ts +10 -0
- package/dist/sendPanic.js +29 -0
- package/dist/types.d.ts +34 -0
- package/dist/types.js +1 -0
- package/dist/utils/__tests__/isCi.test.js +58 -0
- package/dist/utils/__tests__/isInteractive.test.js +47 -0
- package/dist/utils/assertAlways.d.ts +14 -0
- package/dist/utils/assertAlways.js +25 -0
- package/dist/utils/assertNever.d.ts +27 -0
- package/dist/utils/assertNever.js +25 -0
- package/dist/utils/binaryTargetRegex.d.ts +8 -0
- package/dist/utils/binaryTargetRegex.js +25 -0
- package/dist/utils/callOnce.d.ts +13 -0
- package/dist/utils/callOnce.js +25 -0
- package/dist/utils/callOnce.test.d.ts +1 -0
- package/dist/utils/callOnce.test.js +36 -0
- package/dist/utils/canPrompt.d.ts +1 -0
- package/dist/utils/canPrompt.js +27 -0
- package/dist/utils/chmodPlusX.d.ts +1 -0
- package/dist/utils/chmodPlusX.js +25 -0
- package/dist/utils/drawBox.d.ts +9 -0
- package/dist/utils/drawBox.js +26 -0
- package/dist/utils/extractPreviewFeatures.d.ts +2 -0
- package/dist/utils/extractPreviewFeatures.js +28 -0
- package/dist/utils/formatTable.d.ts +5 -0
- package/dist/utils/formatTable.js +25 -0
- package/dist/utils/formatms.d.ts +5 -0
- package/dist/utils/formatms.js +25 -0
- package/dist/utils/fs-functional.d.ts +53 -0
- package/dist/utils/fs-functional.js +35 -0
- package/dist/utils/fs-utils.d.ts +30 -0
- package/dist/utils/fs-utils.js +32 -0
- package/dist/utils/getCommandWithExecutor.d.ts +1 -0
- package/dist/utils/getCommandWithExecutor.js +26 -0
- package/dist/utils/getGitHubIssueUrl.d.ts +18 -0
- package/dist/utils/getGitHubIssueUrl.js +27 -0
- package/dist/utils/getVersionFromPackageJson.d.ts +1 -0
- package/dist/utils/getVersionFromPackageJson.js +26 -0
- package/dist/utils/handlePanic.d.ts +11 -0
- package/dist/utils/handlePanic.js +36 -0
- package/dist/utils/hasOwnProperty.d.ts +1 -0
- package/dist/utils/hasOwnProperty.js +25 -0
- package/dist/utils/isCi.d.ts +1 -0
- package/dist/utils/isCi.js +25 -0
- package/dist/utils/isCurrentBinInstalledGlobally.d.ts +1 -0
- package/dist/utils/isCurrentBinInstalledGlobally.js +25 -0
- package/dist/utils/isInContainer.d.ts +5 -0
- package/dist/utils/isInContainer.js +25 -0
- package/dist/utils/isInNpmLifecycleHook.d.ts +4 -0
- package/dist/utils/isInNpmLifecycleHook.js +25 -0
- package/dist/utils/isInteractive.d.ts +6 -0
- package/dist/utils/isInteractive.js +25 -0
- package/dist/utils/isPromiseLike.d.ts +1 -0
- package/dist/utils/isPromiseLike.js +25 -0
- package/dist/utils/isValidJsIdentifier.d.ts +1 -0
- package/dist/utils/isValidJsIdentifier.js +25 -0
- package/dist/utils/keyBy.d.ts +9 -0
- package/dist/utils/keyBy.js +25 -0
- package/dist/utils/link.d.ts +1 -0
- package/dist/utils/link.js +26 -0
- package/dist/utils/mapKeys.d.ts +1 -0
- package/dist/utils/mapKeys.js +25 -0
- package/dist/utils/mapObjectValues.d.ts +1 -0
- package/dist/utils/mapObjectValues.js +25 -0
- package/dist/utils/max.d.ts +11 -0
- package/dist/utils/max.js +26 -0
- package/dist/utils/max.test.d.ts +1 -0
- package/dist/utils/max.test.js +22 -0
- package/dist/utils/maybeInGitHook.d.ts +9 -0
- package/dist/utils/maybeInGitHook.js +25 -0
- package/dist/utils/missingDatasource.d.ts +1 -0
- package/dist/utils/missingDatasource.js +32 -0
- package/dist/utils/missingGeneratorMessage.d.ts +3 -0
- package/dist/utils/missingGeneratorMessage.js +34 -0
- package/dist/utils/now.d.ts +3 -0
- package/dist/utils/now.js +51 -0
- package/dist/utils/omit.d.ts +6 -0
- package/dist/utils/omit.js +30 -0
- package/dist/utils/parseAWSNodejsRuntimeEnvVarVersion.d.ts +1 -0
- package/dist/utils/parseAWSNodejsRuntimeEnvVarVersion.js +25 -0
- package/dist/utils/parseEnvValue.d.ts +17 -0
- package/dist/utils/parseEnvValue.js +27 -0
- package/dist/utils/path.d.ts +14 -0
- package/dist/utils/path.js +26 -0
- package/dist/utils/path.test.d.ts +1 -0
- package/dist/utils/path.test.js +54 -0
- package/dist/utils/pick.d.ts +1 -0
- package/dist/utils/pick.js +25 -0
- package/dist/utils/printConfigWarnings.d.ts +1 -0
- package/dist/utils/printConfigWarnings.js +26 -0
- package/dist/utils/prismaPostgres.d.ts +13 -0
- package/dist/utils/prismaPostgres.js +28 -0
- package/dist/utils/prismaPostgres.test.d.ts +1 -0
- package/dist/utils/prismaPostgres.test.js +33 -0
- package/dist/utils/schemaFileInput.d.ts +2 -0
- package/dist/utils/schemaFileInput.js +25 -0
- package/dist/utils/setClassName.d.ts +9 -0
- package/dist/utils/setClassName.js +25 -0
- package/dist/utils/toSchemasContainer.d.ts +5 -0
- package/dist/utils/toSchemasContainer.js +26 -0
- package/dist/utils/unique.d.ts +5 -0
- package/dist/utils/unique.js +38 -0
- package/dist/utils/validatePrismaConfigWithDatasource.d.ts +17 -0
- package/dist/utils/validatePrismaConfigWithDatasource.js +28 -0
- package/dist/utils/vercelPkgPathRegex.d.ts +1 -0
- package/dist/utils/vercelPkgPathRegex.js +25 -0
- package/dist/warnOnce.d.ts +1 -0
- package/dist/warnOnce.js +27 -0
- package/dist/wasm.d.ts +5 -0
- package/dist/wasm.js +29 -0
- package/package.json +93 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var schemaEngineCommands_exports = {};
|
|
20
|
+
__export(schemaEngineCommands_exports, {
|
|
21
|
+
SchemaEngineExitCode: () => import_chunk_CXEXLFVL.SchemaEngineExitCode,
|
|
22
|
+
canConnectToDatabase: () => import_chunk_CXEXLFVL.canConnectToDatabase,
|
|
23
|
+
createDatabase: () => import_chunk_CXEXLFVL.createDatabase,
|
|
24
|
+
dropDatabase: () => import_chunk_CXEXLFVL.dropDatabase,
|
|
25
|
+
execaCommand: () => import_chunk_CXEXLFVL.execaCommand
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(schemaEngineCommands_exports);
|
|
28
|
+
var import_chunk_CXEXLFVL = require("./chunk-CXEXLFVL.js");
|
|
29
|
+
var import_chunk_JOIHHXR6 = require("./chunk-JOIHHXR6.js");
|
|
30
|
+
var import_chunk_5PJQQKQI = require("./chunk-5PJQQKQI.js");
|
|
31
|
+
var import_chunk_M3GBKLGE = require("./chunk-M3GBKLGE.js");
|
|
32
|
+
var import_chunk_E476ARWS = require("./chunk-E476ARWS.js");
|
|
33
|
+
var import_chunk_TWSLDIFL = require("./chunk-TWSLDIFL.js");
|
|
34
|
+
var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
|
|
35
|
+
var import_chunk_5VQNKCKW = require("./chunk-5VQNKCKW.js");
|
|
36
|
+
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { MigrateTypes } from './migrateTypes';
|
|
2
|
+
import type { RustPanic } from './panic';
|
|
3
|
+
type SendPanic = {
|
|
4
|
+
error: RustPanic;
|
|
5
|
+
cliVersion: string;
|
|
6
|
+
enginesVersion: string;
|
|
7
|
+
getDatabaseVersionSafe: (args: MigrateTypes.GetDatabaseVersionParams | undefined) => Promise<string | undefined>;
|
|
8
|
+
};
|
|
9
|
+
export declare function sendPanic({ error, cliVersion, enginesVersion, getDatabaseVersionSafe, }: SendPanic): Promise<number>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var sendPanic_exports = {};
|
|
20
|
+
__export(sendPanic_exports, {
|
|
21
|
+
sendPanic: () => import_chunk_FRVJZOHP.sendPanic
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(sendPanic_exports);
|
|
24
|
+
var import_chunk_FRVJZOHP = require("./chunk-FRVJZOHP.js");
|
|
25
|
+
var import_chunk_YNDZCLVL = require("./chunk-YNDZCLVL.js");
|
|
26
|
+
var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
|
|
27
|
+
var import_chunk_5AI4FIZ3 = require("./chunk-5AI4FIZ3.js");
|
|
28
|
+
var import_chunk_NVNI2SRU = require("./chunk-NVNI2SRU.js");
|
|
29
|
+
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { ConnectorType } from '@prisma/generator';
|
|
2
|
+
export interface DatabaseCredentials {
|
|
3
|
+
type: ConnectorType;
|
|
4
|
+
host?: string;
|
|
5
|
+
port?: number;
|
|
6
|
+
user?: string;
|
|
7
|
+
password?: string;
|
|
8
|
+
database?: string;
|
|
9
|
+
alreadyData?: boolean;
|
|
10
|
+
schema?: string;
|
|
11
|
+
newSchema?: string;
|
|
12
|
+
ssl?: boolean;
|
|
13
|
+
uri?: string;
|
|
14
|
+
executeRaw?: boolean;
|
|
15
|
+
socket?: string;
|
|
16
|
+
extraFields?: {
|
|
17
|
+
[key: string]: string;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Given a type T and a key K, return a new type that is T + the key K marked as required.
|
|
22
|
+
* E.g.:
|
|
23
|
+
* ```
|
|
24
|
+
* type T = {
|
|
25
|
+
* a?: string
|
|
26
|
+
* b: number
|
|
27
|
+
* c?: string
|
|
28
|
+
* d?: boolean
|
|
29
|
+
* }
|
|
30
|
+
* type R = RequireKey<T, 'a' | 'c'>
|
|
31
|
+
* // R is { a: string, b: number, c: string, d?: boolean }
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export type RequireKey<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;
|
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var import_chunk_VFNP7Q3Y = require("../../chunk-VFNP7Q3Y.js");
|
|
3
|
+
var import_chunk_H4NI2RIK = require("../../chunk-H4NI2RIK.js");
|
|
4
|
+
var import_chunk_4VNS5WPM = require("../../chunk-4VNS5WPM.js");
|
|
5
|
+
var originalEnv = { ...process.env };
|
|
6
|
+
var originalStdinisTTY = process.stdin.isTTY;
|
|
7
|
+
function restoreEnv() {
|
|
8
|
+
for (const key of Object.keys(process.env)) {
|
|
9
|
+
if (!(key in originalEnv)) {
|
|
10
|
+
delete process.env[key];
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
for (const [key, value] of Object.entries(originalEnv)) {
|
|
14
|
+
if (value === void 0) {
|
|
15
|
+
delete process.env[key];
|
|
16
|
+
} else {
|
|
17
|
+
process.env[key] = value;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
(0, import_chunk_VFNP7Q3Y.describe)("isCi", () => {
|
|
22
|
+
(0, import_chunk_VFNP7Q3Y.beforeEach)(() => {
|
|
23
|
+
restoreEnv();
|
|
24
|
+
process.stdin.isTTY = originalStdinisTTY;
|
|
25
|
+
});
|
|
26
|
+
(0, import_chunk_VFNP7Q3Y.afterAll)(() => {
|
|
27
|
+
restoreEnv();
|
|
28
|
+
process.stdin.isTTY = originalStdinisTTY;
|
|
29
|
+
});
|
|
30
|
+
(0, import_chunk_VFNP7Q3Y.describe)("in non TTY environment", () => {
|
|
31
|
+
(0, import_chunk_VFNP7Q3Y.beforeEach)(() => {
|
|
32
|
+
delete process.env.GITHUB_ACTIONS;
|
|
33
|
+
delete process.env.CI;
|
|
34
|
+
process.stdin.isTTY = false;
|
|
35
|
+
});
|
|
36
|
+
(0, import_chunk_VFNP7Q3Y.test)("with undefined env vars, isCi should be false", () => {
|
|
37
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_H4NI2RIK.isCi)()).toBe(false);
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
(0, import_chunk_VFNP7Q3Y.describe)("in TTY environment", () => {
|
|
41
|
+
(0, import_chunk_VFNP7Q3Y.beforeEach)(() => {
|
|
42
|
+
delete process.env.GITHUB_ACTIONS;
|
|
43
|
+
delete process.env.CI;
|
|
44
|
+
process.stdin.isTTY = true;
|
|
45
|
+
});
|
|
46
|
+
(0, import_chunk_VFNP7Q3Y.test)("with CI env var, isCi should be true", () => {
|
|
47
|
+
process.env.CI = "true";
|
|
48
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_H4NI2RIK.isCi)()).toBe(true);
|
|
49
|
+
});
|
|
50
|
+
(0, import_chunk_VFNP7Q3Y.test)("with GitHub Actions env var, isCi should be true", () => {
|
|
51
|
+
process.env.GITHUB_ACTIONS = "true";
|
|
52
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_H4NI2RIK.isCi)()).toBe(true);
|
|
53
|
+
});
|
|
54
|
+
(0, import_chunk_VFNP7Q3Y.test)("with undefined env vars, isCi should be false", () => {
|
|
55
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_H4NI2RIK.isCi)()).toBe(false);
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
});
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var import_chunk_VFNP7Q3Y = require("../../chunk-VFNP7Q3Y.js");
|
|
3
|
+
var import_chunk_ICFLO5JW = require("../../chunk-ICFLO5JW.js");
|
|
4
|
+
var import_chunk_4VNS5WPM = require("../../chunk-4VNS5WPM.js");
|
|
5
|
+
var originalEnv = { ...process.env };
|
|
6
|
+
function restoreEnv() {
|
|
7
|
+
for (const key of Object.keys(process.env)) {
|
|
8
|
+
if (!(key in originalEnv)) {
|
|
9
|
+
delete process.env[key];
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
for (const [key, value] of Object.entries(originalEnv)) {
|
|
13
|
+
if (value === void 0) {
|
|
14
|
+
delete process.env[key];
|
|
15
|
+
} else {
|
|
16
|
+
process.env[key] = value;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
(0, import_chunk_VFNP7Q3Y.describe)("isInteractive", () => {
|
|
21
|
+
(0, import_chunk_VFNP7Q3Y.beforeEach)(() => {
|
|
22
|
+
restoreEnv();
|
|
23
|
+
});
|
|
24
|
+
(0, import_chunk_VFNP7Q3Y.afterAll)(() => {
|
|
25
|
+
restoreEnv();
|
|
26
|
+
});
|
|
27
|
+
(0, import_chunk_VFNP7Q3Y.describe)("in non TTY environment", () => {
|
|
28
|
+
const mockedValue = { isTTY: false };
|
|
29
|
+
(0, import_chunk_VFNP7Q3Y.test)("isInteractive should be false", () => {
|
|
30
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_ICFLO5JW.isInteractive)({ stream: mockedValue })).toBe(false);
|
|
31
|
+
});
|
|
32
|
+
(0, import_chunk_VFNP7Q3Y.test)("isInteractive should be false if TERM = dumb", () => {
|
|
33
|
+
process.env.TERM = "dumb";
|
|
34
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_ICFLO5JW.isInteractive)({ stream: mockedValue })).toBe(false);
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
(0, import_chunk_VFNP7Q3Y.describe)("in TTY environment", () => {
|
|
38
|
+
const mockedValue = { isTTY: true };
|
|
39
|
+
(0, import_chunk_VFNP7Q3Y.test)("isInteractive should be true", () => {
|
|
40
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_ICFLO5JW.isInteractive)({ stream: mockedValue })).toBe(true);
|
|
41
|
+
});
|
|
42
|
+
(0, import_chunk_VFNP7Q3Y.test)("isInteractive should be false if TERM = dumb", () => {
|
|
43
|
+
process.env.TERM = "dumb";
|
|
44
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)((0, import_chunk_ICFLO5JW.isInteractive)({ stream: mockedValue })).toBe(false);
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assertion function for internal consistency checks that should never fail
|
|
3
|
+
* in the correct code. It's purpose is pretty much:
|
|
4
|
+
* - ensuring we get more helpful error message if invariant does not hold due to a bug
|
|
5
|
+
* - have a better way of dealing with overly broad type definition than typecasting to `any`
|
|
6
|
+
* or more narrow type.
|
|
7
|
+
*
|
|
8
|
+
* This function should be for assertions only on the values where we control both the input and the output: engine to client, generator to generated client, etc.
|
|
9
|
+
* Don't use this function for assertion for any external input.
|
|
10
|
+
*
|
|
11
|
+
* @param condition
|
|
12
|
+
* @param message
|
|
13
|
+
*/
|
|
14
|
+
export declare function assertAlways(condition: unknown, message: string): asserts condition;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var assertAlways_exports = {};
|
|
20
|
+
__export(assertAlways_exports, {
|
|
21
|
+
assertAlways: () => import_chunk_Y4TOGY6I.assertAlways
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(assertAlways_exports);
|
|
24
|
+
var import_chunk_Y4TOGY6I = require("../chunk-Y4TOGY6I.js");
|
|
25
|
+
var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utility function to ensure exhaustive checks for union types.
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* ```ts
|
|
6
|
+
* declare const fruit: 'Apple' | 'Orange'
|
|
7
|
+
*
|
|
8
|
+
* switch (fruit) {
|
|
9
|
+
* case 'Apple:
|
|
10
|
+
* // do apple things
|
|
11
|
+
* break;
|
|
12
|
+
* case 'Orange:
|
|
13
|
+
* // do orange things
|
|
14
|
+
* break;
|
|
15
|
+
* default:
|
|
16
|
+
* // in case `fruit` type will expand in the future,
|
|
17
|
+
* // we'll get a compile-time error here, listing all unhandled
|
|
18
|
+
* // cases
|
|
19
|
+
* assertNever(fruit, 'Unknown fruit')
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
* @param arg variable of the any union type. By the time `assertNever` is called
|
|
23
|
+
* all possible cases of this union must already be handled
|
|
24
|
+
* @param errorMessage error message to throw in runtime. Normally, should never happen
|
|
25
|
+
* unless compile-time check is skipped
|
|
26
|
+
*/
|
|
27
|
+
export declare function assertNever(arg: never, errorMessage: string): never;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var assertNever_exports = {};
|
|
20
|
+
__export(assertNever_exports, {
|
|
21
|
+
assertNever: () => import_chunk_IL7PSY44.assertNever
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(assertNever_exports);
|
|
24
|
+
var import_chunk_IL7PSY44 = require("../chunk-IL7PSY44.js");
|
|
25
|
+
var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This regex matches all supported binary target names in a given string.
|
|
3
|
+
*
|
|
4
|
+
* Platform names are sorted by their lengths in descending order to ensure that
|
|
5
|
+
* the longest substring is always matched (e.g., "darwin-arm64" is matched as a
|
|
6
|
+
* whole instead of "darwin" and "arm" separately)
|
|
7
|
+
*/
|
|
8
|
+
export declare const binaryTargetRegex: RegExp;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var binaryTargetRegex_exports = {};
|
|
20
|
+
__export(binaryTargetRegex_exports, {
|
|
21
|
+
binaryTargetRegex: () => import_chunk_DODIJPCS.binaryTargetRegex
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(binaryTargetRegex_exports);
|
|
24
|
+
var import_chunk_DODIJPCS = require("../chunk-DODIJPCS.js");
|
|
25
|
+
var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type AsyncFn<Args extends unknown[], R> = (...args: Args) => Promise<R>;
|
|
2
|
+
/**
|
|
3
|
+
* Takes an async function `fn` as a parameter and returns a wrapper function, which ensures
|
|
4
|
+
* that `fn` will be called only once if the promise succeeds:
|
|
5
|
+
*
|
|
6
|
+
* - If the first call is not finished yet, returns the promise to the same result
|
|
7
|
+
* - If the first call is finished and has succeeded, returns the result of this call
|
|
8
|
+
* - If the first call is finished but has failed, `fn` is called again
|
|
9
|
+
* @param fn
|
|
10
|
+
* @returns
|
|
11
|
+
*/
|
|
12
|
+
export declare function callOnceOnSuccess<Args extends unknown[], R>(fn: AsyncFn<Args, R>): AsyncFn<Args, R>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var callOnce_exports = {};
|
|
20
|
+
__export(callOnce_exports, {
|
|
21
|
+
callOnceOnSuccess: () => import_chunk_NIWBAJZV.callOnceOnSuccess
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(callOnce_exports);
|
|
24
|
+
var import_chunk_NIWBAJZV = require("../chunk-NIWBAJZV.js");
|
|
25
|
+
var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var import_chunk_VFNP7Q3Y = require("../chunk-VFNP7Q3Y.js");
|
|
3
|
+
var import_chunk_NIWBAJZV = require("../chunk-NIWBAJZV.js");
|
|
4
|
+
var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
|
|
5
|
+
(0, import_chunk_VFNP7Q3Y.test)("returns the result correctly", async () => {
|
|
6
|
+
const wrapper = (0, import_chunk_NIWBAJZV.callOnceOnSuccess)(import_chunk_VFNP7Q3Y.vi.fn().mockResolvedValue("hello"));
|
|
7
|
+
await (0, import_chunk_VFNP7Q3Y.globalExpect)(wrapper()).resolves.toBe("hello");
|
|
8
|
+
});
|
|
9
|
+
(0, import_chunk_VFNP7Q3Y.test)("forwards the arguments correctly", async () => {
|
|
10
|
+
const wrapper = (0, import_chunk_NIWBAJZV.callOnceOnSuccess)((x) => Promise.resolve(x + 1));
|
|
11
|
+
await (0, import_chunk_VFNP7Q3Y.globalExpect)(wrapper(2)).resolves.toBe(3);
|
|
12
|
+
});
|
|
13
|
+
(0, import_chunk_VFNP7Q3Y.test)("\u0441alls wrapped function only once before promise resolves", async () => {
|
|
14
|
+
const wrapped = import_chunk_VFNP7Q3Y.vi.fn().mockResolvedValue("hello");
|
|
15
|
+
const wrapper = (0, import_chunk_NIWBAJZV.callOnceOnSuccess)(wrapped);
|
|
16
|
+
void wrapper();
|
|
17
|
+
void wrapper();
|
|
18
|
+
await wrapper();
|
|
19
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)(wrapped).toHaveBeenCalledTimes(1);
|
|
20
|
+
});
|
|
21
|
+
(0, import_chunk_VFNP7Q3Y.test)("caches the result when it succeeds", async () => {
|
|
22
|
+
const wrapped = import_chunk_VFNP7Q3Y.vi.fn().mockResolvedValue("hello");
|
|
23
|
+
const wrapper = (0, import_chunk_NIWBAJZV.callOnceOnSuccess)(wrapped);
|
|
24
|
+
await wrapper();
|
|
25
|
+
await wrapper();
|
|
26
|
+
const result = await wrapper();
|
|
27
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)(wrapped).toHaveBeenCalledTimes(1);
|
|
28
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)(result).toBe("hello");
|
|
29
|
+
});
|
|
30
|
+
(0, import_chunk_VFNP7Q3Y.test)("does not cache the result when it fails", async () => {
|
|
31
|
+
const wrapped = import_chunk_VFNP7Q3Y.vi.fn().mockRejectedValue(new Error("hello"));
|
|
32
|
+
const wrapper = (0, import_chunk_NIWBAJZV.callOnceOnSuccess)(wrapped);
|
|
33
|
+
await Promise.allSettled([wrapper(), wrapper()]);
|
|
34
|
+
await (0, import_chunk_VFNP7Q3Y.globalExpect)(wrapper()).rejects.toThrow("hello");
|
|
35
|
+
(0, import_chunk_VFNP7Q3Y.globalExpect)(wrapped).toHaveBeenCalledTimes(2);
|
|
36
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const canPrompt: () => boolean;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var canPrompt_exports = {};
|
|
20
|
+
__export(canPrompt_exports, {
|
|
21
|
+
canPrompt: () => import_chunk_FCYHZHVW.canPrompt
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(canPrompt_exports);
|
|
24
|
+
var import_chunk_FCYHZHVW = require("../chunk-FCYHZHVW.js");
|
|
25
|
+
var import_chunk_H4NI2RIK = require("../chunk-H4NI2RIK.js");
|
|
26
|
+
var import_chunk_ICFLO5JW = require("../chunk-ICFLO5JW.js");
|
|
27
|
+
var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function chmodPlusX(file: string): void;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var chmodPlusX_exports = {};
|
|
20
|
+
__export(chmodPlusX_exports, {
|
|
21
|
+
chmodPlusX: () => import_chunk_TWSLDIFL.chmodPlusX
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(chmodPlusX_exports);
|
|
24
|
+
var import_chunk_TWSLDIFL = require("../chunk-TWSLDIFL.js");
|
|
25
|
+
var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var drawBox_exports = {};
|
|
20
|
+
__export(drawBox_exports, {
|
|
21
|
+
drawBox: () => import_chunk_HHG4DGHC.drawBox
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(drawBox_exports);
|
|
24
|
+
var import_chunk_HHG4DGHC = require("../chunk-HHG4DGHC.js");
|
|
25
|
+
var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
|
|
26
|
+
var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var extractPreviewFeatures_exports = {};
|
|
20
|
+
__export(extractPreviewFeatures_exports, {
|
|
21
|
+
extractPreviewFeatures: () => import_chunk_EKGEKB22.extractPreviewFeatures
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(extractPreviewFeatures_exports);
|
|
24
|
+
var import_chunk_EKGEKB22 = require("../chunk-EKGEKB22.js");
|
|
25
|
+
var import_chunk_IOIAK7V7 = require("../chunk-IOIAK7V7.js");
|
|
26
|
+
var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
|
|
27
|
+
var import_chunk_MCS5ZY6Y = require("../chunk-MCS5ZY6Y.js");
|
|
28
|
+
var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var formatTable_exports = {};
|
|
20
|
+
__export(formatTable_exports, {
|
|
21
|
+
formatTable: () => import_chunk_QN6PSQY7.formatTable
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(formatTable_exports);
|
|
24
|
+
var import_chunk_QN6PSQY7 = require("../chunk-QN6PSQY7.js");
|
|
25
|
+
var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var formatms_exports = {};
|
|
20
|
+
__export(formatms_exports, {
|
|
21
|
+
formatms: () => import_chunk_XYCIH36R.formatms
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(formatms_exports);
|
|
24
|
+
var import_chunk_XYCIH36R = require("../chunk-XYCIH36R.js");
|
|
25
|
+
var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
|