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.
- {dbx_tools_node_runtime-0.9.58 → dbx_tools_node_runtime-0.9.61}/PKG-INFO +1 -1
- {dbx_tools_node_runtime-0.9.58 → dbx_tools_node_runtime-0.9.61}/pyproject.toml +1 -1
- {dbx_tools_node_runtime-0.9.58 → dbx_tools_node_runtime-0.9.61}/pyproject.toml.orig +1 -1
- {dbx_tools_node_runtime-0.9.58 → dbx_tools_node_runtime-0.9.61}/src/dbx_tools/node_runtime/runtime.js +28 -1
- {dbx_tools_node_runtime-0.9.58 → dbx_tools_node_runtime-0.9.61}/LICENSE +0 -0
- {dbx_tools_node_runtime-0.9.58 → dbx_tools_node_runtime-0.9.61}/README.md +0 -0
- {dbx_tools_node_runtime-0.9.58 → dbx_tools_node_runtime-0.9.61}/src/dbx_tools/node_runtime/__init__.py +0 -0
- {dbx_tools_node_runtime-0.9.58 → dbx_tools_node_runtime-0.9.61}/src/dbx_tools/node_runtime/__main__.py +0 -0
- {dbx_tools_node_runtime-0.9.58 → dbx_tools_node_runtime-0.9.61}/src/dbx_tools/node_runtime/bootstrap.py +0 -0
- {dbx_tools_node_runtime-0.9.58 → dbx_tools_node_runtime-0.9.61}/src/dbx_tools/node_runtime/py.typed +0 -0
- {dbx_tools_node_runtime-0.9.58 → dbx_tools_node_runtime-0.9.61}/src/dbx_tools/node_runtime/runtime.py +0 -0
|
@@ -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
|
|
11251
|
+
return trimToUndefined(token);
|
|
11225
11252
|
},
|
|
11226
11253
|
async authenticate() {
|
|
11227
11254
|
const headers = await runPythonInThread(authenticationHeaders, client);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dbx_tools_node_runtime-0.9.58 → dbx_tools_node_runtime-0.9.61}/src/dbx_tools/node_runtime/py.typed
RENAMED
|
File without changes
|
|
File without changes
|