mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-06-13 07:57:26 +01:00
misc fixes
This commit is contained in:
Generated
+7
-5
@@ -211,6 +211,7 @@
|
|||||||
},
|
},
|
||||||
"local_dependencies/@azure/cosmos": {
|
"local_dependencies/@azure/cosmos": {
|
||||||
"version": "4.0.1-beta.3",
|
"version": "4.0.1-beta.3",
|
||||||
|
"extraneous": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@azure/abort-controller": "^1.0.0",
|
"@azure/abort-controller": "^1.0.0",
|
||||||
@@ -231,11 +232,6 @@
|
|||||||
"node": ">=18.0.0"
|
"node": ">=18.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"local_dependencies/@azure/cosmos/node_modules/tslib": {
|
|
||||||
"version": "2.7.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.7.0.tgz",
|
|
||||||
"integrity": "sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA=="
|
|
||||||
},
|
|
||||||
"local_dependencies/cosmos": {
|
"local_dependencies/cosmos": {
|
||||||
"name": "@azure/cosmos",
|
"name": "@azure/cosmos",
|
||||||
"version": "4.0.1-beta.3",
|
"version": "4.0.1-beta.3",
|
||||||
@@ -480,6 +476,12 @@
|
|||||||
"node": ">=0.10.0"
|
"node": ">=0.10.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@azure/cosmos/node_modules/tslib": {
|
||||||
|
"version": "2.8.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
|
||||||
|
"integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
|
||||||
|
"license": "0BSD"
|
||||||
|
},
|
||||||
"node_modules/@azure/identity": {
|
"node_modules/@azure/identity": {
|
||||||
"version": "1.5.2",
|
"version": "1.5.2",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
+1
-1
@@ -205,7 +205,7 @@
|
|||||||
"build:dataExplorer:ci": "npm run build:ci",
|
"build:dataExplorer:ci": "npm run build:ci",
|
||||||
"build": "npm run format:check && npm run lint && npm run compile && npm run compile:strict && npm run pack:prod && npm run copyToConsumers",
|
"build": "npm run format:check && npm run lint && npm run compile && npm run compile:strict && npm run pack:prod && npm run copyToConsumers",
|
||||||
"build:ci": "npm run format:check && npm run lint && npm run compile && npm run compile:strict && npm run pack:fast",
|
"build:ci": "npm run format:check && npm run lint && npm run compile && npm run compile:strict && npm run pack:fast",
|
||||||
"build:proxy": "npm run format:check && npm run lint && npm run compile && npm run compile:strict && npm run pack:prod && npm run copyToProxy",
|
"build:proxy": "npm run compile && npm run compile:strict && npm run pack:prod && npm run copyToProxy",
|
||||||
"pack:prod": "webpack --mode production",
|
"pack:prod": "webpack --mode production",
|
||||||
"pack:fast": "webpack --mode development --progress",
|
"pack:fast": "webpack --mode development --progress",
|
||||||
"copyToConsumers": "node copyToConsumers",
|
"copyToConsumers": "node copyToConsumers",
|
||||||
|
|||||||
@@ -28,6 +28,10 @@ app.get("/_ready", (_, res) => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
app.get("config.json", (_, res) => {
|
||||||
|
res.json({ EMULATOR_ENDPOINT: conf.EMULATOR_ENDPOINT });
|
||||||
|
});
|
||||||
|
|
||||||
const bypass = (req, res) => {
|
const bypass = (req, res) => {
|
||||||
if (req.method === "OPTIONS") {
|
if (req.method === "OPTIONS") {
|
||||||
res.statusCode = 200;
|
res.statusCode = 200;
|
||||||
|
|||||||
+9
-6
@@ -134,12 +134,13 @@ module.exports = function (_env = {}, argv = {}) {
|
|||||||
chunks: ["terminal"],
|
chunks: ["terminal"],
|
||||||
}),
|
}),
|
||||||
//todo - dynamically include apis
|
//todo - dynamically include apis
|
||||||
ishttps ?
|
ishttps
|
||||||
new HtmlWebpackPlugin({
|
? new HtmlWebpackPlugin({
|
||||||
filename: "quickstart.html",
|
filename: "quickstart.html",
|
||||||
template: "src/quickstart-sql-only.html",
|
template: "src/quickstart-sql-only.html",
|
||||||
chunks: ["quickstart"],
|
chunks: ["quickstart"],
|
||||||
}) : new HtmlWebpackPlugin({
|
})
|
||||||
|
: new HtmlWebpackPlugin({
|
||||||
filename: "quickstart.html",
|
filename: "quickstart.html",
|
||||||
template: "src/quickstart-sql-only-http.html",
|
template: "src/quickstart-sql-only-http.html",
|
||||||
chunks: ["quickstart"],
|
chunks: ["quickstart"],
|
||||||
@@ -201,9 +202,11 @@ module.exports = function (_env = {}, argv = {}) {
|
|||||||
];
|
];
|
||||||
|
|
||||||
if (process.env.EXPLORER_CONFIG_PATH) {
|
if (process.env.EXPLORER_CONFIG_PATH) {
|
||||||
plugins.push(new CopyWebpackPlugin({
|
plugins.push(
|
||||||
patterns: [{ from: process.env.EXPLORER_CONFIG_PATH, to: "config.json" }]
|
new CopyWebpackPlugin({
|
||||||
}));
|
patterns: [{ from: process.env.EXPLORER_CONFIG_PATH, to: "config.json" }],
|
||||||
|
}),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (argv.analyze) {
|
if (argv.analyze) {
|
||||||
|
|||||||
Reference in New Issue
Block a user