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