@stacksjs/storage 0.67.0 → 0.68.0

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.
@@ -0,0 +1,5 @@
1
+ import type { StorageDriver } from '@stacksjs/types';
2
+
3
+ declare const rootDirectory: unknown;
4
+ export declare const localStorage: FileStorage;
5
+ export declare const local: StorageDriver;
@@ -0,0 +1,5 @@
1
+ import type { StorageDriver } from '@stacksjs/types';
2
+
3
+ declare const adapter: unknown;
4
+ export declare const memoryStorage: FileStorage;
5
+ export declare const memory: StorageDriver;
package/dist/move.d.ts CHANGED
@@ -1,7 +1,5 @@
1
- import { type Result } from "@stacksjs/error-handling";
2
- interface MoveOptions {
3
- overwrite?: boolean;
1
+ declare interface MoveOptions {
2
+ overwrite?: boolean
4
3
  }
5
- export declare function move(src: string | string[], dest: string, options?: MoveOptions): Promise<Result<{ message: string }, Error>>;
6
- export declare function rename(from: string, to: string, options?: MoveOptions): Promise<Result<{ message: string }, Error>>;
7
- export {};
4
+ export declare function move(src: string | string[], dest: string, options?: MoveOptions,): Promise<Result<{ message: string }, Error>>;
5
+ export declare function rename(from: string, to: string, options?: MoveOptions,): Promise<Result<{ message: string }, Error>>;
package/dist/storage.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- export * from "./copy";
2
- export * from "./delete";
3
- export * from "./files";
4
- export * from "./folders";
5
- export * from "./fs";
6
- export * from "./helpers";
7
- export * from "./move";
8
- export * from "./visibility";
9
- export * from "./zip";
1
+ export * from './copy'
2
+ export * from './delete'
3
+ export * from './files'
4
+ export * from './folders'
5
+ export * from './fs'
6
+ export * from './helpers'
7
+ export * from './move'
8
+ export * from './visibility'
9
+ export * from './zip'
@@ -1 +1 @@
1
- export declare function setVisibility(): string;
1
+ export declare function setVisibility(): string;
package/dist/zip.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import type { Result } from "@stacksjs/error-handling";
2
- import type { CommandError, Subprocess } from "@stacksjs/types";
3
- import type { ZlibCompressionOptions } from "bun";
4
- interface ZipOptions {
5
- cwd?: string;
1
+ import type { CommandError, Subprocess } from '@stacksjs/types';
2
+ import type { ZlibCompressionOptions } from 'bun';
3
+
4
+ declare interface ZipOptions {
5
+ cwd?: string
6
6
  }
7
- export declare function zip(from: string | string[], to?: string, options?: ZipOptions): Promise<Result<Subprocess, CommandError>>;
7
+ export declare function zip(from: string | string[], to?: string, options?: ZipOptions,): Promise<Result<Subprocess, CommandError>>;
8
8
  export declare function unzip(paths: string | string[]): Promise<Result<Subprocess, CommandError>>;
9
9
  export declare function archive(paths: string | string[]): Promise<Result<Subprocess, CommandError>>;
10
10
  export declare function unarchive(paths: string | string[]): Promise<Result<Subprocess, CommandError>>;
@@ -13,5 +13,4 @@ export declare function decompress(paths: string | string[]): Promise<Result<Sub
13
13
  export declare function gzipSync(data: Uint8Array, options?: ZlibCompressionOptions): Uint8Array;
14
14
  export declare function gunzipSync(data: Uint8Array): Uint8Array;
15
15
  export declare function deflateSync(data: Uint8Array, options?: ZlibCompressionOptions): Uint8Array;
16
- export declare function inflateSync(data: Uint8Array): Uint8Array;
17
- export {};
16
+ export declare function inflateSync(data: Uint8Array): Uint8Array;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/storage",
3
3
  "type": "module",
4
- "version": "0.67.0",
4
+ "version": "0.68.0",
5
5
  "description": "The Stacks file system.",
6
6
  "author": "Chris Breuer",
7
7
  "contributors": [
@@ -53,14 +53,14 @@
53
53
  "@stacksjs/path": "0.67.0",
54
54
  "@stacksjs/strings": "0.67.0",
55
55
  "@stacksjs/types": "0.67.0",
56
- "@types/archiver": "^6.0.2",
56
+ "@types/archiver": "^6.0.3",
57
57
  "archiver": "^7.0.1",
58
58
  "fs-extra": "^11.2.0",
59
- "tinyglobby": "^0.2.9"
59
+ "tinyglobby": "^0.2.10"
60
60
  },
61
61
  "devDependencies": {
62
- "@aws-sdk/client-s3": "^3.670.0",
63
- "@flystorage/aws-s3": "^0.1.5",
62
+ "@aws-sdk/client-s3": "^3.679.0",
63
+ "@flystorage/aws-s3": "^0.1.7",
64
64
  "@flystorage/chaos": "^0.1.2",
65
65
  "@flystorage/file-storage": "^0.1.5",
66
66
  "@flystorage/in-memory": "^0.1.4",
@@ -1,4 +0,0 @@
1
- import type { StorageDriver } from "@stacksjs/types";
2
- import { FileStorage } from "@flystorage/file-storage";
3
- export declare const awsStorage: FileStorage;
4
- export declare const aws: StorageDriver;
@@ -1,3 +0,0 @@
1
- export * from "./aws";
2
- export * from "./local";
3
- export * from "./memory";
@@ -1,4 +0,0 @@
1
- import type { StorageDriver } from "@stacksjs/types";
2
- import { FileStorage } from "@flystorage/file-storage";
3
- export declare const localStorage: FileStorage;
4
- export declare const local: StorageDriver;
@@ -1,4 +0,0 @@
1
- import type { StorageDriver } from "@stacksjs/types";
2
- import { FileStorage } from "@flystorage/file-storage";
3
- export declare const memoryStorage: FileStorage;
4
- export declare const memory: StorageDriver;