@stacksjs/storage 0.70.36 → 0.70.42
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/src/index.d.ts +2 -2
- package/dist/src/zip.d.ts +16 -1
- package/package.json +6 -6
package/dist/src/index.d.ts
CHANGED
|
@@ -13,9 +13,9 @@ export * from './helpers';
|
|
|
13
13
|
export * as storage from './storage';
|
|
14
14
|
export * from './zip';
|
|
15
15
|
// Storage adapters and types
|
|
16
|
-
export * from './adapters';
|
|
16
|
+
export * from './adapters/index';
|
|
17
17
|
export * from './types';
|
|
18
|
-
export * from './drivers';
|
|
18
|
+
export * from './drivers/index';
|
|
19
19
|
// Static asset serving with ETag/Last-Modified/Cache-Control
|
|
20
20
|
export { serveFile } from './static-serve';
|
|
21
21
|
// Laravel-style Storage facade and UploadedFile
|
package/dist/src/zip.d.ts
CHANGED
|
@@ -1 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ZlibCompressionOptions } from 'bun';
|
|
2
|
+
import type { CommandError, Subprocess } from '@stacksjs/types';
|
|
3
|
+
import type { Result } from '@stacksjs/error-handling';
|
|
4
|
+
export declare function zip(from: string | string[], to?: string, options?: ZipOptions): Promise<Result<Subprocess, CommandError>>;
|
|
5
|
+
export declare function unzip(paths: string | string[]): Promise<Result<Subprocess, CommandError>>;
|
|
6
|
+
export declare function archive(paths: string | string[]): Promise<Result<Subprocess, CommandError>>;
|
|
7
|
+
export declare function unarchive(paths: string | string[]): Promise<Result<Subprocess, CommandError>>;
|
|
8
|
+
export declare function compress(paths: string[]): Promise<Result<Subprocess, CommandError>>;
|
|
9
|
+
export declare function decompress(paths: string | string[]): Promise<Result<Subprocess, CommandError>>;
|
|
10
|
+
export declare function gzipSync(data: Uint8Array, options?: ZlibCompressionOptions): Uint8Array;
|
|
11
|
+
export declare function gunzipSync(data: Uint8Array): Uint8Array;
|
|
12
|
+
export declare function deflateSync(data: Uint8Array, options?: ZlibCompressionOptions): Uint8Array;
|
|
13
|
+
export declare function inflateSync(data: Uint8Array): Uint8Array;
|
|
14
|
+
declare interface ZipOptions {
|
|
15
|
+
cwd?: string
|
|
16
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/storage",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.70.
|
|
4
|
+
"version": "0.70.42",
|
|
5
5
|
"description": "The Stacks file system.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"contributors": [
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
"@stacksjs/ts-cloud": "^0.2.15"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@stacksjs/arrays": "0.70.
|
|
57
|
+
"@stacksjs/arrays": "^0.70.42",
|
|
58
58
|
"better-dx": "^0.2.12",
|
|
59
|
-
"@stacksjs/error-handling": "0.70.
|
|
60
|
-
"@stacksjs/path": "0.70.
|
|
61
|
-
"@stacksjs/strings": "0.70.
|
|
62
|
-
"@stacksjs/types": "0.70.
|
|
59
|
+
"@stacksjs/error-handling": "^0.70.42",
|
|
60
|
+
"@stacksjs/path": "^0.70.42",
|
|
61
|
+
"@stacksjs/strings": "^0.70.42",
|
|
62
|
+
"@stacksjs/types": "^0.70.42"
|
|
63
63
|
}
|
|
64
64
|
}
|