@grunnverk/kodrdriv 1.5.14 → 1.5.15-dev.20260303211412.fb8a66c

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/constants.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import os from 'os';
2
2
  import path from 'path';
3
3
 
4
- /** Version string populated at build time with git and system information */ const VERSION = '1.5.14 (HEAD/7b4d575 T:v1.5.14 2026-02-11 21:14:28 -0800) linux x64 v24.13.0';
4
+ /** Version string populated at build time with git and system information */ const VERSION = '1.5.15-dev.20260303211412.fb8a66c (working/fb8a66c 2026-03-03 13:14:00 -0800) linux x64 v24.13.1';
5
5
  /** The program name used in CLI help and error messages */ const PROGRAM_NAME = 'kodrdriv';
6
6
  const DEFAULT_OVERRIDES = false;
7
7
  const DATE_FORMAT_YEAR_MONTH_DAY_HOURS_MINUTES_SECONDS_MILLISECONDS = 'YYYY-MM-DD-HHmmss.SSS';
@@ -13915,7 +13915,7 @@ import path2 from "path";
13915
13915
  // src/constants.ts
13916
13916
  import os from "os";
13917
13917
  import path from "path";
13918
- var VERSION = "1.5.14 (HEAD/7b4d575 T:v1.5.14 2026-02-11 21:14:28 -0800) linux x64 v24.13.0";
13918
+ var VERSION = "1.5.15-dev.20260303211412.fb8a66c (working/fb8a66c 2026-03-03 13:14:00 -0800) linux x64 v24.13.1";
13919
13919
  var PROGRAM_NAME = "kodrdriv";
13920
13920
  var DATE_FORMAT_YEAR_MONTH_DAY_HOURS_MINUTES_SECONDS_MILLISECONDS = "YYYY-MM-DD-HHmmss.SSS";
13921
13921
  var DEFAULT_OUTPUT_DIRECTORY = "output/kodrdriv";
@@ -16330,7 +16330,7 @@ function isKeyOperator(operator) {
16330
16330
  function getValues(context, operator, key, modifier) {
16331
16331
  var value = context[key], result = [];
16332
16332
  if (isDefined(value) && value !== "") {
16333
- if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
16333
+ if (typeof value === "string" || typeof value === "number" || typeof value === "bigint" || typeof value === "boolean") {
16334
16334
  value = value.toString();
16335
16335
  if (modifier && modifier !== "*") {
16336
16336
  value = value.substring(0, parseInt(modifier, 10));
@@ -16511,6 +16511,92 @@ var endpoint = withDefaults(null, DEFAULTS);
16511
16511
  // node_modules/@octokit/request/dist-bundle/index.js
16512
16512
  var import_fast_content_type_parse = __toESM(require_fast_content_type_parse(), 1);
16513
16513
 
16514
+ // node_modules/json-with-bigint/json-with-bigint.js
16515
+ var intRegex = /^-?\d+$/;
16516
+ var noiseValue = /^-?\d+n+$/;
16517
+ var originalStringify = JSON.stringify;
16518
+ var originalParse = JSON.parse;
16519
+ var customFormat = /^-?\d+n$/;
16520
+ var bigIntsStringify = /([\[:])?"(-?\d+)n"($|([\\n]|\s)*(\s|[\\n])*[,\}\]])/g;
16521
+ var noiseStringify = /([\[:])?("-?\d+n+)n("$|"([\\n]|\s)*(\s|[\\n])*[,\}\]])/g;
16522
+ var JSONStringify = (value, replacer, space) => {
16523
+ if ("rawJSON" in JSON) {
16524
+ return originalStringify(
16525
+ value,
16526
+ (key, value2) => {
16527
+ if (typeof value2 === "bigint") return JSON.rawJSON(value2.toString());
16528
+ if (typeof replacer === "function") return replacer(key, value2);
16529
+ if (Array.isArray(replacer) && replacer.includes(key)) return value2;
16530
+ return value2;
16531
+ },
16532
+ space
16533
+ );
16534
+ }
16535
+ if (!value) return originalStringify(value, replacer, space);
16536
+ const convertedToCustomJSON = originalStringify(
16537
+ value,
16538
+ (key, value2) => {
16539
+ const isNoise = typeof value2 === "string" && Boolean(value2.match(noiseValue));
16540
+ if (isNoise) return value2.toString() + "n";
16541
+ if (typeof value2 === "bigint") return value2.toString() + "n";
16542
+ if (typeof replacer === "function") return replacer(key, value2);
16543
+ if (Array.isArray(replacer) && replacer.includes(key)) return value2;
16544
+ return value2;
16545
+ },
16546
+ space
16547
+ );
16548
+ const processedJSON = convertedToCustomJSON.replace(
16549
+ bigIntsStringify,
16550
+ "$1$2$3"
16551
+ );
16552
+ const denoisedJSON = processedJSON.replace(noiseStringify, "$1$2$3");
16553
+ return denoisedJSON;
16554
+ };
16555
+ var isContextSourceSupported = () => JSON.parse("1", (_, __, context) => !!context && context.source === "1");
16556
+ var convertMarkedBigIntsReviver = (key, value, context, userReviver) => {
16557
+ const isCustomFormatBigInt = typeof value === "string" && value.match(customFormat);
16558
+ if (isCustomFormatBigInt) return BigInt(value.slice(0, -1));
16559
+ const isNoiseValue = typeof value === "string" && value.match(noiseValue);
16560
+ if (isNoiseValue) return value.slice(0, -1);
16561
+ if (typeof userReviver !== "function") return value;
16562
+ return userReviver(key, value, context);
16563
+ };
16564
+ var JSONParseV2 = (text, reviver) => {
16565
+ return JSON.parse(text, (key, value, context) => {
16566
+ const isBigNumber = typeof value === "number" && (value > Number.MAX_SAFE_INTEGER || value < Number.MIN_SAFE_INTEGER);
16567
+ const isInt = context && intRegex.test(context.source);
16568
+ const isBigInt = isBigNumber && isInt;
16569
+ if (isBigInt) return BigInt(context.source);
16570
+ if (typeof reviver !== "function") return value;
16571
+ return reviver(key, value, context);
16572
+ });
16573
+ };
16574
+ var MAX_INT = Number.MAX_SAFE_INTEGER.toString();
16575
+ var MAX_DIGITS = MAX_INT.length;
16576
+ var stringsOrLargeNumbers = /"(?:\\.|[^"])*"|-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?/g;
16577
+ var noiseValueWithQuotes = /^"-?\d+n+"$/;
16578
+ var JSONParse = (text, reviver) => {
16579
+ if (!text) return originalParse(text, reviver);
16580
+ if (isContextSourceSupported()) return JSONParseV2(text, reviver);
16581
+ const serializedData = text.replace(
16582
+ stringsOrLargeNumbers,
16583
+ (text2, digits, fractional, exponential) => {
16584
+ const isString = text2[0] === '"';
16585
+ const isNoise = isString && Boolean(text2.match(noiseValueWithQuotes));
16586
+ if (isNoise) return text2.substring(0, text2.length - 1) + 'n"';
16587
+ const isFractionalOrExponential = fractional || exponential;
16588
+ const isLessThanMaxSafeInt = digits && (digits.length < MAX_DIGITS || digits.length === MAX_DIGITS && digits <= MAX_INT);
16589
+ if (isString || isFractionalOrExponential || isLessThanMaxSafeInt)
16590
+ return text2;
16591
+ return '"' + text2 + 'n"';
16592
+ }
16593
+ );
16594
+ return originalParse(
16595
+ serializedData,
16596
+ (key, value, context) => convertMarkedBigIntsReviver(key, value, context, reviver)
16597
+ );
16598
+ };
16599
+
16514
16600
  // node_modules/@octokit/request-error/dist-src/index.js
16515
16601
  var RequestError = class extends Error {
16516
16602
  name;
@@ -16551,7 +16637,7 @@ var RequestError = class extends Error {
16551
16637
  };
16552
16638
 
16553
16639
  // node_modules/@octokit/request/dist-bundle/index.js
16554
- var VERSION3 = "10.0.7";
16640
+ var VERSION3 = "10.0.8";
16555
16641
  var defaults_default = {
16556
16642
  headers: {
16557
16643
  "user-agent": `octokit-request.js/${VERSION3} ${getUserAgent()}`
@@ -16575,7 +16661,7 @@ async function fetchWrapper(requestOptions) {
16575
16661
  }
16576
16662
  const log = requestOptions.request?.log || console;
16577
16663
  const parseSuccessResponseBody = requestOptions.request?.parseSuccessResponseBody !== false;
16578
- const body = isPlainObject3(requestOptions.body) || Array.isArray(requestOptions.body) ? JSON.stringify(requestOptions.body) : requestOptions.body;
16664
+ const body = isPlainObject3(requestOptions.body) || Array.isArray(requestOptions.body) ? JSONStringify(requestOptions.body) : requestOptions.body;
16579
16665
  const requestHeaders = Object.fromEntries(
16580
16666
  Object.entries(requestOptions.headers).map(([name, value]) => [
16581
16667
  name,
@@ -16674,7 +16760,7 @@ async function getResponseData(response) {
16674
16760
  let text = "";
16675
16761
  try {
16676
16762
  text = await response.text();
16677
- return JSON.parse(text);
16763
+ return JSONParse(text);
16678
16764
  } catch (err) {
16679
16765
  return text;
16680
16766
  }