@muhgholy/next-drive 4.23.6 → 4.23.8
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.
- package/dist/{chunk-TA6L5FYG.cjs → chunk-HQTC3554.cjs} +47 -2
- package/dist/chunk-HQTC3554.cjs.map +1 -0
- package/dist/{chunk-TMSG5WJZ.js → chunk-OSYRIHH4.js} +47 -3
- package/dist/chunk-OSYRIHH4.js.map +1 -0
- package/dist/{chunk-VIB7R4JN.cjs → chunk-OU5TKLHV.cjs} +929 -832
- package/dist/chunk-OU5TKLHV.cjs.map +1 -0
- package/dist/{chunk-GV4HB2G6.js → chunk-RBSFEEJJ.js} +926 -829
- package/dist/chunk-RBSFEEJJ.js.map +1 -0
- package/dist/client/components/drive/{RenameAccountDialog.d.ts → account/rename.d.ts} +2 -2
- package/dist/client/components/drive/account/rename.d.ts.map +1 -0
- package/dist/client/components/drive/{dnd-provider.d.ts → dnd/context.d.ts} +1 -1
- package/dist/client/components/drive/dnd/context.d.ts.map +1 -0
- package/dist/client/components/drive/{CreateFolderDialog.d.ts → folder/create.d.ts} +2 -2
- package/dist/client/components/drive/folder/create.d.ts.map +1 -0
- package/dist/client/components/drive/{RenameDialog.d.ts → item/rename.d.ts} +3 -3
- package/dist/client/components/drive/item/rename.d.ts.map +1 -0
- package/dist/client/components/{dialog.d.ts → shared/confirm.d.ts} +2 -2
- package/dist/client/components/shared/confirm.d.ts.map +1 -0
- package/dist/client/components/ui/{alert-dialog.d.ts → alert-modal.d.ts} +1 -1
- package/dist/client/components/ui/alert-modal.d.ts.map +1 -0
- package/dist/client/components/ui/{dialog-fullscreen.d.ts → fullscreen.d.ts} +1 -1
- package/dist/client/components/ui/fullscreen.d.ts.map +1 -0
- package/dist/client/components/ui/{dialog.d.ts → modal.d.ts} +1 -1
- package/dist/client/components/ui/modal.d.ts.map +1 -0
- package/dist/client/context.d.ts.map +1 -1
- package/dist/client/file-chooser.d.ts.map +1 -1
- package/dist/client/hooks/{useUpload.d.ts → use-upload.d.ts} +1 -1
- package/dist/client/hooks/use-upload.d.ts.map +1 -0
- package/dist/client/index.cjs +351 -279
- package/dist/client/index.cjs.map +1 -1
- package/dist/client/index.css +1 -1
- package/dist/client/index.d.ts +12 -11
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +245 -173
- package/dist/client/index.js.map +1 -1
- package/dist/client/utils.d.ts +1 -0
- package/dist/client/utils.d.ts.map +1 -1
- package/dist/server/actions/auth.d.ts +4 -0
- package/dist/server/actions/auth.d.ts.map +1 -0
- package/dist/server/actions/cors.d.ts +4 -0
- package/dist/server/actions/cors.d.ts.map +1 -0
- package/dist/server/actions/drive.d.ts +18 -0
- package/dist/server/actions/drive.d.ts.map +1 -0
- package/dist/server/actions/public.d.ts +4 -0
- package/dist/server/actions/public.d.ts.map +1 -0
- package/dist/server/actions/shared.d.ts +14 -0
- package/dist/server/actions/shared.d.ts.map +1 -0
- package/dist/server/express.cjs +12 -12
- package/dist/server/express.js +3 -3
- package/dist/server/hono.cjs +12 -12
- package/dist/server/hono.js +3 -3
- package/dist/server/index.cjs +18 -18
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +2 -2
- package/dist/server/security/{cryptoUtils.d.ts → crypto-utils.d.ts} +1 -1
- package/dist/server/security/crypto-utils.d.ts.map +1 -0
- package/dist/server/security/{mimeFilter.d.ts → mime-filter.d.ts} +1 -1
- package/dist/server/security/mime-filter.d.ts.map +1 -0
- package/dist/server/storage-adapters/google.d.ts.map +1 -0
- package/dist/server/storage-adapters/local.d.ts.map +1 -0
- package/dist/server/utils/{folderValidation.d.ts → folder-validation.d.ts} +1 -1
- package/dist/server/utils/folder-validation.d.ts.map +1 -0
- package/dist/server/utils/{imageConvert.d.ts → image-convert.d.ts} +1 -1
- package/dist/server/utils/image-convert.d.ts.map +1 -0
- package/dist/types/lib/database/index.d.ts +2 -2
- package/dist/types/lib/database/index.d.ts.map +1 -1
- package/dist/types/server/index.d.ts +5 -5
- package/dist/types/server/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-GV4HB2G6.js.map +0 -1
- package/dist/chunk-TA6L5FYG.cjs.map +0 -1
- package/dist/chunk-TMSG5WJZ.js.map +0 -1
- package/dist/chunk-VIB7R4JN.cjs.map +0 -1
- package/dist/client/components/dialog.d.ts.map +0 -1
- package/dist/client/components/drive/CreateFolderDialog.d.ts.map +0 -1
- package/dist/client/components/drive/RenameAccountDialog.d.ts.map +0 -1
- package/dist/client/components/drive/RenameDialog.d.ts.map +0 -1
- package/dist/client/components/drive/dnd-provider.d.ts.map +0 -1
- package/dist/client/components/ui/alert-dialog.d.ts.map +0 -1
- package/dist/client/components/ui/dialog-fullscreen.d.ts.map +0 -1
- package/dist/client/components/ui/dialog.d.ts.map +0 -1
- package/dist/client/hooks/useUpload.d.ts.map +0 -1
- package/dist/server/providers/google.d.ts.map +0 -1
- package/dist/server/providers/local.d.ts.map +0 -1
- package/dist/server/security/cryptoUtils.d.ts.map +0 -1
- package/dist/server/security/mimeFilter.d.ts.map +0 -1
- package/dist/server/utils/folderValidation.d.ts.map +0 -1
- package/dist/server/utils/imageConvert.d.ts.map +0 -1
- /package/dist/server/{providers → storage-adapters}/google.d.ts +0 -0
- /package/dist/server/{providers → storage-adapters}/local.d.ts +0 -0
package/dist/client/utils.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type ClassValue } from "clsx";
|
|
2
2
|
export declare function cn(...inputs: ClassValue[]): string;
|
|
3
3
|
export declare const formatBytes: (bytes: number, decimals?: number) => string;
|
|
4
|
+
export declare const getFileFormat: (mime?: string) => string;
|
|
4
5
|
import type { ReactNode } from 'react';
|
|
5
6
|
export declare const getFileIcon: (mime: string, isFolder: boolean, className?: string) => ReactNode;
|
|
6
7
|
export declare const matchesMimeFilter: (mime: string, isFolder: boolean, filter?: string) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/client/utils.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAC;AAG7C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC;AAGD,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,EAAE,iBAAY,KAAG,MAOzD,CAAC;AAEF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,EAAE,UAAU,OAAO,EAAE,kBAA2B,KAAG,SAU1F,CAAC;AAIF,eAAO,MAAM,iBAAiB,GAAI,MAAM,MAAM,EAAE,UAAU,OAAO,EAAE,SAAS,MAAM,KAAG,OA4EpF,CAAC;AAGF,eAAO,MAAM,eAAe,GAAI,SAAS,MAAM,KAAG,MAAM,GAAG,SAI1D,CAAC;AAEF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAGjD,eAAO,MAAM,cAAc,GAAI,WAAW,UAAU,EAAE,aAAa,MAAM,KAAG,MAO3E,CAAC"}
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/client/utils.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAC;AAG7C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC;AAGD,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,EAAE,iBAAY,KAAG,MAOzD,CAAC;AA2CF,eAAO,MAAM,aAAa,GAAI,OAAO,MAAM,KAAG,MAM7C,CAAC;AAEF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,EAAE,UAAU,OAAO,EAAE,kBAA2B,KAAG,SAU1F,CAAC;AAIF,eAAO,MAAM,iBAAiB,GAAI,MAAM,MAAM,EAAE,UAAU,OAAO,EAAE,SAAS,MAAM,KAAG,OA4EpF,CAAC;AAGF,eAAO,MAAM,eAAe,GAAI,SAAS,MAAM,KAAG,MAAM,GAAG,SAI1D,CAAC;AAEF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAGjD,eAAO,MAAM,cAAc,GAAI,WAAW,UAAU,EAAE,aAAa,MAAM,KAAG,MAO3E,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { NextApiRequest, NextApiResponse } from 'next';
|
|
2
|
+
import { getDriveConfig } from '../../server/config';
|
|
3
|
+
export declare const handleAuthAction: (req: NextApiRequest, res: NextApiResponse, action: string, config: ReturnType<typeof getDriveConfig>, owner: Record<string, unknown> | null) => Promise<boolean>;
|
|
4
|
+
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/server/actions/auth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAE5D,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAKjD,eAAO,MAAM,gBAAgB,GACzB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,QAAQ,MAAM,EACd,QAAQ,UAAU,CAAC,OAAO,cAAc,CAAC,EACzC,OAAO,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,KACtC,OAAO,CAAC,OAAO,CAgJjB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { NextApiRequest, NextApiResponse } from 'next';
|
|
2
|
+
import { getDriveConfig } from '../../server/config';
|
|
3
|
+
export declare const applyCorsHeaders: (req: NextApiRequest, res: NextApiResponse, config: ReturnType<typeof getDriveConfig>) => boolean;
|
|
4
|
+
//# sourceMappingURL=cors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cors.d.ts","sourceRoot":"","sources":["../../../src/server/actions/cors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,eAAO,MAAM,gBAAgB,GAAI,KAAK,cAAc,EAAE,KAAK,eAAe,EAAE,QAAQ,UAAU,CAAC,OAAO,cAAc,CAAC,KAAG,OAmDvH,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { NextApiRequest, NextApiResponse } from 'next';
|
|
2
|
+
import { getDriveConfig } from '../../server/config';
|
|
3
|
+
import type { TDriveConfigInformation } from '../../types/server';
|
|
4
|
+
import type { TStorageProvider } from '../../types/server/storage';
|
|
5
|
+
type TDriveActionContext = {
|
|
6
|
+
req: NextApiRequest;
|
|
7
|
+
res: NextApiResponse;
|
|
8
|
+
action: string;
|
|
9
|
+
config: ReturnType<typeof getDriveConfig>;
|
|
10
|
+
owner: Record<string, unknown> | null;
|
|
11
|
+
isRootMode: boolean;
|
|
12
|
+
information: TDriveConfigInformation;
|
|
13
|
+
provider: TStorageProvider;
|
|
14
|
+
accountId?: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const handleDriveAction: (ctx: TDriveActionContext) => Promise<void>;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=drive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drive.d.ts","sourceRoot":"","sources":["../../../src/server/actions/drive.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAM5D,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGjD,OAAO,KAAK,EAAkB,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAC9E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAM/D,KAAK,mBAAmB,GAAG;IACvB,GAAG,EAAE,cAAc,CAAC;IACpB,GAAG,EAAE,eAAe,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;IAC1C,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACtC,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,uBAAuB,CAAC;IACrC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAU,KAAK,mBAAmB,KAAG,OAAO,CAAC,IAAI,CA6f9E,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { NextApiRequest, NextApiResponse } from 'next';
|
|
2
|
+
import { getDriveConfig } from '../../server/config';
|
|
3
|
+
export declare const handlePublicAction: (req: NextApiRequest, res: NextApiResponse, action: string, config: ReturnType<typeof getDriveConfig>) => Promise<boolean>;
|
|
4
|
+
//# sourceMappingURL=public.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/server/actions/public.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAK5D,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAOjD,eAAO,MAAM,kBAAkB,GAC3B,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,QAAQ,MAAM,EACd,QAAQ,UAAU,CAAC,OAAO,cAAc,CAAC,KAC1C,OAAO,CAAC,OAAO,CA4KjB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { NextApiRequest } from 'next';
|
|
2
|
+
import { getDriveConfig } from '../../server/config';
|
|
3
|
+
import Drive from '../../server/database/mongoose/schema/drive';
|
|
4
|
+
import type { TDatabaseDrive } from '../../types/server';
|
|
5
|
+
import type { TStorageProvider } from '../../types/server/storage';
|
|
6
|
+
export type TProviderResolution = {
|
|
7
|
+
provider: TStorageProvider;
|
|
8
|
+
accountId?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const resolveProvider: (req: NextApiRequest, owner: Record<string, unknown> | null) => Promise<TProviderResolution>;
|
|
11
|
+
export declare const withSignedUrl: (item: TDatabaseDrive, config: ReturnType<typeof getDriveConfig>) => TDatabaseDrive;
|
|
12
|
+
export declare const withSignedUrls: (items: TDatabaseDrive[], config: ReturnType<typeof getDriveConfig>) => TDatabaseDrive[];
|
|
13
|
+
export { Drive };
|
|
14
|
+
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../src/server/actions/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,MAAM,yCAAyC,CAAC;AAK5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,MAAM,MAAM,mBAAmB,GAAG;IAC9B,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,eAAe,GAAU,KAAK,cAAc,EAAE,OAAO,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,KAAG,OAAO,CAAC,mBAAmB,CAiB7H,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,MAAM,cAAc,EAAE,QAAQ,UAAU,CAAC,OAAO,cAAc,CAAC,KAAG,cAE/F,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,cAAc,EAAE,EAAE,QAAQ,UAAU,CAAC,OAAO,cAAc,CAAC,KAAG,cAAc,EAEjH,CAAC;AAEF,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
package/dist/server/express.cjs
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var chunkOU5TKLHV_cjs = require('../chunk-OU5TKLHV.cjs');
|
|
4
|
+
require('../chunk-HQTC3554.cjs');
|
|
5
5
|
|
|
6
6
|
// src/server/express.ts
|
|
7
|
-
var driveAPIHandlerExpress =
|
|
8
|
-
var driveConfigurationExpress =
|
|
7
|
+
var driveAPIHandlerExpress = chunkOU5TKLHV_cjs.driveAPIHandler;
|
|
8
|
+
var driveConfigurationExpress = chunkOU5TKLHV_cjs.driveConfiguration;
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "driveDelete", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkOU5TKLHV_cjs.driveDelete; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "driveFilePath", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkOU5TKLHV_cjs.driveFilePath; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "driveFileSchemaZod", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkOU5TKLHV_cjs.driveFileSchemaZod; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "driveGetUrl", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkOU5TKLHV_cjs.driveGetUrl; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "driveList", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkOU5TKLHV_cjs.driveList; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "driveReadFile", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkOU5TKLHV_cjs.driveReadFile; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "driveUpload", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkOU5TKLHV_cjs.driveUpload; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "getDriveConfig", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkOU5TKLHV_cjs.getDriveConfig; }
|
|
41
41
|
});
|
|
42
42
|
exports.driveAPIHandlerExpress = driveAPIHandlerExpress;
|
|
43
43
|
exports.driveConfigurationExpress = driveConfigurationExpress;
|
package/dist/server/express.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { driveAPIHandler, driveConfiguration } from '../chunk-
|
|
2
|
-
export { driveDelete, driveFilePath, driveFileSchemaZod, driveGetUrl, driveList, driveReadFile, driveUpload, getDriveConfig } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
import { driveAPIHandler, driveConfiguration } from '../chunk-RBSFEEJJ.js';
|
|
2
|
+
export { driveDelete, driveFilePath, driveFileSchemaZod, driveGetUrl, driveList, driveReadFile, driveUpload, getDriveConfig } from '../chunk-RBSFEEJJ.js';
|
|
3
|
+
import '../chunk-OSYRIHH4.js';
|
|
4
4
|
|
|
5
5
|
// src/server/express.ts
|
|
6
6
|
var driveAPIHandlerExpress = driveAPIHandler;
|
package/dist/server/hono.cjs
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var chunkOU5TKLHV_cjs = require('../chunk-OU5TKLHV.cjs');
|
|
4
|
+
require('../chunk-HQTC3554.cjs');
|
|
5
5
|
|
|
6
6
|
// src/server/hono.ts
|
|
7
|
-
var driveAPIHandlerHono =
|
|
8
|
-
var driveConfigurationHono =
|
|
7
|
+
var driveAPIHandlerHono = chunkOU5TKLHV_cjs.driveAPIHandler;
|
|
8
|
+
var driveConfigurationHono = chunkOU5TKLHV_cjs.driveConfiguration;
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "driveDelete", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkOU5TKLHV_cjs.driveDelete; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "driveFilePath", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkOU5TKLHV_cjs.driveFilePath; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "driveFileSchemaZod", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkOU5TKLHV_cjs.driveFileSchemaZod; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "driveGetUrl", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkOU5TKLHV_cjs.driveGetUrl; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "driveList", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkOU5TKLHV_cjs.driveList; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "driveReadFile", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkOU5TKLHV_cjs.driveReadFile; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "driveUpload", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkOU5TKLHV_cjs.driveUpload; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "getDriveConfig", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkOU5TKLHV_cjs.getDriveConfig; }
|
|
41
41
|
});
|
|
42
42
|
exports.driveAPIHandlerHono = driveAPIHandlerHono;
|
|
43
43
|
exports.driveConfigurationHono = driveConfigurationHono;
|
package/dist/server/hono.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { driveAPIHandler, driveConfiguration } from '../chunk-
|
|
2
|
-
export { driveDelete, driveFilePath, driveFileSchemaZod, driveGetUrl, driveList, driveReadFile, driveUpload, getDriveConfig } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
import { driveAPIHandler, driveConfiguration } from '../chunk-RBSFEEJJ.js';
|
|
2
|
+
export { driveDelete, driveFilePath, driveFileSchemaZod, driveGetUrl, driveList, driveReadFile, driveUpload, getDriveConfig } from '../chunk-RBSFEEJJ.js';
|
|
3
|
+
import '../chunk-OSYRIHH4.js';
|
|
4
4
|
|
|
5
5
|
// src/server/hono.ts
|
|
6
6
|
var driveAPIHandlerHono = driveAPIHandler;
|
package/dist/server/index.cjs
CHANGED
|
@@ -1,73 +1,73 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkOU5TKLHV_cjs = require('../chunk-OU5TKLHV.cjs');
|
|
4
|
+
var chunkHQTC3554_cjs = require('../chunk-HQTC3554.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "DatabaseMongoDrive", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkOU5TKLHV_cjs.drive_default; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "driveAPIHandler", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkOU5TKLHV_cjs.driveAPIHandler; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "driveCleanup", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkOU5TKLHV_cjs.driveCleanup; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "driveConfiguration", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkOU5TKLHV_cjs.driveConfiguration; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "driveDelete", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkOU5TKLHV_cjs.driveDelete; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "driveFilePath", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkOU5TKLHV_cjs.driveFilePath; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "driveFileSchemaZod", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkOU5TKLHV_cjs.driveFileSchemaZod; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "driveGetUrl", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkOU5TKLHV_cjs.driveGetUrl; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "driveInfo", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkOU5TKLHV_cjs.driveInfo; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "driveList", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkOU5TKLHV_cjs.driveList; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "driveListFiles", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkOU5TKLHV_cjs.driveListFiles; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "driveReadFile", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkOU5TKLHV_cjs.driveReadFile; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "driveUpload", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkOU5TKLHV_cjs.driveUpload; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "getDriveConfig", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkOU5TKLHV_cjs.getDriveConfig; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "getDriveInformation", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkOU5TKLHV_cjs.getDriveInformation; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "driveCreateUrl", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkHQTC3554_cjs.driveCreateUrl; }
|
|
71
71
|
});
|
|
72
72
|
//# sourceMappingURL=index.cjs.map
|
|
73
73
|
//# sourceMappingURL=index.cjs.map
|
package/dist/server/index.d.ts
CHANGED
|
@@ -8,5 +8,5 @@ export type { IDatabaseDriveDocument } from '../server/database/mongoose/schema/
|
|
|
8
8
|
export { driveFileSchemaZod } from '../server/zod/schemas';
|
|
9
9
|
export { driveCreateUrl } from '../client/utils';
|
|
10
10
|
export type { TDriveFile, TDriveInformation } from '../types/client';
|
|
11
|
-
export type
|
|
11
|
+
export type { TDriveDatabase, TDriveMode, TDriveInformationInput, TDriveConfigInformation, TDriveSecurityConfig, TDriveStorageConfig, TDriveCorsConfig, TDriveConfiguration, TDatabaseDriveStatus, TDatabaseDriveMetadataFile, TDatabaseDriveMetadataFolder, TDatabaseDriveInformation, TDatabaseDriveProvider, TDatabaseDriveMetadata, TDatabaseDrive, TDriveAction, TDriveAPIResponse, TDriveThumbnailSize, TDriveImageQuality, TMigration, TImageMetadata, TVideoMetadata, } from '../types/server';
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAE5D,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAQ1F,eAAO,MAAM,eAAe,GAAU,KAAK,cAAc,EAAE,KAAK,eAAe,KAAG,OAAO,CAAC,IAAI,CAmE7F,CAAC;AAEF,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,mBAAmB,EAAE,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AACrK,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AACxF,YAAY,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,YAAY,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACpE,YAAY,EACR,cAAc,EACd,UAAU,EACV,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACpB,0BAA0B,EAC1B,4BAA4B,EAC5B,yBAAyB,EACzB,sBAAsB,EACtB,sBAAsB,EACtB,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,UAAU,EACV,cAAc,EACd,cAAc,GACjB,MAAM,gBAAgB,CAAC"}
|
package/dist/server/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { drive_default as DatabaseMongoDrive, driveAPIHandler, driveCleanup, driveConfiguration, driveDelete, driveFilePath, driveFileSchemaZod, driveGetUrl, driveInfo, driveList, driveListFiles, driveReadFile, driveUpload, getDriveConfig, getDriveInformation } from '../chunk-
|
|
2
|
-
export { driveCreateUrl } from '../chunk-
|
|
1
|
+
export { drive_default as DatabaseMongoDrive, driveAPIHandler, driveCleanup, driveConfiguration, driveDelete, driveFilePath, driveFileSchemaZod, driveGetUrl, driveInfo, driveList, driveListFiles, driveReadFile, driveUpload, getDriveConfig, getDriveInformation } from '../chunk-RBSFEEJJ.js';
|
|
2
|
+
export { driveCreateUrl } from '../chunk-OSYRIHH4.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -10,4 +10,4 @@ export declare function getSafeErrorMessage(error: unknown): string;
|
|
|
10
10
|
* Validate and sanitize Content-Disposition filename
|
|
11
11
|
*/
|
|
12
12
|
export declare function sanitizeContentDispositionFilename(filename: string): string;
|
|
13
|
-
//# sourceMappingURL=
|
|
13
|
+
//# sourceMappingURL=crypto-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crypto-utils.d.ts","sourceRoot":"","sources":["../../../src/server/security/crypto-utils.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAWjE;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAyB1D;AAED;;GAEG;AACH,wBAAgB,kCAAkC,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAS3E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mime-filter.d.ts","sourceRoot":"","sources":["../../../src/server/security/mime-filter.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,OAAO,CAsB9E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"google.d.ts","sourceRoot":"","sources":["../../../src/server/storage-adapters/google.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,gBAAgB,EAAe,MAAM,wBAAwB,CAAC;AAuC5E,eAAO,MAAM,mBAAmB,EAAE,gBAmlBjC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local.d.ts","sourceRoot":"","sources":["../../../src/server/storage-adapters/local.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AA+B/D,eAAO,MAAM,oBAAoB,EAAE,gBAwQlC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"folder-validation.d.ts","sourceRoot":"","sources":["../../../src/server/utils/folder-validation.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,GAAU,OAAO,QAAQ,CAAC;IACjD,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACtC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC,KAAG,OAAO,CAAC,OAAO,CAoBnB,CAAC;AAGF,eAAO,MAAM,sBAAsB,GAAU,OAAO,QAAQ,CAAC;IACzD,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;CACzC,CAAC,KAAG,OAAO,CAAC;IAAE,WAAW,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAwBtD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-convert.d.ts","sourceRoot":"","sources":["../../../src/server/utils/image-convert.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAG,OAG9C,CAAC;AAMF,eAAO,MAAM,iBAAiB,GAAU,OAAO,QAAQ,CAAC;IACpD,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CAChB,CAAC,KAAG,OAAO,CAAC,OAAO,CAoCnB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type { TDatabaseDriveStatus, TDatabaseDriveMetadataFile, TDatabaseDriveMetadataFolder, TDatabaseDriveInformation, TDatabaseDriveProvider, TDatabaseDriveMetadata, TDatabaseDrive, } from './drive';
|
|
2
|
+
export type { TDatabaseStorageAccountMetadata, TDatabaseStorageAccount } from './storage/account';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/lib/database/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/lib/database/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACR,oBAAoB,EACpB,0BAA0B,EAC1B,4BAA4B,EAC5B,yBAAyB,EACzB,sBAAsB,EACtB,sBAAsB,EACtB,cAAc,GACjB,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,+BAA+B,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
1
|
+
export type { TDriveDatabase, TDriveMode, TDriveInformationInput, TDriveConfigInformation, TDriveSecurityConfig, TDriveStorageConfig, TDriveCorsConfig, TDriveConfiguration, } from './config';
|
|
2
|
+
export type { TDatabaseDriveStatus, TDatabaseDriveMetadataFile, TDatabaseDriveMetadataFolder, TDatabaseDriveInformation, TDatabaseDriveProvider, TDatabaseDriveMetadata, TDatabaseDrive, } from './drive';
|
|
3
|
+
export type { TDriveAction, TDriveAPIResponse, TDriveThumbnailSize, TDriveImageQuality } from './api';
|
|
4
|
+
export type { TMigration } from './migration';
|
|
5
|
+
export type { TImageMetadata, TVideoMetadata } from './metadata';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/server/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/server/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACR,cAAc,EACd,UAAU,EACV,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,GACtB,MAAM,UAAU,CAAC;AAClB,YAAY,EACR,oBAAoB,EACpB,0BAA0B,EAC1B,4BAA4B,EAC5B,yBAAyB,EACzB,sBAAsB,EACtB,sBAAsB,EACtB,cAAc,GACjB,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,YAAY,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AACtG,YAAY,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC"}
|