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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dbx-tools-node-runtime
3
- Version: 0.9.93
3
+ Version: 0.9.95
4
4
  Summary: Shared PythonMonkey runtime and lazy Node.js bootstrap
5
5
  License-Expression: Apache-2.0
6
6
  License-File: LICENSE
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "dbx-tools-node-runtime"
3
- version = "0.9.93"
3
+ version = "0.9.95"
4
4
  description = "Shared PythonMonkey runtime and lazy Node.js bootstrap"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10,<4"
@@ -2,7 +2,7 @@
2
2
 
3
3
  [project]
4
4
  name = "dbx-tools-node-runtime"
5
- version = "0.9.93"
5
+ version = "0.9.95"
6
6
  description = "Shared PythonMonkey runtime and lazy Node.js bootstrap"
7
7
  readme = "README.md"
8
8
  requires-python = ">=3.10,<4"
@@ -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) || !host2 || !port || !/^\d+$/.test(port))
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);