From 86564d22fa3e6fb04cab9c78f1b8dae0c6411ef1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 22 Aug 2024 16:08:19 +0000 Subject: [PATCH] Bump xml2js from 0.4.23 to 0.6.2 in /projects/xds-repo-api Bumps [xml2js](https://github.com/Leonidas-from-XIV/node-xml2js) from 0.4.23 to 0.6.2. - [Commits](https://github.com/Leonidas-from-XIV/node-xml2js/commits/0.6.2) --- updated-dependencies: - dependency-name: xml2js dependency-type: indirect ... Signed-off-by: dependabot[bot] --- projects/xds-repo-api/.pnp.cjs | 471 +++++++++++++------------------- projects/xds-repo-api/yarn.lock | 18 +- 2 files changed, 186 insertions(+), 303 deletions(-) diff --git a/projects/xds-repo-api/.pnp.cjs b/projects/xds-repo-api/.pnp.cjs index c217e12..bbd82fd 100755 --- a/projects/xds-repo-api/.pnp.cjs +++ b/projects/xds-repo-api/.pnp.cjs @@ -1,6 +1,5 @@ #!/usr/bin/env node /* eslint-disable */ -// @ts-nocheck "use strict"; const RAW_RUNTIME_STATE = @@ -43,7 +42,6 @@ const RAW_RUNTIME_STATE = ["@types/jest", "npm:29.5.12"],\ ["@types/node", "npm:20.14.15"],\ ["@types/supertest", "npm:6.0.2"],\ - ["@types/xml2js", "npm:0.4.14"],\ ["@typescript-eslint/eslint-plugin", "virtual:0258d056c3dfdd138889389344503b7f5a265dd4be93aa697a79ba6dd26b19a0c51ed8843255b60f85da8c8d233db78b258fda1dc8129a51887e35f68a43f49a#npm:7.18.0"],\ ["@typescript-eslint/parser", "virtual:0258d056c3dfdd138889389344503b7f5a265dd4be93aa697a79ba6dd26b19a0c51ed8843255b60f85da8c8d233db78b258fda1dc8129a51887e35f68a43f49a#npm:7.18.0"],\ ["axios", "npm:1.7.4"],\ @@ -70,8 +68,7 @@ const RAW_RUNTIME_STATE = ["ts-loader", "virtual:0258d056c3dfdd138889389344503b7f5a265dd4be93aa697a79ba6dd26b19a0c51ed8843255b60f85da8c8d233db78b258fda1dc8129a51887e35f68a43f49a#npm:9.5.1"],\ ["ts-node", "virtual:0258d056c3dfdd138889389344503b7f5a265dd4be93aa697a79ba6dd26b19a0c51ed8843255b60f85da8c8d233db78b258fda1dc8129a51887e35f68a43f49a#npm:10.9.2"],\ ["tsconfig-paths", "npm:4.2.0"],\ - ["typescript", "patch:typescript@npm%3A5.5.4#optional!builtin::version=5.5.4&hash=379a07"],\ - ["xml2js", "npm:0.6.2"],\ + ["typescript", "patch:typescript@npm%3A5.5.4#optional!builtin::version=5.5.4&hash=5adc0c"],\ ["xml2js-xpath", "npm:0.13.0"]\ ],\ "linkType": "SOFT"\ @@ -1803,7 +1800,7 @@ const RAW_RUNTIME_STATE = ["comment-json", "npm:4.2.3"],\ ["jsonc-parser", "npm:3.3.1"],\ ["pluralize", "npm:8.0.0"],\ - ["typescript", "patch:typescript@npm%3A5.5.4#optional!builtin::version=5.5.4&hash=379a07"]\ + ["typescript", "patch:typescript@npm%3A5.5.4#optional!builtin::version=5.5.4&hash=5adc0c"]\ ],\ "packagePeers": [\ "@types/typescript",\ @@ -2481,7 +2478,7 @@ const RAW_RUNTIME_STATE = ["ignore", "npm:5.3.2"],\ ["natural-compare", "npm:1.4.0"],\ ["ts-api-utils", "virtual:30e701fd8aa74c762f492433c05eec0443a12b195d7c46a5bd1c51957fa50c7b1aa8bc898163408a7fe21cbd3e78cc83759c0568db35045eed1e332655805519#npm:1.3.0"],\ - ["typescript", "patch:typescript@npm%3A5.5.4#optional!builtin::version=5.5.4&hash=379a07"]\ + ["typescript", "patch:typescript@npm%3A5.5.4#optional!builtin::version=5.5.4&hash=5adc0c"]\ ],\ "packagePeers": [\ "@types/eslint",\ @@ -2514,7 +2511,7 @@ const RAW_RUNTIME_STATE = ["@typescript-eslint/visitor-keys", "npm:7.18.0"],\ ["debug", "virtual:1ff4b5f90832ba0a9c93ba1223af226e44ba70c1126a3740d93562b97bc36544e896a5e95908196f7458713e6a6089a34bfc67362fc6df7fa093bd06c878be47#npm:4.3.6"],\ ["eslint", "npm:8.57.0"],\ - ["typescript", "patch:typescript@npm%3A5.5.4#optional!builtin::version=5.5.4&hash=379a07"]\ + ["typescript", "patch:typescript@npm%3A5.5.4#optional!builtin::version=5.5.4&hash=5adc0c"]\ ],\ "packagePeers": [\ "@types/eslint",\ @@ -2555,7 +2552,7 @@ const RAW_RUNTIME_STATE = ["debug", "virtual:1ff4b5f90832ba0a9c93ba1223af226e44ba70c1126a3740d93562b97bc36544e896a5e95908196f7458713e6a6089a34bfc67362fc6df7fa093bd06c878be47#npm:4.3.6"],\ ["eslint", "npm:8.57.0"],\ ["ts-api-utils", "virtual:30e701fd8aa74c762f492433c05eec0443a12b195d7c46a5bd1c51957fa50c7b1aa8bc898163408a7fe21cbd3e78cc83759c0568db35045eed1e332655805519#npm:1.3.0"],\ - ["typescript", "patch:typescript@npm%3A5.5.4#optional!builtin::version=5.5.4&hash=379a07"]\ + ["typescript", "patch:typescript@npm%3A5.5.4#optional!builtin::version=5.5.4&hash=5adc0c"]\ ],\ "packagePeers": [\ "@types/eslint",\ @@ -2596,7 +2593,7 @@ const RAW_RUNTIME_STATE = ["minimatch", "npm:9.0.5"],\ ["semver", "npm:7.6.3"],\ ["ts-api-utils", "virtual:30e701fd8aa74c762f492433c05eec0443a12b195d7c46a5bd1c51957fa50c7b1aa8bc898163408a7fe21cbd3e78cc83759c0568db35045eed1e332655805519#npm:1.3.0"],\ - ["typescript", "patch:typescript@npm%3A5.5.4#optional!builtin::version=5.5.4&hash=379a07"]\ + ["typescript", "patch:typescript@npm%3A5.5.4#optional!builtin::version=5.5.4&hash=5adc0c"]\ ],\ "packagePeers": [\ "@types/typescript",\ @@ -8740,7 +8737,7 @@ const RAW_RUNTIME_STATE = "packageDependencies": [\ ["ts-api-utils", "virtual:30e701fd8aa74c762f492433c05eec0443a12b195d7c46a5bd1c51957fa50c7b1aa8bc898163408a7fe21cbd3e78cc83759c0568db35045eed1e332655805519#npm:1.3.0"],\ ["@types/typescript", null],\ - ["typescript", "patch:typescript@npm%3A5.5.4#optional!builtin::version=5.5.4&hash=379a07"]\ + ["typescript", "patch:typescript@npm%3A5.5.4#optional!builtin::version=5.5.4&hash=5adc0c"]\ ],\ "packagePeers": [\ "@types/typescript",\ @@ -8795,7 +8792,7 @@ const RAW_RUNTIME_STATE = ["lodash.memoize", "npm:4.1.2"],\ ["make-error", "npm:1.3.6"],\ ["semver", "npm:7.6.3"],\ - ["typescript", "patch:typescript@npm%3A5.5.4#optional!builtin::version=5.5.4&hash=379a07"],\ + ["typescript", "patch:typescript@npm%3A5.5.4#optional!builtin::version=5.5.4&hash=5adc0c"],\ ["yargs-parser", "npm:21.1.1"]\ ],\ "packagePeers": [\ @@ -8836,7 +8833,7 @@ const RAW_RUNTIME_STATE = ["micromatch", "npm:4.0.7"],\ ["semver", "npm:7.6.3"],\ ["source-map", "npm:0.7.4"],\ - ["typescript", "patch:typescript@npm%3A5.5.4#optional!builtin::version=5.5.4&hash=379a07"],\ + ["typescript", "patch:typescript@npm%3A5.5.4#optional!builtin::version=5.5.4&hash=5adc0c"],\ ["webpack", null]\ ],\ "packagePeers": [\ @@ -8877,7 +8874,7 @@ const RAW_RUNTIME_STATE = ["create-require", "npm:1.1.1"],\ ["diff", "npm:4.0.2"],\ ["make-error", "npm:1.3.6"],\ - ["typescript", "patch:typescript@npm%3A5.5.4#optional!builtin::version=5.5.4&hash=379a07"],\ + ["typescript", "patch:typescript@npm%3A5.5.4#optional!builtin::version=5.5.4&hash=5adc0c"],\ ["v8-compile-cache-lib", "npm:3.0.1"],\ ["yn", "npm:3.1.1"]\ ],\ @@ -8989,10 +8986,10 @@ const RAW_RUNTIME_STATE = ],\ "linkType": "HARD"\ }],\ - ["patch:typescript@npm%3A5.5.4#optional!builtin::version=5.5.4&hash=379a07", {\ - "packageLocation": "../../../../.yarn/berry/cache/typescript-patch-fe43cd9db9-10c0.zip/node_modules/typescript/",\ + ["patch:typescript@npm%3A5.5.4#optional!builtin::version=5.5.4&hash=5adc0c", {\ + "packageLocation": "../../../../.yarn/berry/cache/typescript-patch-58ce348f05-10c0.zip/node_modules/typescript/",\ "packageDependencies": [\ - ["typescript", "patch:typescript@npm%3A5.5.4#optional!builtin::version=5.5.4&hash=379a07"]\ + ["typescript", "patch:typescript@npm%3A5.5.4#optional!builtin::version=5.5.4&hash=5adc0c"]\ ],\ "linkType": "HARD"\ }]\ @@ -9383,7 +9380,6 @@ const RAW_RUNTIME_STATE = ["@types/jest", "npm:29.5.12"],\ ["@types/node", "npm:20.14.15"],\ ["@types/supertest", "npm:6.0.2"],\ - ["@types/xml2js", "npm:0.4.14"],\ ["@typescript-eslint/eslint-plugin", "virtual:0258d056c3dfdd138889389344503b7f5a265dd4be93aa697a79ba6dd26b19a0c51ed8843255b60f85da8c8d233db78b258fda1dc8129a51887e35f68a43f49a#npm:7.18.0"],\ ["@typescript-eslint/parser", "virtual:0258d056c3dfdd138889389344503b7f5a265dd4be93aa697a79ba6dd26b19a0c51ed8843255b60f85da8c8d233db78b258fda1dc8129a51887e35f68a43f49a#npm:7.18.0"],\ ["axios", "npm:1.7.4"],\ @@ -9410,8 +9406,7 @@ const RAW_RUNTIME_STATE = ["ts-loader", "virtual:0258d056c3dfdd138889389344503b7f5a265dd4be93aa697a79ba6dd26b19a0c51ed8843255b60f85da8c8d233db78b258fda1dc8129a51887e35f68a43f49a#npm:9.5.1"],\ ["ts-node", "virtual:0258d056c3dfdd138889389344503b7f5a265dd4be93aa697a79ba6dd26b19a0c51ed8843255b60f85da8c8d233db78b258fda1dc8129a51887e35f68a43f49a#npm:10.9.2"],\ ["tsconfig-paths", "npm:4.2.0"],\ - ["typescript", "patch:typescript@npm%3A5.5.4#optional!builtin::version=5.5.4&hash=379a07"],\ - ["xml2js", "npm:0.6.2"],\ + ["typescript", "patch:typescript@npm%3A5.5.4#optional!builtin::version=5.5.4&hash=5adc0c"],\ ["xml2js-xpath", "npm:0.13.0"]\ ],\ "linkType": "SOFT"\ @@ -9435,15 +9430,6 @@ const RAW_RUNTIME_STATE = ["xmlbuilder", "npm:11.0.1"]\ ],\ "linkType": "HARD"\ - }],\ - ["npm:0.6.2", {\ - "packageLocation": "../../../../.yarn/berry/cache/xml2js-npm-0.6.2-64cd781d74-10c0.zip/node_modules/xml2js/",\ - "packageDependencies": [\ - ["xml2js", "npm:0.6.2"],\ - ["sax", "npm:1.4.1"],\ - ["xmlbuilder", "npm:11.0.1"]\ - ],\ - "linkType": "HARD"\ }]\ ]],\ ["xml2js-xpath", [\ @@ -9641,24 +9627,26 @@ function ERR_DIR_CLOSED() { const DEFAULT_MODE = S_IFREG | 420; class StatEntry { - uid = 0; - gid = 0; - size = 0; - blksize = 0; - atimeMs = 0; - mtimeMs = 0; - ctimeMs = 0; - birthtimeMs = 0; - atime = /* @__PURE__ */ new Date(0); - mtime = /* @__PURE__ */ new Date(0); - ctime = /* @__PURE__ */ new Date(0); - birthtime = /* @__PURE__ */ new Date(0); - dev = 0; - ino = 0; - mode = DEFAULT_MODE; - nlink = 1; - rdev = 0; - blocks = 1; + constructor() { + this.uid = 0; + this.gid = 0; + this.size = 0; + this.blksize = 0; + this.atimeMs = 0; + this.mtimeMs = 0; + this.ctimeMs = 0; + this.birthtimeMs = 0; + this.atime = new Date(0); + this.mtime = new Date(0); + this.ctime = new Date(0); + this.birthtime = new Date(0); + this.dev = 0; + this.ino = 0; + this.mode = DEFAULT_MODE; + this.nlink = 1; + this.rdev = 0; + this.blocks = 1; + } isBlockDevice() { return false; } @@ -9682,28 +9670,30 @@ class StatEntry { } } class BigIntStatsEntry { - uid = BigInt(0); - gid = BigInt(0); - size = BigInt(0); - blksize = BigInt(0); - atimeMs = BigInt(0); - mtimeMs = BigInt(0); - ctimeMs = BigInt(0); - birthtimeMs = BigInt(0); - atimeNs = BigInt(0); - mtimeNs = BigInt(0); - ctimeNs = BigInt(0); - birthtimeNs = BigInt(0); - atime = /* @__PURE__ */ new Date(0); - mtime = /* @__PURE__ */ new Date(0); - ctime = /* @__PURE__ */ new Date(0); - birthtime = /* @__PURE__ */ new Date(0); - dev = BigInt(0); - ino = BigInt(0); - mode = BigInt(DEFAULT_MODE); - nlink = BigInt(1); - rdev = BigInt(0); - blocks = BigInt(1); + constructor() { + this.uid = BigInt(0); + this.gid = BigInt(0); + this.size = BigInt(0); + this.blksize = BigInt(0); + this.atimeMs = BigInt(0); + this.mtimeMs = BigInt(0); + this.ctimeMs = BigInt(0); + this.birthtimeMs = BigInt(0); + this.atimeNs = BigInt(0); + this.mtimeNs = BigInt(0); + this.ctimeNs = BigInt(0); + this.birthtimeNs = BigInt(0); + this.atime = new Date(0); + this.mtime = new Date(0); + this.ctime = new Date(0); + this.birthtime = new Date(0); + this.dev = BigInt(0); + this.ino = BigInt(0); + this.mode = BigInt(DEFAULT_MODE); + this.nlink = BigInt(1); + this.rdev = BigInt(0); + this.blocks = BigInt(1); + } isBlockDevice() { return false; } @@ -9738,7 +9728,7 @@ function clearStats(stats) { } else if (typeof element === `bigint`) { stats[key] = BigInt(0); } else if (nodeUtils__namespace.types.isDate(element)) { - stats[key] = /* @__PURE__ */ new Date(0); + stats[key] = new Date(0); } } } @@ -9829,9 +9819,6 @@ const Filename = { manifest: `package.json`, lockfile: `yarn.lock`, virtual: `__virtual__`, - /** - * @deprecated - */ pnpJs: `.pnp.js`, pnpCjs: `.pnp.cjs`, pnpData: `.pnp.data.json`, @@ -10113,8 +10100,8 @@ class CustomDir { this.path = path; this.nextDirent = nextDirent; this.opts = opts; + this.closed = false; } - closed = false; throwIfClosed() { if (this.closed) { throw ERR_DIR_CLOSED(); @@ -10172,25 +10159,21 @@ function assertStatus(current, expected) { } } class CustomStatWatcher extends events.EventEmitter { - fakeFs; - path; - bigint; - status = "ready" /* Ready */; - changeListeners = /* @__PURE__ */ new Map(); - lastStats; - startTimeout = null; - static create(fakeFs, path, opts) { - const statWatcher = new CustomStatWatcher(fakeFs, path, opts); - statWatcher.start(); - return statWatcher; - } constructor(fakeFs, path, { bigint = false } = {}) { super(); + this.status = "ready" /* Ready */; + this.changeListeners = /* @__PURE__ */ new Map(); + this.startTimeout = null; this.fakeFs = fakeFs; this.path = path; this.bigint = bigint; this.lastStats = this.stat(); } + static create(fakeFs, path, opts) { + const statWatcher = new CustomStatWatcher(fakeFs, path, opts); + statWatcher.start(); + return statWatcher; + } start() { assertStatus(this.status, "ready" /* Ready */); this.status = "running" /* Running */; @@ -10218,11 +10201,6 @@ class CustomStatWatcher extends events.EventEmitter { return clearStats(statInstance); } } - /** - * Creates an interval whose callback compares the current stats with the previous stats and notifies all listeners in case of changes. - * - * @param opts.persistent Decides whether the interval should be immediately unref-ed. - */ makeInterval(opts) { const interval = setInterval(() => { const currentStats = this.stat(); @@ -10234,16 +10212,10 @@ class CustomStatWatcher extends events.EventEmitter { }, opts.interval); return opts.persistent ? interval : interval.unref(); } - /** - * Registers a listener and assigns it an interval. - */ registerChangeListener(listener, opts) { this.addListener("change" /* Change */, listener); this.changeListeners.set(listener, this.makeInterval(opts)); } - /** - * Unregisters the listener and clears the assigned interval. - */ unregisterChangeListener(listener) { this.removeListener("change" /* Change */, listener); const interval = this.changeListeners.get(listener); @@ -10251,9 +10223,6 @@ class CustomStatWatcher extends events.EventEmitter { clearInterval(interval); this.changeListeners.delete(listener); } - /** - * Unregisters all listeners and clears all assigned intervals. - */ unregisterAllChangeListeners() { for (const listener of this.changeListeners.keys()) { this.unregisterChangeListener(listener); @@ -10262,17 +10231,11 @@ class CustomStatWatcher extends events.EventEmitter { hasChangeListeners() { return this.changeListeners.size > 0; } - /** - * Refs all stored intervals. - */ ref() { for (const interval of this.changeListeners.values()) interval.ref(); return this; } - /** - * Unrefs all stored intervals. - */ unref() { for (const interval of this.changeListeners.values()) interval.unref(); @@ -10343,7 +10306,6 @@ function unwatchAllFiles(fakeFs) { } class FakeFS { - pathUtils; constructor(pathUtils) { this.pathUtils = pathUtils; } @@ -10891,12 +10853,6 @@ class ProxiedFS extends FakeFS { rmdirSync(p, opts) { return this.baseFs.rmdirSync(this.mapToBase(p), opts); } - async rmPromise(p, opts) { - return this.baseFs.rmPromise(this.mapToBase(p), opts); - } - rmSync(p, opts) { - return this.baseFs.rmSync(this.mapToBase(p), opts); - } async linkPromise(existingP, newP) { return this.baseFs.linkPromise(this.mapToBase(existingP), this.mapToBase(newP)); } @@ -10952,7 +10908,6 @@ class ProxiedFS extends FakeFS { watch(p, a, b) { return this.baseFs.watch( this.mapToBase(p), - // @ts-expect-error a, b ); @@ -10960,7 +10915,6 @@ class ProxiedFS extends FakeFS { watchFile(p, a, b) { return this.baseFs.watchFile( this.mapToBase(p), - // @ts-expect-error a, b ); @@ -10984,7 +10938,6 @@ function direntToPortable(dirent) { return portableDirent; } class NodeFS extends BasePortableFakeFS { - realFs; constructor(realFs = fs__default.default) { super(); this.realFs = realFs; @@ -11281,18 +11234,6 @@ class NodeFS extends BasePortableFakeFS { rmdirSync(p, opts) { return this.realFs.rmdirSync(npath.fromPortablePath(p), opts); } - async rmPromise(p, opts) { - return await new Promise((resolve, reject) => { - if (opts) { - this.realFs.rm(npath.fromPortablePath(p), opts, this.makeCallback(resolve, reject)); - } else { - this.realFs.rm(npath.fromPortablePath(p), this.makeCallback(resolve, reject)); - } - }); - } - rmSync(p, opts) { - return this.realFs.rmSync(npath.fromPortablePath(p), opts); - } async linkPromise(existingP, newP) { return await new Promise((resolve, reject) => { this.realFs.link(npath.fromPortablePath(existingP), npath.fromPortablePath(newP), this.makeCallback(resolve, reject)); @@ -11380,7 +11321,6 @@ class NodeFS extends BasePortableFakeFS { watch(p, a, b) { return this.realFs.watch( npath.fromPortablePath(p), - // @ts-expect-error a, b ); @@ -11388,7 +11328,6 @@ class NodeFS extends BasePortableFakeFS { watchFile(p, a, b) { return this.realFs.watchFile( npath.fromPortablePath(p), - // @ts-expect-error a, b ); @@ -11409,25 +11348,16 @@ class NodeFS extends BasePortableFakeFS { const MOUNT_MASK = 4278190080; class MountFS extends BasePortableFakeFS { - baseFs; - mountInstances; - fdMap = /* @__PURE__ */ new Map(); - nextFd = 3; - factoryPromise; - factorySync; - filter; - getMountPoint; - magic; - maxAge; - maxOpenFiles; - typeCheck; - isMount = /* @__PURE__ */ new Set(); - notMount = /* @__PURE__ */ new Set(); - realPaths = /* @__PURE__ */ new Map(); constructor({ baseFs = new NodeFS(), filter = null, magicByte = 42, maxOpenFiles = Infinity, useCache = true, maxAge = 5e3, typeCheck = fs.constants.S_IFREG, getMountPoint, factoryPromise, factorySync }) { if (Math.floor(magicByte) !== magicByte || !(magicByte > 1 && magicByte <= 127)) throw new Error(`The magic byte must be set to a round value between 1 and 127 included`); super(); + this.fdMap = /* @__PURE__ */ new Map(); + this.nextFd = 3; + this.isMount = /* @__PURE__ */ new Set(); + this.notMount = /* @__PURE__ */ new Set(); + this.realPaths = /* @__PURE__ */ new Map(); + this.limitOpenFilesTimeout = null; this.baseFs = baseFs; this.mountInstances = useCache ? /* @__PURE__ */ new Map() : null; this.factoryPromise = factoryPromise; @@ -11959,20 +11889,6 @@ class MountFS extends BasePortableFakeFS { return mountFs.rmdirSync(subPath, opts); }); } - async rmPromise(p, opts) { - return await this.makeCallPromise(p, async () => { - return await this.baseFs.rmPromise(p, opts); - }, async (mountFs, { subPath }) => { - return await mountFs.rmPromise(subPath, opts); - }); - } - rmSync(p, opts) { - return this.makeCallSync(p, () => { - return this.baseFs.rmSync(p, opts); - }, (mountFs, { subPath }) => { - return mountFs.rmSync(subPath, opts); - }); - } async linkPromise(existingP, newP) { return await this.makeCallPromise(newP, async () => { return await this.baseFs.linkPromise(existingP, newP); @@ -12083,14 +11999,12 @@ class MountFS extends BasePortableFakeFS { return this.makeCallSync(p, () => { return this.baseFs.watch( p, - // @ts-expect-error a, b ); }, (mountFs, { subPath }) => { return mountFs.watch( subPath, - // @ts-expect-error a, b ); @@ -12100,7 +12014,6 @@ class MountFS extends BasePortableFakeFS { return this.makeCallSync(p, () => { return this.baseFs.watchFile( p, - // @ts-expect-error a, b ); @@ -12166,7 +12079,6 @@ class MountFS extends BasePortableFakeFS { }; } } - limitOpenFilesTimeout = null; limitOpenFiles(max) { if (this.mountInstances === null) return; @@ -12256,7 +12168,6 @@ class MountFS extends BasePortableFakeFS { } class PosixFS extends ProxiedFS { - baseFs; constructor(baseFs) { super(npath); this.baseFs = baseFs; @@ -12273,7 +12184,10 @@ const NUMBER_REGEXP = /^[0-9]+$/; const VIRTUAL_REGEXP = /^(\/(?:[^/]+\/)*?(?:\$\$virtual|__virtual__))((?:\/((?:[^/]+-)?[a-f0-9]+)(?:\/([^/]+))?)?((?:\/.*)?))$/; const VALID_COMPONENT = /^([^/]+-)?[a-f0-9]+$/; class VirtualFS extends ProxiedFS { - baseFs; + constructor({ baseFs = new NodeFS() } = {}) { + super(ppath); + this.baseFs = baseFs; + } static makeVirtualPath(base, component, to) { if (ppath.basename(base) !== `__virtual__`) throw new Error(`Assertion failed: Virtual folders must be named "__virtual__"`); @@ -12303,10 +12217,6 @@ class VirtualFS extends ProxiedFS { const subpath = match[5] || `.`; return VirtualFS.resolveVirtual(ppath.join(target, backstep, subpath)); } - constructor({ baseFs = new NodeFS() } = {}) { - super(ppath); - this.baseFs = baseFs; - } getExtractHint(hints) { return this.baseFs.getExtractHint(hints); } @@ -12348,7 +12258,6 @@ class VirtualFS extends ProxiedFS { const URL = Number(process.versions.node.split('.', 1)[0]) < 20 ? url.URL : globalThis.URL; class NodePathFS extends ProxiedFS { - baseFs; constructor(baseFs) { super(npath); this.baseFs = baseFs; @@ -12376,6 +12285,7 @@ function isUtf8(buf, str) { return Buffer.byteLength(str) === buf.byteLength; } +var _a, _b, _c, _d; const kBaseFs = Symbol(`kBaseFs`); const kFd = Symbol(`kFd`); const kClosePromise = Symbol(`kClosePromise`); @@ -12385,13 +12295,11 @@ const kRefs = Symbol(`kRefs`); const kRef = Symbol(`kRef`); const kUnref = Symbol(`kUnref`); class FileHandle { - [kBaseFs]; - [kFd]; - [kRefs] = 1; - [kClosePromise] = void 0; - [kCloseResolve] = void 0; - [kCloseReject] = void 0; constructor(fd, baseFs) { + this[_a] = 1; + this[_b] = void 0; + this[_c] = void 0; + this[_d] = void 0; this[kBaseFs] = baseFs; this[kFd] = fd; } @@ -12429,11 +12337,9 @@ class FileHandle { createWriteStream(options) { return this[kBaseFs].createWriteStream(null, { ...options, fd: this.fd }); } - // FIXME: Missing FakeFS version datasync() { throw new Error(`Method not implemented.`); } - // FIXME: Missing FakeFS version sync() { throw new Error(`Method not implemented.`); } @@ -12498,7 +12404,6 @@ class FileHandle { this[kUnref](); } } - // FIXME: Missing FakeFS version utimes(atime, mtime) { throw new Error(`Method not implemented.`); } @@ -12527,7 +12432,6 @@ class FileHandle { this[kUnref](); } } - // TODO: Use writev from FakeFS when that is implemented async writev(buffers, position) { try { this[kRef](this.writev); @@ -12552,13 +12456,14 @@ class FileHandle { this[kUnref](); } } - // FIXME: Missing FakeFS version readv(buffers, position) { throw new Error(`Method not implemented.`); } close() { - if (this[kFd] === -1) return Promise.resolve(); - if (this[kClosePromise]) return this[kClosePromise]; + if (this[kFd] === -1) + return Promise.resolve(); + if (this[kClosePromise]) + return this[kClosePromise]; this[kRefs]--; if (this[kRefs] === 0) { const fd = this[kFd]; @@ -12578,7 +12483,7 @@ class FileHandle { } return this[kClosePromise]; } - [kRef](caller) { + [(_a = kRefs, _b = kClosePromise, _c = kCloseResolve, _d = kCloseReject, kRef)](caller) { if (this[kFd] === -1) { const err = new Error(`file closed`); err.code = `EBADF`; @@ -12622,7 +12527,6 @@ const SYNC_IMPLEMENTATIONS = /* @__PURE__ */ new Set([ `realpathSync`, `renameSync`, `rmdirSync`, - `rmSync`, `statSync`, `symlinkSync`, `truncateSync`, @@ -12658,7 +12562,6 @@ const ASYNC_IMPLEMENTATIONS = /* @__PURE__ */ new Set([ `readlinkPromise`, `renamePromise`, `rmdirPromise`, - `rmPromise`, `statPromise`, `symlinkPromise`, `truncatePromise`, @@ -12838,7 +12741,8 @@ var libzipSync = {exports: {}}; var frozenFs = Object.assign({}, fs__default.default); var createModule = function() { var _scriptDir = void 0; - if (typeof __filename !== "undefined") _scriptDir = _scriptDir || __filename; + if (typeof __filename !== "undefined") + _scriptDir = _scriptDir || __filename; return function(createModule2) { createModule2 = createModule2 || {}; var Module = typeof createModule2 !== "undefined" ? createModule2 : {}; @@ -12873,8 +12777,10 @@ var createModule = function() { if (ret) { return binary ? ret : ret.toString(); } - if (!nodeFS) nodeFS = frozenFs; - if (!nodePath) nodePath = path__default.default; + if (!nodeFS) + nodeFS = frozenFs; + if (!nodePath) + nodePath = path__default.default; filename = nodePath["normalize"](filename); return nodeFS["readFileSync"](filename, binary ? null : "utf8"); }; @@ -12902,18 +12808,23 @@ var createModule = function() { } } moduleOverrides = null; - if (Module["arguments"]) ; - if (Module["thisProgram"]) ; - if (Module["quit"]) ; + if (Module["arguments"]) + ; + if (Module["thisProgram"]) + ; + if (Module["quit"]) + ; var wasmBinary; - if (Module["wasmBinary"]) wasmBinary = Module["wasmBinary"]; + if (Module["wasmBinary"]) + wasmBinary = Module["wasmBinary"]; Module["noExitRuntime"] || true; if (typeof WebAssembly !== "object") { abort("no native wasm support detected"); } function getValue(ptr, type, noSafe) { type = type || "i8"; - if (type.charAt(type.length - 1) === "*") type = "i32"; + if (type.charAt(type.length - 1) === "*") + type = "i32"; switch (type) { case "i1": return HEAP8[ptr >> 0]; @@ -12967,8 +12878,10 @@ var createModule = function() { } }; function convertReturnValue(ret2) { - if (returnType === "string") return UTF8ToString(ret2); - if (returnType === "boolean") return Boolean(ret2); + if (returnType === "string") + return UTF8ToString(ret2); + if (returnType === "boolean") + return Boolean(ret2); return ret2; } var func = getCFunc(ident); @@ -12978,7 +12891,8 @@ var createModule = function() { for (var i = 0; i < args.length; i++) { var converter = toC[argTypes[i]]; if (converter) { - if (stack === 0) stack = stackSave(); + if (stack === 0) + stack = stackSave(); cArgs[i] = converter(args[i]); } else { cArgs[i] = args[i]; @@ -12987,7 +12901,8 @@ var createModule = function() { } var ret = func.apply(null, cArgs); ret = convertReturnValue(ret); - if (stack !== 0) stackRestore(stack); + if (stack !== 0) + stackRestore(stack); return ret; } function cwrap(ident, returnType, argTypes, opts) { @@ -13005,13 +12920,16 @@ var createModule = function() { } var UTF8Decoder = new TextDecoder("utf8"); function UTF8ToString(ptr, maxBytesToRead) { - if (!ptr) return ""; + if (!ptr) + return ""; var maxPtr = ptr + maxBytesToRead; - for (var end = ptr; !(end >= maxPtr) && HEAPU8[end]; ) ++end; + for (var end = ptr; !(end >= maxPtr) && HEAPU8[end]; ) + ++end; return UTF8Decoder.decode(HEAPU8.subarray(ptr, end)); } function stringToUTF8Array(str, heap, outIdx, maxBytesToWrite) { - if (!(maxBytesToWrite > 0)) return 0; + if (!(maxBytesToWrite > 0)) + return 0; var startIdx = outIdx; var endIdx = outIdx + maxBytesToWrite - 1; for (var i = 0; i < str.length; ++i) { @@ -13021,19 +12939,23 @@ var createModule = function() { u = 65536 + ((u & 1023) << 10) | u1 & 1023; } if (u <= 127) { - if (outIdx >= endIdx) break; + if (outIdx >= endIdx) + break; heap[outIdx++] = u; } else if (u <= 2047) { - if (outIdx + 1 >= endIdx) break; + if (outIdx + 1 >= endIdx) + break; heap[outIdx++] = 192 | u >> 6; heap[outIdx++] = 128 | u & 63; } else if (u <= 65535) { - if (outIdx + 2 >= endIdx) break; + if (outIdx + 2 >= endIdx) + break; heap[outIdx++] = 224 | u >> 12; heap[outIdx++] = 128 | u >> 6 & 63; heap[outIdx++] = 128 | u & 63; } else { - if (outIdx + 3 >= endIdx) break; + if (outIdx + 3 >= endIdx) + break; heap[outIdx++] = 240 | u >> 18; heap[outIdx++] = 128 | u >> 12 & 63; heap[outIdx++] = 128 | u >> 6 & 63; @@ -13052,17 +12974,22 @@ var createModule = function() { var u = str.charCodeAt(i); if (u >= 55296 && u <= 57343) u = 65536 + ((u & 1023) << 10) | str.charCodeAt(++i) & 1023; - if (u <= 127) ++len; - else if (u <= 2047) len += 2; - else if (u <= 65535) len += 3; - else len += 4; + if (u <= 127) + ++len; + else if (u <= 2047) + len += 2; + else if (u <= 65535) + len += 3; + else + len += 4; } return len; } function allocateUTF8(str) { var size = lengthBytesUTF8(str) + 1; var ret = _malloc(size); - if (ret) stringToUTF8Array(str, HEAP8, ret, size); + if (ret) + stringToUTF8Array(str, HEAP8, ret, size); return ret; } function writeArrayToMemory(array, buffer2) { @@ -13279,7 +13206,8 @@ var createModule = function() { var start = Date.UTC(date.getUTCFullYear(), 0, 1, 0, 0, 0, 0); var yday = (date.getTime() - start) / (1e3 * 60 * 60 * 24) | 0; LE_HEAP_STORE_I32((tmPtr + 28 >> 2) * 4, yday); - if (!_gmtime_r.GMTString) _gmtime_r.GMTString = allocateUTF8("GMT"); + if (!_gmtime_r.GMTString) + _gmtime_r.GMTString = allocateUTF8("GMT"); LE_HEAP_STORE_I32((tmPtr + 40 >> 2) * 4, _gmtime_r.GMTString); return tmPtr; } @@ -13331,9 +13259,10 @@ var createModule = function() { return ret; } function _tzset() { - if (_tzset.called) return; + if (_tzset.called) + return; _tzset.called = true; - var currentYear = (/* @__PURE__ */ new Date()).getFullYear(); + var currentYear = new Date().getFullYear(); var winter = new Date(currentYear, 0, 1); var summer = new Date(currentYear, 6, 1); var winterOffset = winter.getTimezoneOffset(); @@ -13461,8 +13390,10 @@ var createModule = function() { Module["getValue"] = getValue; var calledRun; dependenciesFulfilled = function runCaller() { - if (!calledRun) run(); - if (!calledRun) dependenciesFulfilled = runCaller; + if (!calledRun) + run(); + if (!calledRun) + dependenciesFulfilled = runCaller; }; function run(args) { if (runDependencies > 0) { @@ -13473,13 +13404,16 @@ var createModule = function() { return; } function doRun() { - if (calledRun) return; + if (calledRun) + return; calledRun = true; Module["calledRun"] = true; - if (ABORT) return; + if (ABORT) + return; initRuntime(); readyPromiseResolve(Module); - if (Module["onRuntimeInitialized"]) Module["onRuntimeInitialized"](); + if (Module["onRuntimeInitialized"]) + Module["onRuntimeInitialized"](); postRun(); } if (Module["setStatus"]) { @@ -13513,9 +13447,7 @@ const createModule = libzipSync.exports; const number64 = [ `number`, - // low `number` - // high ]; var Errors = /* @__PURE__ */ ((Errors2) => { Errors2[Errors2["ZIP_ER_OK"] = 0] = "ZIP_ER_OK"; @@ -13553,7 +13485,6 @@ var Errors = /* @__PURE__ */ ((Errors2) => { return Errors2; })(Errors || {}); const makeInterface = (emZip) => ({ - // Those are getters because they can change after memory growth get HEAPU8() { return emZip.HEAPU8; }, @@ -13756,7 +13687,6 @@ function makeEmptyArchive() { ]); } class LibzipError extends Error { - code; constructor(message, code) { super(message); this.name = `Libzip Error`; @@ -13764,28 +13694,15 @@ class LibzipError extends Error { } } class ZipFS extends BasePortableFakeFS { - libzip; - baseFs; - path; - stats; - zip; - lzSource; - level; - listings = /* @__PURE__ */ new Map(); - entries = /* @__PURE__ */ new Map(); - /** - * A cache of indices mapped to file sources. - * Populated by `setFileSource` calls. - * Required for supporting read after write. - */ - fileSources = /* @__PURE__ */ new Map(); - symlinkCount; - fds = /* @__PURE__ */ new Map(); - nextFd = 0; - ready = false; - readOnly = false; constructor(source, opts = {}) { super(); + this.listings = /* @__PURE__ */ new Map(); + this.entries = /* @__PURE__ */ new Map(); + this.fileSources = /* @__PURE__ */ new Map(); + this.fds = /* @__PURE__ */ new Map(); + this.nextFd = 0; + this.ready = false; + this.readOnly = false; const pathOptions = opts; this.level = typeof pathOptions.level !== `undefined` ? pathOptions.level : DEFAULT_COMPRESSION_LEVEL; source ??= makeEmptyArchive(); @@ -14034,7 +13951,6 @@ class ZipFS extends BasePortableFakeFS { }, bytesRead: 0, path: p, - // "This property is `true` if the underlying file has not been opened yet" pending: false } ); @@ -14081,7 +13997,6 @@ class ZipFS extends BasePortableFakeFS { }, bytesWritten: 0, path: p, - // "This property is `true` if the underlying file has not been opened yet" pending: false } ); @@ -14672,27 +14587,6 @@ class ZipFS extends BasePortableFakeFS { throw EINVAL(`rmdir '${p}'`); this.deleteEntry(p, index); } - async rmPromise(p, opts) { - return this.rmSync(p, opts); - } - rmSync(p, { recursive = false } = {}) { - if (this.readOnly) - throw EROFS(`rm '${p}'`); - if (recursive) { - this.removeSync(p); - return; - } - const resolvedP = this.resolveFilename(`rm '${p}'`, p); - const directoryListing = this.listings.get(resolvedP); - if (!directoryListing) - throw ENOTDIR(`rm '${p}'`); - if (directoryListing.size > 0) - throw ENOTEMPTY(`rm '${p}'`); - const index = this.entries.get(resolvedP); - if (typeof index === `undefined`) - throw EINVAL(`rm '${p}'`); - this.deleteEntry(p, index); - } hydrateDirectory(resolvedP) { const index = this.libzip.dir.add(this.zip, ppath.relative(PortablePath.root, resolvedP)); if (index === -1) @@ -15221,8 +15115,6 @@ function hydrateRuntimeState(data, { basePath }) { packagePeers: new Set(packageInformationData.packagePeers), linkType: packageInformationData.linkType, discardFromLookup, - // we only need this for packages that are used by the currently running script - // this is a lazy getter because `ppath.join` has some overhead get packageLocation() { return resolvedPackageLocation || (resolvedPackageLocation = ppath.join(absolutePortablePath, packageInformationData.packageLocation)); } @@ -15484,7 +15376,8 @@ function resolvePackageTargetString(target, subpath, match, packageJSONUrl, base const packagePath = new URL(".", packageJSONUrl).pathname; if (!StringPrototypeStartsWith(resolvedPath, packagePath)) throwInvalidPackageTarget(match, target, packageJSONUrl, internal, base); - if (subpath === "") return resolved; + if (subpath === "") + return resolved; if (RegExpPrototypeExec(invalidSegmentRegEx, subpath) !== null) { const request = pattern ? StringPrototypeReplace(match, "*", () => subpath) : match + subpath; throwInvalidSubpath(request, packageJSONUrl, internal, base); @@ -15498,7 +15391,8 @@ function resolvePackageTargetString(target, subpath, match, packageJSONUrl, base } function isArrayIndex(key) { const keyNum = +key; - if (`${keyNum}` !== key) return false; + if (`${keyNum}` !== key) + return false; return keyNum >= 0 && keyNum < 4294967295; } function resolvePackageTarget(packageJSONUrl, target, subpath, packageSubpath, base, pattern, internal, conditions) { @@ -15575,7 +15469,8 @@ function resolvePackageTarget(packageJSONUrl, target, subpath, packageSubpath, b internal, conditions ); - if (resolveResult === void 0) continue; + if (resolveResult === void 0) + continue; return resolveResult; } } @@ -15596,17 +15491,25 @@ function patternKeyCompare(a, b) { const bPatternIndex = StringPrototypeIndexOf(b, "*"); const baseLenA = aPatternIndex === -1 ? a.length : aPatternIndex + 1; const baseLenB = bPatternIndex === -1 ? b.length : bPatternIndex + 1; - if (baseLenA > baseLenB) return -1; - if (baseLenB > baseLenA) return 1; - if (aPatternIndex === -1) return 1; - if (bPatternIndex === -1) return -1; - if (a.length > b.length) return -1; - if (b.length > a.length) return 1; + if (baseLenA > baseLenB) + return -1; + if (baseLenB > baseLenA) + return 1; + if (aPatternIndex === -1) + return 1; + if (bPatternIndex === -1) + return -1; + if (a.length > b.length) + return -1; + if (b.length > a.length) + return 1; return 0; } function isConditionalExportsMainSugar(exports, packageJSONUrl, base) { - if (typeof exports === "string" || ArrayIsArray(exports)) return true; - if (typeof exports !== "object" || exports === null) return false; + if (typeof exports === "string" || ArrayIsArray(exports)) + return true; + if (typeof exports !== "object" || exports === null) + return false; const keys = ObjectGetOwnPropertyNames(exports); let isConditionalSugar = false; let i = 0; @@ -15635,7 +15538,8 @@ function throwExportsNotFound(subpath, packageJSONUrl, base) { const emittedPackageWarnings = /* @__PURE__ */ new Set(); function emitTrailingSlashPatternDeprecation(match, pjsonUrl, base) { const pjsonPath = url.fileURLToPath(pjsonUrl); - if (emittedPackageWarnings.has(pjsonPath + "|" + match)) return; + if (emittedPackageWarnings.has(pjsonPath + "|" + match)) + return; emittedPackageWarnings.add(pjsonPath + "|" + match); process.emitWarning( `Use of deprecated trailing slash pattern mapping "${match}" in the "exports" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${url.fileURLToPath(base)}` : ""}. Mapping specifiers ending in "/" is no longer supported.`, @@ -16904,9 +16808,9 @@ const defaultFsLayer = new VirtualFS({ }) }); class DynamicFS extends ProxiedFS { - baseFs = defaultFsLayer; constructor() { super(ppath); + this.baseFs = defaultFsLayer; } mapToBase(p) { return p; @@ -16921,11 +16825,6 @@ const defaultApi = Object.assign(makeApi(defaultRuntimeState, { fakeFs: dynamicFsLayer, pnpapiResolution: defaultPnpapiResolution }), { - /** - * Can be used to generate a different API than the default one (for example - * to map it on `/` rather than the local directory path, or to use a - * different FS layer than the default one). - */ makeApi: ({ basePath = void 0, fakeFs = dynamicFsLayer, @@ -16939,10 +16838,6 @@ const defaultApi = Object.assign(makeApi(defaultRuntimeState, { ...rest }); }, - /** - * Will inject the specified API into the environment, monkey-patching FS. Is - * automatically called when the hook is loaded through `--require`. - */ setup: (api) => { applyPatch(api || defaultApi, { fakeFs: defaultFsLayer, diff --git a/projects/xds-repo-api/yarn.lock b/projects/xds-repo-api/yarn.lock index 4f56f38..c90e4a9 100644 --- a/projects/xds-repo-api/yarn.lock +++ b/projects/xds-repo-api/yarn.lock @@ -1546,7 +1546,7 @@ __metadata: languageName: node linkType: hard -"@types/xml2js@npm:*, @types/xml2js@npm:^0": +"@types/xml2js@npm:*": version: 0.4.14 resolution: "@types/xml2js@npm:0.4.14" dependencies: @@ -7098,11 +7098,11 @@ __metadata: "typescript@patch:typescript@npm%3A^5.1.3#optional!builtin": version: 5.5.4 - resolution: "typescript@patch:typescript@npm%3A5.5.4#optional!builtin::version=5.5.4&hash=379a07" + resolution: "typescript@patch:typescript@npm%3A5.5.4#optional!builtin::version=5.5.4&hash=5adc0c" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 10c0/73409d7b9196a5a1217b3aaad929bf76294d3ce7d6e9766dd880ece296ee91cf7d7db6b16c6c6c630ee5096eccde726c0ef17c7dfa52b01a243e57ae1f09ef07 + checksum: 10c0/10dd9881baba22763de859e8050d6cb6e2db854197495c6f1929b08d1eb2b2b00d0b5d9b0bcee8472f1c3f4a7ef6a5d7ebe0cfd703f853aa5ae465b8404bc1ba languageName: node linkType: hard @@ -7442,7 +7442,6 @@ __metadata: "@types/jest": "npm:^29.5.2" "@types/node": "npm:^20.3.1" "@types/supertest": "npm:^6.0.0" - "@types/xml2js": "npm:^0" "@typescript-eslint/eslint-plugin": "npm:^7.0.0" "@typescript-eslint/parser": "npm:^7.0.0" axios: "npm:^1.7.4" @@ -7470,7 +7469,6 @@ __metadata: ts-node: "npm:^10.9.1" tsconfig-paths: "npm:^4.2.0" typescript: "npm:^5.1.3" - xml2js: "npm:^0.6.2" xml2js-xpath: "npm:^0.13.0" languageName: unknown linkType: soft @@ -7504,16 +7502,6 @@ __metadata: languageName: node linkType: hard -"xml2js@npm:^0.6.2": - version: 0.6.2 - resolution: "xml2js@npm:0.6.2" - dependencies: - sax: "npm:>=0.6.0" - xmlbuilder: "npm:~11.0.0" - checksum: 10c0/e98a84e9c172c556ee2c5afa0fc7161b46919e8b53ab20de140eedea19903ed82f7cd5b1576fb345c84f0a18da1982ddf65908129b58fc3d7cbc658ae232108f - languageName: node - linkType: hard - "xmlbuilder@npm:~11.0.0": version: 11.0.1 resolution: "xmlbuilder@npm:11.0.1"