lambder 4.4.1 → 4.6.1

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.
@@ -1,5 +1,5 @@
1
1
  import type { S3Client, S3ClientConfig } from "@aws-sdk/client-s3";
2
- import type { LambderPublicFile, LambderPublicFileSource } from "../core/LambderPublicFiles.js";
2
+ import type { LambderFile, LambderFileSource } from "../core/LambderFiles.js";
3
3
  export type LambderS3FileSourceOptions = {
4
4
  bucket: string;
5
5
  /** Literal key prefix the relative path is appended to, so include the trailing slash: "web/v42/". Default: none. */
@@ -23,7 +23,7 @@ export type LambderS3FileSourceOptions = {
23
23
  * An object's Content-Type is used unless it is a generic octet-stream, in
24
24
  * which case the extension decides, as for local files.
25
25
  */
26
- export declare class LambderS3FileSource implements LambderPublicFileSource {
26
+ export declare class LambderS3FileSource implements LambderFileSource {
27
27
  private readonly bucket;
28
28
  private readonly prefix;
29
29
  private readonly clientConfig;
@@ -31,5 +31,5 @@ export declare class LambderS3FileSource implements LambderPublicFileSource {
31
31
  private sdk;
32
32
  constructor({ bucket, prefix, client, clientConfig }: LambderS3FileSourceOptions);
33
33
  private loadSdk;
34
- read(relativePath: string): Promise<LambderPublicFile | null>;
34
+ read(relativePath: string): Promise<LambderFile | null>;
35
35
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lambder",
3
- "version": "4.4.1",
3
+ "version": "4.6.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",