dbx-tools-node-runtime 0.9.58__tar.gz → 0.9.61__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.58
3
+ Version: 0.9.61
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.58"
3
+ version = "0.9.61"
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.58"
5
+ version = "0.9.61"
6
6
  description = "Shared PythonMonkey runtime and lazy Node.js bootstrap"
7
7
  readme = "README.md"
8
8
  requires-python = ">=3.10,<4"
@@ -11204,6 +11204,33 @@ function isDatabricksAppEnv(source = runtimeEnvironment()) {
11204
11204
  }
11205
11205
  }
11206
11206
 
11207
+ // packages/js/shared/core/src/string-utils.ts
11208
+ var TOKENIZE_DEFAULTS = {
11209
+ distinct: false,
11210
+ lowerCase: false,
11211
+ capitalize: false,
11212
+ omitUriScheme: false,
11213
+ omitEmailDomain: false,
11214
+ camelCase: true
11215
+ };
11216
+ var IDENTIFIER_DEFAULTS = {
11217
+ ...TOKENIZE_DEFAULTS,
11218
+ lowerCase: true,
11219
+ maxLength: Infinity,
11220
+ truncateStrategy: "hash",
11221
+ truncateHashLength: 6,
11222
+ delimiter: "-"
11223
+ };
11224
+ function trimToNull(value) {
11225
+ if (typeof value !== "string")
11226
+ return null;
11227
+ const trimmed = value.trim();
11228
+ return trimmed ? trimmed : null;
11229
+ }
11230
+ function trimToUndefined(value) {
11231
+ return trimToNull(value) ?? undefined;
11232
+ }
11233
+
11207
11234
  // packages/py/node-runtime/shims/databricks-runtime-auth.ts
11208
11235
  var createWorkspaceClient = evaluatePython("lambda: __import__('databricks.sdk', fromlist=['WorkspaceClient']).WorkspaceClient()");
11209
11236
  var runtimeMetadata = evaluatePython("lambda client: {'host': client.config.host, 'workspaceId': getattr(client.config, 'workspace_id', None), 'principal': getattr(client.config, 'client_id', None) or getattr(client.config, 'username', None) or getattr(client.config, 'auth_type', None)}");
@@ -11221,7 +11248,7 @@ async function databricksRuntimeAuthClient() {
11221
11248
  ...metadata.principal ? { principal: metadata.principal } : {},
11222
11249
  async token() {
11223
11250
  const token = await runPythonInThread(configuredToken, client);
11224
- return typeof token === "string" && token.trim() ? token : undefined;
11251
+ return trimToUndefined(token);
11225
11252
  },
11226
11253
  async authenticate() {
11227
11254
  const headers = await runPythonInThread(authenticationHeaders, client);