@valbuild/core 0.73.0 → 0.73.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.
@@ -4,7 +4,7 @@ import { Json } from "../Json.js";
4
4
  export declare const FILE_REF_PROP: "_ref";
5
5
  export declare const FILE_REF_SUBTYPE_TAG: "_tag";
6
6
  export type FileMetadata = {
7
- readonly [key: string]: Json;
7
+ mimeType?: string;
8
8
  };
9
9
  /**
10
10
  * A file source represents the path to a (local) file.
@@ -1,5 +1,6 @@
1
1
  import { VAL_EXTENSION } from "./index.js";
2
2
  import { ValConfig } from "../initVal.js";
3
+ import { ImageMetadata } from "../schema/image.js";
3
4
  import { FILE_REF_PROP, FileMetadata } from "./file.js";
4
5
  /**
5
6
  * A remote source represents data that is not stored locally.
@@ -10,7 +11,7 @@ export type RemoteSource<Metadata extends FileMetadata | undefined = FileMetadat
10
11
  readonly metadata?: Metadata;
11
12
  readonly patch_id?: string;
12
13
  };
13
- export declare const initRemote: (config?: ValConfig) => <Metadata extends Record<string, string | number> | undefined>(ref: RemoteRef, metadata?: Metadata | undefined) => RemoteSource<Metadata>;
14
+ export declare const initRemote: (config?: ValConfig) => <Metadata extends ImageMetadata | FileMetadata>(ref: RemoteRef, metadata: Metadata) => RemoteSource<Metadata>;
14
15
  export type RemoteRef = `${string}/file/p/${string}/v/${string}/h/${string}/f/${string}/p/public/val/${string}`;
15
16
  export declare function createRemoteRef(remoteHost: string, { publicProjectId, coreVersion, validationHash, fileHash, filePath, bucket, }: {
16
17
  publicProjectId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valbuild/core",
3
- "version": "0.73.0",
3
+ "version": "0.73.1",
4
4
  "private": false,
5
5
  "description": "Val - supercharged hard-coded content",
6
6
  "scripts": {