@ariestools/toolchain 9.1.0 → 9.1.1

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.
@@ -10575,7 +10575,7 @@ var init_main = __esmMin((() => {
10575
10575
  exec = x;
10576
10576
  }));
10577
10577
  //#endregion
10578
- //#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/node/utils.js
10578
+ //#region ../../node_modules/.pnpm/@publint+pack@0.1.7/node_modules/@publint/pack/src/node/utils.js
10579
10579
  /**
10580
10580
  * @param {string} packageManager
10581
10581
  * @returns {string[]}
@@ -10598,7 +10598,7 @@ async function getTempPackDir() {
10598
10598
  }
10599
10599
  var init_utils$2 = __esmMin((() => {}));
10600
10600
  //#endregion
10601
- //#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/node/pack.js
10601
+ //#region ../../node_modules/.pnpm/@publint+pack@0.1.7/node_modules/@publint/pack/src/node/pack.js
10602
10602
  /** @type {import('../index.d.ts').pack} */
10603
10603
  async function pack(dir, opts) {
10604
10604
  const packageManager = opts?.packageManager ?? "npm";
@@ -10636,7 +10636,7 @@ var init_pack = __esmMin((() => {
10636
10636
  init_utils$2();
10637
10637
  }));
10638
10638
  //#endregion
10639
- //#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/node/pack-as-json.js
10639
+ //#region ../../node_modules/.pnpm/@publint+pack@0.1.7/node_modules/@publint/pack/src/node/pack-as-json.js
10640
10640
  /** @type {import('../index.d.ts').packAsJson} */
10641
10641
  async function packAsJson(dir, opts) {
10642
10642
  const packageManager = opts?.packageManager ?? "npm";
@@ -10695,7 +10695,7 @@ var init_pack_as_json = __esmMin((() => {
10695
10695
  init_utils$2();
10696
10696
  }));
10697
10697
  //#endregion
10698
- //#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/shared/buffer-stream.js
10698
+ //#region ../../node_modules/.pnpm/@publint+pack@0.1.7/node_modules/@publint/pack/src/shared/buffer-stream.js
10699
10699
  /**
10700
10700
  * @param {ReadableStream<Uint8Array>} readableStream
10701
10701
  * @returns {Promise<ArrayBuffer>}
@@ -10705,7 +10705,7 @@ async function readableStreamToArrayBuffer(readableStream) {
10705
10705
  }
10706
10706
  var init_buffer_stream = __esmMin((() => {}));
10707
10707
  //#endregion
10708
- //#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/shared/parse-tar.js
10708
+ //#region ../../node_modules/.pnpm/@publint+pack@0.1.7/node_modules/@publint/pack/src/shared/parse-tar.js
10709
10709
  /**
10710
10710
  * @param {ArrayBuffer} buffer
10711
10711
  * @returns {import('../index.d.ts').TarballFile[]}
@@ -10715,11 +10715,11 @@ function parseTar(buffer) {
10715
10715
  /** @type {import('../index.d.ts').TarballFile[]} */
10716
10716
  const files = [];
10717
10717
  let offset = 0;
10718
- while (offset < buffer.byteLength) {
10719
- const type = read(buffer, decoder, offset + 156, 1);
10720
- if (type === "\0") break;
10718
+ while (offset + 512 <= buffer.byteLength) {
10721
10719
  const size = parseInt(read(buffer, decoder, offset + 124, 12), 8);
10722
- if (type === "0") {
10720
+ if (Number.isNaN(size)) break;
10721
+ const type = read(buffer, decoder, offset + 156, 1);
10722
+ if (type === "0" || type === "\0") {
10723
10723
  const name = read(buffer, decoder, offset, 100).split("\0", 1)[0];
10724
10724
  const data = new Uint8Array(buffer, offset + 512, size);
10725
10725
  files.push({
@@ -10749,7 +10749,7 @@ function getFilesRootDir(files) {
10749
10749
  }
10750
10750
  var init_parse_tar = __esmMin((() => {}));
10751
10751
  //#endregion
10752
- //#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/node/unpack.js
10752
+ //#region ../../node_modules/.pnpm/@publint+pack@0.1.7/node_modules/@publint/pack/src/node/unpack.js
10753
10753
  /** @type {import('../index.d.ts').unpack} */
10754
10754
  async function unpack(tarball) {
10755
10755
  /** @type {ArrayBuffer} */
@@ -10770,7 +10770,7 @@ var init_unpack = __esmMin((() => {
10770
10770
  init_parse_tar();
10771
10771
  }));
10772
10772
  //#endregion
10773
- //#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/node/pack-as-list.js
10773
+ //#region ../../node_modules/.pnpm/@publint+pack@0.1.7/node_modules/@publint/pack/src/node/pack-as-list.js
10774
10774
  /** @type {import('../index.d.ts').packAsList} */
10775
10775
  async function packAsList(dir, opts) {
10776
10776
  const packageManager = opts?.packageManager ?? "npm";
@@ -10854,7 +10854,7 @@ var init_pack_as_list = __esmMin((() => {
10854
10854
  init_utils$2();
10855
10855
  }));
10856
10856
  //#endregion
10857
- //#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/node/get-pack-directory.js
10857
+ //#region ../../node_modules/.pnpm/@publint+pack@0.1.7/node_modules/@publint/pack/src/node/get-pack-directory.js
10858
10858
  /** @type {import('../index.d.ts').getPackDirectory} */
10859
10859
  async function getPackDirectory(dir, packageManager) {
10860
10860
  if (packageManager === "pnpm") try {
@@ -10866,7 +10866,7 @@ async function getPackDirectory(dir, packageManager) {
10866
10866
  }
10867
10867
  var init_get_pack_directory = __esmMin((() => {}));
10868
10868
  //#endregion
10869
- //#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/shared/constants.js
10869
+ //#region ../../node_modules/.pnpm/@publint+pack@0.1.7/node_modules/@publint/pack/src/shared/constants.js
10870
10870
  var supportedPackageManagers;
10871
10871
  var init_constants$2 = __esmMin((() => {
10872
10872
  supportedPackageManagers = [
@@ -10877,7 +10877,7 @@ var init_constants$2 = __esmMin((() => {
10877
10877
  ];
10878
10878
  }));
10879
10879
  //#endregion
10880
- //#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/index-node.js
10880
+ //#region ../../node_modules/.pnpm/@publint+pack@0.1.7/node_modules/@publint/pack/src/index-node.js
10881
10881
  var init_index_node$1 = __esmMin((() => {
10882
10882
  init_pack();
10883
10883
  init_pack_as_list();
@@ -10887,7 +10887,7 @@ var init_index_node$1 = __esmMin((() => {
10887
10887
  init_constants$2();
10888
10888
  }));
10889
10889
  //#endregion
10890
- //#region ../../node_modules/.pnpm/publint@0.3.23/node_modules/publint/src/node/vfs-node.js
10890
+ //#region ../../node_modules/.pnpm/publint@0.3.24/node_modules/publint/src/node/vfs-node.js
10891
10891
  /**
10892
10892
  * Creates a node-compatible Vfs object
10893
10893
  * @returns {import('../shared/core.js').Vfs}
@@ -10926,7 +10926,7 @@ function createNodeVfs() {
10926
10926
  }
10927
10927
  var init_vfs_node = __esmMin((() => {}));
10928
10928
  //#endregion
10929
- //#region ../../node_modules/.pnpm/publint@0.3.23/node_modules/publint/src/shared/constants.js
10929
+ //#region ../../node_modules/.pnpm/publint@0.3.24/node_modules/publint/src/shared/constants.js
10930
10930
  var lintableFileExtensions, invalidJsxExtensions, knownBrowserishConditions, commonInternalPaths, commonInternalTestFileRegex, licenseFiles;
10931
10931
  var init_constants$1 = __esmMin((() => {
10932
10932
  lintableFileExtensions = [
@@ -10987,7 +10987,7 @@ var init_constants$1 = __esmMin((() => {
10987
10987
  ];
10988
10988
  }));
10989
10989
  //#endregion
10990
- //#region ../../node_modules/.pnpm/publint@0.3.23/node_modules/publint/src/shared/utils.js
10990
+ //#region ../../node_modules/.pnpm/publint@0.3.24/node_modules/publint/src/shared/utils.js
10991
10991
  /**
10992
10992
  * @param {string} code
10993
10993
  */
@@ -11403,7 +11403,7 @@ var init_utils$1 = __esmMin((() => {
11403
11403
  DTS_RE = /\.d\.[mc]?ts$/;
11404
11404
  }));
11405
11405
  //#endregion
11406
- //#region ../../node_modules/.pnpm/publint@0.3.23/node_modules/publint/src/shared/core.js
11406
+ //#region ../../node_modules/.pnpm/publint@0.3.24/node_modules/publint/src/shared/core.js
11407
11407
  /**
11408
11408
  * @typedef Vfs
11409
11409
  * @property {(path: string) => Promise<string>} readFile
@@ -11761,7 +11761,7 @@ async function core({ pkgDir, vfs, level, strict, _packedFiles }) {
11761
11761
  path: ["repository"],
11762
11762
  type: "warning"
11763
11763
  });
11764
- } else if (typeof repository === "object" && repository.url && repository.type === "git") {
11764
+ } else if (typeof repository === "object" && repository.url && (repository.type === "git" || repository.type == null)) {
11765
11765
  if (!isGitUrl(repository.url)) messages.push({
11766
11766
  code: "INVALID_REPOSITORY_VALUE",
11767
11767
  args: { type: "invalid-git-url" },
@@ -12279,7 +12279,7 @@ var init_core = __esmMin((() => {
12279
12279
  init_utils$1();
12280
12280
  }));
12281
12281
  //#endregion
12282
- //#region ../../node_modules/.pnpm/publint@0.3.23/node_modules/publint/src/shared/vfs-tarball.js
12282
+ //#region ../../node_modules/.pnpm/publint@0.3.24/node_modules/publint/src/shared/vfs-tarball.js
12283
12283
  /**
12284
12284
  * @param {import("../index.d.ts").PackFile[]} files
12285
12285
  * @return {import("./core.js").Vfs}
@@ -12503,7 +12503,7 @@ var init_detect = __esmMin((() => {
12503
12503
  init_constants();
12504
12504
  }));
12505
12505
  //#endregion
12506
- //#region ../../node_modules/.pnpm/publint@0.3.23/node_modules/publint/src/index-node.js
12506
+ //#region ../../node_modules/.pnpm/publint@0.3.24/node_modules/publint/src/index-node.js
12507
12507
  var index_node_exports = /* @__PURE__ */ __exportAll({ publint: () => publint });
12508
12508
  /**
12509
12509
  * @typedef {T extends string ? T : never} ExtractStringLiteral
@@ -12655,7 +12655,7 @@ var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12655
12655
  module.exports.createColors = createColors;
12656
12656
  }));
12657
12657
  //#endregion
12658
- //#region ../../node_modules/.pnpm/publint@0.3.23/node_modules/publint/src/shared/message.js
12658
+ //#region ../../node_modules/.pnpm/publint@0.3.24/node_modules/publint/src/shared/message.js
12659
12659
  /** @type {import('../utils.d.ts').formatMessage} */
12660
12660
  function formatMessage(m, pkg, opts = {}) {
12661
12661
  const h = getHighlighter(opts.color);
@@ -12824,7 +12824,7 @@ var init_message = __esmMin((() => {
12824
12824
  EMPTY_MSG = "<empty>";
12825
12825
  }));
12826
12826
  //#endregion
12827
- //#region ../../node_modules/.pnpm/publint@0.3.23/node_modules/publint/src/utils.js
12827
+ //#region ../../node_modules/.pnpm/publint@0.3.24/node_modules/publint/src/utils.js
12828
12828
  var utils_exports = /* @__PURE__ */ __exportAll({
12829
12829
  formatMessage: () => formatMessage,
12830
12830
  formatMessagePath: () => formatMessagePath,