@stryke/prisma-trpc-generator 0.11.11 → 0.11.12
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/README.md +1 -1
- package/dist/generator.cjs +312 -152
- package/dist/generator.js +281 -121
- package/dist/index.cjs +312 -152
- package/dist/index.js +281 -121
- package/package.json +1 -1
package/dist/generator.js
CHANGED
|
@@ -35,9 +35,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
35
35
|
mod
|
|
36
36
|
));
|
|
37
37
|
|
|
38
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.52.1_@types+node@22.13.10__@swc+core@1.11.9_@swc+
|
|
38
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.52.1_@types+node@22.13.10__@swc+core@1.11.9_@swc+_59b77ee1c3f80f02138262a51f241204/node_modules/tsup/assets/esm_shims.js
|
|
39
39
|
var init_esm_shims = __esm({
|
|
40
|
-
"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.52.1_@types+node@22.13.10__@swc+core@1.11.9_@swc+
|
|
40
|
+
"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.52.1_@types+node@22.13.10__@swc+core@1.11.9_@swc+_59b77ee1c3f80f02138262a51f241204/node_modules/tsup/assets/esm_shims.js"() {
|
|
41
41
|
"use strict";
|
|
42
42
|
}
|
|
43
43
|
});
|
|
@@ -6916,12 +6916,31 @@ init_esm_shims();
|
|
|
6916
6916
|
var EMPTY_STRING = "";
|
|
6917
6917
|
var $NestedValue = Symbol("NestedValue");
|
|
6918
6918
|
|
|
6919
|
+
// ../path/src/file-path-fns.ts
|
|
6920
|
+
import { relative } from "node:path";
|
|
6921
|
+
|
|
6919
6922
|
// ../path/src/correct-path.ts
|
|
6920
6923
|
init_esm_shims();
|
|
6921
6924
|
|
|
6922
6925
|
// ../path/src/is-file.ts
|
|
6923
6926
|
init_esm_shims();
|
|
6924
6927
|
import { lstatSync, statSync } from "node:fs";
|
|
6928
|
+
|
|
6929
|
+
// ../path/src/regex.ts
|
|
6930
|
+
init_esm_shims();
|
|
6931
|
+
var DRIVE_LETTER_START_REGEX = /^[A-Z]:\//i;
|
|
6932
|
+
var DRIVE_LETTER_REGEX = /^[A-Z]:$/i;
|
|
6933
|
+
var UNC_REGEX = /^[/\\]{2}/;
|
|
6934
|
+
var ABSOLUTE_PATH_REGEX = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^~[/\\]|^[A-Z]:[/\\]/i;
|
|
6935
|
+
|
|
6936
|
+
// ../path/src/slash.ts
|
|
6937
|
+
init_esm_shims();
|
|
6938
|
+
function slash(str) {
|
|
6939
|
+
return str.replace(/\\/g, "/");
|
|
6940
|
+
}
|
|
6941
|
+
__name(slash, "slash");
|
|
6942
|
+
|
|
6943
|
+
// ../path/src/is-file.ts
|
|
6925
6944
|
function isFile(path6, additionalPath) {
|
|
6926
6945
|
return Boolean(statSync(additionalPath ? joinPaths(additionalPath, path6) : path6, {
|
|
6927
6946
|
throwIfNoEntry: false
|
|
@@ -6935,29 +6954,26 @@ function isDirectory(path6, additionalPath) {
|
|
|
6935
6954
|
}
|
|
6936
6955
|
__name(isDirectory, "isDirectory");
|
|
6937
6956
|
function isAbsolutePath(path6) {
|
|
6938
|
-
return
|
|
6957
|
+
return ABSOLUTE_PATH_REGEX.test(slash(path6));
|
|
6939
6958
|
}
|
|
6940
6959
|
__name(isAbsolutePath, "isAbsolutePath");
|
|
6941
6960
|
|
|
6942
6961
|
// ../path/src/correct-path.ts
|
|
6943
|
-
var _DRIVE_LETTER_START_RE2 = /^[A-Z]:\//i;
|
|
6944
6962
|
function normalizeWindowsPath2(input = "") {
|
|
6945
6963
|
if (!input) {
|
|
6946
6964
|
return input;
|
|
6947
6965
|
}
|
|
6948
|
-
return input
|
|
6966
|
+
return slash(input).replace(DRIVE_LETTER_START_REGEX, (r) => r.toUpperCase());
|
|
6949
6967
|
}
|
|
6950
6968
|
__name(normalizeWindowsPath2, "normalizeWindowsPath");
|
|
6951
|
-
var _UNC_REGEX2 = /^[/\\]{2}/;
|
|
6952
|
-
var _DRIVE_LETTER_RE2 = /^[A-Z]:$/i;
|
|
6953
6969
|
function correctPath(path6) {
|
|
6954
6970
|
if (!path6 || path6.length === 0) {
|
|
6955
6971
|
return ".";
|
|
6956
6972
|
}
|
|
6957
6973
|
path6 = normalizeWindowsPath2(path6);
|
|
6958
|
-
const isUNCPath = path6.match(
|
|
6974
|
+
const isUNCPath = path6.match(UNC_REGEX);
|
|
6959
6975
|
const isPathAbsolute = isAbsolutePath(path6);
|
|
6960
|
-
const trailingSeparator = path6
|
|
6976
|
+
const trailingSeparator = path6.endsWith("/");
|
|
6961
6977
|
path6 = normalizeString2(path6, !isPathAbsolute);
|
|
6962
6978
|
if (path6.length === 0) {
|
|
6963
6979
|
if (isPathAbsolute) {
|
|
@@ -6968,7 +6984,7 @@ function correctPath(path6) {
|
|
|
6968
6984
|
if (trailingSeparator) {
|
|
6969
6985
|
path6 += "/";
|
|
6970
6986
|
}
|
|
6971
|
-
if (
|
|
6987
|
+
if (DRIVE_LETTER_REGEX.test(path6)) {
|
|
6972
6988
|
path6 += "/";
|
|
6973
6989
|
}
|
|
6974
6990
|
if (isUNCPath) {
|
|
@@ -6977,7 +6993,7 @@ function correctPath(path6) {
|
|
|
6977
6993
|
}
|
|
6978
6994
|
return `//${path6}`;
|
|
6979
6995
|
}
|
|
6980
|
-
return isPathAbsolute && !
|
|
6996
|
+
return !path6.startsWith("/") && isPathAbsolute && !DRIVE_LETTER_REGEX.test(path6) ? `/${path6}` : path6;
|
|
6981
6997
|
}
|
|
6982
6998
|
__name(correctPath, "correctPath");
|
|
6983
6999
|
function normalizeString2(path6, allowAboveRoot) {
|
|
@@ -7045,65 +7061,28 @@ __name(normalizeString2, "normalizeString");
|
|
|
7045
7061
|
// ../path/src/get-workspace-root.ts
|
|
7046
7062
|
init_esm_shims();
|
|
7047
7063
|
|
|
7048
|
-
// ../../node_modules/.pnpm/@storm-software+config-tools@1.
|
|
7049
|
-
init_esm_shims();
|
|
7050
|
-
|
|
7051
|
-
// ../../node_modules/.pnpm/@storm-software+config-tools@1.162.12_@storm-software+config@1.112.20/node_modules/@storm-software/config-tools/dist/chunk-K6PUXRK3.js
|
|
7064
|
+
// ../../node_modules/.pnpm/@storm-software+config-tools@1.169.6/node_modules/@storm-software/config-tools/dist/index.js
|
|
7052
7065
|
init_esm_shims();
|
|
7053
7066
|
|
|
7054
|
-
// ../../node_modules/.pnpm/@storm-software+config-tools@1.
|
|
7055
|
-
init_esm_shims();
|
|
7056
|
-
|
|
7057
|
-
// ../../node_modules/.pnpm/@storm-software+config-tools@1.162.12_@storm-software+config@1.112.20/node_modules/@storm-software/config-tools/dist/chunk-SHUYVCID.js
|
|
7058
|
-
init_esm_shims();
|
|
7059
|
-
var __defProp2 = Object.defineProperty;
|
|
7060
|
-
var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", {
|
|
7061
|
-
value,
|
|
7062
|
-
configurable: true
|
|
7063
|
-
}), "__name");
|
|
7064
|
-
|
|
7065
|
-
// ../../node_modules/.pnpm/@storm-software+config-tools@1.162.12_@storm-software+config@1.112.20/node_modules/@storm-software/config-tools/dist/chunk-NQFXB5CV.js
|
|
7066
|
-
import { existsSync as existsSync2 } from "node:fs";
|
|
7067
|
-
import { join } from "node:path";
|
|
7068
|
-
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
7069
|
-
var depth = 0;
|
|
7070
|
-
function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
|
|
7071
|
-
const _startPath = startPath ?? process.cwd();
|
|
7072
|
-
if (endDirectoryNames.some((endDirName) => existsSync2(join(_startPath, endDirName)))) {
|
|
7073
|
-
return _startPath;
|
|
7074
|
-
}
|
|
7075
|
-
if (endFileNames.some((endFileName) => existsSync2(join(_startPath, endFileName)))) {
|
|
7076
|
-
return _startPath;
|
|
7077
|
-
}
|
|
7078
|
-
if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) {
|
|
7079
|
-
const parent = join(_startPath, "..");
|
|
7080
|
-
return findFolderUp(parent, endFileNames, endDirectoryNames);
|
|
7081
|
-
}
|
|
7082
|
-
return void 0;
|
|
7083
|
-
}
|
|
7084
|
-
__name(findFolderUp, "findFolderUp");
|
|
7085
|
-
__name2(findFolderUp, "findFolderUp");
|
|
7086
|
-
|
|
7087
|
-
// ../../node_modules/.pnpm/@storm-software+config-tools@1.162.12_@storm-software+config@1.112.20/node_modules/@storm-software/config-tools/dist/chunk-D6E6GZD2.js
|
|
7067
|
+
// ../../node_modules/.pnpm/@storm-software+config-tools@1.169.6/node_modules/@storm-software/config-tools/dist/chunk-FRR2ZRWD.js
|
|
7088
7068
|
init_esm_shims();
|
|
7089
|
-
var
|
|
7069
|
+
var _DRIVE_LETTER_START_RE2 = /^[A-Za-z]:\//;
|
|
7090
7070
|
function normalizeWindowsPath3(input = "") {
|
|
7091
7071
|
if (!input) {
|
|
7092
7072
|
return input;
|
|
7093
7073
|
}
|
|
7094
|
-
return input.replace(/\\/g, "/").replace(
|
|
7074
|
+
return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE2, (r) => r.toUpperCase());
|
|
7095
7075
|
}
|
|
7096
7076
|
__name(normalizeWindowsPath3, "normalizeWindowsPath");
|
|
7097
|
-
|
|
7098
|
-
var _UNC_REGEX3 = /^[/\\]{2}/;
|
|
7077
|
+
var _UNC_REGEX2 = /^[/\\]{2}/;
|
|
7099
7078
|
var _IS_ABSOLUTE_RE2 = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
7100
|
-
var
|
|
7101
|
-
var correctPaths2 = /* @__PURE__ */
|
|
7079
|
+
var _DRIVE_LETTER_RE2 = /^[A-Za-z]:$/;
|
|
7080
|
+
var correctPaths2 = /* @__PURE__ */ __name(function(path6) {
|
|
7102
7081
|
if (!path6 || path6.length === 0) {
|
|
7103
7082
|
return ".";
|
|
7104
7083
|
}
|
|
7105
7084
|
path6 = normalizeWindowsPath3(path6);
|
|
7106
|
-
const isUNCPath = path6.match(
|
|
7085
|
+
const isUNCPath = path6.match(_UNC_REGEX2);
|
|
7107
7086
|
const isPathAbsolute = isAbsolute2(path6);
|
|
7108
7087
|
const trailingSeparator = path6[path6.length - 1] === "/";
|
|
7109
7088
|
path6 = normalizeString3(path6, !isPathAbsolute);
|
|
@@ -7116,7 +7095,7 @@ var correctPaths2 = /* @__PURE__ */ __name2(function(path6) {
|
|
|
7116
7095
|
if (trailingSeparator) {
|
|
7117
7096
|
path6 += "/";
|
|
7118
7097
|
}
|
|
7119
|
-
if (
|
|
7098
|
+
if (_DRIVE_LETTER_RE2.test(path6)) {
|
|
7120
7099
|
path6 += "/";
|
|
7121
7100
|
}
|
|
7122
7101
|
if (isUNCPath) {
|
|
@@ -7127,14 +7106,6 @@ var correctPaths2 = /* @__PURE__ */ __name2(function(path6) {
|
|
|
7127
7106
|
}
|
|
7128
7107
|
return isPathAbsolute && !isAbsolute2(path6) ? `/${path6}` : path6;
|
|
7129
7108
|
}, "correctPaths");
|
|
7130
|
-
function cwd() {
|
|
7131
|
-
if (typeof process !== "undefined" && typeof process.cwd === "function") {
|
|
7132
|
-
return process.cwd().replace(/\\/g, "/");
|
|
7133
|
-
}
|
|
7134
|
-
return "/";
|
|
7135
|
-
}
|
|
7136
|
-
__name(cwd, "cwd");
|
|
7137
|
-
__name2(cwd, "cwd");
|
|
7138
7109
|
function normalizeString3(path6, allowAboveRoot) {
|
|
7139
7110
|
let res = "";
|
|
7140
7111
|
let lastSegmentLength = 0;
|
|
@@ -7196,12 +7167,36 @@ function normalizeString3(path6, allowAboveRoot) {
|
|
|
7196
7167
|
return res;
|
|
7197
7168
|
}
|
|
7198
7169
|
__name(normalizeString3, "normalizeString");
|
|
7199
|
-
|
|
7200
|
-
var isAbsolute2 = /* @__PURE__ */ __name2(function(p) {
|
|
7170
|
+
var isAbsolute2 = /* @__PURE__ */ __name(function(p) {
|
|
7201
7171
|
return _IS_ABSOLUTE_RE2.test(p);
|
|
7202
7172
|
}, "isAbsolute");
|
|
7203
7173
|
|
|
7204
|
-
// ../../node_modules/.pnpm/@storm-software+config-tools@1.
|
|
7174
|
+
// ../../node_modules/.pnpm/@storm-software+config-tools@1.169.6/node_modules/@storm-software/config-tools/dist/chunk-VLWSWYG7.js
|
|
7175
|
+
init_esm_shims();
|
|
7176
|
+
|
|
7177
|
+
// ../../node_modules/.pnpm/@storm-software+config-tools@1.169.6/node_modules/@storm-software/config-tools/dist/chunk-RWBPUJIZ.js
|
|
7178
|
+
init_esm_shims();
|
|
7179
|
+
import { existsSync as existsSync2 } from "node:fs";
|
|
7180
|
+
import { join } from "node:path";
|
|
7181
|
+
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
7182
|
+
var depth = 0;
|
|
7183
|
+
function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
|
|
7184
|
+
const _startPath = startPath ?? process.cwd();
|
|
7185
|
+
if (endDirectoryNames.some((endDirName) => existsSync2(join(_startPath, endDirName)))) {
|
|
7186
|
+
return _startPath;
|
|
7187
|
+
}
|
|
7188
|
+
if (endFileNames.some((endFileName) => existsSync2(join(_startPath, endFileName)))) {
|
|
7189
|
+
return _startPath;
|
|
7190
|
+
}
|
|
7191
|
+
if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) {
|
|
7192
|
+
const parent = join(_startPath, "..");
|
|
7193
|
+
return findFolderUp(parent, endFileNames, endDirectoryNames);
|
|
7194
|
+
}
|
|
7195
|
+
return void 0;
|
|
7196
|
+
}
|
|
7197
|
+
__name(findFolderUp, "findFolderUp");
|
|
7198
|
+
|
|
7199
|
+
// ../../node_modules/.pnpm/@storm-software+config-tools@1.169.6/node_modules/@storm-software/config-tools/dist/chunk-VLWSWYG7.js
|
|
7205
7200
|
var rootFiles = [
|
|
7206
7201
|
"storm-workspace.json",
|
|
7207
7202
|
"storm-workspace.json",
|
|
@@ -7251,31 +7246,19 @@ function findWorkspaceRootSafe(pathInsideMonorepo) {
|
|
|
7251
7246
|
return correctPaths2(findFolderUp(pathInsideMonorepo ?? process.cwd(), rootFiles, rootDirectories));
|
|
7252
7247
|
}
|
|
7253
7248
|
__name(findWorkspaceRootSafe, "findWorkspaceRootSafe");
|
|
7254
|
-
__name2(findWorkspaceRootSafe, "findWorkspaceRootSafe");
|
|
7255
|
-
function findWorkspaceRoot(pathInsideMonorepo) {
|
|
7256
|
-
const result = findWorkspaceRootSafe(pathInsideMonorepo);
|
|
7257
|
-
if (!result) {
|
|
7258
|
-
throw new Error(`Cannot find workspace root upwards from known path. Files search list includes:
|
|
7259
|
-
${rootFiles.join("\n")}
|
|
7260
|
-
Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`);
|
|
7261
|
-
}
|
|
7262
|
-
return result;
|
|
7263
|
-
}
|
|
7264
|
-
__name(findWorkspaceRoot, "findWorkspaceRoot");
|
|
7265
|
-
__name2(findWorkspaceRoot, "findWorkspaceRoot");
|
|
7266
7249
|
|
|
7267
7250
|
// ../path/src/get-parent-path.ts
|
|
7268
7251
|
init_esm_shims();
|
|
7269
7252
|
var resolveParentPath = /* @__PURE__ */ __name((path6) => {
|
|
7270
7253
|
return resolvePaths(path6, "..");
|
|
7271
7254
|
}, "resolveParentPath");
|
|
7272
|
-
var getParentPath = /* @__PURE__ */ __name((name,
|
|
7255
|
+
var getParentPath = /* @__PURE__ */ __name((name, cwd, options) => {
|
|
7273
7256
|
const ignoreCase = options?.ignoreCase ?? true;
|
|
7274
7257
|
const skipCwd = options?.skipCwd ?? false;
|
|
7275
7258
|
const targetType = options?.targetType ?? "both";
|
|
7276
|
-
let dir =
|
|
7259
|
+
let dir = cwd;
|
|
7277
7260
|
if (skipCwd) {
|
|
7278
|
-
dir = resolveParentPath(
|
|
7261
|
+
dir = resolveParentPath(cwd);
|
|
7279
7262
|
}
|
|
7280
7263
|
let names = Array.isArray(name) ? name : [
|
|
7281
7264
|
name
|
|
@@ -7372,12 +7355,12 @@ function findFilePath(filePath) {
|
|
|
7372
7355
|
}), "");
|
|
7373
7356
|
}
|
|
7374
7357
|
__name(findFilePath, "findFilePath");
|
|
7375
|
-
function resolvePath(path6,
|
|
7358
|
+
function resolvePath(path6, cwd = getWorkspaceRoot()) {
|
|
7376
7359
|
const paths = normalizeWindowsPath2(path6).split("/");
|
|
7377
7360
|
let resolvedPath = "";
|
|
7378
7361
|
let resolvedAbsolute = false;
|
|
7379
7362
|
for (let index = paths.length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
7380
|
-
const path7 = index >= 0 ? paths[index] :
|
|
7363
|
+
const path7 = index >= 0 ? paths[index] : cwd;
|
|
7381
7364
|
if (!path7 || path7.length === 0) {
|
|
7382
7365
|
continue;
|
|
7383
7366
|
}
|
|
@@ -7396,25 +7379,7 @@ function resolvePaths(...paths) {
|
|
|
7396
7379
|
}
|
|
7397
7380
|
__name(resolvePaths, "resolvePaths");
|
|
7398
7381
|
function relativePath(from, to) {
|
|
7399
|
-
|
|
7400
|
-
const _to = resolvePath(to).replace(/^\/([A-Z]:)?$/i, "$1").split("/");
|
|
7401
|
-
if (_to[0][1] === ":" && _from[0][1] === ":" && _from[0] !== _to[0]) {
|
|
7402
|
-
return _to.join("/");
|
|
7403
|
-
}
|
|
7404
|
-
const _fromCopy = [
|
|
7405
|
-
..._from
|
|
7406
|
-
];
|
|
7407
|
-
for (const segment of _fromCopy) {
|
|
7408
|
-
if (_to[0] !== segment) {
|
|
7409
|
-
break;
|
|
7410
|
-
}
|
|
7411
|
-
_from.shift();
|
|
7412
|
-
_to.shift();
|
|
7413
|
-
}
|
|
7414
|
-
return [
|
|
7415
|
-
..._from.map(() => ".."),
|
|
7416
|
-
..._to
|
|
7417
|
-
].join("/");
|
|
7382
|
+
return relative(from.replace(/\/$/, ""), to.replace(/\/$/, ""));
|
|
7418
7383
|
}
|
|
7419
7384
|
__name(relativePath, "relativePath");
|
|
7420
7385
|
|
|
@@ -7449,46 +7414,200 @@ init_esm_shims();
|
|
|
7449
7414
|
// ../string-format/src/acronyms.ts
|
|
7450
7415
|
init_esm_shims();
|
|
7451
7416
|
var ACRONYMS = [
|
|
7417
|
+
"3D",
|
|
7418
|
+
"4D",
|
|
7419
|
+
"5G",
|
|
7420
|
+
"6G",
|
|
7421
|
+
"7G",
|
|
7422
|
+
"8G",
|
|
7423
|
+
"ACID",
|
|
7424
|
+
"AES",
|
|
7425
|
+
"AI",
|
|
7426
|
+
"AJAX",
|
|
7452
7427
|
"API",
|
|
7428
|
+
"AR",
|
|
7429
|
+
"ASCII",
|
|
7430
|
+
"B2B",
|
|
7431
|
+
"B2C",
|
|
7432
|
+
"BFF",
|
|
7433
|
+
"BI",
|
|
7434
|
+
"BIOS",
|
|
7435
|
+
"BGP",
|
|
7436
|
+
"BOM",
|
|
7437
|
+
"BYOD",
|
|
7438
|
+
"C2C",
|
|
7439
|
+
"CAGR",
|
|
7440
|
+
"CAPTCHA",
|
|
7441
|
+
"CD",
|
|
7442
|
+
"CDN",
|
|
7443
|
+
"CDP",
|
|
7444
|
+
"CI",
|
|
7445
|
+
"CI/CD",
|
|
7446
|
+
"CIAM",
|
|
7447
|
+
"CICD",
|
|
7448
|
+
"CLI",
|
|
7449
|
+
"CMDB",
|
|
7450
|
+
"CORS",
|
|
7453
7451
|
"CPU",
|
|
7452
|
+
"CRUD",
|
|
7453
|
+
"CSR",
|
|
7454
7454
|
"CSS",
|
|
7455
|
+
"CX",
|
|
7456
|
+
"DAG",
|
|
7457
|
+
"DBMS",
|
|
7458
|
+
"DDoS",
|
|
7455
7459
|
"DNS",
|
|
7460
|
+
"DNSSEC",
|
|
7461
|
+
"DOM",
|
|
7462
|
+
"DR",
|
|
7463
|
+
"DRM",
|
|
7464
|
+
"DWH",
|
|
7465
|
+
"E2E",
|
|
7466
|
+
"EAI",
|
|
7467
|
+
"EKS",
|
|
7456
7468
|
"EOF",
|
|
7469
|
+
"EOD",
|
|
7470
|
+
"ETC",
|
|
7471
|
+
"ETL",
|
|
7472
|
+
"EULA",
|
|
7473
|
+
"FIDO",
|
|
7474
|
+
"FQDN",
|
|
7475
|
+
"FTP",
|
|
7476
|
+
"FaaS",
|
|
7477
|
+
"GDPR",
|
|
7478
|
+
"GCP",
|
|
7479
|
+
"GPU",
|
|
7457
7480
|
"GUID",
|
|
7481
|
+
"GUI",
|
|
7482
|
+
"GZIP",
|
|
7483
|
+
"HCI",
|
|
7484
|
+
"HDD",
|
|
7485
|
+
"HDFS",
|
|
7486
|
+
"HIPAA",
|
|
7487
|
+
"HMAC",
|
|
7488
|
+
"HOTP",
|
|
7489
|
+
"HSM",
|
|
7458
7490
|
"HTML",
|
|
7459
7491
|
"HTTP",
|
|
7492
|
+
"HTTP/2",
|
|
7493
|
+
"HTTP/2.0",
|
|
7494
|
+
"HTTP/3",
|
|
7495
|
+
"HTTP/3.0",
|
|
7496
|
+
"HTTP2",
|
|
7460
7497
|
"HTTPS",
|
|
7498
|
+
"HTTPS/2",
|
|
7499
|
+
"HTTPS/3",
|
|
7500
|
+
"HTTPS3",
|
|
7501
|
+
"IAM",
|
|
7502
|
+
"IAMM",
|
|
7503
|
+
"IAMT",
|
|
7504
|
+
"IaaS",
|
|
7461
7505
|
"ID",
|
|
7506
|
+
"IMAP",
|
|
7462
7507
|
"IP",
|
|
7508
|
+
"IPFS",
|
|
7509
|
+
"IoT",
|
|
7463
7510
|
"JSON",
|
|
7511
|
+
"JSONP",
|
|
7512
|
+
"JWT",
|
|
7513
|
+
"K8s",
|
|
7514
|
+
"KMS",
|
|
7515
|
+
"KPI",
|
|
7516
|
+
"LAN",
|
|
7464
7517
|
"LHS",
|
|
7518
|
+
"LXC",
|
|
7519
|
+
"MFA",
|
|
7520
|
+
"ML",
|
|
7521
|
+
"MLOps",
|
|
7522
|
+
"MVC",
|
|
7523
|
+
"MVP",
|
|
7524
|
+
"NAS",
|
|
7525
|
+
"NAT",
|
|
7526
|
+
"NDA",
|
|
7527
|
+
"NFS",
|
|
7528
|
+
"NIST",
|
|
7529
|
+
"NLP",
|
|
7530
|
+
"NPS",
|
|
7531
|
+
"OCR",
|
|
7465
7532
|
"OEM",
|
|
7533
|
+
"OKR",
|
|
7534
|
+
"OLAP",
|
|
7535
|
+
"OLTP",
|
|
7536
|
+
"OOP",
|
|
7537
|
+
"ORM",
|
|
7538
|
+
"OS",
|
|
7539
|
+
"OTP",
|
|
7540
|
+
"P2P",
|
|
7541
|
+
"PDP",
|
|
7542
|
+
"PaaS",
|
|
7543
|
+
"PCI",
|
|
7544
|
+
"PKI",
|
|
7466
7545
|
"PP",
|
|
7546
|
+
"PWA",
|
|
7547
|
+
"PX",
|
|
7467
7548
|
"QA",
|
|
7549
|
+
"RAID",
|
|
7468
7550
|
"RAM",
|
|
7551
|
+
"RDS",
|
|
7552
|
+
"REST",
|
|
7469
7553
|
"RHS",
|
|
7470
7554
|
"RPC",
|
|
7555
|
+
"RPA",
|
|
7556
|
+
"RUM",
|
|
7471
7557
|
"RSS",
|
|
7558
|
+
"SAN",
|
|
7559
|
+
"SASE",
|
|
7560
|
+
"SDLC",
|
|
7561
|
+
"SDK",
|
|
7562
|
+
"SEO",
|
|
7563
|
+
"SFTP",
|
|
7564
|
+
"SIEM",
|
|
7472
7565
|
"SLA",
|
|
7566
|
+
"SMB",
|
|
7473
7567
|
"SMTP",
|
|
7568
|
+
"SOAP",
|
|
7569
|
+
"SOC",
|
|
7570
|
+
"SOA",
|
|
7571
|
+
"SPDY",
|
|
7572
|
+
"SPF",
|
|
7474
7573
|
"SQL",
|
|
7574
|
+
"SRV",
|
|
7575
|
+
"SRE",
|
|
7475
7576
|
"SSH",
|
|
7577
|
+
"SSDL",
|
|
7578
|
+
"SSO",
|
|
7476
7579
|
"SSL",
|
|
7477
|
-
"
|
|
7580
|
+
"SSR",
|
|
7581
|
+
"TDD",
|
|
7582
|
+
"TLD",
|
|
7478
7583
|
"TLS",
|
|
7584
|
+
"TLS1.3",
|
|
7585
|
+
"TOTP",
|
|
7479
7586
|
"TRPC",
|
|
7480
7587
|
"TTL",
|
|
7481
7588
|
"UDP",
|
|
7482
7589
|
"UI",
|
|
7483
7590
|
"UID",
|
|
7484
|
-
"UUID",
|
|
7485
7591
|
"URI",
|
|
7486
7592
|
"URL",
|
|
7487
7593
|
"UTF",
|
|
7594
|
+
"UUID",
|
|
7595
|
+
"UX",
|
|
7488
7596
|
"VM",
|
|
7597
|
+
"VLAN",
|
|
7598
|
+
"VPN",
|
|
7599
|
+
"VR",
|
|
7600
|
+
"WAF",
|
|
7601
|
+
"WAN",
|
|
7602
|
+
"WLAN",
|
|
7603
|
+
"WPA",
|
|
7604
|
+
"XACML",
|
|
7489
7605
|
"XML",
|
|
7606
|
+
"XSRF",
|
|
7490
7607
|
"XSS",
|
|
7491
|
-
"
|
|
7608
|
+
"XR",
|
|
7609
|
+
"YAML",
|
|
7610
|
+
"ZTA"
|
|
7492
7611
|
];
|
|
7493
7612
|
|
|
7494
7613
|
// ../string-format/src/upper-case-first.ts
|
|
@@ -7503,7 +7622,7 @@ function titleCase(input) {
|
|
|
7503
7622
|
if (!input) {
|
|
7504
7623
|
return input;
|
|
7505
7624
|
}
|
|
7506
|
-
return input.split(/(?=[A-Z])|[\s._-]/).map((s) => s.trim()).filter(Boolean).map((s) => ACRONYMS.
|
|
7625
|
+
return input.split(/(?=[A-Z])|[\s._-]/).map((s) => s.trim()).filter(Boolean).map((s) => ACRONYMS.find((a) => a.toUpperCase() === s.toUpperCase()) || upperCaseFirst(s.toLowerCase())).join(" ");
|
|
7507
7626
|
}
|
|
7508
7627
|
__name(titleCase, "titleCase");
|
|
7509
7628
|
|
|
@@ -7553,7 +7672,8 @@ var linux = /* @__PURE__ */ __name((orgId) => {
|
|
|
7553
7672
|
cache: joinPaths(process.env.XDG_CACHE_HOME || joinPaths(homedir, ".cache"), orgId),
|
|
7554
7673
|
// https://wiki.debian.org/XDGBaseDirectorySpecification#state
|
|
7555
7674
|
log: joinPaths(process.env.XDG_STATE_HOME || joinPaths(homedir, ".local", "state"), orgId),
|
|
7556
|
-
|
|
7675
|
+
// https://devenv.sh/files-and-variables/#devenv_root
|
|
7676
|
+
temp: process.env.DEVENV_RUNTIME || process.env.XDG_RUNTIME_DIR ? joinPaths(process.env.DEVENV_RUNTIME || process.env.XDG_RUNTIME_DIR, orgId) : joinPaths(tmpdir, username, orgId)
|
|
7557
7677
|
};
|
|
7558
7678
|
}, "linux");
|
|
7559
7679
|
function getEnvPaths(options = {}) {
|
|
@@ -7572,16 +7692,16 @@ function getEnvPaths(options = {}) {
|
|
|
7572
7692
|
} else {
|
|
7573
7693
|
result = linux(orgId);
|
|
7574
7694
|
}
|
|
7575
|
-
if (process.env.
|
|
7576
|
-
result.data = process.env.
|
|
7577
|
-
} else if (process.env.
|
|
7578
|
-
result.config = process.env.
|
|
7579
|
-
} else if (process.env.
|
|
7580
|
-
result.cache = process.env.
|
|
7581
|
-
} else if (process.env.
|
|
7582
|
-
result.log = process.env.
|
|
7583
|
-
} else if (process.env.
|
|
7584
|
-
result.temp = process.env.
|
|
7695
|
+
if (process.env.STORM_DATA_DIR) {
|
|
7696
|
+
result.data = process.env.STORM_DATA_DIR;
|
|
7697
|
+
} else if (process.env.STORM_CONFIG_DIR) {
|
|
7698
|
+
result.config = process.env.STORM_CONFIG_DIR;
|
|
7699
|
+
} else if (process.env.STORM_CACHE_DIR) {
|
|
7700
|
+
result.cache = process.env.STORM_CACHE_DIR;
|
|
7701
|
+
} else if (process.env.STORM_LOG_DIR) {
|
|
7702
|
+
result.log = process.env.STORM_LOG_DIR;
|
|
7703
|
+
} else if (process.env.STORM_TEMP_DIR) {
|
|
7704
|
+
result.temp = process.env.STORM_TEMP_DIR;
|
|
7585
7705
|
}
|
|
7586
7706
|
if (options.workspaceRoot) {
|
|
7587
7707
|
result.cache ??= joinPaths(options.workspaceRoot, "node_modules", ".cache", orgId);
|
|
@@ -10540,7 +10660,47 @@ var isNumber2 = /* @__PURE__ */ __name((value) => {
|
|
|
10540
10660
|
}
|
|
10541
10661
|
}, "isNumber");
|
|
10542
10662
|
|
|
10663
|
+
// ../type-checks/src/is-undefined.ts
|
|
10664
|
+
init_esm_shims();
|
|
10665
|
+
var isUndefined3 = /* @__PURE__ */ __name((value) => {
|
|
10666
|
+
return value === void 0;
|
|
10667
|
+
}, "isUndefined");
|
|
10668
|
+
|
|
10543
10669
|
// ../json/src/utils/stringify.ts
|
|
10670
|
+
var invalidKeyChars = [
|
|
10671
|
+
"@",
|
|
10672
|
+
"/",
|
|
10673
|
+
"#",
|
|
10674
|
+
"$",
|
|
10675
|
+
" ",
|
|
10676
|
+
":",
|
|
10677
|
+
";",
|
|
10678
|
+
",",
|
|
10679
|
+
".",
|
|
10680
|
+
"!",
|
|
10681
|
+
"?",
|
|
10682
|
+
"&",
|
|
10683
|
+
"=",
|
|
10684
|
+
"+",
|
|
10685
|
+
"-",
|
|
10686
|
+
"*",
|
|
10687
|
+
"%",
|
|
10688
|
+
"^",
|
|
10689
|
+
"~",
|
|
10690
|
+
"|",
|
|
10691
|
+
"\\",
|
|
10692
|
+
'"',
|
|
10693
|
+
"'",
|
|
10694
|
+
"`",
|
|
10695
|
+
"{",
|
|
10696
|
+
"}",
|
|
10697
|
+
"[",
|
|
10698
|
+
"]",
|
|
10699
|
+
"(",
|
|
10700
|
+
")",
|
|
10701
|
+
"<",
|
|
10702
|
+
">"
|
|
10703
|
+
];
|
|
10544
10704
|
var stringify2 = /* @__PURE__ */ __name((value, spacing = 2) => {
|
|
10545
10705
|
const space = isNumber2(spacing) ? " ".repeat(spacing) : spacing;
|
|
10546
10706
|
switch (value) {
|
|
@@ -10577,8 +10737,8 @@ var stringify2 = /* @__PURE__ */ __name((value, spacing = 2) => {
|
|
|
10577
10737
|
return JSON.stringify(value);
|
|
10578
10738
|
}
|
|
10579
10739
|
case "object": {
|
|
10580
|
-
const keys = Object.keys(value);
|
|
10581
|
-
return `{${space}${keys.map((
|
|
10740
|
+
const keys = Object.keys(value).filter((key) => !isUndefined3(value[key]));
|
|
10741
|
+
return `{${space}${keys.map((key) => `${invalidKeyChars.some((invalidKeyChar) => key.includes(invalidKeyChar)) ? `"${key}"` : key}: ${space}${stringify2(value[key], space)}`).join(`,${space}`)}${space}}`;
|
|
10582
10742
|
}
|
|
10583
10743
|
default:
|
|
10584
10744
|
return "null";
|