Skip to content

Commit 7aafc0a

Browse files
committed
chore: fixup
1 parent 61f25f1 commit 7aafc0a

6 files changed

Lines changed: 6 additions & 13 deletions

File tree

packages/appkit/src/connectors/files/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import {
2424

2525
const logger = createLogger("connectors:files");
2626

27-
export interface FilesConnectorConfig {
27+
interface FilesConnectorConfig {
2828
defaultVolume?: string;
2929
timeout?: number;
3030
telemetry?: TelemetryOptions;

packages/appkit/src/connectors/files/defaults.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
export 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",

packages/appkit/src/context/execution-context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

packages/appkit/src/context/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export {
44
getWarehouseId,
55
getWorkspaceClient,
66
getWorkspaceId,
7+
isInUserContext,
78
runInUserContext,
89
} from "./execution-context";
910
export { ServiceContext } from "./service-context";

packages/appkit/src/plugins/files/defaults.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,3 @@ export const FILES_WRITE_DEFAULTS: PluginExecuteConfig = {
6161
* This matches the Databricks Files API v2 per-file limit.
6262
*/
6363
export 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";
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
export {
2-
streamFromChunks,
3-
streamFromString,
4-
} from "../../../connectors/files/tests/utils";
1+
export { streamFromString } from "../../../connectors/files/tests/utils";

0 commit comments

Comments
 (0)