@dimah-s3/server 1.5.5 → 1.5.7
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/README.md +1 -1
- package/dist/adapters/types.d.ts +1 -1
- package/dist/api/context.d.ts +1 -1
- package/dist/api/create-s3-endpoint.d.ts +3 -2
- package/dist/api/create-s3-endpoint.d.ts.map +1 -1
- package/dist/api/index.js.map +1 -1
- package/dist/api/router.d.ts +1 -1
- package/dist/api/routes/catalog.d.ts +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/helpers/constraints.d.ts +1 -1
- package/dist/helpers/features.d.ts +1 -1
- package/dist/helpers/finalize-confirmed.d.ts +1 -1
- package/dist/helpers/hooks.d.ts +1 -1
- package/dist/helpers/logger.d.ts +1 -1
- package/dist/helpers/object-s3.d.ts +1 -1
- package/dist/helpers/resolve-route.d.ts +2 -2
- package/dist/helpers/resolve-target.d.ts +1 -1
- package/dist/index.js.map +1 -1
- package/dist/plugin/apply-plugins.d.ts +1 -1
- package/dist/plugin/types.d.ts +1 -1
- package/dist/plugins.js.map +1 -1
- package/dist/put.d.ts +1 -1
- package/dist/route.d.ts +1 -1
- package/dist/types/config.d.ts +7 -4
- package/dist/types/config.d.ts.map +1 -1
- package/package.json +10 -10
package/dist/errors.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { APIError, S3_ERROR_CODES, isAPIError, isS3ErrorCode } from "@dimah-s3/core";
|
|
2
|
-
import type { RouteOperation } from "./types/config";
|
|
2
|
+
import type { RouteOperation } from "./types/config.d.ts";
|
|
3
3
|
export { APIError, S3_ERROR_CODES, isAPIError, isS3ErrorCode };
|
|
4
4
|
/** English API errors with stable codes for client-side localization. */
|
|
5
5
|
export declare const errors: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { UploadConfig } from "../types";
|
|
1
|
+
import type { UploadConfig } from "../types/index.d.ts";
|
|
2
2
|
/** File limits from `upload` (`fileTypes` / `maxFileSize`). */
|
|
3
3
|
export type FileConstraints = Pick<UploadConfig, "fileTypes" | "maxFileSize">;
|
|
4
4
|
/** Reject when `size` is over the route cap. No-op when `maxFileSize` is unset. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DimahS3Config, DimahS3RouteConfig, FeatureToggle, ResolvedFeature, ResolvedRoute } from "../types";
|
|
1
|
+
import type { DimahS3Config, DimahS3RouteConfig, FeatureToggle, ResolvedFeature, ResolvedRoute } from "../types/index.d.ts";
|
|
2
2
|
export declare function isEnabled<T extends {
|
|
3
3
|
enabled: boolean;
|
|
4
4
|
}>(feature: T): feature is T & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ConfirmedObjectResponse, S3ObjectAcl } from "@dimah-s3/core";
|
|
2
2
|
import type { HeadObjectCommandOutput, S3Client } from "@aws-sdk/client-s3";
|
|
3
|
-
import type { OpenedRoute, ResolvedDimahS3Config, StoredObjectContext } from "../types";
|
|
3
|
+
import type { OpenedRoute, ResolvedDimahS3Config, StoredObjectContext } from "../types/index.d.ts";
|
|
4
4
|
export type FinalizeConfirmedInput = {
|
|
5
5
|
config: ResolvedDimahS3Config;
|
|
6
6
|
route: OpenedRoute<"upload" | "multipart">;
|
package/dist/helpers/hooks.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ResolvedDimahS3Config, UploadConfig, UploadObjectContext, UploadObjectInfo } from "../types";
|
|
1
|
+
import type { ResolvedDimahS3Config, UploadConfig, UploadObjectContext, UploadObjectInfo } from "../types/index.d.ts";
|
|
2
2
|
/**
|
|
3
3
|
* Run a guard hook. {@link isAPIError} values are preserved; plain Errors keep
|
|
4
4
|
* their English message without a library `code` so client
|
package/dist/helpers/logger.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DimahS3Logger } from "../types";
|
|
1
|
+
import type { DimahS3Logger } from "../types/index.d.ts";
|
|
2
2
|
export declare const defaultLogger: DimahS3Logger;
|
|
3
3
|
export declare function resolveLogger(logger: DimahS3Logger | false | undefined): DimahS3Logger;
|
|
4
4
|
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { StorageClass } from "@aws-sdk/client-s3";
|
|
2
|
-
import type { ObjectS3Headers } from "../types";
|
|
2
|
+
import type { ObjectS3Headers } from "../types/index.d.ts";
|
|
3
3
|
/** URL-encoded `key=value&…` for the S3 `Tagging` / `x-amz-tagging` field. */
|
|
4
4
|
export declare function encodeObjectTagging(tagging: Record<string, string>): string;
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type ResolvedObject } from "./resolve-target";
|
|
2
|
-
import type { OpenedRoute, ResolvedDimahS3Config, ResolvedRoute, RouteOperation, StoredObjectContext } from "../types";
|
|
1
|
+
import { type ResolvedObject } from "./resolve-target.d.ts";
|
|
2
|
+
import type { OpenedRoute, ResolvedDimahS3Config, ResolvedRoute, RouteOperation, StoredObjectContext } from "../types/index.d.ts";
|
|
3
3
|
export type OpenedTarget<F extends RouteOperation> = {
|
|
4
4
|
route: OpenedRoute<F>;
|
|
5
5
|
key: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { normalizeObjectKey, type S3ObjectAcl } from "@dimah-s3/core";
|
|
2
|
-
import type { ObjectS3Headers, OpenedRoute, ResolvedRoute, UploadObjectContext } from "../types";
|
|
2
|
+
import type { ObjectS3Headers, OpenedRoute, ResolvedRoute, UploadObjectContext } from "../types/index.d.ts";
|
|
3
3
|
export type ResolvedObject = {
|
|
4
4
|
key: string;
|
|
5
5
|
bucket: string;
|