mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-02-04 01:24:31 +00:00
Compare commits
2 Commits
master
...
copilot/su
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
131ffe643a | ||
|
|
9b2fb0c04e |
8043
package-lock.json
generated
8043
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
27
package.json
27
package.json
@@ -4,7 +4,7 @@
|
|||||||
"description": "Cosmos Explorer",
|
"description": "Cosmos Explorer",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@azure/arm-cosmosdb": "16.4.0",
|
"@azure/arm-cosmosdb": "9.1.0",
|
||||||
"@azure/cosmos": "4.7.0",
|
"@azure/cosmos": "4.7.0",
|
||||||
"@azure/cosmos-language-service": "0.0.5",
|
"@azure/cosmos-language-service": "0.0.5",
|
||||||
"@azure/identity": "4.5.0",
|
"@azure/identity": "4.5.0",
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
"@nteract/commutable": "7.5.1",
|
"@nteract/commutable": "7.5.1",
|
||||||
"@nteract/connected-components": "6.8.2",
|
"@nteract/connected-components": "6.8.2",
|
||||||
"@nteract/core": "15.1.9",
|
"@nteract/core": "15.1.9",
|
||||||
"@nteract/data-explorer": "8.2.12",
|
"@nteract/data-explorer": "8.0.3",
|
||||||
"@nteract/directory-listing": "2.0.6",
|
"@nteract/directory-listing": "2.0.6",
|
||||||
"@nteract/dropdown-menu": "1.0.1",
|
"@nteract/dropdown-menu": "1.0.1",
|
||||||
"@nteract/editor": "10.1.12",
|
"@nteract/editor": "10.1.12",
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
"@nteract/monaco-editor": "3.2.2",
|
"@nteract/monaco-editor": "3.2.2",
|
||||||
"@nteract/octicons": "2.0.0",
|
"@nteract/octicons": "2.0.0",
|
||||||
"@nteract/outputs": "3.0.9",
|
"@nteract/outputs": "3.0.9",
|
||||||
"@nteract/presentational-components": "3.4.12",
|
"@nteract/presentational-components": "3.0.7",
|
||||||
"@nteract/stateful-components": "1.7.0",
|
"@nteract/stateful-components": "1.7.0",
|
||||||
"@nteract/styles": "2.0.2",
|
"@nteract/styles": "2.0.2",
|
||||||
"@nteract/transform-geojson": "5.1.8",
|
"@nteract/transform-geojson": "5.1.8",
|
||||||
@@ -51,7 +51,7 @@
|
|||||||
"allotment": "1.20.2",
|
"allotment": "1.20.2",
|
||||||
"applicationinsights": "1.8.0",
|
"applicationinsights": "1.8.0",
|
||||||
"bootstrap": "3.4.1",
|
"bootstrap": "3.4.1",
|
||||||
"canvas": "3.2.1",
|
"canvas": "2.11.2",
|
||||||
"clean-webpack-plugin": "4.0.0",
|
"clean-webpack-plugin": "4.0.0",
|
||||||
"clipboard-copy": "4.0.1",
|
"clipboard-copy": "4.0.1",
|
||||||
"copy-webpack-plugin": "11.0.0",
|
"copy-webpack-plugin": "11.0.0",
|
||||||
@@ -70,7 +70,7 @@
|
|||||||
"html2canvas": "1.0.0-rc.5",
|
"html2canvas": "1.0.0-rc.5",
|
||||||
"i18next": "23.11.5",
|
"i18next": "23.11.5",
|
||||||
"i18next-browser-languagedetector": "6.0.1",
|
"i18next-browser-languagedetector": "6.0.1",
|
||||||
"i18next-http-backend": "3.0.2",
|
"i18next-http-backend": "1.0.23",
|
||||||
"iframe-resizer-react": "1.1.0",
|
"iframe-resizer-react": "1.1.0",
|
||||||
"immer": "9.0.6",
|
"immer": "9.0.6",
|
||||||
"immutable": "4.0.0-rc.12",
|
"immutable": "4.0.0-rc.12",
|
||||||
@@ -79,6 +79,7 @@
|
|||||||
"jquery-typeahead": "2.11.1",
|
"jquery-typeahead": "2.11.1",
|
||||||
"jquery-ui-dist": "1.13.2",
|
"jquery-ui-dist": "1.13.2",
|
||||||
"knockout": "3.5.1",
|
"knockout": "3.5.1",
|
||||||
|
"loader-utils": "2.0.3",
|
||||||
"mkdirp": "1.0.4",
|
"mkdirp": "1.0.4",
|
||||||
"monaco-editor": "0.44.0",
|
"monaco-editor": "0.44.0",
|
||||||
"ms": "2.1.3",
|
"ms": "2.1.3",
|
||||||
@@ -110,10 +111,9 @@
|
|||||||
"tinykeys": "2.1.0",
|
"tinykeys": "2.1.0",
|
||||||
"underscore": "1.12.1",
|
"underscore": "1.12.1",
|
||||||
"utility-types": "3.10.0",
|
"utility-types": "3.10.0",
|
||||||
"uuid": "9.0.0",
|
|
||||||
"web-vitals": "4.2.4",
|
"web-vitals": "4.2.4",
|
||||||
"zustand": "3.5.0",
|
"uuid": "9.0.0",
|
||||||
"ws": "8.17.1"
|
"zustand": "3.5.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "7.24.7",
|
"@babel/core": "7.24.7",
|
||||||
@@ -134,7 +134,7 @@
|
|||||||
"@types/hasher": "0.0.31",
|
"@types/hasher": "0.0.31",
|
||||||
"@types/jest": "29.5.12",
|
"@types/jest": "29.5.12",
|
||||||
"@types/jquery": "3.5.29",
|
"@types/jquery": "3.5.29",
|
||||||
"@types/node": "18.19.0",
|
"@types/node": "12.11.1",
|
||||||
"@types/post-robot": "10.0.1",
|
"@types/post-robot": "10.0.1",
|
||||||
"@types/q": "1.5.1",
|
"@types/q": "1.5.1",
|
||||||
"@types/react": "17.0.44",
|
"@types/react": "17.0.44",
|
||||||
@@ -177,7 +177,7 @@
|
|||||||
"jest-html-loader": "1.0.0",
|
"jest-html-loader": "1.0.0",
|
||||||
"jest-react-hooks-shallow": "1.5.1",
|
"jest-react-hooks-shallow": "1.5.1",
|
||||||
"jest-trx-results-processor": "3.0.2",
|
"jest-trx-results-processor": "3.0.2",
|
||||||
"less": "4.5.1",
|
"less": "3.8.1",
|
||||||
"less-loader": "11.1.3",
|
"less-loader": "11.1.3",
|
||||||
"less-vars-loader": "1.1.0",
|
"less-vars-loader": "1.1.0",
|
||||||
"mini-css-extract-plugin": "2.1.0",
|
"mini-css-extract-plugin": "2.1.0",
|
||||||
@@ -195,12 +195,11 @@
|
|||||||
"typedoc": "0.26.2",
|
"typedoc": "0.26.2",
|
||||||
"typescript": "4.9.5",
|
"typescript": "4.9.5",
|
||||||
"url-loader": "4.1.1",
|
"url-loader": "4.1.1",
|
||||||
"wait-on": "9.0.3",
|
"wait-on": "4.0.2",
|
||||||
"webpack": "5.88.2",
|
"webpack": "5.88.2",
|
||||||
"webpack-bundle-analyzer": "5.2.0",
|
"webpack-bundle-analyzer": "4.9.1",
|
||||||
"webpack-cli": "5.1.4",
|
"webpack-cli": "5.1.4",
|
||||||
"webpack-dev-server": "5.2.3",
|
"webpack-dev-server": "4.15.2"
|
||||||
"ws": "8.17.1"
|
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"postinstall": "patch-package",
|
"postinstall": "patch-package",
|
||||||
|
|||||||
574
preview/package-lock.json
generated
574
preview/package-lock.json
generated
@@ -8,8 +8,8 @@
|
|||||||
"name": "cosmos-explorer-preview",
|
"name": "cosmos-explorer-preview",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"body-parser": "^2.2.2",
|
"body-parser": "^1.20.3",
|
||||||
"express": "^5.2.1",
|
"express": "^4.21.2",
|
||||||
"http-proxy-middleware": "^3.0.3",
|
"http-proxy-middleware": "^3.0.3",
|
||||||
"node": "^20.19.5",
|
"node": "^20.19.5",
|
||||||
"node-fetch": "^2.6.1",
|
"node-fetch": "^2.6.1",
|
||||||
@@ -18,7 +18,8 @@
|
|||||||
},
|
},
|
||||||
"node_modules/@types/http-proxy": {
|
"node_modules/@types/http-proxy": {
|
||||||
"version": "1.17.16",
|
"version": "1.17.16",
|
||||||
"license": "MIT",
|
"resolved": "https://registry.npmjs.org/@types/http-proxy/-/http-proxy-1.17.16.tgz",
|
||||||
|
"integrity": "sha512-sdWoUajOB1cd0A8cRRQ1cfyWNbmFKLAqBB89Y8x5iYyG/mkJHc0YUH8pdWBy2omi9qtCpiIgGjuwO0dQST2l5w==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/node": "*"
|
"@types/node": "*"
|
||||||
}
|
}
|
||||||
@@ -28,40 +29,50 @@
|
|||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/accepts": {
|
"node_modules/accepts": {
|
||||||
"version": "2.0.0",
|
"version": "1.3.8",
|
||||||
"resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz",
|
"license": "MIT",
|
||||||
"integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==",
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"mime-types": "^3.0.0",
|
"mime-types": "~2.1.34",
|
||||||
"negotiator": "^1.0.0"
|
"negotiator": "0.6.3"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 0.6"
|
"node": ">= 0.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/body-parser": {
|
"node_modules/body-parser": {
|
||||||
"version": "2.2.2",
|
"version": "1.20.3",
|
||||||
"resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.2.2.tgz",
|
"resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz",
|
||||||
"integrity": "sha512-oP5VkATKlNwcgvxi0vM0p/D3n2C3EReYVX+DNYs5TjZFn/oQt2j+4sVJtSMr18pdRr8wjTcBl6LoV+FUwzPmNA==",
|
"integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bytes": "^3.1.2",
|
"bytes": "3.1.2",
|
||||||
"content-type": "^1.0.5",
|
"content-type": "~1.0.5",
|
||||||
"debug": "^4.4.3",
|
"debug": "2.6.9",
|
||||||
"http-errors": "^2.0.0",
|
"depd": "2.0.0",
|
||||||
"iconv-lite": "^0.7.0",
|
"destroy": "1.2.0",
|
||||||
"on-finished": "^2.4.1",
|
"http-errors": "2.0.0",
|
||||||
"qs": "^6.14.1",
|
"iconv-lite": "0.4.24",
|
||||||
"raw-body": "^3.0.1",
|
"on-finished": "2.4.1",
|
||||||
"type-is": "^2.0.1"
|
"qs": "6.13.0",
|
||||||
|
"raw-body": "2.5.2",
|
||||||
|
"type-is": "~1.6.18",
|
||||||
|
"unpipe": "1.0.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">= 0.8",
|
||||||
},
|
"npm": "1.2.8000 || >= 1.4.16"
|
||||||
"funding": {
|
|
||||||
"type": "opencollective",
|
|
||||||
"url": "https://opencollective.com/express"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/body-parser/node_modules/debug": {
|
||||||
|
"version": "2.6.9",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"ms": "2.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/body-parser/node_modules/ms": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
"node_modules/bytes": {
|
"node_modules/bytes": {
|
||||||
"version": "3.1.2",
|
"version": "3.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
|
||||||
@@ -72,7 +83,8 @@
|
|||||||
},
|
},
|
||||||
"node_modules/call-bind-apply-helpers": {
|
"node_modules/call-bind-apply-helpers": {
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"license": "MIT",
|
"resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
|
||||||
|
"integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"es-errors": "^1.3.0",
|
"es-errors": "^1.3.0",
|
||||||
"function-bind": "^1.1.2"
|
"function-bind": "^1.1.2"
|
||||||
@@ -83,7 +95,8 @@
|
|||||||
},
|
},
|
||||||
"node_modules/call-bound": {
|
"node_modules/call-bound": {
|
||||||
"version": "1.0.4",
|
"version": "1.0.4",
|
||||||
"license": "MIT",
|
"resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz",
|
||||||
|
"integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"call-bind-apply-helpers": "^1.0.2",
|
"call-bind-apply-helpers": "^1.0.2",
|
||||||
"get-intrinsic": "^1.3.0"
|
"get-intrinsic": "^1.3.0"
|
||||||
@@ -96,15 +109,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/content-disposition": {
|
"node_modules/content-disposition": {
|
||||||
"version": "1.0.1",
|
"version": "0.5.4",
|
||||||
"resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.0.1.tgz",
|
"license": "MIT",
|
||||||
"integrity": "sha512-oIXISMynqSqm241k6kcQ5UwttDILMK4BiurCfGEREw6+X9jkkpEe5T9FZaApyLGGOnFuyMWZpdolTXMtvEJ08Q==",
|
"dependencies": {
|
||||||
"engines": {
|
"safe-buffer": "5.2.1"
|
||||||
"node": ">=18"
|
|
||||||
},
|
},
|
||||||
"funding": {
|
"engines": {
|
||||||
"type": "opencollective",
|
"node": ">= 0.6"
|
||||||
"url": "https://opencollective.com/express"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/content-type": {
|
"node_modules/content-type": {
|
||||||
@@ -116,22 +127,20 @@
|
|||||||
},
|
},
|
||||||
"node_modules/cookie": {
|
"node_modules/cookie": {
|
||||||
"version": "0.7.1",
|
"version": "0.7.1",
|
||||||
"license": "MIT",
|
"resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz",
|
||||||
|
"integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 0.6"
|
"node": ">= 0.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/cookie-signature": {
|
"node_modules/cookie-signature": {
|
||||||
"version": "1.2.2",
|
"version": "1.0.6",
|
||||||
"resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz",
|
"license": "MIT"
|
||||||
"integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=6.6.0"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"node_modules/debug": {
|
"node_modules/debug": {
|
||||||
"version": "4.4.3",
|
"version": "4.4.3",
|
||||||
"license": "MIT",
|
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
|
||||||
|
"integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ms": "^2.1.3"
|
"ms": "^2.1.3"
|
||||||
},
|
},
|
||||||
@@ -151,9 +160,18 @@
|
|||||||
"node": ">= 0.8"
|
"node": ">= 0.8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/destroy": {
|
||||||
|
"version": "1.2.0",
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 0.8",
|
||||||
|
"npm": "1.2.8000 || >= 1.4.16"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/dunder-proto": {
|
"node_modules/dunder-proto": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"license": "MIT",
|
"resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
|
||||||
|
"integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"call-bind-apply-helpers": "^1.0.1",
|
"call-bind-apply-helpers": "^1.0.1",
|
||||||
"es-errors": "^1.3.0",
|
"es-errors": "^1.3.0",
|
||||||
@@ -177,21 +195,24 @@
|
|||||||
},
|
},
|
||||||
"node_modules/es-define-property": {
|
"node_modules/es-define-property": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"license": "MIT",
|
"resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
|
||||||
|
"integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 0.4"
|
"node": ">= 0.4"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/es-errors": {
|
"node_modules/es-errors": {
|
||||||
"version": "1.3.0",
|
"version": "1.3.0",
|
||||||
"license": "MIT",
|
"resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
|
||||||
|
"integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 0.4"
|
"node": ">= 0.4"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/es-object-atoms": {
|
"node_modules/es-object-atoms": {
|
||||||
"version": "1.1.1",
|
"version": "1.1.1",
|
||||||
"license": "MIT",
|
"resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",
|
||||||
|
"integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"es-errors": "^1.3.0"
|
"es-errors": "^1.3.0"
|
||||||
},
|
},
|
||||||
@@ -217,67 +238,95 @@
|
|||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/express": {
|
"node_modules/express": {
|
||||||
"version": "5.2.1",
|
"version": "4.21.2",
|
||||||
"resolved": "https://registry.npmjs.org/express/-/express-5.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/express/-/express-4.21.2.tgz",
|
||||||
"integrity": "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==",
|
"integrity": "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"accepts": "^2.0.0",
|
"accepts": "~1.3.8",
|
||||||
"body-parser": "^2.2.1",
|
"array-flatten": "1.1.1",
|
||||||
"content-disposition": "^1.0.0",
|
"body-parser": "1.20.3",
|
||||||
"content-type": "^1.0.5",
|
"content-disposition": "0.5.4",
|
||||||
"cookie": "^0.7.1",
|
"content-type": "~1.0.4",
|
||||||
"cookie-signature": "^1.2.1",
|
"cookie": "0.7.1",
|
||||||
"debug": "^4.4.0",
|
"cookie-signature": "1.0.6",
|
||||||
"depd": "^2.0.0",
|
"debug": "2.6.9",
|
||||||
"encodeurl": "^2.0.0",
|
"depd": "2.0.0",
|
||||||
"escape-html": "^1.0.3",
|
"encodeurl": "~2.0.0",
|
||||||
"etag": "^1.8.1",
|
"escape-html": "~1.0.3",
|
||||||
"finalhandler": "^2.1.0",
|
"etag": "~1.8.1",
|
||||||
"fresh": "^2.0.0",
|
"finalhandler": "1.3.1",
|
||||||
"http-errors": "^2.0.0",
|
"fresh": "0.5.2",
|
||||||
"merge-descriptors": "^2.0.0",
|
"http-errors": "2.0.0",
|
||||||
"mime-types": "^3.0.0",
|
"merge-descriptors": "1.0.3",
|
||||||
"on-finished": "^2.4.1",
|
"methods": "~1.1.2",
|
||||||
"once": "^1.4.0",
|
"on-finished": "2.4.1",
|
||||||
"parseurl": "^1.3.3",
|
"parseurl": "~1.3.3",
|
||||||
"proxy-addr": "^2.0.7",
|
"path-to-regexp": "0.1.12",
|
||||||
"qs": "^6.14.0",
|
"proxy-addr": "~2.0.7",
|
||||||
"range-parser": "^1.2.1",
|
"qs": "6.13.0",
|
||||||
"router": "^2.2.0",
|
"range-parser": "~1.2.1",
|
||||||
"send": "^1.1.0",
|
"safe-buffer": "5.2.1",
|
||||||
"serve-static": "^2.2.0",
|
"send": "0.19.0",
|
||||||
"statuses": "^2.0.1",
|
"serve-static": "1.16.2",
|
||||||
"type-is": "^2.0.1",
|
"setprototypeof": "1.2.0",
|
||||||
"vary": "^1.1.2"
|
"statuses": "2.0.1",
|
||||||
|
"type-is": "~1.6.18",
|
||||||
|
"utils-merge": "1.0.1",
|
||||||
|
"vary": "~1.1.2"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 18"
|
"node": ">= 0.10.0"
|
||||||
},
|
},
|
||||||
"funding": {
|
"funding": {
|
||||||
"type": "opencollective",
|
"type": "opencollective",
|
||||||
"url": "https://opencollective.com/express"
|
"url": "https://opencollective.com/express"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/express/node_modules/array-flatten": {
|
||||||
|
"version": "1.1.1",
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
|
"node_modules/express/node_modules/debug": {
|
||||||
|
"version": "2.6.9",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"ms": "2.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/express/node_modules/ms": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
"node_modules/finalhandler": {
|
"node_modules/finalhandler": {
|
||||||
"version": "2.1.1",
|
"version": "1.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz",
|
||||||
"integrity": "sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==",
|
"integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"debug": "^4.4.0",
|
"debug": "2.6.9",
|
||||||
"encodeurl": "^2.0.0",
|
"encodeurl": "~2.0.0",
|
||||||
"escape-html": "^1.0.3",
|
"escape-html": "~1.0.3",
|
||||||
"on-finished": "^2.4.1",
|
"on-finished": "2.4.1",
|
||||||
"parseurl": "^1.3.3",
|
"parseurl": "~1.3.3",
|
||||||
"statuses": "^2.0.1"
|
"statuses": "2.0.1",
|
||||||
|
"unpipe": "~1.0.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 18.0.0"
|
"node": ">= 0.8"
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"type": "opencollective",
|
|
||||||
"url": "https://opencollective.com/express"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/finalhandler/node_modules/debug": {
|
||||||
|
"version": "2.6.9",
|
||||||
|
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
|
||||||
|
"integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
|
||||||
|
"dependencies": {
|
||||||
|
"ms": "2.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/finalhandler/node_modules/ms": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
|
||||||
|
"integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="
|
||||||
|
},
|
||||||
"node_modules/follow-redirects": {
|
"node_modules/follow-redirects": {
|
||||||
"version": "1.15.3",
|
"version": "1.15.3",
|
||||||
"funding": [
|
"funding": [
|
||||||
@@ -304,23 +353,25 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/fresh": {
|
"node_modules/fresh": {
|
||||||
"version": "2.0.0",
|
"version": "0.5.2",
|
||||||
"resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
|
||||||
"integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==",
|
"integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 0.8"
|
"node": ">= 0.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/function-bind": {
|
"node_modules/function-bind": {
|
||||||
"version": "1.1.2",
|
"version": "1.1.2",
|
||||||
"license": "MIT",
|
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
|
||||||
|
"integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
|
||||||
"funding": {
|
"funding": {
|
||||||
"url": "https://github.com/sponsors/ljharb"
|
"url": "https://github.com/sponsors/ljharb"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/get-intrinsic": {
|
"node_modules/get-intrinsic": {
|
||||||
"version": "1.3.0",
|
"version": "1.3.0",
|
||||||
"license": "MIT",
|
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
|
||||||
|
"integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"call-bind-apply-helpers": "^1.0.2",
|
"call-bind-apply-helpers": "^1.0.2",
|
||||||
"es-define-property": "^1.0.1",
|
"es-define-property": "^1.0.1",
|
||||||
@@ -342,7 +393,8 @@
|
|||||||
},
|
},
|
||||||
"node_modules/get-proto": {
|
"node_modules/get-proto": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"license": "MIT",
|
"resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
|
||||||
|
"integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"dunder-proto": "^1.0.1",
|
"dunder-proto": "^1.0.1",
|
||||||
"es-object-atoms": "^1.0.0"
|
"es-object-atoms": "^1.0.0"
|
||||||
@@ -353,7 +405,8 @@
|
|||||||
},
|
},
|
||||||
"node_modules/gopd": {
|
"node_modules/gopd": {
|
||||||
"version": "1.2.0",
|
"version": "1.2.0",
|
||||||
"license": "MIT",
|
"resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
|
||||||
|
"integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 0.4"
|
"node": ">= 0.4"
|
||||||
},
|
},
|
||||||
@@ -363,7 +416,8 @@
|
|||||||
},
|
},
|
||||||
"node_modules/has-symbols": {
|
"node_modules/has-symbols": {
|
||||||
"version": "1.1.0",
|
"version": "1.1.0",
|
||||||
"license": "MIT",
|
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 0.4"
|
"node": ">= 0.4"
|
||||||
},
|
},
|
||||||
@@ -373,7 +427,8 @@
|
|||||||
},
|
},
|
||||||
"node_modules/hasown": {
|
"node_modules/hasown": {
|
||||||
"version": "2.0.2",
|
"version": "2.0.2",
|
||||||
"license": "MIT",
|
"resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
|
||||||
|
"integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"function-bind": "^1.1.2"
|
"function-bind": "^1.1.2"
|
||||||
},
|
},
|
||||||
@@ -382,22 +437,17 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/http-errors": {
|
"node_modules/http-errors": {
|
||||||
"version": "2.0.1",
|
"version": "2.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz",
|
"license": "MIT",
|
||||||
"integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==",
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"depd": "~2.0.0",
|
"depd": "2.0.0",
|
||||||
"inherits": "~2.0.4",
|
"inherits": "2.0.4",
|
||||||
"setprototypeof": "~1.2.0",
|
"setprototypeof": "1.2.0",
|
||||||
"statuses": "~2.0.2",
|
"statuses": "2.0.1",
|
||||||
"toidentifier": "~1.0.1"
|
"toidentifier": "1.0.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 0.8"
|
"node": ">= 0.8"
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"type": "opencollective",
|
|
||||||
"url": "https://opencollective.com/express"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/http-proxy": {
|
"node_modules/http-proxy": {
|
||||||
@@ -414,7 +464,8 @@
|
|||||||
},
|
},
|
||||||
"node_modules/http-proxy-middleware": {
|
"node_modules/http-proxy-middleware": {
|
||||||
"version": "3.0.5",
|
"version": "3.0.5",
|
||||||
"license": "MIT",
|
"resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-3.0.5.tgz",
|
||||||
|
"integrity": "sha512-GLZZm1X38BPY4lkXA01jhwxvDoOkkXqjgVyUzVxiEK4iuRu03PZoYHhHRwxnfhQMDuaxi3vVri0YgSro/1oWqg==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/http-proxy": "^1.17.15",
|
"@types/http-proxy": "^1.17.15",
|
||||||
"debug": "^4.3.6",
|
"debug": "^4.3.6",
|
||||||
@@ -429,7 +480,8 @@
|
|||||||
},
|
},
|
||||||
"node_modules/http-proxy-middleware/node_modules/braces": {
|
"node_modules/http-proxy-middleware/node_modules/braces": {
|
||||||
"version": "3.0.3",
|
"version": "3.0.3",
|
||||||
"license": "MIT",
|
"resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
|
||||||
|
"integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"fill-range": "^7.1.1"
|
"fill-range": "^7.1.1"
|
||||||
},
|
},
|
||||||
@@ -439,7 +491,8 @@
|
|||||||
},
|
},
|
||||||
"node_modules/http-proxy-middleware/node_modules/fill-range": {
|
"node_modules/http-proxy-middleware/node_modules/fill-range": {
|
||||||
"version": "7.1.1",
|
"version": "7.1.1",
|
||||||
"license": "MIT",
|
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
|
||||||
|
"integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"to-regex-range": "^5.0.1"
|
"to-regex-range": "^5.0.1"
|
||||||
},
|
},
|
||||||
@@ -449,14 +502,16 @@
|
|||||||
},
|
},
|
||||||
"node_modules/http-proxy-middleware/node_modules/is-number": {
|
"node_modules/http-proxy-middleware/node_modules/is-number": {
|
||||||
"version": "7.0.0",
|
"version": "7.0.0",
|
||||||
"license": "MIT",
|
"resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
|
||||||
|
"integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=0.12.0"
|
"node": ">=0.12.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/http-proxy-middleware/node_modules/micromatch": {
|
"node_modules/http-proxy-middleware/node_modules/micromatch": {
|
||||||
"version": "4.0.8",
|
"version": "4.0.8",
|
||||||
"license": "MIT",
|
"resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",
|
||||||
|
"integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"braces": "^3.0.3",
|
"braces": "^3.0.3",
|
||||||
"picomatch": "^2.3.1"
|
"picomatch": "^2.3.1"
|
||||||
@@ -467,7 +522,8 @@
|
|||||||
},
|
},
|
||||||
"node_modules/http-proxy-middleware/node_modules/to-regex-range": {
|
"node_modules/http-proxy-middleware/node_modules/to-regex-range": {
|
||||||
"version": "5.0.1",
|
"version": "5.0.1",
|
||||||
"license": "MIT",
|
"resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
|
||||||
|
"integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"is-number": "^7.0.0"
|
"is-number": "^7.0.0"
|
||||||
},
|
},
|
||||||
@@ -476,18 +532,14 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/iconv-lite": {
|
"node_modules/iconv-lite": {
|
||||||
"version": "0.7.2",
|
"version": "0.4.24",
|
||||||
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.2.tgz",
|
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
|
||||||
"integrity": "sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw==",
|
"integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"safer-buffer": ">= 2.1.2 < 3.0.0"
|
"safer-buffer": ">= 2.1.2 < 3"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=0.10.0"
|
"node": ">=0.10.0"
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"type": "opencollective",
|
|
||||||
"url": "https://opencollective.com/express"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/inherits": {
|
"node_modules/inherits": {
|
||||||
@@ -518,58 +570,62 @@
|
|||||||
"node": ">=0.10.0"
|
"node": ">=0.10.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/is-promise": {
|
|
||||||
"version": "4.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz",
|
|
||||||
"integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ=="
|
|
||||||
},
|
|
||||||
"node_modules/math-intrinsics": {
|
"node_modules/math-intrinsics": {
|
||||||
"version": "1.1.0",
|
"version": "1.1.0",
|
||||||
"license": "MIT",
|
"resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 0.4"
|
"node": ">= 0.4"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/media-typer": {
|
"node_modules/media-typer": {
|
||||||
"version": "1.1.0",
|
"version": "0.3.0",
|
||||||
"resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz",
|
"license": "MIT",
|
||||||
"integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==",
|
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 0.8"
|
"node": ">= 0.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/merge-descriptors": {
|
"node_modules/merge-descriptors": {
|
||||||
"version": "2.0.0",
|
"version": "1.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz",
|
||||||
"integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==",
|
"integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==",
|
||||||
"engines": {
|
|
||||||
"node": ">=18"
|
|
||||||
},
|
|
||||||
"funding": {
|
"funding": {
|
||||||
"url": "https://github.com/sponsors/sindresorhus"
|
"url": "https://github.com/sponsors/sindresorhus"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/methods": {
|
||||||
|
"version": "1.1.2",
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 0.6"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/mime": {
|
||||||
|
"version": "1.6.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
|
||||||
|
"integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
|
||||||
|
"bin": {
|
||||||
|
"mime": "cli.js"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=4"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/mime-db": {
|
"node_modules/mime-db": {
|
||||||
"version": "1.54.0",
|
"version": "1.52.0",
|
||||||
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz",
|
"license": "MIT",
|
||||||
"integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==",
|
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 0.6"
|
"node": ">= 0.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/mime-types": {
|
"node_modules/mime-types": {
|
||||||
"version": "3.0.2",
|
"version": "2.1.35",
|
||||||
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz",
|
"license": "MIT",
|
||||||
"integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==",
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"mime-db": "^1.54.0"
|
"mime-db": "1.52.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">= 0.6"
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"type": "opencollective",
|
|
||||||
"url": "https://opencollective.com/express"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/ms": {
|
"node_modules/ms": {
|
||||||
@@ -577,27 +633,32 @@
|
|||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/negotiator": {
|
"node_modules/negotiator": {
|
||||||
"version": "1.0.0",
|
"version": "0.6.3",
|
||||||
"resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz",
|
"license": "MIT",
|
||||||
"integrity": "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==",
|
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 0.6"
|
"node": ">= 0.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/node": {
|
"node_modules/node": {
|
||||||
"version": "20.19.5",
|
"version": "20.19.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/node/-/node-20.19.5.tgz",
|
||||||
|
"integrity": "sha512-9fJOHEP8AVrwpbhlUxnbudW8IbkseQVxl4yNQyI/rDfP+gNwKEmfPtBc/Luyf677i5Y0HKIBHiApiB9S9vvxKw==",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "ISC",
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"node-bin-setup": "^1.0.0"
|
"node-bin-setup": "^1.0.0"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"node": "bin/node.exe"
|
"node": "bin/node"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"npm": ">=5.0.0"
|
"npm": ">=5.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/node-bin-setup": {
|
||||||
|
"version": "1.1.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/node-bin-setup/-/node-bin-setup-1.1.4.tgz",
|
||||||
|
"integrity": "sha512-vWNHOne0ZUavArqPP5LJta50+S8R261Fr5SvGul37HbEDcowvLjwdvd0ZeSr0r2lTSrPxl6okq9QUw8BFGiAxA=="
|
||||||
|
},
|
||||||
"node_modules/node-fetch": {
|
"node_modules/node-fetch": {
|
||||||
"version": "2.6.7",
|
"version": "2.6.7",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@@ -616,13 +677,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/node/node_modules/node-bin-setup": {
|
|
||||||
"version": "1.1.4",
|
|
||||||
"license": "ISC"
|
|
||||||
},
|
|
||||||
"node_modules/object-inspect": {
|
"node_modules/object-inspect": {
|
||||||
"version": "1.13.4",
|
"version": "1.13.4",
|
||||||
"license": "MIT",
|
"resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz",
|
||||||
|
"integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 0.4"
|
"node": ">= 0.4"
|
||||||
},
|
},
|
||||||
@@ -640,14 +698,6 @@
|
|||||||
"node": ">= 0.8"
|
"node": ">= 0.8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/once": {
|
|
||||||
"version": "1.4.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
|
|
||||||
"integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
|
|
||||||
"dependencies": {
|
|
||||||
"wrappy": "1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/parseurl": {
|
"node_modules/parseurl": {
|
||||||
"version": "1.3.3",
|
"version": "1.3.3",
|
||||||
"resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
|
"resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
|
||||||
@@ -658,7 +708,8 @@
|
|||||||
},
|
},
|
||||||
"node_modules/path-to-regexp": {
|
"node_modules/path-to-regexp": {
|
||||||
"version": "0.1.12",
|
"version": "0.1.12",
|
||||||
"license": "MIT"
|
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz",
|
||||||
|
"integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ=="
|
||||||
},
|
},
|
||||||
"node_modules/picomatch": {
|
"node_modules/picomatch": {
|
||||||
"version": "2.3.1",
|
"version": "2.3.1",
|
||||||
@@ -689,10 +740,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/qs": {
|
"node_modules/qs": {
|
||||||
"version": "6.14.1",
|
"version": "6.13.0",
|
||||||
"license": "BSD-3-Clause",
|
"resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz",
|
||||||
|
"integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"side-channel": "^1.1.0"
|
"side-channel": "^1.0.6"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=0.6"
|
"node": ">=0.6"
|
||||||
@@ -710,46 +762,40 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/raw-body": {
|
"node_modules/raw-body": {
|
||||||
"version": "3.0.2",
|
"version": "2.5.2",
|
||||||
"resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz",
|
||||||
"integrity": "sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==",
|
"integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bytes": "~3.1.2",
|
"bytes": "3.1.2",
|
||||||
"http-errors": "~2.0.1",
|
"http-errors": "2.0.0",
|
||||||
"iconv-lite": "~0.7.0",
|
"iconv-lite": "0.4.24",
|
||||||
"unpipe": "~1.0.0"
|
"unpipe": "1.0.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 0.10"
|
"node": ">= 0.8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/requires-port": {
|
"node_modules/requires-port": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/router": {
|
"node_modules/safe-buffer": {
|
||||||
"version": "2.2.0",
|
"version": "5.2.1",
|
||||||
"resolved": "https://registry.npmjs.org/router/-/router-2.2.0.tgz",
|
"funding": [
|
||||||
"integrity": "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==",
|
{
|
||||||
"dependencies": {
|
"type": "github",
|
||||||
"debug": "^4.4.0",
|
"url": "https://github.com/sponsors/feross"
|
||||||
"depd": "^2.0.0",
|
|
||||||
"is-promise": "^4.0.0",
|
|
||||||
"parseurl": "^1.3.3",
|
|
||||||
"path-to-regexp": "^8.0.0"
|
|
||||||
},
|
},
|
||||||
"engines": {
|
{
|
||||||
"node": ">= 18"
|
"type": "patreon",
|
||||||
}
|
"url": "https://www.patreon.com/feross"
|
||||||
},
|
},
|
||||||
"node_modules/router/node_modules/path-to-regexp": {
|
{
|
||||||
"version": "8.3.0",
|
"type": "consulting",
|
||||||
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.3.0.tgz",
|
"url": "https://feross.org/support"
|
||||||
"integrity": "sha512-7jdwVIRtsP8MYpdXSwOS0YdD0Du+qOoF/AEPIt88PcCFrZCzx41oxku1jD88hZBwbNUIEfpqvuhjFaMAqMTWnA==",
|
|
||||||
"funding": {
|
|
||||||
"type": "opencollective",
|
|
||||||
"url": "https://opencollective.com/express"
|
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/safer-buffer": {
|
"node_modules/safer-buffer": {
|
||||||
"version": "2.1.2",
|
"version": "2.1.2",
|
||||||
@@ -757,46 +803,61 @@
|
|||||||
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
|
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
|
||||||
},
|
},
|
||||||
"node_modules/send": {
|
"node_modules/send": {
|
||||||
"version": "1.2.1",
|
"version": "0.19.0",
|
||||||
"resolved": "https://registry.npmjs.org/send/-/send-1.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz",
|
||||||
"integrity": "sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==",
|
"integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"debug": "^4.4.3",
|
"debug": "2.6.9",
|
||||||
"encodeurl": "^2.0.0",
|
"depd": "2.0.0",
|
||||||
"escape-html": "^1.0.3",
|
"destroy": "1.2.0",
|
||||||
"etag": "^1.8.1",
|
"encodeurl": "~1.0.2",
|
||||||
"fresh": "^2.0.0",
|
"escape-html": "~1.0.3",
|
||||||
"http-errors": "^2.0.1",
|
"etag": "~1.8.1",
|
||||||
"mime-types": "^3.0.2",
|
"fresh": "0.5.2",
|
||||||
"ms": "^2.1.3",
|
"http-errors": "2.0.0",
|
||||||
"on-finished": "^2.4.1",
|
"mime": "1.6.0",
|
||||||
"range-parser": "^1.2.1",
|
"ms": "2.1.3",
|
||||||
"statuses": "^2.0.2"
|
"on-finished": "2.4.1",
|
||||||
|
"range-parser": "~1.2.1",
|
||||||
|
"statuses": "2.0.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 18"
|
"node": ">= 0.8.0"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"funding": {
|
"node_modules/send/node_modules/debug": {
|
||||||
"type": "opencollective",
|
"version": "2.6.9",
|
||||||
"url": "https://opencollective.com/express"
|
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
|
||||||
|
"integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
|
||||||
|
"dependencies": {
|
||||||
|
"ms": "2.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/send/node_modules/debug/node_modules/ms": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
|
||||||
|
"integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="
|
||||||
|
},
|
||||||
|
"node_modules/send/node_modules/encodeurl": {
|
||||||
|
"version": "1.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
|
||||||
|
"integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==",
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 0.8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/serve-static": {
|
"node_modules/serve-static": {
|
||||||
"version": "2.2.1",
|
"version": "1.16.2",
|
||||||
"resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz",
|
||||||
"integrity": "sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==",
|
"integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"encodeurl": "^2.0.0",
|
"encodeurl": "~2.0.0",
|
||||||
"escape-html": "^1.0.3",
|
"escape-html": "~1.0.3",
|
||||||
"parseurl": "^1.3.3",
|
"parseurl": "~1.3.3",
|
||||||
"send": "^1.2.0"
|
"send": "0.19.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 18"
|
"node": ">= 0.8.0"
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"type": "opencollective",
|
|
||||||
"url": "https://opencollective.com/express"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/setprototypeof": {
|
"node_modules/setprototypeof": {
|
||||||
@@ -805,7 +866,8 @@
|
|||||||
},
|
},
|
||||||
"node_modules/side-channel": {
|
"node_modules/side-channel": {
|
||||||
"version": "1.1.0",
|
"version": "1.1.0",
|
||||||
"license": "MIT",
|
"resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"es-errors": "^1.3.0",
|
"es-errors": "^1.3.0",
|
||||||
"object-inspect": "^1.13.3",
|
"object-inspect": "^1.13.3",
|
||||||
@@ -822,7 +884,8 @@
|
|||||||
},
|
},
|
||||||
"node_modules/side-channel-list": {
|
"node_modules/side-channel-list": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"license": "MIT",
|
"resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz",
|
||||||
|
"integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"es-errors": "^1.3.0",
|
"es-errors": "^1.3.0",
|
||||||
"object-inspect": "^1.13.3"
|
"object-inspect": "^1.13.3"
|
||||||
@@ -836,7 +899,8 @@
|
|||||||
},
|
},
|
||||||
"node_modules/side-channel-map": {
|
"node_modules/side-channel-map": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"license": "MIT",
|
"resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",
|
||||||
|
"integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"call-bound": "^1.0.2",
|
"call-bound": "^1.0.2",
|
||||||
"es-errors": "^1.3.0",
|
"es-errors": "^1.3.0",
|
||||||
@@ -852,7 +916,8 @@
|
|||||||
},
|
},
|
||||||
"node_modules/side-channel-weakmap": {
|
"node_modules/side-channel-weakmap": {
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"license": "MIT",
|
"resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",
|
||||||
|
"integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"call-bound": "^1.0.2",
|
"call-bound": "^1.0.2",
|
||||||
"es-errors": "^1.3.0",
|
"es-errors": "^1.3.0",
|
||||||
@@ -868,9 +933,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/statuses": {
|
"node_modules/statuses": {
|
||||||
"version": "2.0.2",
|
"version": "2.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz",
|
"license": "MIT",
|
||||||
"integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==",
|
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 0.8"
|
"node": ">= 0.8"
|
||||||
}
|
}
|
||||||
@@ -887,13 +951,11 @@
|
|||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/type-is": {
|
"node_modules/type-is": {
|
||||||
"version": "2.0.1",
|
"version": "1.6.18",
|
||||||
"resolved": "https://registry.npmjs.org/type-is/-/type-is-2.0.1.tgz",
|
"license": "MIT",
|
||||||
"integrity": "sha512-OZs6gsjF4vMp32qrCbiVSkrFmXtG/AZhY3t0iAMrMBiAZyV9oALtXO8hsrHbMXF9x6L3grlFuwW2oAz7cav+Gw==",
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"content-type": "^1.0.5",
|
"media-typer": "0.3.0",
|
||||||
"media-typer": "^1.1.0",
|
"mime-types": "~2.1.24"
|
||||||
"mime-types": "^3.0.0"
|
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 0.6"
|
"node": ">= 0.6"
|
||||||
@@ -906,6 +968,13 @@
|
|||||||
"node": ">= 0.8"
|
"node": ">= 0.8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/utils-merge": {
|
||||||
|
"version": "1.0.1",
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 0.4.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/vary": {
|
"node_modules/vary": {
|
||||||
"version": "1.1.2",
|
"version": "1.1.2",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@@ -924,11 +993,6 @@
|
|||||||
"tr46": "~0.0.3",
|
"tr46": "~0.0.3",
|
||||||
"webidl-conversions": "^3.0.0"
|
"webidl-conversions": "^3.0.0"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"node_modules/wrappy": {
|
|
||||||
"version": "1.0.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
|
|
||||||
"integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,8 +11,8 @@
|
|||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "Microsoft Corporation",
|
"author": "Microsoft Corporation",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"body-parser": "^2.2.2",
|
"body-parser": "^1.20.3",
|
||||||
"express": "^5.2.1",
|
"express": "^4.21.2",
|
||||||
"http-proxy-middleware": "^3.0.3",
|
"http-proxy-middleware": "^3.0.3",
|
||||||
"node": "^20.19.5",
|
"node": "^20.19.5",
|
||||||
"node-fetch": "^2.6.1",
|
"node-fetch": "^2.6.1",
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ export function queryIterator(databaseId: string, collection: Collection, query:
|
|||||||
let continuationToken: string;
|
let continuationToken: string;
|
||||||
return {
|
return {
|
||||||
fetchNext: () => {
|
fetchNext: () => {
|
||||||
return queryDocuments(databaseId, collection, false, query, continuationToken).then((response) => {
|
return queryDocuments(databaseId, collection, false, query).then((response) => {
|
||||||
continuationToken = response.continuationToken;
|
continuationToken = response.continuationToken;
|
||||||
const headers: { [key: string]: string | number } = {};
|
const headers: { [key: string]: string | number } = {};
|
||||||
response.headers.forEach((value, key) => {
|
response.headers.forEach((value, key) => {
|
||||||
|
|||||||
@@ -275,7 +275,8 @@ export interface DataMaskingPolicy {
|
|||||||
startPosition: number;
|
startPosition: number;
|
||||||
length: number;
|
length: number;
|
||||||
}>;
|
}>;
|
||||||
excludedPaths?: string[];
|
excludedPaths: string[];
|
||||||
|
isPolicyEnabled: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface MaterializedView {
|
export interface MaterializedView {
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ jest.mock("../../../Common/dataAccess/updateCollection", () => ({
|
|||||||
dataMaskingPolicy: {
|
dataMaskingPolicy: {
|
||||||
includedPaths: [],
|
includedPaths: [],
|
||||||
excludedPaths: ["/excludedPath"],
|
excludedPaths: ["/excludedPath"],
|
||||||
|
isPolicyEnabled: true,
|
||||||
},
|
},
|
||||||
indexes: [],
|
indexes: [],
|
||||||
}),
|
}),
|
||||||
@@ -306,10 +307,12 @@ describe("SettingsComponent", () => {
|
|||||||
dataMaskingContent: {
|
dataMaskingContent: {
|
||||||
includedPaths: [],
|
includedPaths: [],
|
||||||
excludedPaths: ["/excludedPath"],
|
excludedPaths: ["/excludedPath"],
|
||||||
|
isPolicyEnabled: true,
|
||||||
},
|
},
|
||||||
dataMaskingContentBaseline: {
|
dataMaskingContentBaseline: {
|
||||||
includedPaths: [],
|
includedPaths: [],
|
||||||
excludedPaths: [],
|
excludedPaths: [],
|
||||||
|
isPolicyEnabled: false,
|
||||||
},
|
},
|
||||||
isDataMaskingDirty: true,
|
isDataMaskingDirty: true,
|
||||||
});
|
});
|
||||||
@@ -323,6 +326,7 @@ describe("SettingsComponent", () => {
|
|||||||
expect(wrapper.state("dataMaskingContentBaseline")).toEqual({
|
expect(wrapper.state("dataMaskingContentBaseline")).toEqual({
|
||||||
includedPaths: [],
|
includedPaths: [],
|
||||||
excludedPaths: ["/excludedPath"],
|
excludedPaths: ["/excludedPath"],
|
||||||
|
isPolicyEnabled: true,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -336,6 +340,7 @@ describe("SettingsComponent", () => {
|
|||||||
const invalidPolicy: InvalidPolicy = {
|
const invalidPolicy: InvalidPolicy = {
|
||||||
includedPaths: "invalid",
|
includedPaths: "invalid",
|
||||||
excludedPaths: [],
|
excludedPaths: [],
|
||||||
|
isPolicyEnabled: false,
|
||||||
};
|
};
|
||||||
// Use type assertion since we're deliberately testing with invalid data
|
// Use type assertion since we're deliberately testing with invalid data
|
||||||
settingsComponentInstance["onDataMaskingContentChange"](invalidPolicy as unknown as DataModels.DataMaskingPolicy);
|
settingsComponentInstance["onDataMaskingContentChange"](invalidPolicy as unknown as DataModels.DataMaskingPolicy);
|
||||||
@@ -344,6 +349,7 @@ describe("SettingsComponent", () => {
|
|||||||
expect(wrapper.state("dataMaskingContent")).toEqual({
|
expect(wrapper.state("dataMaskingContent")).toEqual({
|
||||||
includedPaths: "invalid",
|
includedPaths: "invalid",
|
||||||
excludedPaths: [],
|
excludedPaths: [],
|
||||||
|
isPolicyEnabled: false,
|
||||||
});
|
});
|
||||||
expect(wrapper.state("dataMaskingValidationErrors")).toEqual(["includedPaths must be an array"]);
|
expect(wrapper.state("dataMaskingValidationErrors")).toEqual(["includedPaths must be an array"]);
|
||||||
|
|
||||||
@@ -358,6 +364,7 @@ describe("SettingsComponent", () => {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
excludedPaths: ["/excludedPath"],
|
excludedPaths: ["/excludedPath"],
|
||||||
|
isPolicyEnabled: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
settingsComponentInstance["onDataMaskingContentChange"](validPolicy);
|
settingsComponentInstance["onDataMaskingContentChange"](validPolicy);
|
||||||
@@ -381,6 +388,7 @@ describe("SettingsComponent", () => {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
excludedPaths: ["/excludedPath1"],
|
excludedPaths: ["/excludedPath1"],
|
||||||
|
isPolicyEnabled: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
const modifiedPolicy = {
|
const modifiedPolicy = {
|
||||||
@@ -393,6 +401,7 @@ describe("SettingsComponent", () => {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
excludedPaths: ["/excludedPath2"],
|
excludedPaths: ["/excludedPath2"],
|
||||||
|
isPolicyEnabled: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
// Set initial state
|
// Set initial state
|
||||||
|
|||||||
@@ -687,14 +687,22 @@ export class SettingsComponent extends React.Component<SettingsComponentProps, S
|
|||||||
this.setState({ isComputedPropertiesDirty: isComputedPropertiesDirty });
|
this.setState({ isComputedPropertiesDirty: isComputedPropertiesDirty });
|
||||||
|
|
||||||
private onDataMaskingContentChange = (newDataMasking: DataModels.DataMaskingPolicy): void => {
|
private onDataMaskingContentChange = (newDataMasking: DataModels.DataMaskingPolicy): void => {
|
||||||
|
if (!newDataMasking.excludedPaths) {
|
||||||
|
newDataMasking.excludedPaths = [];
|
||||||
|
}
|
||||||
|
if (!newDataMasking.includedPaths) {
|
||||||
|
newDataMasking.includedPaths = [];
|
||||||
|
}
|
||||||
|
|
||||||
const validationErrors = [];
|
const validationErrors = [];
|
||||||
if (newDataMasking.includedPaths === undefined || newDataMasking.includedPaths === null) {
|
if (!Array.isArray(newDataMasking.includedPaths)) {
|
||||||
validationErrors.push("includedPaths is required");
|
|
||||||
} else if (!Array.isArray(newDataMasking.includedPaths)) {
|
|
||||||
validationErrors.push("includedPaths must be an array");
|
validationErrors.push("includedPaths must be an array");
|
||||||
}
|
}
|
||||||
if (newDataMasking.excludedPaths !== undefined && !Array.isArray(newDataMasking.excludedPaths)) {
|
if (!Array.isArray(newDataMasking.excludedPaths)) {
|
||||||
validationErrors.push("excludedPaths must be an array if provided");
|
validationErrors.push("excludedPaths must be an array");
|
||||||
|
}
|
||||||
|
if (typeof newDataMasking.isPolicyEnabled !== "boolean") {
|
||||||
|
validationErrors.push("isPolicyEnabled must be a boolean");
|
||||||
}
|
}
|
||||||
|
|
||||||
this.setState({
|
this.setState({
|
||||||
@@ -835,6 +843,7 @@ export class SettingsComponent extends React.Component<SettingsComponentProps, S
|
|||||||
const dataMaskingContent: DataModels.DataMaskingPolicy = {
|
const dataMaskingContent: DataModels.DataMaskingPolicy = {
|
||||||
includedPaths: this.collection.dataMaskingPolicy?.()?.includedPaths || [],
|
includedPaths: this.collection.dataMaskingPolicy?.()?.includedPaths || [],
|
||||||
excludedPaths: this.collection.dataMaskingPolicy?.()?.excludedPaths || [],
|
excludedPaths: this.collection.dataMaskingPolicy?.()?.excludedPaths || [],
|
||||||
|
isPolicyEnabled: this.collection.dataMaskingPolicy?.()?.isPolicyEnabled ?? true,
|
||||||
};
|
};
|
||||||
const conflictResolutionPolicy: DataModels.ConflictResolutionPolicy =
|
const conflictResolutionPolicy: DataModels.ConflictResolutionPolicy =
|
||||||
this.collection.conflictResolutionPolicy && this.collection.conflictResolutionPolicy();
|
this.collection.conflictResolutionPolicy && this.collection.conflictResolutionPolicy();
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ describe("DataMaskingComponent", () => {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
excludedPaths: [],
|
excludedPaths: [],
|
||||||
|
isPolicyEnabled: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
let changeContentCallback: () => void;
|
let changeContentCallback: () => void;
|
||||||
@@ -77,7 +78,7 @@ describe("DataMaskingComponent", () => {
|
|||||||
<DataMaskingComponent
|
<DataMaskingComponent
|
||||||
{...mockProps}
|
{...mockProps}
|
||||||
dataMaskingContent={samplePolicy}
|
dataMaskingContent={samplePolicy}
|
||||||
dataMaskingContentBaseline={{ ...samplePolicy, excludedPaths: ["/excluded"] }}
|
dataMaskingContentBaseline={{ ...samplePolicy, isPolicyEnabled: true }}
|
||||||
/>,
|
/>,
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -122,7 +123,7 @@ describe("DataMaskingComponent", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("resets content when shouldDiscardDataMasking is true", async () => {
|
it("resets content when shouldDiscardDataMasking is true", async () => {
|
||||||
const baselinePolicy = { ...samplePolicy, excludedPaths: ["/excluded"] };
|
const baselinePolicy = { ...samplePolicy, isPolicyEnabled: true };
|
||||||
|
|
||||||
const wrapper = mount(
|
const wrapper = mount(
|
||||||
<DataMaskingComponent
|
<DataMaskingComponent
|
||||||
@@ -158,7 +159,7 @@ describe("DataMaskingComponent", () => {
|
|||||||
wrapper.update();
|
wrapper.update();
|
||||||
|
|
||||||
// Update baseline to trigger componentDidUpdate
|
// Update baseline to trigger componentDidUpdate
|
||||||
const newBaseline = { ...samplePolicy, excludedPaths: ["/excluded"] };
|
const newBaseline = { ...samplePolicy, isPolicyEnabled: true };
|
||||||
wrapper.setProps({ dataMaskingContentBaseline: newBaseline });
|
wrapper.setProps({ dataMaskingContentBaseline: newBaseline });
|
||||||
|
|
||||||
expect(mockProps.onDataMaskingDirtyChange).toHaveBeenCalledWith(true);
|
expect(mockProps.onDataMaskingDirtyChange).toHaveBeenCalledWith(true);
|
||||||
@@ -173,6 +174,7 @@ describe("DataMaskingComponent", () => {
|
|||||||
const invalidPolicy: Record<string, unknown> = {
|
const invalidPolicy: Record<string, unknown> = {
|
||||||
includedPaths: "not an array",
|
includedPaths: "not an array",
|
||||||
excludedPaths: [] as string[],
|
excludedPaths: [] as string[],
|
||||||
|
isPolicyEnabled: "not a boolean",
|
||||||
};
|
};
|
||||||
|
|
||||||
mockGetValue.mockReturnValue(JSON.stringify(invalidPolicy));
|
mockGetValue.mockReturnValue(JSON.stringify(invalidPolicy));
|
||||||
@@ -195,7 +197,7 @@ describe("DataMaskingComponent", () => {
|
|||||||
wrapper.update();
|
wrapper.update();
|
||||||
|
|
||||||
// First change
|
// First change
|
||||||
const modifiedPolicy1 = { ...samplePolicy, excludedPaths: ["/path1"] };
|
const modifiedPolicy1 = { ...samplePolicy, isPolicyEnabled: true };
|
||||||
mockGetValue.mockReturnValue(JSON.stringify(modifiedPolicy1));
|
mockGetValue.mockReturnValue(JSON.stringify(modifiedPolicy1));
|
||||||
changeContentCallback();
|
changeContentCallback();
|
||||||
expect(mockProps.onDataMaskingDirtyChange).toHaveBeenCalledWith(true);
|
expect(mockProps.onDataMaskingDirtyChange).toHaveBeenCalledWith(true);
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import * as React from "react";
|
|||||||
import * as DataModels from "../../../../Contracts/DataModels";
|
import * as DataModels from "../../../../Contracts/DataModels";
|
||||||
import { loadMonaco } from "../../../LazyMonaco";
|
import { loadMonaco } from "../../../LazyMonaco";
|
||||||
import { titleAndInputStackProps, unsavedEditorWarningMessage } from "../SettingsRenderUtils";
|
import { titleAndInputStackProps, unsavedEditorWarningMessage } from "../SettingsRenderUtils";
|
||||||
import { isDirty as isContentDirty, isDataMaskingEnabled } from "../SettingsUtils";
|
import { isDataMaskingEnabled, isDirty as isContentDirty } from "../SettingsUtils";
|
||||||
|
|
||||||
export interface DataMaskingComponentProps {
|
export interface DataMaskingComponentProps {
|
||||||
shouldDiscardDataMasking: boolean;
|
shouldDiscardDataMasking: boolean;
|
||||||
@@ -22,8 +22,16 @@ interface DataMaskingComponentState {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const emptyDataMaskingPolicy: DataModels.DataMaskingPolicy = {
|
const emptyDataMaskingPolicy: DataModels.DataMaskingPolicy = {
|
||||||
includedPaths: [],
|
includedPaths: [
|
||||||
|
{
|
||||||
|
path: "/",
|
||||||
|
strategy: "Default",
|
||||||
|
startPosition: 0,
|
||||||
|
length: -1,
|
||||||
|
},
|
||||||
|
],
|
||||||
excludedPaths: [],
|
excludedPaths: [],
|
||||||
|
isPolicyEnabled: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
export class DataMaskingComponent extends React.Component<DataMaskingComponentProps, DataMaskingComponentState> {
|
export class DataMaskingComponent extends React.Component<DataMaskingComponentProps, DataMaskingComponentState> {
|
||||||
|
|||||||
@@ -68,6 +68,7 @@ export const collection = {
|
|||||||
dataMaskingPolicy: ko.observable<DataModels.DataMaskingPolicy>({
|
dataMaskingPolicy: ko.observable<DataModels.DataMaskingPolicy>({
|
||||||
includedPaths: [],
|
includedPaths: [],
|
||||||
excludedPaths: ["/excludedPath"],
|
excludedPaths: ["/excludedPath"],
|
||||||
|
isPolicyEnabled: true,
|
||||||
}),
|
}),
|
||||||
readSettings: () => {
|
readSettings: () => {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -638,6 +638,7 @@ exports[`SettingsComponent renders 1`] = `
|
|||||||
"/excludedPath",
|
"/excludedPath",
|
||||||
],
|
],
|
||||||
"includedPaths": [],
|
"includedPaths": [],
|
||||||
|
"isPolicyEnabled": true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dataMaskingContentBaseline={
|
dataMaskingContentBaseline={
|
||||||
@@ -646,6 +647,7 @@ exports[`SettingsComponent renders 1`] = `
|
|||||||
"/excludedPath",
|
"/excludedPath",
|
||||||
],
|
],
|
||||||
"includedPaths": [],
|
"includedPaths": [],
|
||||||
|
"isPolicyEnabled": true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onDataMaskingContentChange={[Function]}
|
onDataMaskingContentChange={[Function]}
|
||||||
|
|||||||
@@ -141,6 +141,7 @@ export default class Collection implements ViewModels.Collection {
|
|||||||
const defaultDataMaskingPolicy: DataModels.DataMaskingPolicy = {
|
const defaultDataMaskingPolicy: DataModels.DataMaskingPolicy = {
|
||||||
includedPaths: Array<{ path: string; strategy: string; startPosition: number; length: number }>(),
|
includedPaths: Array<{ path: string; strategy: string; startPosition: number; length: number }>(),
|
||||||
excludedPaths: Array<string>(),
|
excludedPaths: Array<string>(),
|
||||||
|
isPolicyEnabled: true,
|
||||||
};
|
};
|
||||||
const observablePolicy = ko.observable(data.dataMaskingPolicy || defaultDataMaskingPolicy);
|
const observablePolicy = ko.observable(data.dataMaskingPolicy || defaultDataMaskingPolicy);
|
||||||
observablePolicy.subscribe(() => {});
|
observablePolicy.subscribe(() => {});
|
||||||
|
|||||||
@@ -2,54 +2,20 @@ import { Page } from "@playwright/test";
|
|||||||
|
|
||||||
export async function setupCORSBypass(page: Page) {
|
export async function setupCORSBypass(page: Page) {
|
||||||
await page.route("**/api/mongo/explorer{,/**}", async (route) => {
|
await page.route("**/api/mongo/explorer{,/**}", async (route) => {
|
||||||
const request = route.request();
|
|
||||||
const origin = request.headers()["origin"];
|
|
||||||
|
|
||||||
// If there's no origin, it's not a CORS request. Let it proceed without modification.
|
|
||||||
if (!origin) {
|
|
||||||
await route.continue();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
//// Handle preflight (OPTIONS) requests separately.
|
|
||||||
// These should not be forwarded to the target server.
|
|
||||||
if (request.method() === "OPTIONS") {
|
|
||||||
await route.fulfill({
|
|
||||||
status: 204, // No Content
|
|
||||||
headers: {
|
|
||||||
"Access-Control-Allow-Origin": origin,
|
|
||||||
"Access-Control-Allow-Credentials": "true",
|
|
||||||
"Access-Control-Allow-Methods": "GET,POST,PUT,DELETE,OPTIONS,HEAD",
|
|
||||||
"Access-Control-Request-Headers": "*, x-ms-continuation",
|
|
||||||
"Access-Control-Max-Age": "86400", // Cache preflight response for 1 day
|
|
||||||
Vary: "Origin",
|
|
||||||
},
|
|
||||||
});
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Handle the actual GET/POST request
|
|
||||||
const response = await route.fetch({
|
const response = await route.fetch({
|
||||||
headers: {
|
headers: {
|
||||||
...request.headers(),
|
...route.request().headers(),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const responseHeaders = response.headers();
|
|
||||||
// Clean up any pre-existing CORS headers from the real response to avoid conflicts.
|
|
||||||
delete responseHeaders["access-control-allow-origin"];
|
|
||||||
delete responseHeaders["access-control-allow-credentials"];
|
|
||||||
|
|
||||||
await route.fulfill({
|
await route.fulfill({
|
||||||
status: response.status(),
|
status: response.status(),
|
||||||
headers: {
|
headers: {
|
||||||
...responseHeaders,
|
...response.headers(),
|
||||||
"Access-Control-Allow-Origin": origin,
|
"Access-Control-Allow-Origin": "*",
|
||||||
"Access-Control-Allow-Credentials": "true",
|
"Access-Control-Allow-Methods": "*",
|
||||||
"Access-Control-Allow-Methods": "GET,POST,PUT,DELETE,OPTIONS,HEAD",
|
|
||||||
"Access-Control-Allow-Headers": "*",
|
"Access-Control-Allow-Headers": "*",
|
||||||
"Access-Control-Expose-Headers": "x-ms-continuation,x-ms-request-charge,x-ms-session-token",
|
"Access-Control-Allow-Credentials": "*",
|
||||||
Vary: "Origin",
|
|
||||||
},
|
},
|
||||||
body: await response.body(),
|
body: await response.body(),
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -58,9 +58,7 @@ export const defaultAccounts: Record<TestAccount, string> = {
|
|||||||
export const resourceGroupName = process.env.DE_TEST_RESOURCE_GROUP ?? "de-e2e-tests";
|
export const resourceGroupName = process.env.DE_TEST_RESOURCE_GROUP ?? "de-e2e-tests";
|
||||||
export const subscriptionId = process.env.DE_TEST_SUBSCRIPTION_ID ?? "69e02f2d-f059-4409-9eac-97e8a276ae2c";
|
export const subscriptionId = process.env.DE_TEST_SUBSCRIPTION_ID ?? "69e02f2d-f059-4409-9eac-97e8a276ae2c";
|
||||||
export const TEST_AUTOSCALE_THROUGHPUT_RU = 1000;
|
export const TEST_AUTOSCALE_THROUGHPUT_RU = 1000;
|
||||||
export const TEST_MANUAL_THROUGHPUT_RU = 800;
|
|
||||||
export const TEST_AUTOSCALE_MAX_THROUGHPUT_RU_2K = 2000;
|
export const TEST_AUTOSCALE_MAX_THROUGHPUT_RU_2K = 2000;
|
||||||
export const TEST_AUTOSCALE_MAX_THROUGHPUT_RU_4K = 4000;
|
|
||||||
export const TEST_MANUAL_THROUGHPUT_RU_2K = 2000;
|
export const TEST_MANUAL_THROUGHPUT_RU_2K = 2000;
|
||||||
export const ONE_MINUTE_MS: number = 60 * 1000;
|
export const ONE_MINUTE_MS: number = 60 * 1000;
|
||||||
|
|
||||||
|
|||||||
@@ -1,132 +0,0 @@
|
|||||||
import { expect, test } from "@playwright/test";
|
|
||||||
import { setupCORSBypass } from "../CORSBypass";
|
|
||||||
import { DataExplorer, QueryTab, TestAccount, CommandBarButton, Editor } from "../fx";
|
|
||||||
import { serializeMongoToJson } from "../testData";
|
|
||||||
|
|
||||||
const databaseId = "test-e2etests-mongo-pagination";
|
|
||||||
const collectionId = "test-coll-mongo-pagination";
|
|
||||||
let explorer: DataExplorer = null!;
|
|
||||||
|
|
||||||
test.setTimeout(5 * 60 * 1000);
|
|
||||||
|
|
||||||
test.describe("Test Mongo Pagination", () => {
|
|
||||||
let queryTab: QueryTab;
|
|
||||||
let queryEditor: Editor;
|
|
||||||
|
|
||||||
test.beforeEach("Open query tab", async ({ page }) => {
|
|
||||||
await setupCORSBypass(page);
|
|
||||||
explorer = await DataExplorer.open(page, TestAccount.MongoReadonly);
|
|
||||||
|
|
||||||
const containerNode = await explorer.waitForContainerNode(databaseId, collectionId);
|
|
||||||
await containerNode.expand();
|
|
||||||
|
|
||||||
const containerMenuNode = await explorer.waitForContainerDocumentsNode(databaseId, collectionId);
|
|
||||||
await containerMenuNode.openContextMenu();
|
|
||||||
await containerMenuNode.contextMenuItem("New Query").click();
|
|
||||||
|
|
||||||
queryTab = explorer.queryTab("tab0");
|
|
||||||
queryEditor = queryTab.editor();
|
|
||||||
await queryEditor.locator.waitFor({ timeout: 30 * 1000 });
|
|
||||||
await queryTab.executeCTA.waitFor();
|
|
||||||
await explorer.frame.getByTestId("NotificationConsole/ExpandCollapseButton").click();
|
|
||||||
await explorer.frame.getByTestId("NotificationConsole/Contents").waitFor();
|
|
||||||
});
|
|
||||||
|
|
||||||
test("should execute a query and load more results", async ({ page }) => {
|
|
||||||
const query = "{}";
|
|
||||||
|
|
||||||
await queryEditor.locator.click();
|
|
||||||
await queryEditor.setText(query);
|
|
||||||
|
|
||||||
const executeQueryButton = explorer.commandBarButton(CommandBarButton.ExecuteQuery);
|
|
||||||
await executeQueryButton.click();
|
|
||||||
|
|
||||||
// Wait for query execution to complete
|
|
||||||
await expect(queryTab.resultsView).toBeVisible({ timeout: 60000 });
|
|
||||||
await expect(queryTab.resultsEditor.locator).toBeAttached({ timeout: 30000 });
|
|
||||||
|
|
||||||
// Get initial results
|
|
||||||
const resultText = await queryTab.resultsEditor.text();
|
|
||||||
|
|
||||||
if (!resultText || resultText.trim() === "" || resultText.trim() === "[]") {
|
|
||||||
throw new Error("Query returned no results - the collection appears to be empty");
|
|
||||||
}
|
|
||||||
|
|
||||||
const resultData = serializeMongoToJson(resultText);
|
|
||||||
|
|
||||||
if (resultData.length === 0) {
|
|
||||||
throw new Error("Parsed results contain 0 documents - collection is empty");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (resultData.length < 100) {
|
|
||||||
expect(resultData.length).toBeGreaterThan(0);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
expect(resultData.length).toBe(100);
|
|
||||||
|
|
||||||
// Pagination test
|
|
||||||
let totalPagesLoaded = 1;
|
|
||||||
const maxLoadMoreAttempts = 10;
|
|
||||||
|
|
||||||
for (let loadMoreAttempts = 0; loadMoreAttempts < maxLoadMoreAttempts; loadMoreAttempts++) {
|
|
||||||
const loadMoreButton = queryTab.resultsView.getByText("Load more");
|
|
||||||
|
|
||||||
try {
|
|
||||||
await expect(loadMoreButton).toBeVisible({ timeout: 5000 });
|
|
||||||
} catch {
|
|
||||||
// Load more button not visible - pagination complete
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
const beforeClickText = await queryTab.resultsEditor.text();
|
|
||||||
const beforeClickHash = Buffer.from(beforeClickText || "")
|
|
||||||
.toString("base64")
|
|
||||||
.substring(0, 50);
|
|
||||||
|
|
||||||
await loadMoreButton.click();
|
|
||||||
|
|
||||||
// Wait for content to update
|
|
||||||
let editorContentChanged = false;
|
|
||||||
for (let waitAttempt = 1; waitAttempt <= 3; waitAttempt++) {
|
|
||||||
await page.waitForTimeout(2000);
|
|
||||||
|
|
||||||
const currentEditorText = await queryTab.resultsEditor.text();
|
|
||||||
const currentHash = Buffer.from(currentEditorText || "")
|
|
||||||
.toString("base64")
|
|
||||||
.substring(0, 50);
|
|
||||||
|
|
||||||
if (currentHash !== beforeClickHash) {
|
|
||||||
editorContentChanged = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (editorContentChanged) {
|
|
||||||
totalPagesLoaded++;
|
|
||||||
} else {
|
|
||||||
// No content change detected, stop pagination
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
await page.waitForTimeout(1000);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Final verification
|
|
||||||
const finalIndicator = queryTab.resultsView.locator("text=/\\d+ - \\d+/");
|
|
||||||
const finalIndicatorText = await finalIndicator.textContent();
|
|
||||||
|
|
||||||
if (finalIndicatorText) {
|
|
||||||
const match = finalIndicatorText.match(/(\d+) - (\d+)/);
|
|
||||||
if (match) {
|
|
||||||
const totalDocuments = parseInt(match[2]);
|
|
||||||
expect(totalDocuments).toBe(405);
|
|
||||||
expect(totalPagesLoaded).toBe(5);
|
|
||||||
} else {
|
|
||||||
throw new Error(`Invalid results indicator format: ${finalIndicatorText}`);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
expect(totalPagesLoaded).toBe(5);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
@@ -2,6 +2,7 @@ import { expect, test } from "@playwright/test";
|
|||||||
|
|
||||||
import { CosmosDBManagementClient } from "@azure/arm-cosmosdb";
|
import { CosmosDBManagementClient } from "@azure/arm-cosmosdb";
|
||||||
import { CosmosClient, PermissionMode } from "@azure/cosmos";
|
import { CosmosClient, PermissionMode } from "@azure/cosmos";
|
||||||
|
import { AzureIdentityCredentialAdapter } from "@azure/ms-rest-js";
|
||||||
import {
|
import {
|
||||||
DataExplorer,
|
DataExplorer,
|
||||||
TestAccount,
|
TestAccount,
|
||||||
@@ -17,7 +18,8 @@ test("SQL account using Resource token", async ({ page }) => {
|
|||||||
test.skip(nosqlAccountRbacToken.length > 0, "Resource tokens not supported when using data plane RBAC.");
|
test.skip(nosqlAccountRbacToken.length > 0, "Resource tokens not supported when using data plane RBAC.");
|
||||||
|
|
||||||
const credentials = getAzureCLICredentials();
|
const credentials = getAzureCLICredentials();
|
||||||
const armClient = new CosmosDBManagementClient(credentials, subscriptionId);
|
const adaptedCredentials = new AzureIdentityCredentialAdapter(credentials);
|
||||||
|
const armClient = new CosmosDBManagementClient(adaptedCredentials, subscriptionId);
|
||||||
const accountName = getAccountName(TestAccount.SQL);
|
const accountName = getAccountName(TestAccount.SQL);
|
||||||
const account = await armClient.databaseAccounts.get(resourceGroupName, accountName);
|
const account = await armClient.databaseAccounts.get(resourceGroupName, accountName);
|
||||||
const keys = await armClient.databaseAccounts.listKeys(resourceGroupName, accountName);
|
const keys = await armClient.databaseAccounts.listKeys(resourceGroupName, accountName);
|
||||||
|
|||||||
@@ -1,127 +0,0 @@
|
|||||||
import { expect, test, type Page } from "@playwright/test";
|
|
||||||
import { DataExplorer, TestAccount } from "../../fx";
|
|
||||||
import { createTestSQLContainer, TestContainerContext } from "../../testData";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Tests for Dynamic Data Masking (DDM) feature.
|
|
||||||
*
|
|
||||||
* Prerequisites:
|
|
||||||
* - Test account must have the EnableDynamicDataMasking capability enabled
|
|
||||||
* - If the capability is not enabled, the DataMaskingTab will not be visible and tests will be skipped
|
|
||||||
*
|
|
||||||
* Important Notes:
|
|
||||||
* - Tests focus on enabling DDM and modifying the masking policy configuration
|
|
||||||
*/
|
|
||||||
|
|
||||||
let testContainer: TestContainerContext;
|
|
||||||
let DATABASE_ID: string;
|
|
||||||
let CONTAINER_ID: string;
|
|
||||||
|
|
||||||
test.beforeAll(async () => {
|
|
||||||
testContainer = await createTestSQLContainer();
|
|
||||||
DATABASE_ID = testContainer.database.id;
|
|
||||||
CONTAINER_ID = testContainer.container.id;
|
|
||||||
});
|
|
||||||
|
|
||||||
// Clean up test database after all tests
|
|
||||||
test.afterAll(async () => {
|
|
||||||
if (testContainer) {
|
|
||||||
await testContainer.dispose();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
// Helper function to navigate to Data Masking tab
|
|
||||||
async function navigateToDataMaskingTab(page: Page, explorer: DataExplorer): Promise<boolean> {
|
|
||||||
// Refresh the tree to see the newly created database
|
|
||||||
const refreshButton = explorer.frame.getByTestId("Sidebar/RefreshButton");
|
|
||||||
await refreshButton.click();
|
|
||||||
await page.waitForTimeout(3000);
|
|
||||||
|
|
||||||
// Expand database and container nodes
|
|
||||||
const databaseNode = await explorer.waitForNode(DATABASE_ID);
|
|
||||||
await databaseNode.expand();
|
|
||||||
await page.waitForTimeout(2000);
|
|
||||||
|
|
||||||
const containerNode = await explorer.waitForNode(`${DATABASE_ID}/${CONTAINER_ID}`);
|
|
||||||
await containerNode.expand();
|
|
||||||
await page.waitForTimeout(1000);
|
|
||||||
|
|
||||||
// Click Scale & Settings or Settings (depending on container type)
|
|
||||||
let settingsNode = explorer.frame.getByTestId(`TreeNode:${DATABASE_ID}/${CONTAINER_ID}/Scale & Settings`);
|
|
||||||
const isScaleAndSettings = await settingsNode.isVisible().catch(() => false);
|
|
||||||
|
|
||||||
if (!isScaleAndSettings) {
|
|
||||||
settingsNode = explorer.frame.getByTestId(`TreeNode:${DATABASE_ID}/${CONTAINER_ID}/Settings`);
|
|
||||||
}
|
|
||||||
|
|
||||||
await settingsNode.click();
|
|
||||||
await page.waitForTimeout(2000);
|
|
||||||
|
|
||||||
// Check if Data Masking tab is available
|
|
||||||
const dataMaskingTab = explorer.frame.getByTestId("settings-tab-header/DataMaskingTab");
|
|
||||||
const isTabVisible = await dataMaskingTab.isVisible().catch(() => false);
|
|
||||||
|
|
||||||
if (!isTabVisible) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
await dataMaskingTab.click();
|
|
||||||
await page.waitForTimeout(1000);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
test.describe("Data Masking under Scale & Settings", () => {
|
|
||||||
test("Data Masking tab should be visible and show JSON editor", async ({ page }) => {
|
|
||||||
const explorer = await DataExplorer.open(page, TestAccount.SQL);
|
|
||||||
const isTabAvailable = await navigateToDataMaskingTab(page, explorer);
|
|
||||||
|
|
||||||
if (!isTabAvailable) {
|
|
||||||
test.skip(
|
|
||||||
true,
|
|
||||||
"Data Masking tab is not available. Test account may not have EnableDynamicDataMasking capability.",
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Verify the Data Masking editor is visible
|
|
||||||
const dataMaskingEditor = explorer.frame.locator(".settingsV2Editor");
|
|
||||||
await expect(dataMaskingEditor).toBeVisible();
|
|
||||||
});
|
|
||||||
|
|
||||||
test("Data Masking editor should contain default policy structure", async ({ page }) => {
|
|
||||||
const explorer = await DataExplorer.open(page, TestAccount.SQL);
|
|
||||||
const isTabAvailable = await navigateToDataMaskingTab(page, explorer);
|
|
||||||
|
|
||||||
if (!isTabAvailable) {
|
|
||||||
test.skip(
|
|
||||||
true,
|
|
||||||
"Data Masking tab is not available. Test account may not have EnableDynamicDataMasking capability.",
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Verify the editor contains the expected JSON structure fields
|
|
||||||
const editorContent = explorer.frame.locator(".settingsV2Editor");
|
|
||||||
await expect(editorContent).toBeVisible();
|
|
||||||
|
|
||||||
// Check that the editor contains key policy fields (default policy has empty arrays)
|
|
||||||
await expect(editorContent).toContainText("includedPaths");
|
|
||||||
await expect(editorContent).toContainText("excludedPaths");
|
|
||||||
});
|
|
||||||
|
|
||||||
test("Data Masking editor should have correct default policy values", async ({ page }) => {
|
|
||||||
const explorer = await DataExplorer.open(page, TestAccount.SQL);
|
|
||||||
const isTabAvailable = await navigateToDataMaskingTab(page, explorer);
|
|
||||||
|
|
||||||
if (!isTabAvailable) {
|
|
||||||
test.skip(
|
|
||||||
true,
|
|
||||||
"Data Masking tab is not available. Test account may not have EnableDynamicDataMasking capability.",
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
const editorContent = explorer.frame.locator(".settingsV2Editor");
|
|
||||||
await expect(editorContent).toBeVisible();
|
|
||||||
|
|
||||||
// Default policy should have empty includedPaths and excludedPaths arrays
|
|
||||||
await expect(editorContent).toContainText("[]");
|
|
||||||
});
|
|
||||||
});
|
|
||||||
@@ -1,229 +0,0 @@
|
|||||||
import { Locator, expect, test } from "@playwright/test";
|
|
||||||
import {
|
|
||||||
CommandBarButton,
|
|
||||||
DataExplorer,
|
|
||||||
ONE_MINUTE_MS,
|
|
||||||
TEST_AUTOSCALE_MAX_THROUGHPUT_RU_4K,
|
|
||||||
TEST_MANUAL_THROUGHPUT_RU,
|
|
||||||
TestAccount,
|
|
||||||
} from "../../fx";
|
|
||||||
import { TestDatabaseContext, createTestDB } from "../../testData";
|
|
||||||
|
|
||||||
test.describe("Database with Shared Throughput", () => {
|
|
||||||
let dbContext: TestDatabaseContext = null!;
|
|
||||||
let explorer: DataExplorer = null!;
|
|
||||||
const containerId = "sharedcontainer";
|
|
||||||
|
|
||||||
// Helper methods
|
|
||||||
const getThroughputInput = (type: "manual" | "autopilot"): Locator => {
|
|
||||||
return explorer.frame.getByTestId(`${type}-throughput-input`);
|
|
||||||
};
|
|
||||||
|
|
||||||
test.afterEach("Delete Test Database", async () => {
|
|
||||||
await dbContext?.dispose();
|
|
||||||
});
|
|
||||||
|
|
||||||
test.describe("Manual Throughput Tests", () => {
|
|
||||||
test.beforeEach(async ({ page }) => {
|
|
||||||
explorer = await DataExplorer.open(page, TestAccount.SQL);
|
|
||||||
});
|
|
||||||
|
|
||||||
test("Create database with shared manual throughput and verify Scale node in UI", async () => {
|
|
||||||
test.setTimeout(120000); // 2 minutes timeout
|
|
||||||
// Create database with shared manual throughput (400 RU/s)
|
|
||||||
dbContext = await createTestDB({ throughput: 400 });
|
|
||||||
|
|
||||||
// Verify database node appears in the tree
|
|
||||||
const databaseNode = await explorer.waitForNode(dbContext.database.id);
|
|
||||||
expect(databaseNode).toBeDefined();
|
|
||||||
|
|
||||||
// Expand the database node to see child nodes
|
|
||||||
await databaseNode.expand();
|
|
||||||
|
|
||||||
// Verify that "Scale" node appears under the database
|
|
||||||
const scaleNode = await explorer.waitForNode(`${dbContext.database.id}/Scale`);
|
|
||||||
expect(scaleNode).toBeDefined();
|
|
||||||
await expect(scaleNode.element).toBeVisible();
|
|
||||||
});
|
|
||||||
|
|
||||||
test("Add container to shared database without dedicated throughput", async () => {
|
|
||||||
// Create database with shared manual throughput
|
|
||||||
dbContext = await createTestDB({ throughput: 400 });
|
|
||||||
|
|
||||||
// Wait for the database to appear in the tree
|
|
||||||
await explorer.waitForNode(dbContext.database.id);
|
|
||||||
|
|
||||||
// Add a container to the shared database via UI
|
|
||||||
const newContainerButton = await explorer.globalCommandButton("New Container");
|
|
||||||
await newContainerButton.click();
|
|
||||||
|
|
||||||
await explorer.whilePanelOpen(
|
|
||||||
"New Container",
|
|
||||||
async (panel, okButton) => {
|
|
||||||
// Select "Use existing" database
|
|
||||||
const useExistingRadio = panel.getByRole("radio", { name: /Use existing/i });
|
|
||||||
await useExistingRadio.click();
|
|
||||||
|
|
||||||
// Select the database from dropdown using the new data-testid
|
|
||||||
const databaseDropdown = panel.getByRole("combobox", { name: "Choose an existing database" });
|
|
||||||
await databaseDropdown.click();
|
|
||||||
|
|
||||||
await explorer.frame.getByRole("option", { name: dbContext.database.id }).click();
|
|
||||||
// Now you can target the specific database option by its data-testid
|
|
||||||
//await panel.getByTestId(`database-option-${dbContext.database.id}`).click();
|
|
||||||
// Fill container id
|
|
||||||
await panel.getByRole("textbox", { name: "Container id, Example Container1" }).fill(containerId);
|
|
||||||
|
|
||||||
// Fill partition key
|
|
||||||
await panel.getByRole("textbox", { name: "Partition key" }).fill("/pk");
|
|
||||||
|
|
||||||
// Ensure "Provision dedicated throughput" is NOT checked
|
|
||||||
const dedicatedThroughputCheckbox = panel.getByRole("checkbox", {
|
|
||||||
name: /Provision dedicated throughput for this container/i,
|
|
||||||
});
|
|
||||||
|
|
||||||
if (await dedicatedThroughputCheckbox.isVisible()) {
|
|
||||||
const isChecked = await dedicatedThroughputCheckbox.isChecked();
|
|
||||||
if (isChecked) {
|
|
||||||
await dedicatedThroughputCheckbox.uncheck();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
await okButton.click();
|
|
||||||
},
|
|
||||||
{ closeTimeout: 5 * ONE_MINUTE_MS },
|
|
||||||
);
|
|
||||||
|
|
||||||
// Verify container was created under the database
|
|
||||||
const containerNode = await explorer.waitForContainerNode(dbContext.database.id, containerId);
|
|
||||||
expect(containerNode).toBeDefined();
|
|
||||||
});
|
|
||||||
|
|
||||||
test("Scale shared database manual throughput", async () => {
|
|
||||||
// Create database with shared manual throughput (400 RU/s)
|
|
||||||
dbContext = await createTestDB({ throughput: 400 });
|
|
||||||
|
|
||||||
// Navigate to the scale settings by clicking the "Scale" node in the tree
|
|
||||||
const databaseNode = await explorer.waitForNode(dbContext.database.id);
|
|
||||||
await databaseNode.expand();
|
|
||||||
const scaleNode = await explorer.waitForNode(`${dbContext.database.id}/Scale`);
|
|
||||||
await scaleNode.element.click();
|
|
||||||
|
|
||||||
// Update manual throughput from 400 to 800
|
|
||||||
await getThroughputInput("manual").fill(TEST_MANUAL_THROUGHPUT_RU.toString());
|
|
||||||
|
|
||||||
// Save changes
|
|
||||||
await explorer.commandBarButton(CommandBarButton.Save).click();
|
|
||||||
|
|
||||||
// Verify success message
|
|
||||||
await expect(explorer.getConsoleHeaderStatus()).toContainText(
|
|
||||||
`Successfully updated offer for database ${dbContext.database.id}`,
|
|
||||||
{
|
|
||||||
timeout: 2 * ONE_MINUTE_MS,
|
|
||||||
},
|
|
||||||
);
|
|
||||||
});
|
|
||||||
|
|
||||||
test("Scale shared database from manual to autoscale", async () => {
|
|
||||||
// Create database with shared manual throughput (400 RU/s)
|
|
||||||
dbContext = await createTestDB({ throughput: 400 });
|
|
||||||
|
|
||||||
// Open database settings by clicking the "Scale" node
|
|
||||||
const databaseNode = await explorer.waitForNode(dbContext.database.id);
|
|
||||||
await databaseNode.expand();
|
|
||||||
const scaleNode = await explorer.waitForNode(`${dbContext.database.id}/Scale`);
|
|
||||||
await scaleNode.element.click();
|
|
||||||
|
|
||||||
// Switch to Autoscale
|
|
||||||
const autoscaleRadio = explorer.frame.getByText("Autoscale", { exact: true });
|
|
||||||
await autoscaleRadio.click();
|
|
||||||
|
|
||||||
// Set autoscale max throughput to 1000
|
|
||||||
//await getThroughputInput("autopilot").fill(TEST_AUTOSCALE_THROUGHPUT_RU.toString());
|
|
||||||
|
|
||||||
// Save changes
|
|
||||||
await explorer.commandBarButton(CommandBarButton.Save).click();
|
|
||||||
|
|
||||||
await expect(explorer.getConsoleHeaderStatus()).toContainText(
|
|
||||||
`Successfully updated offer for database ${dbContext.database.id}`,
|
|
||||||
{
|
|
||||||
timeout: 2 * ONE_MINUTE_MS,
|
|
||||||
},
|
|
||||||
);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
test.describe("Autoscale Throughput Tests", () => {
|
|
||||||
test.beforeEach(async ({ page }) => {
|
|
||||||
explorer = await DataExplorer.open(page, TestAccount.SQL);
|
|
||||||
});
|
|
||||||
|
|
||||||
test("Create database with shared autoscale throughput and verify Scale node in UI", async () => {
|
|
||||||
test.setTimeout(120000); // 2 minutes timeout
|
|
||||||
|
|
||||||
// Create database with shared autoscale throughput (max 1000 RU/s)
|
|
||||||
dbContext = await createTestDB({ maxThroughput: 1000 });
|
|
||||||
|
|
||||||
// Verify database node appears
|
|
||||||
const databaseNode = await explorer.waitForNode(dbContext.database.id);
|
|
||||||
expect(databaseNode).toBeDefined();
|
|
||||||
|
|
||||||
// Expand the database node to see child nodes
|
|
||||||
await databaseNode.expand();
|
|
||||||
|
|
||||||
// Verify that "Scale" node appears under the database
|
|
||||||
const scaleNode = await explorer.waitForNode(`${dbContext.database.id}/Scale`);
|
|
||||||
expect(scaleNode).toBeDefined();
|
|
||||||
await expect(scaleNode.element).toBeVisible();
|
|
||||||
});
|
|
||||||
|
|
||||||
test("Scale shared database autoscale throughput", async () => {
|
|
||||||
// Create database with shared autoscale throughput (max 1000 RU/s)
|
|
||||||
dbContext = await createTestDB({ maxThroughput: 1000 });
|
|
||||||
|
|
||||||
// Open database settings
|
|
||||||
const databaseNode = await explorer.waitForNode(dbContext.database.id);
|
|
||||||
await databaseNode.expand();
|
|
||||||
const scaleNode = await explorer.waitForNode(`${dbContext.database.id}/Scale`);
|
|
||||||
await scaleNode.element.click();
|
|
||||||
|
|
||||||
// Update autoscale max throughput from 1000 to 4000
|
|
||||||
await getThroughputInput("autopilot").fill(TEST_AUTOSCALE_MAX_THROUGHPUT_RU_4K.toString());
|
|
||||||
|
|
||||||
// Save changes
|
|
||||||
await explorer.commandBarButton(CommandBarButton.Save).click();
|
|
||||||
|
|
||||||
// Verify success message
|
|
||||||
await expect(explorer.getConsoleHeaderStatus()).toContainText(
|
|
||||||
`Successfully updated offer for database ${dbContext.database.id}`,
|
|
||||||
{
|
|
||||||
timeout: 2 * ONE_MINUTE_MS,
|
|
||||||
},
|
|
||||||
);
|
|
||||||
});
|
|
||||||
|
|
||||||
test("Scale shared database from autoscale to manual", async () => {
|
|
||||||
// Create database with shared autoscale throughput (max 1000 RU/s)
|
|
||||||
dbContext = await createTestDB({ maxThroughput: 1000 });
|
|
||||||
|
|
||||||
// Open database settings
|
|
||||||
const databaseNode = await explorer.waitForNode(dbContext.database.id);
|
|
||||||
await databaseNode.expand();
|
|
||||||
const scaleNode = await explorer.waitForNode(`${dbContext.database.id}/Scale`);
|
|
||||||
await scaleNode.element.click();
|
|
||||||
|
|
||||||
// Switch to Manual
|
|
||||||
const manualRadio = explorer.frame.getByText("Manual", { exact: true });
|
|
||||||
await manualRadio.click();
|
|
||||||
|
|
||||||
// Save changes
|
|
||||||
await explorer.commandBarButton(CommandBarButton.Save).click();
|
|
||||||
|
|
||||||
// Verify success message
|
|
||||||
await expect(explorer.getConsoleHeaderStatus()).toContainText(
|
|
||||||
`Successfully updated offer for database ${dbContext.database.id}`,
|
|
||||||
{ timeout: 2 * ONE_MINUTE_MS },
|
|
||||||
);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
136
test/testData.ts
136
test/testData.ts
@@ -1,7 +1,9 @@
|
|||||||
|
import crypto from "crypto";
|
||||||
|
|
||||||
import { CosmosDBManagementClient } from "@azure/arm-cosmosdb";
|
import { CosmosDBManagementClient } from "@azure/arm-cosmosdb";
|
||||||
import { BulkOperationType, Container, CosmosClient, CosmosClientOptions, Database, JSONObject } from "@azure/cosmos";
|
import { BulkOperationType, Container, CosmosClient, CosmosClientOptions, Database, JSONObject } from "@azure/cosmos";
|
||||||
import { Buffer } from "node:buffer";
|
import { AzureIdentityCredentialAdapter } from "@azure/ms-rest-js";
|
||||||
import { webcrypto } from "node:crypto";
|
|
||||||
import {
|
import {
|
||||||
generateUniqueName,
|
generateUniqueName,
|
||||||
getAccountName,
|
getAccountName,
|
||||||
@@ -10,7 +12,6 @@ import {
|
|||||||
subscriptionId,
|
subscriptionId,
|
||||||
TestAccount,
|
TestAccount,
|
||||||
} from "./fx";
|
} from "./fx";
|
||||||
globalThis.crypto = webcrypto as Crypto;
|
|
||||||
|
|
||||||
export interface TestItem {
|
export interface TestItem {
|
||||||
id: string;
|
id: string;
|
||||||
@@ -59,9 +60,8 @@ function createTestItems(): TestItem[] {
|
|||||||
|
|
||||||
// Document IDs cannot contain '/', '\', or '#'
|
// Document IDs cannot contain '/', '\', or '#'
|
||||||
function createSafeRandomString(byteLength: number): string {
|
function createSafeRandomString(byteLength: number): string {
|
||||||
const bytes = new Uint8Array(byteLength);
|
return crypto
|
||||||
crypto.getRandomValues(bytes);
|
.randomBytes(byteLength)
|
||||||
return Buffer.from(bytes)
|
|
||||||
.toString("base64")
|
.toString("base64")
|
||||||
.replace(/[/\\#]/g, "_");
|
.replace(/[/\\#]/g, "_");
|
||||||
}
|
}
|
||||||
@@ -82,74 +82,6 @@ export class TestContainerContext {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class TestDatabaseContext {
|
|
||||||
constructor(
|
|
||||||
public armClient: CosmosDBManagementClient,
|
|
||||||
public client: CosmosClient,
|
|
||||||
public database: Database,
|
|
||||||
) {}
|
|
||||||
|
|
||||||
async dispose() {
|
|
||||||
await this.database.delete();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface CreateTestDBOptions {
|
|
||||||
throughput?: number;
|
|
||||||
maxThroughput?: number; // For autoscale
|
|
||||||
}
|
|
||||||
|
|
||||||
// Helper function to create ARM client and Cosmos client for SQL account
|
|
||||||
async function createCosmosClientForSQLAccount(
|
|
||||||
accountType: TestAccount.SQL | TestAccount.SQLContainerCopyOnly = TestAccount.SQL,
|
|
||||||
): Promise<{ armClient: CosmosDBManagementClient; client: CosmosClient }> {
|
|
||||||
const credentials = getAzureCLICredentials();
|
|
||||||
const armClient = new CosmosDBManagementClient(credentials, subscriptionId);
|
|
||||||
const accountName = getAccountName(accountType);
|
|
||||||
const account = await armClient.databaseAccounts.get(resourceGroupName, accountName);
|
|
||||||
|
|
||||||
const clientOptions: CosmosClientOptions = {
|
|
||||||
endpoint: account.documentEndpoint!,
|
|
||||||
};
|
|
||||||
|
|
||||||
const rbacToken =
|
|
||||||
accountType === TestAccount.SQL
|
|
||||||
? process.env.NOSQL_TESTACCOUNT_TOKEN
|
|
||||||
: accountType === TestAccount.SQLContainerCopyOnly
|
|
||||||
? process.env.NOSQL_CONTAINERCOPY_TESTACCOUNT_TOKEN
|
|
||||||
: "";
|
|
||||||
|
|
||||||
if (rbacToken) {
|
|
||||||
clientOptions.tokenProvider = async (): Promise<string> => {
|
|
||||||
const AUTH_PREFIX = `type=aad&ver=1.0&sig=`;
|
|
||||||
const authorizationToken = `${AUTH_PREFIX}${rbacToken}`;
|
|
||||||
return authorizationToken;
|
|
||||||
};
|
|
||||||
} else {
|
|
||||||
const keys = await armClient.databaseAccounts.listKeys(resourceGroupName, accountName);
|
|
||||||
clientOptions.key = keys.primaryMasterKey;
|
|
||||||
}
|
|
||||||
|
|
||||||
const client = new CosmosClient(clientOptions);
|
|
||||||
|
|
||||||
return { armClient, client };
|
|
||||||
}
|
|
||||||
|
|
||||||
export async function createTestDB(options?: CreateTestDBOptions): Promise<TestDatabaseContext> {
|
|
||||||
const databaseId = generateUniqueName("db");
|
|
||||||
const { armClient, client } = await createCosmosClientForSQLAccount();
|
|
||||||
|
|
||||||
// Create database with provisioned throughput (shared throughput)
|
|
||||||
// This checks the "Provision database throughput" option
|
|
||||||
const { database } = await client.databases.create({
|
|
||||||
id: databaseId,
|
|
||||||
throughput: options?.throughput, // Manual throughput (e.g., 400)
|
|
||||||
maxThroughput: options?.maxThroughput, // Autoscale max throughput (e.g., 1000)
|
|
||||||
});
|
|
||||||
|
|
||||||
return new TestDatabaseContext(armClient, client, database);
|
|
||||||
}
|
|
||||||
|
|
||||||
type createTestSqlContainerConfig = {
|
type createTestSqlContainerConfig = {
|
||||||
includeTestData?: boolean;
|
includeTestData?: boolean;
|
||||||
partitionKey?: string;
|
partitionKey?: string;
|
||||||
@@ -172,7 +104,34 @@ export async function createMultipleTestContainers({
|
|||||||
const creationPromises: Promise<TestContainerContext>[] = [];
|
const creationPromises: Promise<TestContainerContext>[] = [];
|
||||||
|
|
||||||
const databaseId = databaseName ? databaseName : generateUniqueName("db");
|
const databaseId = databaseName ? databaseName : generateUniqueName("db");
|
||||||
const { armClient, client } = await createCosmosClientForSQLAccount(accountType);
|
const credentials = getAzureCLICredentials();
|
||||||
|
const adaptedCredentials = new AzureIdentityCredentialAdapter(credentials);
|
||||||
|
const armClient = new CosmosDBManagementClient(adaptedCredentials, subscriptionId);
|
||||||
|
const accountName = getAccountName(accountType);
|
||||||
|
const account = await armClient.databaseAccounts.get(resourceGroupName, accountName);
|
||||||
|
|
||||||
|
const clientOptions: CosmosClientOptions = {
|
||||||
|
endpoint: account.documentEndpoint!,
|
||||||
|
};
|
||||||
|
|
||||||
|
const rbacToken =
|
||||||
|
accountType === TestAccount.SQL
|
||||||
|
? process.env.NOSQL_TESTACCOUNT_TOKEN
|
||||||
|
: accountType === TestAccount.SQLContainerCopyOnly
|
||||||
|
? process.env.NOSQL_CONTAINERCOPY_TESTACCOUNT_TOKEN
|
||||||
|
: "";
|
||||||
|
if (rbacToken) {
|
||||||
|
clientOptions.tokenProvider = async (): Promise<string> => {
|
||||||
|
const AUTH_PREFIX = `type=aad&ver=1.0&sig=`;
|
||||||
|
const authorizationToken = `${AUTH_PREFIX}${rbacToken}`;
|
||||||
|
return authorizationToken;
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
const keys = await armClient.databaseAccounts.listKeys(resourceGroupName, accountName);
|
||||||
|
clientOptions.key = keys.primaryMasterKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
const client = new CosmosClient(clientOptions);
|
||||||
const { database } = await client.databases.createIfNotExists({ id: databaseId });
|
const { database } = await client.databases.createIfNotExists({ id: databaseId });
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@@ -199,8 +158,29 @@ export async function createTestSQLContainer({
|
|||||||
}: createTestSqlContainerConfig = {}) {
|
}: createTestSqlContainerConfig = {}) {
|
||||||
const databaseId = databaseName ? databaseName : generateUniqueName("db");
|
const databaseId = databaseName ? databaseName : generateUniqueName("db");
|
||||||
const containerId = "testcontainer"; // A unique container name isn't needed because the database is unique
|
const containerId = "testcontainer"; // A unique container name isn't needed because the database is unique
|
||||||
const { armClient, client } = await createCosmosClientForSQLAccount();
|
const credentials = getAzureCLICredentials();
|
||||||
|
const adaptedCredentials = new AzureIdentityCredentialAdapter(credentials);
|
||||||
|
const armClient = new CosmosDBManagementClient(adaptedCredentials, subscriptionId);
|
||||||
|
const accountName = getAccountName(TestAccount.SQL);
|
||||||
|
const account = await armClient.databaseAccounts.get(resourceGroupName, accountName);
|
||||||
|
|
||||||
|
const clientOptions: CosmosClientOptions = {
|
||||||
|
endpoint: account.documentEndpoint!,
|
||||||
|
};
|
||||||
|
|
||||||
|
const nosqlAccountRbacToken = process.env.NOSQL_TESTACCOUNT_TOKEN;
|
||||||
|
if (nosqlAccountRbacToken) {
|
||||||
|
clientOptions.tokenProvider = async (): Promise<string> => {
|
||||||
|
const AUTH_PREFIX = `type=aad&ver=1.0&sig=`;
|
||||||
|
const authorizationToken = `${AUTH_PREFIX}${nosqlAccountRbacToken}`;
|
||||||
|
return authorizationToken;
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
const keys = await armClient.databaseAccounts.listKeys(resourceGroupName, accountName);
|
||||||
|
clientOptions.key = keys.primaryMasterKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
const client = new CosmosClient(clientOptions);
|
||||||
const { database } = await client.databases.createIfNotExists({ id: databaseId });
|
const { database } = await client.databases.createIfNotExists({ id: databaseId });
|
||||||
try {
|
try {
|
||||||
const { container } = await database.containers.createIfNotExists({
|
const { container } = await database.containers.createIfNotExists({
|
||||||
@@ -231,7 +211,7 @@ export async function createTestSQLContainer({
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const setPartitionKeys = (partitionKeys: PartitionKey[]) => {
|
export const setPartitionKeys = (partitionKeys: PartitionKey[]) => {
|
||||||
const result: Record<string, unknown> = {};
|
const result = {};
|
||||||
|
|
||||||
partitionKeys.forEach((partitionKey) => {
|
partitionKeys.forEach((partitionKey) => {
|
||||||
const { key: keyPath, value: keyValue } = partitionKey;
|
const { key: keyPath, value: keyValue } = partitionKey;
|
||||||
@@ -244,7 +224,7 @@ export const setPartitionKeys = (partitionKeys: PartitionKey[]) => {
|
|||||||
current[key] = keyValue;
|
current[key] = keyValue;
|
||||||
} else {
|
} else {
|
||||||
current[key] = current[key] || {};
|
current[key] = current[key] || {};
|
||||||
current = current[key] as Record<string, unknown>;
|
current = current[key];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
75
utils/deployment-status/package-lock.json
generated
75
utils/deployment-status/package-lock.json
generated
@@ -1,103 +1,66 @@
|
|||||||
{
|
{
|
||||||
"name": "deployment-status",
|
"name": "deployment-status",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
|
||||||
"": {
|
|
||||||
"name": "deployment-status",
|
|
||||||
"version": "1.0.0",
|
|
||||||
"license": "ISC",
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"chalk": "^4.1.0",
|
"@types/color-name": {
|
||||||
"moment": "^2.30.1",
|
|
||||||
"node-fetch": "^2.6.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@types/color-name": {
|
|
||||||
"version": "1.1.1",
|
"version": "1.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz",
|
||||||
"integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ=="
|
"integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ=="
|
||||||
},
|
},
|
||||||
"node_modules/ansi-styles": {
|
"ansi-styles": {
|
||||||
"version": "4.2.1",
|
"version": "4.2.1",
|
||||||
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz",
|
||||||
"integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==",
|
"integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==",
|
||||||
"dependencies": {
|
"requires": {
|
||||||
"@types/color-name": "^1.1.1",
|
"@types/color-name": "^1.1.1",
|
||||||
"color-convert": "^2.0.1"
|
"color-convert": "^2.0.1"
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=8"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/chalk": {
|
"chalk": {
|
||||||
"version": "4.1.0",
|
"version": "4.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz",
|
||||||
"integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==",
|
"integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==",
|
||||||
"dependencies": {
|
"requires": {
|
||||||
"ansi-styles": "^4.1.0",
|
"ansi-styles": "^4.1.0",
|
||||||
"supports-color": "^7.1.0"
|
"supports-color": "^7.1.0"
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=10"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/chalk/chalk?sponsor=1"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/color-convert": {
|
"color-convert": {
|
||||||
"version": "2.0.1",
|
"version": "2.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
|
||||||
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
|
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
|
||||||
"dependencies": {
|
"requires": {
|
||||||
"color-name": "~1.1.4"
|
"color-name": "~1.1.4"
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=7.0.0"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/color-name": {
|
"color-name": {
|
||||||
"version": "1.1.4",
|
"version": "1.1.4",
|
||||||
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
|
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
|
||||||
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
|
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
|
||||||
},
|
},
|
||||||
"node_modules/has-flag": {
|
"has-flag": {
|
||||||
"version": "4.0.0",
|
"version": "4.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
|
||||||
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
|
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="
|
||||||
"engines": {
|
|
||||||
"node": ">=8"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"node_modules/moment": {
|
"moment": {
|
||||||
"version": "2.30.1",
|
"version": "2.27.0",
|
||||||
"resolved": "https://registry.npmjs.org/moment/-/moment-2.30.1.tgz",
|
"resolved": "https://registry.npmjs.org/moment/-/moment-2.27.0.tgz",
|
||||||
"integrity": "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==",
|
"integrity": "sha512-al0MUK7cpIcglMv3YF13qSgdAIqxHTO7brRtaz3DlSULbqfazqkc5kEjNrLDOM7fsjshoFIihnU8snrP7zUvhQ=="
|
||||||
"engines": {
|
|
||||||
"node": "*"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"node_modules/node-fetch": {
|
"node-fetch": {
|
||||||
"version": "2.6.1",
|
"version": "2.6.1",
|
||||||
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz",
|
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz",
|
||||||
"integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==",
|
"integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw=="
|
||||||
"engines": {
|
|
||||||
"node": "4.x || >=6.0.0"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"node_modules/supports-color": {
|
"supports-color": {
|
||||||
"version": "7.1.0",
|
"version": "7.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz",
|
||||||
"integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==",
|
"integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==",
|
||||||
"dependencies": {
|
"requires": {
|
||||||
"has-flag": "^4.0.0"
|
"has-flag": "^4.0.0"
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=8"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"chalk": "^4.1.0",
|
"chalk": "^4.1.0",
|
||||||
"moment": "^2.30.1",
|
"moment": "^2.27.0",
|
||||||
"node-fetch": "^2.6.1"
|
"node-fetch": "^2.6.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -303,53 +303,51 @@ module.exports = function (_env = {}, argv = {}) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Only handle OPTIONS for /api (preflight)
|
|
||||||
if (server?.app) {
|
|
||||||
server.app.options("/api", (_req, res) => res.sendStatus(200));
|
|
||||||
server.app.options("/api/*", (_req, res) => res.sendStatus(200));
|
|
||||||
}
|
|
||||||
|
|
||||||
return middlewares;
|
return middlewares;
|
||||||
},
|
},
|
||||||
proxy: [
|
proxy: {
|
||||||
{
|
"/api": {
|
||||||
context: ["/api"],
|
|
||||||
target: "https://cdb-ms-mpac-pbe.cosmos.azure.com",
|
target: "https://cdb-ms-mpac-pbe.cosmos.azure.com",
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
logLevel: "debug",
|
logLevel: "debug",
|
||||||
|
bypass: (req, res) => {
|
||||||
|
if (req.method === "OPTIONS") {
|
||||||
|
res.statusCode = 200;
|
||||||
|
res.send();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
},
|
||||||
context: ["/proxy"],
|
"/proxy": {
|
||||||
target: "https://cdb-ms-mpac-pbe.cosmos.azure.com",
|
target: "https://cdb-ms-mpac-pbe.cosmos.azure.com",
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
secure: false,
|
secure: false,
|
||||||
logLevel: "debug",
|
logLevel: "debug",
|
||||||
pathRewrite: { "^/proxy": "" },
|
pathRewrite: { "^/proxy": "" },
|
||||||
router: (req) => req.headers["x-ms-proxy-target"],
|
router: (req) => {
|
||||||
|
let newTarget = req.headers["x-ms-proxy-target"];
|
||||||
|
return newTarget;
|
||||||
},
|
},
|
||||||
{
|
},
|
||||||
context: ["/_explorer"],
|
"/_explorer": {
|
||||||
target: process.env.EMULATOR_ENDPOINT || "https://localhost:8081/",
|
target: process.env.EMULATOR_ENDPOINT || "https://localhost:8081/",
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
secure: false,
|
secure: false,
|
||||||
logLevel: "debug",
|
logLevel: "debug",
|
||||||
},
|
},
|
||||||
{
|
"/explorerProxy": {
|
||||||
context: ["/explorerProxy"],
|
|
||||||
target: process.env.EMULATOR_ENDPOINT || "https://localhost:8081/",
|
target: process.env.EMULATOR_ENDPOINT || "https://localhost:8081/",
|
||||||
pathRewrite: { "^/explorerProxy": "" },
|
pathRewrite: { "^/explorerProxy": "" },
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
secure: false,
|
secure: false,
|
||||||
logLevel: "debug",
|
logLevel: "debug",
|
||||||
},
|
},
|
||||||
{
|
[`/${AZURE_TENANT_ID}`]: {
|
||||||
context: [`/${AZURE_TENANT_ID}`],
|
|
||||||
target: "https://login.microsoftonline.com/",
|
target: "https://login.microsoftonline.com/",
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
secure: false,
|
secure: false,
|
||||||
logLevel: "debug",
|
logLevel: "debug",
|
||||||
},
|
},
|
||||||
],
|
},
|
||||||
},
|
},
|
||||||
stats: "minimal",
|
stats: "minimal",
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user