diff --git a/lib/ldp.js b/lib/ldp.js index c1647956..90d09657 100644 --- a/lib/ldp.js +++ b/lib/ldp.js @@ -459,7 +459,7 @@ class LDP { ({ path, contentType } = await this.resourceMapper.mapUrlToFile({ url: options, searchIndex })) stats = await this.stat(path) } catch (err) { - throw error(404, 'Can\'t find file requested: ' + options) + throw error(err.status || 500, err.message) } // Just return, since resource exists diff --git a/lib/resource-mapper.js b/lib/resource-mapper.js index f64ff15f..78f922ef 100644 --- a/lib/resource-mapper.js +++ b/lib/resource-mapper.js @@ -125,7 +125,7 @@ class ResourceMapper { // Find a file with the same name (minus the dollar extension) let match = '' - if (match === '') { // always true to keep indentation + try { const files = await this._readdir(folder) // Search for files with the same name (disregarding a dollar extension) if (!isFolder) { @@ -134,13 +134,15 @@ class ResourceMapper { } else if (searchIndex && files.includes(this._indexFilename)) { match = this._indexFilename } + } catch (err) { + throw new HTTPError(404, `${filePath} Resource not found`) } // Error if no match was found (unless URL ends with '/', then fall back to the folder) if (match === undefined) { if (isIndex) { match = '' } else { - throw new HTTPError(404, `Resource not found: ${pathname}`) + throw new HTTPError(404, `${pathname} Resource not found`) } } path = `${folder}${match}` diff --git a/package-lock.json b/package-lock.json index 76f3b0ba..728251ed 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4196,9 +4196,7 @@ "node_modules/@gar/promisify": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/@gar/promisify/-/promisify-1.1.3.tgz", - "integrity": "sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==", - "optional": true, - "peer": true + "integrity": "sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==" }, "node_modules/@graphql-typed-document-node/core": { "version": "3.2.0", @@ -4759,8 +4757,6 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-1.1.1.tgz", "integrity": "sha512-8KG5RD0GVP4ydEzRn/I4BNDuxDtqVbOdm8675T49OIG/NGhaK0pjPX7ZcDlvKYbA+ulvVK3ztfcF4uBdOxuJbQ==", - "optional": true, - "peer": true, "dependencies": { "@gar/promisify": "^1.0.1", "semver": "^7.3.5" @@ -4771,8 +4767,6 @@ "resolved": "https://registry.npmjs.org/@npmcli/move-file/-/move-file-1.1.2.tgz", "integrity": "sha512-1SUf/Cg2GzGDyaf15aR9St9TWlb+XvbZXWpDx8YKs7MLzMH/BCeopv+y9vzrzgkfykCGuWOlSu3mZhj2+FQcrg==", "deprecated": "This functionality has been moved to @npmcli/fs", - "optional": true, - "peer": true, "dependencies": { "mkdirp": "^1.0.4", "rimraf": "^3.0.2" @@ -4785,8 +4779,6 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "optional": true, - "peer": true, "bin": { "mkdirp": "bin/cmd.js" }, @@ -6605,6 +6597,28 @@ "timeago.js": "^4.0.2" } }, + "node_modules/activitystreams-pane/node_modules/@xmldom/xmldom": { + "version": "0.8.10", + "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.10.tgz", + "integrity": "sha512-2WALfTl4xo2SkGCYRt6rDTFfk9R1czmBvUQy12gK2KuRKIpWEhcbbzy8EZXtz/jkRqHX8bFEc6FC1HjX4TUWYw==", + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/activitystreams-pane/node_modules/rdflib": { + "version": "2.2.34-alpha-b34c7242", + "resolved": "https://registry.npmjs.org/rdflib/-/rdflib-2.2.34-alpha-b34c7242.tgz", + "integrity": "sha512-k7n3HQHgdBek6J6v+w9rVy92e/h5qD9Rk55Yu6TAPht4BP6ynEy3n7ksMBLCcw8VvlUwcRyncHjmjVPtM8pSeg==", + "dependencies": { + "@babel/runtime": "^7.21.0", + "@frogcat/ttl2jsonld": "^0.0.9", + "@xmldom/xmldom": "^0.8.7", + "cross-fetch": "^3.1.5", + "jsonld": "^8.1.1", + "n3": "^1.16.4", + "solid-namespace": "^0.5.3" + } + }, "node_modules/activitystreams-pane/node_modules/react": { "version": "17.0.2", "resolved": "https://registry.npmjs.org/react/-/react-17.0.2.tgz", @@ -7913,8 +7927,6 @@ "version": "15.3.0", "resolved": "https://registry.npmjs.org/cacache/-/cacache-15.3.0.tgz", "integrity": "sha512-VVdYzXEn+cnbXpFgWs5hTT7OScegHVmLhJIR8Ufqk3iFD6A6j5iSX1KuBTfNEv4tdJWE2PzA6IVFtcLC7fN9wQ==", - "optional": true, - "peer": true, "dependencies": { "@npmcli/fs": "^1.0.0", "@npmcli/move-file": "^1.0.1", @@ -7943,8 +7955,6 @@ "version": "6.0.0", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "optional": true, - "peer": true, "dependencies": { "yallist": "^4.0.0" }, @@ -7956,8 +7966,6 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "optional": true, - "peer": true, "bin": { "mkdirp": "bin/cmd.js" }, @@ -7968,9 +7976,7 @@ "node_modules/cacache/node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "optional": true, - "peer": true + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, "node_modules/cached-path-relative": { "version": "1.1.0", @@ -8230,8 +8236,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", - "optional": true, - "peer": true, "engines": { "node": ">=10" } @@ -11468,8 +11472,6 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", - "optional": true, - "peer": true, "dependencies": { "minipass": "^3.0.0" }, @@ -12090,8 +12092,6 @@ "version": "3.0.8", "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-3.0.8.tgz", "integrity": "sha512-aXpmwoOhRBrw6X3j0h5RloK4x1OzsxMPyxqIHyNfSe2pypkVTZFpEiRoSipPEPlMrh0HW/XsjkJ5WgnCirpNUw==", - "optional": true, - "peer": true, "dependencies": { "lru-cache": "^6.0.0" }, @@ -12103,8 +12103,6 @@ "version": "6.0.0", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "optional": true, - "peer": true, "dependencies": { "yallist": "^4.0.0" }, @@ -12115,9 +12113,7 @@ "node_modules/hosted-git-info/node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "optional": true, - "peer": true + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, "node_modules/html-escaper": { "version": "2.0.2", @@ -12334,9 +12330,7 @@ "node_modules/infer-owner": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/infer-owner/-/infer-owner-1.0.4.tgz", - "integrity": "sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A==", - "optional": true, - "peer": true + "integrity": "sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A==" }, "node_modules/inflight": { "version": "1.0.6", @@ -15188,6 +15182,9 @@ } }, "node_modules/marked": { + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/marked/-/marked-11.2.0.tgz", + "integrity": "sha512-HR0m3bvu0jAPYiIvLUUQtdg1g6D247//lvcekpHO1WMvbwDlwSkZAX9Lw4F4YHE1T0HaaNve0tuAWuV1UJ6vtw==", "version": "11.2.0", "resolved": "https://registry.npmjs.org/marked/-/marked-11.2.0.tgz", "integrity": "sha512-HR0m3bvu0jAPYiIvLUUQtdg1g6D247//lvcekpHO1WMvbwDlwSkZAX9Lw4F4YHE1T0HaaNve0tuAWuV1UJ6vtw==", @@ -15927,8 +15924,6 @@ "version": "3.1.6", "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.1.6.tgz", "integrity": "sha512-rty5kpw9/z8SX9dmxblFA6edItUmwJgMeYDZRrwlIVN27i8gysGbznJwUggw2V/FVqFSDdWy040ZPS811DYAqQ==", - "optional": true, - "peer": true, "dependencies": { "yallist": "^4.0.0" }, @@ -15940,8 +15935,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/minipass-collect/-/minipass-collect-1.0.2.tgz", "integrity": "sha512-6T6lH0H8OG9kITm/Jm6tdooIbogG9e0tLgpY6mphXSm/A9u8Nq1ryBG+Qspiub9LjWlBPsPS3tWQ/Botq4FdxA==", - "optional": true, - "peer": true, "dependencies": { "minipass": "^3.0.0" }, @@ -15953,8 +15946,6 @@ "version": "1.0.5", "resolved": "https://registry.npmjs.org/minipass-flush/-/minipass-flush-1.0.5.tgz", "integrity": "sha512-JmQSYYpPUqX5Jyn1mXaRwOda1uQ8HP5KAT/oDSLCzt1BYRhQU0/hDtsB1ufZfEEzMZ9aAVmsBw8+FWsIXlClWw==", - "optional": true, - "peer": true, "dependencies": { "minipass": "^3.0.0" }, @@ -15966,8 +15957,6 @@ "version": "1.2.4", "resolved": "https://registry.npmjs.org/minipass-pipeline/-/minipass-pipeline-1.2.4.tgz", "integrity": "sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A==", - "optional": true, - "peer": true, "dependencies": { "minipass": "^3.0.0" }, @@ -15978,16 +15967,12 @@ "node_modules/minipass/node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "optional": true, - "peer": true + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, "node_modules/minizlib": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", - "optional": true, - "peer": true, "dependencies": { "minipass": "^3.0.0", "yallist": "^4.0.0" @@ -15999,16 +15984,12 @@ "node_modules/minizlib/node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "optional": true, - "peer": true + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, "node_modules/mkdirp": { "version": "0.5.6", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", - "optional": true, - "peer": true, "dependencies": { "minimist": "^1.2.6" }, @@ -16786,8 +16767,6 @@ "version": "7.0.0", "resolved": "https://registry.npmjs.org/npm-package-arg/-/npm-package-arg-7.0.0.tgz", "integrity": "sha512-xXxr8y5U0kl8dVkz2oK7yZjPBvqM2fwaO5l3Yg13p03v8+E3qQcD0JNhHzjL1vyGgxcKkD0cco+NLR72iuPk3g==", - "optional": true, - "peer": true, "dependencies": { "hosted-git-info": "^3.0.2", "osenv": "^0.1.5", @@ -16799,8 +16778,6 @@ "version": "5.7.2", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", - "optional": true, - "peer": true, "bin": { "semver": "bin/semver" } @@ -16830,25 +16807,28 @@ }, "node_modules/npm/node_modules/@colors/colors": { "version": "1.5.0", + "extraneous": true, "inBundle": true, "license": "MIT", - "optional": true, "engines": { "node": ">=0.1.90" } }, "node_modules/npm/node_modules/@gar/promisify": { "version": "1.1.3", + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/@isaacs/string-locale-compare": { "version": "1.1.0", + "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/@npmcli/arborist": { "version": "5.6.3", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -16899,6 +16879,7 @@ }, "node_modules/npm/node_modules/@npmcli/ci-detect": { "version": "2.0.0", + "extraneous": true, "inBundle": true, "license": "ISC", "engines": { @@ -16907,6 +16888,7 @@ }, "node_modules/npm/node_modules/@npmcli/config": { "version": "4.2.2", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -16925,6 +16907,7 @@ }, "node_modules/npm/node_modules/@npmcli/disparity-colors": { "version": "2.0.0", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -16936,6 +16919,7 @@ }, "node_modules/npm/node_modules/@npmcli/fs": { "version": "2.1.2", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -16948,6 +16932,7 @@ }, "node_modules/npm/node_modules/@npmcli/git": { "version": "3.0.2", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -16967,6 +16952,7 @@ }, "node_modules/npm/node_modules/@npmcli/installed-package-contents": { "version": "1.0.7", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -16982,6 +16968,7 @@ }, "node_modules/npm/node_modules/@npmcli/installed-package-contents/node_modules/npm-bundled": { "version": "1.1.2", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -16990,6 +16977,7 @@ }, "node_modules/npm/node_modules/@npmcli/map-workspaces": { "version": "2.0.4", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -17004,6 +16992,7 @@ }, "node_modules/npm/node_modules/@npmcli/metavuln-calculator": { "version": "3.1.1", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -17018,6 +17007,7 @@ }, "node_modules/npm/node_modules/@npmcli/move-file": { "version": "2.0.1", + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -17030,11 +17020,13 @@ }, "node_modules/npm/node_modules/@npmcli/name-from-folder": { "version": "1.0.1", + "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/@npmcli/node-gyp": { "version": "2.0.0", + "extraneous": true, "inBundle": true, "license": "ISC", "engines": { @@ -17043,6 +17035,7 @@ }, "node_modules/npm/node_modules/@npmcli/package-json": { "version": "2.0.0", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -17054,6 +17047,7 @@ }, "node_modules/npm/node_modules/@npmcli/promise-spawn": { "version": "3.0.0", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -17065,6 +17059,7 @@ }, "node_modules/npm/node_modules/@npmcli/query": { "version": "1.2.0", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -17078,6 +17073,7 @@ }, "node_modules/npm/node_modules/@npmcli/run-script": { "version": "4.2.1", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -17093,6 +17089,7 @@ }, "node_modules/npm/node_modules/@tootallnate/once": { "version": "2.0.0", + "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -17101,11 +17098,13 @@ }, "node_modules/npm/node_modules/abbrev": { "version": "1.1.1", + "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/agent-base": { "version": "6.0.2", + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -17117,6 +17116,7 @@ }, "node_modules/npm/node_modules/agentkeepalive": { "version": "4.2.1", + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -17130,6 +17130,7 @@ }, "node_modules/npm/node_modules/aggregate-error": { "version": "3.1.0", + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -17142,6 +17143,7 @@ }, "node_modules/npm/node_modules/ansi-regex": { "version": "5.0.1", + "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -17150,6 +17152,7 @@ }, "node_modules/npm/node_modules/ansi-styles": { "version": "4.3.0", + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -17164,16 +17167,19 @@ }, "node_modules/npm/node_modules/aproba": { "version": "2.0.0", + "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/archy": { "version": "1.0.0", + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/are-we-there-yet": { "version": "3.0.1", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -17186,16 +17192,19 @@ }, "node_modules/npm/node_modules/asap": { "version": "2.0.6", + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/balanced-match": { "version": "1.0.2", + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/bin-links": { "version": "3.0.3", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -17212,6 +17221,7 @@ }, "node_modules/npm/node_modules/bin-links/node_modules/npm-normalize-package-bin": { "version": "2.0.0", + "extraneous": true, "inBundle": true, "license": "ISC", "engines": { @@ -17220,6 +17230,7 @@ }, "node_modules/npm/node_modules/binary-extensions": { "version": "2.2.0", + "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -17228,6 +17239,7 @@ }, "node_modules/npm/node_modules/brace-expansion": { "version": "2.0.1", + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -17236,6 +17248,7 @@ }, "node_modules/npm/node_modules/builtins": { "version": "5.0.1", + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -17244,6 +17257,7 @@ }, "node_modules/npm/node_modules/cacache": { "version": "16.1.3", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -17272,6 +17286,7 @@ }, "node_modules/npm/node_modules/chalk": { "version": "4.1.2", + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -17287,6 +17302,7 @@ }, "node_modules/npm/node_modules/chownr": { "version": "2.0.0", + "extraneous": true, "inBundle": true, "license": "ISC", "engines": { @@ -17295,6 +17311,7 @@ }, "node_modules/npm/node_modules/cidr-regex": { "version": "3.1.1", + "extraneous": true, "inBundle": true, "license": "BSD-2-Clause", "dependencies": { @@ -17306,6 +17323,7 @@ }, "node_modules/npm/node_modules/clean-stack": { "version": "2.2.0", + "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -17314,6 +17332,7 @@ }, "node_modules/npm/node_modules/cli-columns": { "version": "4.0.0", + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -17326,6 +17345,7 @@ }, "node_modules/npm/node_modules/cli-table3": { "version": "0.6.2", + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -17340,6 +17360,7 @@ }, "node_modules/npm/node_modules/clone": { "version": "1.0.4", + "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -17348,6 +17369,7 @@ }, "node_modules/npm/node_modules/cmd-shim": { "version": "5.0.0", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -17359,6 +17381,7 @@ }, "node_modules/npm/node_modules/color-convert": { "version": "2.0.1", + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -17370,11 +17393,13 @@ }, "node_modules/npm/node_modules/color-name": { "version": "1.1.4", + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/color-support": { "version": "1.1.3", + "extraneous": true, "inBundle": true, "license": "ISC", "bin": { @@ -17383,6 +17408,7 @@ }, "node_modules/npm/node_modules/columnify": { "version": "1.6.0", + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -17395,21 +17421,25 @@ }, "node_modules/npm/node_modules/common-ancestor-path": { "version": "1.0.1", + "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/concat-map": { "version": "0.0.1", + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/console-control-strings": { "version": "1.1.0", + "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/cssesc": { "version": "3.0.0", + "extraneous": true, "inBundle": true, "license": "MIT", "bin": { @@ -17421,6 +17451,7 @@ }, "node_modules/npm/node_modules/debug": { "version": "4.3.4", + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -17437,11 +17468,13 @@ }, "node_modules/npm/node_modules/debug/node_modules/ms": { "version": "2.1.2", + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/debuglog": { "version": "1.0.1", + "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -17450,6 +17483,7 @@ }, "node_modules/npm/node_modules/defaults": { "version": "1.0.3", + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -17458,11 +17492,13 @@ }, "node_modules/npm/node_modules/delegates": { "version": "1.0.0", + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/depd": { "version": "1.1.2", + "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -17471,6 +17507,7 @@ }, "node_modules/npm/node_modules/dezalgo": { "version": "1.0.4", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -17480,6 +17517,7 @@ }, "node_modules/npm/node_modules/diff": { "version": "5.1.0", + "extraneous": true, "inBundle": true, "license": "BSD-3-Clause", "engines": { @@ -17488,20 +17526,22 @@ }, "node_modules/npm/node_modules/emoji-regex": { "version": "8.0.0", + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/encoding": { "version": "0.1.13", + "extraneous": true, "inBundle": true, "license": "MIT", - "optional": true, "dependencies": { "iconv-lite": "^0.6.2" } }, "node_modules/npm/node_modules/env-paths": { "version": "2.2.1", + "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -17510,16 +17550,19 @@ }, "node_modules/npm/node_modules/err-code": { "version": "2.0.3", + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/fastest-levenshtein": { "version": "1.0.12", + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/fs-minipass": { "version": "2.1.0", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -17531,16 +17574,19 @@ }, "node_modules/npm/node_modules/fs.realpath": { "version": "1.0.0", + "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/function-bind": { "version": "1.1.1", + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/gauge": { "version": "4.0.4", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -17559,6 +17605,7 @@ }, "node_modules/npm/node_modules/glob": { "version": "8.0.3", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -17577,11 +17624,13 @@ }, "node_modules/npm/node_modules/graceful-fs": { "version": "4.2.10", + "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/has": { "version": "1.0.3", + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -17593,6 +17642,7 @@ }, "node_modules/npm/node_modules/has-flag": { "version": "4.0.0", + "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -17601,11 +17651,13 @@ }, "node_modules/npm/node_modules/has-unicode": { "version": "2.0.1", + "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/hosted-git-info": { "version": "5.2.1", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -17617,11 +17669,13 @@ }, "node_modules/npm/node_modules/http-cache-semantics": { "version": "4.1.1", + "extraneous": true, "inBundle": true, "license": "BSD-2-Clause" }, "node_modules/npm/node_modules/http-proxy-agent": { "version": "5.0.0", + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -17635,6 +17689,7 @@ }, "node_modules/npm/node_modules/https-proxy-agent": { "version": "5.0.1", + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -17647,6 +17702,7 @@ }, "node_modules/npm/node_modules/humanize-ms": { "version": "1.2.1", + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -17655,9 +17711,9 @@ }, "node_modules/npm/node_modules/iconv-lite": { "version": "0.6.3", + "extraneous": true, "inBundle": true, "license": "MIT", - "optional": true, "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" }, @@ -17667,6 +17723,7 @@ }, "node_modules/npm/node_modules/ignore-walk": { "version": "5.0.1", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -17678,6 +17735,7 @@ }, "node_modules/npm/node_modules/imurmurhash": { "version": "0.1.4", + "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -17686,6 +17744,7 @@ }, "node_modules/npm/node_modules/indent-string": { "version": "4.0.0", + "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -17694,11 +17753,13 @@ }, "node_modules/npm/node_modules/infer-owner": { "version": "1.0.4", + "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/inflight": { "version": "1.0.6", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -17708,11 +17769,13 @@ }, "node_modules/npm/node_modules/inherits": { "version": "2.0.4", + "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/ini": { "version": "3.0.1", + "extraneous": true, "inBundle": true, "license": "ISC", "engines": { @@ -17721,6 +17784,7 @@ }, "node_modules/npm/node_modules/init-package-json": { "version": "3.0.2", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -17738,11 +17802,13 @@ }, "node_modules/npm/node_modules/ip": { "version": "2.0.0", + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/ip-regex": { "version": "4.3.0", + "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -17751,6 +17817,7 @@ }, "node_modules/npm/node_modules/is-cidr": { "version": "4.0.2", + "extraneous": true, "inBundle": true, "license": "BSD-2-Clause", "dependencies": { @@ -17762,6 +17829,7 @@ }, "node_modules/npm/node_modules/is-core-module": { "version": "2.10.0", + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -17773,6 +17841,7 @@ }, "node_modules/npm/node_modules/is-fullwidth-code-point": { "version": "3.0.0", + "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -17781,21 +17850,25 @@ }, "node_modules/npm/node_modules/is-lambda": { "version": "1.0.1", + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/isexe": { "version": "2.0.0", + "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/json-parse-even-better-errors": { "version": "2.3.1", + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/json-stringify-nice": { "version": "1.1.4", + "extraneous": true, "inBundle": true, "license": "ISC", "funding": { @@ -17807,21 +17880,25 @@ "engines": [ "node >= 0.2.0" ], + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/just-diff": { "version": "5.1.1", + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/just-diff-apply": { "version": "5.4.1", + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/libnpmaccess": { "version": "6.0.4", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -17836,6 +17913,7 @@ }, "node_modules/npm/node_modules/libnpmdiff": { "version": "4.0.5", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -17854,6 +17932,7 @@ }, "node_modules/npm/node_modules/libnpmexec": { "version": "4.0.14", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -17878,6 +17957,7 @@ }, "node_modules/npm/node_modules/libnpmfund": { "version": "3.0.5", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -17889,6 +17969,7 @@ }, "node_modules/npm/node_modules/libnpmhook": { "version": "8.0.4", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -17901,6 +17982,7 @@ }, "node_modules/npm/node_modules/libnpmorg": { "version": "4.0.4", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -17913,6 +17995,7 @@ }, "node_modules/npm/node_modules/libnpmpack": { "version": "4.1.3", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -17926,6 +18009,7 @@ }, "node_modules/npm/node_modules/libnpmpublish": { "version": "6.0.5", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -17941,6 +18025,7 @@ }, "node_modules/npm/node_modules/libnpmsearch": { "version": "5.0.4", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -17952,6 +18037,7 @@ }, "node_modules/npm/node_modules/libnpmteam": { "version": "4.0.4", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -17964,6 +18050,7 @@ }, "node_modules/npm/node_modules/libnpmversion": { "version": "3.0.7", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -17979,6 +18066,7 @@ }, "node_modules/npm/node_modules/lru-cache": { "version": "7.13.2", + "extraneous": true, "inBundle": true, "license": "ISC", "engines": { @@ -17987,6 +18075,7 @@ }, "node_modules/npm/node_modules/make-fetch-happen": { "version": "10.2.1", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -18013,6 +18102,7 @@ }, "node_modules/npm/node_modules/minimatch": { "version": "5.1.0", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -18024,6 +18114,7 @@ }, "node_modules/npm/node_modules/minipass": { "version": "3.3.4", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -18035,6 +18126,7 @@ }, "node_modules/npm/node_modules/minipass-collect": { "version": "1.0.2", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -18046,6 +18138,7 @@ }, "node_modules/npm/node_modules/minipass-fetch": { "version": "2.1.1", + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -18062,6 +18155,7 @@ }, "node_modules/npm/node_modules/minipass-flush": { "version": "1.0.5", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -18073,6 +18167,7 @@ }, "node_modules/npm/node_modules/minipass-json-stream": { "version": "1.0.1", + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -18082,6 +18177,7 @@ }, "node_modules/npm/node_modules/minipass-pipeline": { "version": "1.2.4", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -18093,6 +18189,7 @@ }, "node_modules/npm/node_modules/minipass-sized": { "version": "1.0.3", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -18104,6 +18201,7 @@ }, "node_modules/npm/node_modules/minizlib": { "version": "2.1.2", + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -18116,6 +18214,7 @@ }, "node_modules/npm/node_modules/mkdirp": { "version": "1.0.4", + "extraneous": true, "inBundle": true, "license": "MIT", "bin": { @@ -18127,6 +18226,7 @@ }, "node_modules/npm/node_modules/mkdirp-infer-owner": { "version": "2.0.0", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -18140,16 +18240,19 @@ }, "node_modules/npm/node_modules/ms": { "version": "2.1.3", + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/mute-stream": { "version": "0.0.8", + "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/negotiator": { "version": "0.6.3", + "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -18158,6 +18261,7 @@ }, "node_modules/npm/node_modules/node-gyp": { "version": "9.1.0", + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -18181,6 +18285,7 @@ }, "node_modules/npm/node_modules/node-gyp/node_modules/brace-expansion": { "version": "1.1.11", + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -18190,6 +18295,7 @@ }, "node_modules/npm/node_modules/node-gyp/node_modules/glob": { "version": "7.2.3", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -18209,6 +18315,7 @@ }, "node_modules/npm/node_modules/node-gyp/node_modules/minimatch": { "version": "3.1.2", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -18220,6 +18327,7 @@ }, "node_modules/npm/node_modules/node-gyp/node_modules/nopt": { "version": "5.0.0", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -18234,6 +18342,7 @@ }, "node_modules/npm/node_modules/nopt": { "version": "6.0.0", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -18248,6 +18357,7 @@ }, "node_modules/npm/node_modules/normalize-package-data": { "version": "4.0.1", + "extraneous": true, "inBundle": true, "license": "BSD-2-Clause", "dependencies": { @@ -18262,6 +18372,7 @@ }, "node_modules/npm/node_modules/npm-audit-report": { "version": "3.0.0", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -18273,6 +18384,7 @@ }, "node_modules/npm/node_modules/npm-bundled": { "version": "2.0.1", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -18284,6 +18396,7 @@ }, "node_modules/npm/node_modules/npm-bundled/node_modules/npm-normalize-package-bin": { "version": "2.0.0", + "extraneous": true, "inBundle": true, "license": "ISC", "engines": { @@ -18292,6 +18405,7 @@ }, "node_modules/npm/node_modules/npm-install-checks": { "version": "5.0.0", + "extraneous": true, "inBundle": true, "license": "BSD-2-Clause", "dependencies": { @@ -18303,11 +18417,13 @@ }, "node_modules/npm/node_modules/npm-normalize-package-bin": { "version": "1.0.1", + "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/npm-package-arg": { "version": "9.1.0", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -18322,6 +18438,7 @@ }, "node_modules/npm/node_modules/npm-packlist": { "version": "5.1.3", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -18339,6 +18456,7 @@ }, "node_modules/npm/node_modules/npm-packlist/node_modules/npm-normalize-package-bin": { "version": "2.0.0", + "extraneous": true, "inBundle": true, "license": "ISC", "engines": { @@ -18347,6 +18465,7 @@ }, "node_modules/npm/node_modules/npm-pick-manifest": { "version": "7.0.2", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -18361,6 +18480,7 @@ }, "node_modules/npm/node_modules/npm-pick-manifest/node_modules/npm-normalize-package-bin": { "version": "2.0.0", + "extraneous": true, "inBundle": true, "license": "ISC", "engines": { @@ -18369,6 +18489,7 @@ }, "node_modules/npm/node_modules/npm-profile": { "version": "6.2.1", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -18381,6 +18502,7 @@ }, "node_modules/npm/node_modules/npm-registry-fetch": { "version": "13.3.1", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -18398,11 +18520,13 @@ }, "node_modules/npm/node_modules/npm-user-validate": { "version": "1.0.1", + "extraneous": true, "inBundle": true, "license": "BSD-2-Clause" }, "node_modules/npm/node_modules/npmlog": { "version": "6.0.2", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -18417,6 +18541,7 @@ }, "node_modules/npm/node_modules/once": { "version": "1.4.0", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -18425,6 +18550,7 @@ }, "node_modules/npm/node_modules/opener": { "version": "1.5.2", + "extraneous": true, "inBundle": true, "license": "(WTFPL OR MIT)", "bin": { @@ -18433,6 +18559,7 @@ }, "node_modules/npm/node_modules/p-map": { "version": "4.0.0", + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -18447,6 +18574,7 @@ }, "node_modules/npm/node_modules/pacote": { "version": "13.6.2", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -18481,6 +18609,7 @@ }, "node_modules/npm/node_modules/parse-conflict-json": { "version": "2.0.2", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -18494,6 +18623,7 @@ }, "node_modules/npm/node_modules/path-is-absolute": { "version": "1.0.1", + "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -18502,6 +18632,7 @@ }, "node_modules/npm/node_modules/postcss-selector-parser": { "version": "6.0.10", + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -18514,6 +18645,7 @@ }, "node_modules/npm/node_modules/proc-log": { "version": "2.0.1", + "extraneous": true, "inBundle": true, "license": "ISC", "engines": { @@ -18522,6 +18654,7 @@ }, "node_modules/npm/node_modules/promise-all-reject-late": { "version": "1.0.1", + "extraneous": true, "inBundle": true, "license": "ISC", "funding": { @@ -18530,6 +18663,7 @@ }, "node_modules/npm/node_modules/promise-call-limit": { "version": "1.0.1", + "extraneous": true, "inBundle": true, "license": "ISC", "funding": { @@ -18538,11 +18672,13 @@ }, "node_modules/npm/node_modules/promise-inflight": { "version": "1.0.1", + "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/promise-retry": { "version": "2.0.1", + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -18555,6 +18691,7 @@ }, "node_modules/npm/node_modules/promzard": { "version": "0.3.0", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -18563,6 +18700,7 @@ }, "node_modules/npm/node_modules/qrcode-terminal": { "version": "0.12.0", + "extraneous": true, "inBundle": true, "bin": { "qrcode-terminal": "bin/qrcode-terminal.js" @@ -18570,6 +18708,7 @@ }, "node_modules/npm/node_modules/read": { "version": "1.0.7", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -18581,6 +18720,7 @@ }, "node_modules/npm/node_modules/read-cmd-shim": { "version": "3.0.0", + "extraneous": true, "inBundle": true, "license": "ISC", "engines": { @@ -18589,6 +18729,7 @@ }, "node_modules/npm/node_modules/read-package-json": { "version": "5.0.2", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -18603,6 +18744,7 @@ }, "node_modules/npm/node_modules/read-package-json-fast": { "version": "2.0.3", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -18615,6 +18757,7 @@ }, "node_modules/npm/node_modules/read-package-json/node_modules/npm-normalize-package-bin": { "version": "2.0.0", + "extraneous": true, "inBundle": true, "license": "ISC", "engines": { @@ -18623,6 +18766,7 @@ }, "node_modules/npm/node_modules/readable-stream": { "version": "3.6.0", + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -18636,6 +18780,7 @@ }, "node_modules/npm/node_modules/readdir-scoped-modules": { "version": "1.1.0", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -18647,6 +18792,7 @@ }, "node_modules/npm/node_modules/retry": { "version": "0.12.0", + "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -18655,6 +18801,7 @@ }, "node_modules/npm/node_modules/rimraf": { "version": "3.0.2", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -18669,6 +18816,7 @@ }, "node_modules/npm/node_modules/rimraf/node_modules/brace-expansion": { "version": "1.1.11", + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -18678,6 +18826,7 @@ }, "node_modules/npm/node_modules/rimraf/node_modules/glob": { "version": "7.2.3", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -18697,6 +18846,7 @@ }, "node_modules/npm/node_modules/rimraf/node_modules/minimatch": { "version": "3.1.2", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -18708,6 +18858,7 @@ }, "node_modules/npm/node_modules/safe-buffer": { "version": "5.2.1", + "extraneous": true, "funding": [ { "type": "github", @@ -18727,12 +18878,13 @@ }, "node_modules/npm/node_modules/safer-buffer": { "version": "2.1.2", + "extraneous": true, "inBundle": true, - "license": "MIT", - "optional": true + "license": "MIT" }, "node_modules/npm/node_modules/semver": { "version": "7.3.7", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -18747,6 +18899,7 @@ }, "node_modules/npm/node_modules/semver/node_modules/lru-cache": { "version": "6.0.0", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -18758,16 +18911,19 @@ }, "node_modules/npm/node_modules/set-blocking": { "version": "2.0.0", + "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/signal-exit": { "version": "3.0.7", + "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/smart-buffer": { "version": "4.2.0", + "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -18777,6 +18933,7 @@ }, "node_modules/npm/node_modules/socks": { "version": "2.7.0", + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -18790,6 +18947,7 @@ }, "node_modules/npm/node_modules/socks-proxy-agent": { "version": "7.0.0", + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -18803,6 +18961,7 @@ }, "node_modules/npm/node_modules/spdx-correct": { "version": "3.1.1", + "extraneous": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { @@ -18812,11 +18971,13 @@ }, "node_modules/npm/node_modules/spdx-exceptions": { "version": "2.3.0", + "extraneous": true, "inBundle": true, "license": "CC-BY-3.0" }, "node_modules/npm/node_modules/spdx-expression-parse": { "version": "3.0.1", + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -18826,11 +18987,13 @@ }, "node_modules/npm/node_modules/spdx-license-ids": { "version": "3.0.11", + "extraneous": true, "inBundle": true, "license": "CC0-1.0" }, "node_modules/npm/node_modules/ssri": { "version": "9.0.1", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -18842,6 +19005,7 @@ }, "node_modules/npm/node_modules/string_decoder": { "version": "1.3.0", + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -18850,6 +19014,7 @@ }, "node_modules/npm/node_modules/string-width": { "version": "4.2.3", + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -18863,6 +19028,7 @@ }, "node_modules/npm/node_modules/strip-ansi": { "version": "6.0.1", + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -18874,6 +19040,7 @@ }, "node_modules/npm/node_modules/supports-color": { "version": "7.2.0", + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -18885,6 +19052,7 @@ }, "node_modules/npm/node_modules/tar": { "version": "6.1.11", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -18901,16 +19069,19 @@ }, "node_modules/npm/node_modules/text-table": { "version": "0.2.0", + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/tiny-relative-date": { "version": "1.3.0", + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/treeverse": { "version": "2.0.0", + "extraneous": true, "inBundle": true, "license": "ISC", "engines": { @@ -18919,6 +19090,7 @@ }, "node_modules/npm/node_modules/unique-filename": { "version": "2.0.1", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -18930,6 +19102,7 @@ }, "node_modules/npm/node_modules/unique-slug": { "version": "3.0.0", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -18941,11 +19114,13 @@ }, "node_modules/npm/node_modules/util-deprecate": { "version": "1.0.2", + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/validate-npm-package-license": { "version": "3.0.4", + "extraneous": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { @@ -18955,6 +19130,7 @@ }, "node_modules/npm/node_modules/validate-npm-package-name": { "version": "4.0.0", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -18966,11 +19142,13 @@ }, "node_modules/npm/node_modules/walk-up-path": { "version": "1.0.0", + "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/wcwidth": { "version": "1.0.1", + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -18979,6 +19157,7 @@ }, "node_modules/npm/node_modules/which": { "version": "2.0.2", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -18993,6 +19172,7 @@ }, "node_modules/npm/node_modules/wide-align": { "version": "1.1.5", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -19001,11 +19181,13 @@ }, "node_modules/npm/node_modules/wrappy": { "version": "1.0.2", + "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/write-file-atomic": { "version": "4.0.2", + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -19018,6 +19200,7 @@ }, "node_modules/npm/node_modules/yallist": { "version": "4.0.0", + "extraneous": true, "inBundle": true, "license": "ISC" }, @@ -19294,8 +19477,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", "integrity": "sha512-B5JU3cabzk8c67mRRd3ECmROafjYMXbuzlwtqdM8IbS8ktlTix8aFGb2bAGKrSRIlnfKwovGUUr72JUPyOb6kQ==", - "optional": true, - "peer": true, "engines": { "node": ">=0.10.0" } @@ -19321,8 +19502,6 @@ "version": "0.1.5", "resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.5.tgz", "integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==", - "optional": true, - "peer": true, "dependencies": { "os-homedir": "^1.0.0", "os-tmpdir": "^1.0.0" @@ -19383,8 +19562,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", - "optional": true, - "peer": true, "dependencies": { "aggregate-error": "^3.0.0" }, @@ -20111,9 +20288,7 @@ "node_modules/promise-inflight": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz", - "integrity": "sha512-6zWPyEOFaQBJYcGMHBKTKJ3u6TBsnMFOIZSa6ce1e/ZrrsOlnHRHbabMjLiBYKp+n44X9eUI6VUPaukCXHuG4g==", - "optional": true, - "peer": true + "integrity": "sha512-6zWPyEOFaQBJYcGMHBKTKJ3u6TBsnMFOIZSa6ce1e/ZrrsOlnHRHbabMjLiBYKp+n44X9eUI6VUPaukCXHuG4g==" }, "node_modules/prompts": { "version": "2.4.2", @@ -20237,8 +20412,6 @@ "version": "0.11.0", "resolved": "https://registry.npmjs.org/qrcode-terminal/-/qrcode-terminal-0.11.0.tgz", "integrity": "sha512-Uu7ii+FQy4Qf82G4xu7ShHhjhGahEpCWc3x8UavY3CTcWV+ufmmCtwkr7ZKsX42jdL0kr1B5FKUeqJvAn51jzQ==", - "optional": true, - "peer": true, "bin": { "qrcode-terminal": "bin/qrcode-terminal.js" } @@ -21210,6 +21383,9 @@ "version": "1.3.1", "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.3.1.tgz", "integrity": "sha512-r5a3l5HzYlIC68TpmYKlxWjmOP6wiPJ1vWv2HeLhNsRZMrCkxeqxiHlQ21oXmQ4F3SiryXBHhAD7JZqvOJjFmg==" + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.3.1.tgz", + "integrity": "sha512-r5a3l5HzYlIC68TpmYKlxWjmOP6wiPJ1vWv2HeLhNsRZMrCkxeqxiHlQ21oXmQ4F3SiryXBHhAD7JZqvOJjFmg==" }, "node_modules/rimraf": { "version": "3.0.2", @@ -22460,8 +22636,6 @@ "version": "8.0.1", "resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz", "integrity": "sha512-97qShzy1AiyxvPNIkLWoGua7xoQzzPjQ0HAH4B0rWKo7SZ6USuPcrUiAFrws0UH8RrbWmgq3LMTObhPIHbbBeQ==", - "optional": true, - "peer": true, "dependencies": { "minipass": "^3.1.1" }, @@ -23268,8 +23442,6 @@ "version": "6.2.0", "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.0.tgz", "integrity": "sha512-/Wo7DcT0u5HUV486xg675HtjNd3BXZ6xDbzsCUZPt5iw8bTQ63bP0Raut3mvro9u+CUyq7YQd8Cx55fsZXxqLQ==", - "optional": true, - "peer": true, "dependencies": { "chownr": "^2.0.0", "fs-minipass": "^2.0.0", @@ -23286,8 +23458,6 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", - "optional": true, - "peer": true, "engines": { "node": ">=8" } @@ -23296,8 +23466,6 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "optional": true, - "peer": true, "bin": { "mkdirp": "bin/cmd.js" }, @@ -23308,9 +23476,7 @@ "node_modules/tar/node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "optional": true, - "peer": true + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, "node_modules/temp": { "version": "0.8.4", @@ -23971,8 +24137,6 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.1.tgz", "integrity": "sha512-Vmp0jIp2ln35UTXuryvjzkjGdRyf9b2lTXuSYUiPmzRcl3FDtYqAwOnTJkAngD9SWhnoJzDbTKwaOrZ+STtxNQ==", - "optional": true, - "peer": true, "dependencies": { "unique-slug": "^2.0.0" } @@ -23981,8 +24145,6 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-2.0.2.tgz", "integrity": "sha512-zoWr9ObaxALD3DOPfjPSqxt4fnZiWblxHIgeWqW8x7UqDzEtHEQLzji2cuJYQFCU6KmoJikOYAZlrTHHebjx2w==", - "optional": true, - "peer": true, "dependencies": { "imurmurhash": "^0.1.4" } @@ -24155,8 +24317,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/validate-npm-package-name/-/validate-npm-package-name-3.0.0.tgz", "integrity": "sha512-M6w37eVCMMouJ9V/sdPGnC5H4uDr73/+xdq0FBLO3TFFX1+7wiUY6Es328NN+y43tmY+doUdN9g9J21vqB7iLw==", - "optional": true, - "peer": true, "dependencies": { "builtins": "^1.0.3" } @@ -24164,9 +24324,7 @@ "node_modules/validate-npm-package-name/node_modules/builtins": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/builtins/-/builtins-1.0.3.tgz", - "integrity": "sha512-uYBjakWipfaO/bXI7E8rq6kpwHRZK5cNYrUv2OzZSI/FvmdMyXJ2tG9dKcjEC5YHmHpUAwsargWIZNWdxb/bnQ==", - "optional": true, - "peer": true + "integrity": "sha512-uYBjakWipfaO/bXI7E8rq6kpwHRZK5cNYrUv2OzZSI/FvmdMyXJ2tG9dKcjEC5YHmHpUAwsargWIZNWdxb/bnQ==" }, "node_modules/validator": { "version": "13.11.0", @@ -24449,8 +24607,6 @@ "version": "2.4.3", "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-2.4.3.tgz", "integrity": "sha512-GaETH5wwsX+GcnzhPgKcKjJ6M2Cq3/iZp1WyY/X1CSqrW+jVNM9Y7D8EC2sM4ZG/V8wZlSniJnCKWPmBYAucRQ==", - "optional": true, - "peer": true, "dependencies": { "graceful-fs": "^4.1.11", "imurmurhash": "^0.1.4", diff --git a/test/unit/resource-mapper-test.js b/test/unit/resource-mapper-test.js index 7217c509..7d371af8 100644 --- a/test/unit/resource-mapper-test.js +++ b/test/unit/resource-mapper-test.js @@ -143,12 +143,19 @@ describe('ResourceMapper', () => { // GET/HEAD/POST/DELETE/PATCH base cases - itMapsUrl(mapper, 'a URL of a non-existing file', + itMapsUrl(mapper, 'a URL of a non-existent folder', + { + url: 'http://localhost/space/foo/' + }, + [/* no files */], + new Error('/space/foo/ Resource not found')) + + itMapsUrl(mapper, 'a URL of a non-existent file', { url: 'http://localhost/space/foo.html' }, [/* no files */], - new Error('Resource not found: /space/foo.html')) + new Error('/space/foo.html Resource not found')) itMapsUrl(mapper, 'a URL of an existing file with extension', { @@ -328,6 +335,9 @@ describe('ResourceMapper', () => { { url: 'http://localhost/space/' }, + [ + `${rootPath}space/.meta` // fs.readdir mock needs one file + ], { path: `${rootPath}space/`, contentType: 'text/turtle' @@ -673,6 +683,7 @@ function mapsUrl (it, mapper, label, options, files, expected) { function mockReaddir () { mapper._readdir = async (path) => { expect(path.startsWith(`${rootPath}space/`)).to.equal(true) + if (!files.length) return return files.map(f => f.replace(/.*\//, '')) } }