File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import {
2424
2525const logger = createLogger ( "connectors:files" ) ;
2626
27- export interface FilesConnectorConfig {
27+ interface FilesConnectorConfig {
2828 defaultVolume ?: string ;
2929 timeout ?: number ;
3030 telemetry ?: TelemetryOptions ;
Original file line number Diff line number Diff line change 55 */
66export const FILES_MAX_READ_SIZE = 10 * 1024 * 1024 ; // 10 MB
77
8- export const EXTENSION_CONTENT_TYPES : Record < string , string > = Object . freeze ( {
8+ const EXTENSION_CONTENT_TYPES : Record < string , string > = Object . freeze ( {
99 ".png" : "image/png" ,
1010 ".jpg" : "image/jpeg" ,
1111 ".jpeg" : "image/jpeg" ,
@@ -87,7 +87,7 @@ export function isSafeInlineContentType(contentType: string): boolean {
8787 * browsers can execute scripts from them. Allowing these in custom mappings
8888 * would bypass the `/raw` endpoint's forced-download protection for unsafe types.
8989 */
90- export const DANGEROUS_CONTENT_TYPES : ReadonlySet < string > = new Set ( [
90+ const DANGEROUS_CONTENT_TYPES : ReadonlySet < string > = new Set ( [
9191 "text/html" ,
9292 "text/javascript" ,
9393 "application/javascript" ,
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ export function getWorkspaceId(): Promise<string> {
8585/**
8686 * Check if currently running in a user context.
8787 */
88- function _isInUserContext ( ) : boolean {
88+ export function isInUserContext ( ) : boolean {
8989 const ctx = executionContextStorage . getStore ( ) ;
9090 return ctx !== undefined ;
9191}
Original file line number Diff line number Diff line change 44 getWarehouseId ,
55 getWorkspaceClient ,
66 getWorkspaceId ,
7+ isInUserContext ,
78 runInUserContext ,
89} from "./execution-context" ;
910export { ServiceContext } from "./service-context" ;
Original file line number Diff line number Diff line change @@ -61,8 +61,3 @@ export const FILES_WRITE_DEFAULTS: PluginExecuteConfig = {
6161 * This matches the Databricks Files API v2 per-file limit.
6262 */
6363export const FILES_MAX_UPLOAD_SIZE = 5 * 1024 * 1024 * 1024 ; // 5 GB
64-
65- export {
66- EXTENSION_CONTENT_TYPES ,
67- FILES_MAX_READ_SIZE ,
68- } from "../../connectors/files/defaults" ;
Original file line number Diff line number Diff line change 1- export {
2- streamFromChunks ,
3- streamFromString ,
4- } from "../../../connectors/files/tests/utils" ;
1+ export { streamFromString } from "../../../connectors/files/tests/utils" ;
You can’t perform that action at this time.
0 commit comments