dbx-tools-node-runtime 0.9.93__tar.gz → 0.9.95__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {dbx_tools_node_runtime-0.9.93 → dbx_tools_node_runtime-0.9.95}/PKG-INFO +1 -1
- {dbx_tools_node_runtime-0.9.93 → dbx_tools_node_runtime-0.9.95}/pyproject.toml +1 -1
- {dbx_tools_node_runtime-0.9.93 → dbx_tools_node_runtime-0.9.95}/pyproject.toml.orig +1 -1
- {dbx_tools_node_runtime-0.9.93 → dbx_tools_node_runtime-0.9.95}/src/dbx_tools/node_runtime/runtime.js +8 -4
- {dbx_tools_node_runtime-0.9.93 → dbx_tools_node_runtime-0.9.95}/LICENSE +0 -0
- {dbx_tools_node_runtime-0.9.93 → dbx_tools_node_runtime-0.9.95}/README.md +0 -0
- {dbx_tools_node_runtime-0.9.93 → dbx_tools_node_runtime-0.9.95}/src/dbx_tools/node_runtime/__init__.py +0 -0
- {dbx_tools_node_runtime-0.9.93 → dbx_tools_node_runtime-0.9.95}/src/dbx_tools/node_runtime/__main__.py +0 -0
- {dbx_tools_node_runtime-0.9.93 → dbx_tools_node_runtime-0.9.95}/src/dbx_tools/node_runtime/bootstrap.py +0 -0
- {dbx_tools_node_runtime-0.9.93 → dbx_tools_node_runtime-0.9.95}/src/dbx_tools/node_runtime/py.typed +0 -0
- {dbx_tools_node_runtime-0.9.93 → dbx_tools_node_runtime-0.9.95}/src/dbx_tools/node_runtime/runtime.py +0 -0
|
@@ -11191,11 +11191,15 @@ function isDatabricksAppEnv(source = runtimeEnvironment()) {
|
|
|
11191
11191
|
const name = source.DATABRICKS_APP_NAME?.trim();
|
|
11192
11192
|
const host2 = source.DATABRICKS_HOST?.trim();
|
|
11193
11193
|
const port = source.DATABRICKS_APP_PORT?.trim();
|
|
11194
|
-
if (name && /\$\{[^}]+\}/.test(name)
|
|
11195
|
-
return false;
|
|
11196
|
-
const parsedPort = Number(port);
|
|
11197
|
-
if (!Number.isInteger(parsedPort) || parsedPort < 1 || parsedPort > MAX_TCP_PORT)
|
|
11194
|
+
if (!host2 || !name && !port || name && /\$\{[^}]+\}/.test(name))
|
|
11198
11195
|
return false;
|
|
11196
|
+
if (port) {
|
|
11197
|
+
if (!/^\d+$/.test(port))
|
|
11198
|
+
return false;
|
|
11199
|
+
const parsedPort = Number(port);
|
|
11200
|
+
if (!Number.isInteger(parsedPort) || parsedPort < 1 || parsedPort > MAX_TCP_PORT)
|
|
11201
|
+
return false;
|
|
11202
|
+
}
|
|
11199
11203
|
try {
|
|
11200
11204
|
const url = new URL(host2);
|
|
11201
11205
|
return (url.protocol === "http:" || url.protocol === "https:") && Boolean(url.hostname);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dbx_tools_node_runtime-0.9.93 → dbx_tools_node_runtime-0.9.95}/src/dbx_tools/node_runtime/py.typed
RENAMED
|
File without changes
|
|
File without changes
|