@vercel/container 30.0.0 → 31.0.0-snapshot-12a52bb14e02

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.
@@ -14,5 +14,11 @@ export type ImageOutput = {
14
14
  directory: string;
15
15
  manifestDigest: string;
16
16
  };
17
- export { layoutRefPath, moveDirectory, verifyOciLayout } from './layout';
17
+ /**
18
+ * In the build container the layout is staged beside the Buildah store, on the
19
+ * `/vercel` volume that also holds the Build Output, so the layers can be
20
+ * renamed into the output instead of copied.
21
+ */
22
+ export declare function createOciLayoutStagingDir(prefix?: string): Promise<string>;
23
+ export { extractVerifiedOciLayout, layoutRefPath, moveDirectory, verifyOciLayout, } from './layout';
18
24
  export { OciRegistryPuller } from './pull';
@@ -33,6 +33,13 @@ export declare function parseDescriptor(value: unknown, label: string): OciDescr
33
33
  * the build container.
34
34
  */
35
35
  export declare function verifyOciLayout(layoutDir: string): Promise<VerifiedOciLayout>;
36
+ /**
37
+ * Isolate a verified OCI layout from a CNB `-layout-dir` into `destinationDir`
38
+ * with fresh `oci-layout` and `index.json`. Moves compressed layer blobs as-is
39
+ * (does not unpack tarballs), checks paths against symlinks, and drops
40
+ * unreferenced files since project code can write to the layout mount.
41
+ */
42
+ export declare function extractVerifiedOciLayout(layoutRoot: string, imageRef: string, destinationDir: string): Promise<VerifiedOciLayout>;
36
43
  /**
37
44
  * Move an OCI layout directory into place, falling back to a sibling copy +
38
45
  * rename when staging and destination live on different filesystems.
Binary file
package/dist/util.d.ts CHANGED
@@ -90,6 +90,7 @@ export declare function extractField(text: string, label: string): string | unde
90
90
  * `vercel build`. `VERCEL_BUILD_IMAGE` is set only on Vercel's build image.
91
91
  */
92
92
  export declare function isBuildContainer(): boolean;
93
+ export declare const DEFAULT_VCR_REGISTRY = "vcr.vercel.com";
93
94
  export declare function resolveApiUrl(): string;
94
95
  export declare function resolveVcrRegistry(): string;
95
96
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/container",
3
- "version": "30.0.0",
3
+ "version": "31.0.0-snapshot-12a52bb14e02",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -18,13 +18,13 @@
18
18
  "tar": "7.5.11"
19
19
  },
20
20
  "peerDependencies": {
21
- "@vercel/build-utils": "15.8.0"
21
+ "@vercel/build-utils": "15.9.0-snapshot-12a52bb14e02"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/node": "20.11.0",
25
25
  "vitest": "4.1.10",
26
- "@vercel-internals/ipc-proxy": "1.1.5",
27
- "@vercel/build-utils": "15.8.0"
26
+ "@vercel/build-utils": "15.9.0-snapshot-12a52bb14e02",
27
+ "@vercel-internals/ipc-proxy": "1.1.5"
28
28
  },
29
29
  "publishConfig": {
30
30
  "access": "public"