@toa.io/extensions.storages 1.0.0-alpha.300 → 1.0.0-alpha.301

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toa.io/extensions.storages",
3
- "version": "1.0.0-alpha.300",
3
+ "version": "1.0.0-alpha.301",
4
4
  "type": "module",
5
5
  "description": "Toa Storages",
6
6
  "author": "temich <tema.gurtovoy@gmail.com>",
@@ -29,14 +29,14 @@
29
29
  "transpile": "npx tsc"
30
30
  },
31
31
  "devDependencies": {
32
- "@aws-sdk/client-s3": "3.1125.0",
33
- "@aws-sdk/lib-storage": "3.1125.0",
32
+ "@aws-sdk/client-s3": "3.1127.0",
33
+ "@aws-sdk/lib-storage": "3.1127.0",
34
34
  "cloudinary": "2.11.0",
35
35
  "dotenv": "17.4.2"
36
36
  },
37
37
  "peerDependencies": {
38
- "@aws-sdk/client-s3": "3.1125.0",
39
- "@aws-sdk/lib-storage": "3.1125.0",
38
+ "@aws-sdk/client-s3": "3.1127.0",
39
+ "@aws-sdk/lib-storage": "3.1127.0",
40
40
  "cloudinary": "2.11.0"
41
41
  },
42
42
  "peerDependenciesMeta": {
@@ -51,11 +51,12 @@
51
51
  }
52
52
  },
53
53
  "dependencies": {
54
- "@toa.io/definitions": "1.0.0-alpha.300",
55
- "@toa.io/generic": "1.0.0-alpha.292",
56
- "@toa.io/schemas": "1.0.0-alpha.299",
54
+ "@toa.io/core": "1.0.0-alpha.301",
55
+ "@toa.io/definitions": "1.0.0-alpha.301",
56
+ "@toa.io/generic": "1.0.0-alpha.301",
57
+ "@toa.io/schemas": "1.0.0-alpha.301",
57
58
  "negotiator": "1.1.0",
58
- "openspan": "1.0.0-alpha.293"
59
+ "openspan": "1.0.0-alpha.301"
59
60
  },
60
- "gitHead": "f91131a9aeb29aa271f177c4055ddcf0cda8c75e"
61
+ "gitHead": "cc49bc90efd35464b2ad7803246786c607a44685"
61
62
  }
@@ -1,6 +1,6 @@
1
1
  import { Connector } from '@toa.io/core';
2
2
  import type { extensions } from '@toa.io/core/types';
3
- import { type Storage, type Storages } from './Storage.js';
3
+ import { type Storage, type Storages } from './Storage.ts';
4
4
  export declare class Aspect extends Connector implements extensions.Aspect {
5
5
  readonly name = "storages";
6
6
  private readonly create;
@@ -1,4 +1,4 @@
1
- import { Aspect } from './Aspect.js';
1
+ import { Aspect } from './Aspect.ts';
2
2
  export declare class Factory {
3
3
  private readonly annotation;
4
4
  constructor();
@@ -1,7 +1,7 @@
1
- import type { Metadata, Stream } from './Entry.js';
1
+ import type { Metadata, Stream } from './Entry.ts';
2
2
  import type { Readable } from 'node:stream';
3
3
  import type { Maybe } from '@toa.io/core/types';
4
- import type { Secret, Secrets } from './Secrets.js';
4
+ import type { Secret, Secrets } from './Secrets.ts';
5
5
  export declare abstract class Provider<Options = unknown> {
6
6
  static readonly SECRETS?: readonly Secret[];
7
7
  readonly root?: string;
@@ -1,7 +1,7 @@
1
1
  import type { Readable } from 'node:stream';
2
- import type { Attributes, Entry, Stream } from './Entry.js';
3
- import type { ScanOptions } from './Scanner.js';
4
- import type { Provider } from './Provider.js';
2
+ import type { Attributes, Entry, Stream } from './Entry.ts';
3
+ import type { ScanOptions } from './Scanner.ts';
4
+ import type { Provider } from './Provider.ts';
5
5
  export declare class Storage<T extends Provider = Provider> {
6
6
  private readonly provider;
7
7
  private readonly scope?;
@@ -1,4 +1,4 @@
1
- export { Factory } from './Factory.js';
2
- export type { Entry, Stream } from './Entry.js';
3
- export type { Storage } from './Storage.js';
4
- export type * from './providers/index.js';
1
+ export { Factory } from './Factory.ts';
2
+ export type { Entry, Stream } from './Entry.ts';
3
+ export type { Storage } from './Storage.ts';
4
+ export type * from './providers/index.ts';
@@ -1,8 +1,8 @@
1
1
  import { Readable } from 'node:stream';
2
- import { Provider } from '../Provider.js';
2
+ import { Provider } from '../Provider.ts';
3
3
  import type { Maybe } from '@toa.io/core/types';
4
- import type { Metadata, Stream } from '../Entry.js';
5
- import type { Secret, Secrets } from '../Secrets.js';
4
+ import type { Metadata, Stream } from '../Entry.ts';
5
+ import type { Secret, Secrets } from '../Secrets.ts';
6
6
  import type { TransformationOptions } from 'cloudinary';
7
7
  export type CloudinarySecrets = Secrets<'API_KEY' | 'API_SECRET'>;
8
8
  export declare class Cloudinary extends Provider<CloudinaryOptions> {
@@ -1,8 +1,8 @@
1
- import type { S3Options } from './S3.js';
2
- import type { SpacesOptions } from './Spaces.js';
3
- import type { CloudinaryOptions } from './Cloudinary.js';
4
- import type { FileSystemOptions } from './FileSystem.js';
5
- import type { TemporaryOptions } from './Temporary.js';
1
+ import type { S3Options } from './S3.ts';
2
+ import type { SpacesOptions } from './Spaces.ts';
3
+ import type { CloudinaryOptions } from './Cloudinary.ts';
4
+ import type { FileSystemOptions } from './FileSystem.ts';
5
+ import type { TemporaryOptions } from './Temporary.ts';
6
6
  export type Declaration = ({
7
7
  provider: 's3';
8
8
  } & S3Options) | ({
@@ -1,7 +1,7 @@
1
- import { Provider } from '../Provider.js';
1
+ import { Provider } from '../Provider.ts';
2
2
  import type { Readable } from 'node:stream';
3
3
  import type { Maybe } from '@toa.io/core/types';
4
- import type { Metadata, Stream } from '../Entry.js';
4
+ import type { Metadata, Stream } from '../Entry.ts';
5
5
  export interface FileSystemOptions {
6
6
  path: string;
7
7
  claim?: string;
@@ -1,8 +1,8 @@
1
1
  import { Readable } from 'node:stream';
2
- import { Provider } from '../Provider.js';
2
+ import { Provider } from '../Provider.ts';
3
3
  import type { Maybe } from '@toa.io/core/types';
4
- import type { Metadata, Stream } from '../Entry.js';
5
- import type { Secret, Secrets } from '../Secrets.js';
4
+ import type { Metadata, Stream } from '../Entry.ts';
5
+ import type { Secret, Secrets } from '../Secrets.ts';
6
6
  export interface S3Options {
7
7
  bucket: string;
8
8
  region?: string;
@@ -1,5 +1,5 @@
1
- import { S3 } from './S3.js';
2
- import type { Secret, Secrets } from '../Secrets.js';
1
+ import { S3 } from './S3.ts';
2
+ import type { Secret, Secrets } from '../Secrets.ts';
3
3
  export interface SpacesOptions {
4
4
  space: string;
5
5
  region: string;
@@ -1,4 +1,4 @@
1
- import { FileSystem } from './FileSystem.js';
1
+ import { FileSystem } from './FileSystem.ts';
2
2
  export interface TemporaryOptions {
3
3
  directory: string;
4
4
  }
@@ -1,5 +1,5 @@
1
- import { Temporary, type TemporaryOptions } from './Temporary.js';
2
- import type { Secret } from '../Secrets.js';
1
+ import { Temporary, type TemporaryOptions } from './Temporary.ts';
2
+ import type { Secret } from '../Secrets.ts';
3
3
  export declare class Test extends Temporary {
4
4
  static readonly SECRETS: readonly Secret[];
5
5
  constructor(options: TemporaryOptions);
@@ -1,4 +1,4 @@
1
- import type { Constructor } from '../Provider.js';
1
+ import type { Constructor } from '../Provider.ts';
2
2
  /**
3
3
  * A provider is loaded when a storage names it: the SDK one is written against is not paid
4
4
  * for by a process that declares another, and is not installed by one either — it is an
@@ -6,20 +6,20 @@ import type { Constructor } from '../Provider.js';
6
6
  * declares. See `provider` below for what a workspace that has not gets told.
7
7
  */
8
8
  export declare const providers: {
9
- readonly s3: () => Promise<typeof import("./S3.js").S3>;
10
- readonly spaces: () => Promise<typeof import("./Spaces.js").Spaces>;
11
- readonly cloudinary: () => Promise<typeof import("./Cloudinary.js").Cloudinary>;
12
- readonly fs: () => Promise<typeof import("./FileSystem.js").FileSystem>;
13
- readonly tmp: () => Promise<typeof import("./Temporary.js").Temporary>;
14
- readonly test: () => Promise<typeof import("./Test.js").Test>;
9
+ readonly s3: () => Promise<typeof import("./S3.ts").S3>;
10
+ readonly spaces: () => Promise<typeof import("./Spaces.ts").Spaces>;
11
+ readonly cloudinary: () => Promise<typeof import("./Cloudinary.ts").Cloudinary>;
12
+ readonly fs: () => Promise<typeof import("./FileSystem.ts").FileSystem>;
13
+ readonly tmp: () => Promise<typeof import("./Temporary.ts").Temporary>;
14
+ readonly test: () => Promise<typeof import("./Test.ts").Test>;
15
15
  };
16
16
  export type Id = keyof typeof providers;
17
17
  /** The provider a declaration names, or what to install to have it. */
18
18
  export declare function provider(id: Id): Promise<Constructor>;
19
- export type { Declaration } from './Declaration.js';
20
- export type { S3Options } from './S3.js';
21
- export type { SpacesOptions } from './Spaces.js';
22
- export type { CloudinaryOptions } from './Cloudinary.js';
23
- export type { FileSystemOptions } from './FileSystem.js';
24
- export type { TemporaryOptions } from './Temporary.js';
25
- export type { FileSystem, S3, Spaces, Cloudinary, Temporary } from './index.types.js';
19
+ export type { Declaration } from './Declaration.ts';
20
+ export type { S3Options } from './S3.ts';
21
+ export type { SpacesOptions } from './Spaces.ts';
22
+ export type { CloudinaryOptions } from './Cloudinary.ts';
23
+ export type { FileSystemOptions } from './FileSystem.ts';
24
+ export type { TemporaryOptions } from './Temporary.ts';
25
+ export type { FileSystem, S3, Spaces, Cloudinary, Temporary } from './index.types.ts';
@@ -1,5 +1,5 @@
1
- export type { FileSystem } from './FileSystem.js';
2
- export type { S3 } from './S3.js';
3
- export type { Spaces } from './Spaces.js';
4
- export type { Cloudinary } from './Cloudinary.js';
5
- export type { Temporary } from './Temporary.js';
1
+ export type { FileSystem } from './FileSystem.ts';
2
+ export type { S3 } from './S3.ts';
3
+ export type { Spaces } from './Spaces.ts';
4
+ export type { Cloudinary } from './Cloudinary.ts';
5
+ export type { Temporary } from './Temporary.ts';
@@ -1,5 +1,5 @@
1
- import type { Secrets } from '../Secrets.js';
2
- import type { providers, S3Options, SpacesOptions, CloudinaryOptions, FileSystemOptions, TemporaryOptions } from '../providers/index.js';
1
+ import type { Secrets } from '../Secrets.ts';
2
+ import type { providers, S3Options, SpacesOptions, CloudinaryOptions, FileSystemOptions, TemporaryOptions } from '../providers/index.ts';
3
3
  export declare const suites: ({
4
4
  run: true;
5
5
  provider: "tmp";