@packall/core 0.0.1 → 0.2.0

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.
Files changed (157) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +58 -0
  3. package/dist/archive-6sqTn1C4.js +274 -0
  4. package/dist/archive-6sqTn1C4.js.map +1 -0
  5. package/dist/archive.d.ts +64 -0
  6. package/dist/archive.d.ts.map +1 -0
  7. package/dist/{Bundle.d.ts → bundle.d.ts} +56 -38
  8. package/dist/bundle.d.ts.map +1 -0
  9. package/dist/{DependencyRange.d.ts → dependency-range.d.ts} +2 -2
  10. package/dist/dependency-range.d.ts.map +1 -0
  11. package/dist/{Download.d.ts → download.d.ts} +9 -8
  12. package/dist/download.d.ts.map +1 -0
  13. package/dist/enums/artifact-kind.d.ts +8 -0
  14. package/dist/enums/artifact-kind.d.ts.map +1 -0
  15. package/dist/enums/edge-kind.d.ts +29 -0
  16. package/dist/enums/edge-kind.d.ts.map +1 -0
  17. package/dist/enums/input-file-kind.d.ts +12 -0
  18. package/dist/enums/input-file-kind.d.ts.map +1 -0
  19. package/dist/enums/layout.d.ts +23 -0
  20. package/dist/enums/layout.d.ts.map +1 -0
  21. package/dist/enums/lockfile-format.d.ts +9 -0
  22. package/dist/enums/lockfile-format.d.ts.map +1 -0
  23. package/dist/enums/phase.d.ts +11 -0
  24. package/dist/enums/phase.d.ts.map +1 -0
  25. package/dist/{Errors.d.ts → errors.d.ts} +49 -7
  26. package/dist/errors.d.ts.map +1 -0
  27. package/dist/index.d.ts +46 -28
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/index.js +2121 -1060
  30. package/dist/index.js.map +1 -1
  31. package/dist/input-file.d.ts +77 -0
  32. package/dist/input-file.d.ts.map +1 -0
  33. package/dist/integrity.d.ts +80 -0
  34. package/dist/integrity.d.ts.map +1 -0
  35. package/dist/layout.d.ts +87 -0
  36. package/dist/layout.d.ts.map +1 -0
  37. package/dist/locked-resolve.d.ts +47 -0
  38. package/dist/locked-resolve.d.ts.map +1 -0
  39. package/dist/lockfile/bun.d.ts +3 -0
  40. package/dist/lockfile/bun.d.ts.map +1 -0
  41. package/dist/lockfile/detect.d.ts +31 -0
  42. package/dist/lockfile/detect.d.ts.map +1 -0
  43. package/dist/lockfile/json.d.ts +23 -0
  44. package/dist/lockfile/json.d.ts.map +1 -0
  45. package/dist/lockfile/names.d.ts +16 -0
  46. package/dist/lockfile/names.d.ts.map +1 -0
  47. package/dist/lockfile/npm.d.ts +3 -0
  48. package/dist/lockfile/npm.d.ts.map +1 -0
  49. package/dist/lockfile/parse.d.ts +23 -0
  50. package/dist/lockfile/parse.d.ts.map +1 -0
  51. package/dist/lockfile/pnpm.d.ts +20 -0
  52. package/dist/lockfile/pnpm.d.ts.map +1 -0
  53. package/dist/lockfile/tree-builder.d.ts +70 -0
  54. package/dist/lockfile/tree-builder.d.ts.map +1 -0
  55. package/dist/lockfile/types.d.ts +70 -0
  56. package/dist/lockfile/types.d.ts.map +1 -0
  57. package/dist/{Manifest.d.ts → manifest.d.ts} +7 -15
  58. package/dist/manifest.d.ts.map +1 -0
  59. package/dist/node/archiver.d.ts +5 -0
  60. package/dist/node/archiver.d.ts.map +1 -0
  61. package/dist/node/index.d.ts +13 -0
  62. package/dist/node/index.d.ts.map +1 -0
  63. package/dist/node/index.js +55 -0
  64. package/dist/node/index.js.map +1 -0
  65. package/dist/{Options.d.ts → options.d.ts} +12 -30
  66. package/dist/options.d.ts.map +1 -0
  67. package/dist/{Platform.d.ts → platform.d.ts} +14 -19
  68. package/dist/platform.d.ts.map +1 -0
  69. package/dist/{Progress.d.ts → progress.d.ts} +10 -9
  70. package/dist/progress.d.ts.map +1 -0
  71. package/dist/{Registry.d.ts → registry.d.ts} +42 -44
  72. package/dist/registry.d.ts.map +1 -0
  73. package/dist/{Resolve.d.ts → resolve.d.ts} +25 -26
  74. package/dist/resolve.d.ts.map +1 -0
  75. package/dist/schemas/lenient.d.ts +38 -0
  76. package/dist/schemas/lenient.d.ts.map +1 -0
  77. package/dist/schemas/package-json.d.ts +44 -0
  78. package/dist/schemas/package-json.d.ts.map +1 -0
  79. package/dist/{Spec.d.ts → spec.d.ts} +4 -4
  80. package/dist/spec.d.ts.map +1 -0
  81. package/dist/types/value-of.d.ts +9 -0
  82. package/dist/types/value-of.d.ts.map +1 -0
  83. package/dist/utils/is-record.d.ts +8 -0
  84. package/dist/utils/is-record.d.ts.map +1 -0
  85. package/package.json +13 -11
  86. package/src/archive.ts +95 -0
  87. package/src/bundle.ts +736 -0
  88. package/src/dependency-range.ts +121 -0
  89. package/src/download.ts +155 -0
  90. package/src/enums/artifact-kind.ts +9 -0
  91. package/src/enums/edge-kind.ts +32 -0
  92. package/src/enums/input-file-kind.ts +13 -0
  93. package/src/enums/layout.ts +25 -0
  94. package/src/enums/lockfile-format.ts +10 -0
  95. package/src/enums/phase.ts +12 -0
  96. package/src/errors.ts +300 -0
  97. package/src/index.ts +146 -35
  98. package/src/input-file.ts +324 -0
  99. package/src/integrity.ts +165 -0
  100. package/src/layout.ts +137 -0
  101. package/src/locked-resolve.ts +471 -0
  102. package/src/lockfile/bun.ts +214 -0
  103. package/src/lockfile/detect.ts +80 -0
  104. package/src/lockfile/json.ts +131 -0
  105. package/src/lockfile/names.ts +20 -0
  106. package/src/lockfile/npm.ts +328 -0
  107. package/src/lockfile/parse.ts +56 -0
  108. package/src/lockfile/pnpm.ts +230 -0
  109. package/src/lockfile/tree-builder.ts +166 -0
  110. package/src/lockfile/types.ts +74 -0
  111. package/src/manifest.ts +129 -0
  112. package/src/node/archiver.ts +85 -0
  113. package/src/node/index.ts +13 -0
  114. package/src/options.ts +103 -0
  115. package/src/platform.ts +178 -0
  116. package/src/progress.ts +105 -0
  117. package/src/registry.ts +116 -0
  118. package/src/resolve.ts +560 -0
  119. package/src/schemas/lenient.ts +130 -0
  120. package/src/schemas/package-json.ts +28 -0
  121. package/src/spec.ts +182 -0
  122. package/src/types/value-of.ts +8 -0
  123. package/src/utils/is-record.ts +8 -0
  124. package/dist/Archive.d.ts +0 -32
  125. package/dist/Archive.d.ts.map +0 -1
  126. package/dist/Bundle.d.ts.map +0 -1
  127. package/dist/DependencyRange.d.ts.map +0 -1
  128. package/dist/Download.d.ts.map +0 -1
  129. package/dist/Errors.d.ts.map +0 -1
  130. package/dist/InputFile.d.ts +0 -46
  131. package/dist/InputFile.d.ts.map +0 -1
  132. package/dist/Integrity.d.ts +0 -48
  133. package/dist/Integrity.d.ts.map +0 -1
  134. package/dist/Layout.d.ts +0 -53
  135. package/dist/Layout.d.ts.map +0 -1
  136. package/dist/Manifest.d.ts.map +0 -1
  137. package/dist/Options.d.ts.map +0 -1
  138. package/dist/Platform.d.ts.map +0 -1
  139. package/dist/Progress.d.ts.map +0 -1
  140. package/dist/Registry.d.ts.map +0 -1
  141. package/dist/Resolve.d.ts.map +0 -1
  142. package/dist/Spec.d.ts.map +0 -1
  143. package/src/Archive.ts +0 -92
  144. package/src/Bundle.ts +0 -570
  145. package/src/DependencyRange.ts +0 -115
  146. package/src/Download.ts +0 -132
  147. package/src/Errors.ts +0 -216
  148. package/src/InputFile.ts +0 -229
  149. package/src/Integrity.ts +0 -122
  150. package/src/Layout.ts +0 -103
  151. package/src/Manifest.ts +0 -133
  152. package/src/Options.ts +0 -123
  153. package/src/Platform.ts +0 -182
  154. package/src/Progress.ts +0 -106
  155. package/src/Registry.ts +0 -121
  156. package/src/Resolve.ts +0 -528
  157. package/src/Spec.ts +0 -186
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dependency-range.d.ts","sourceRoot":"","sources":["../src/dependency-range.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE1C,wCAAwC;AACxC,MAAM,MAAM,gBAAgB;AAC3B,mFAAmF;AACjF;IACA,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC5B,+EAA+E;IAC/E,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC;AACH,iDAAiD;GAC/C;IACA,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACvB,CAAC;AAiBL;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,SAAU,MAAM,OAAO,MAAM,KAAG,gBAuCjE,CAAC"}
@@ -5,22 +5,23 @@
5
5
  * written, and the destination is always the scoped temp directory — nothing
6
6
  * lands next to the user's own files.
7
7
  */
8
+ import type * as Crypto from "effect/Crypto";
8
9
  import * as Effect from "effect/Effect";
9
10
  import * as FileSystem from "effect/FileSystem";
10
11
  import * as Path from "effect/Path";
11
12
  import type { PlatformError } from "effect/PlatformError";
12
- import type { BundlerError } from "./Errors.js";
13
- import * as Progress from "./Progress.js";
14
- import { Registry } from "./Registry.js";
15
- import type { ResolvedPackage } from "./Resolve.js";
13
+ import type { BundlerError } from "./errors.js";
14
+ import * as Progress from "./progress.js";
15
+ import { Registry } from "./registry.js";
16
+ import type { ResolvedPackage } from "./resolve.js";
16
17
  /** What a completed download run produced. */
17
- export interface DownloadReport {
18
+ export type DownloadReport = {
18
19
  /** `name@version` -> bytes written. */
19
20
  readonly sizes: ReadonlyMap<string, number>;
20
21
  /** Packages the registry advertised no usable checksum for. */
21
22
  readonly unverified: ReadonlyArray<string>;
22
23
  readonly totalBytes: number;
23
- }
24
+ };
24
25
  /**
25
26
  * Downloads every package into `destDir`, laid out the way a registry serves
26
27
  * them.
@@ -31,5 +32,5 @@ export interface DownloadReport {
31
32
  export declare const downloadAll: (packages: ReadonlyArray<ResolvedPackage>, destDir: string, options: {
32
33
  readonly concurrency: number;
33
34
  readonly verifyIntegrity: boolean;
34
- }) => Effect.Effect<DownloadReport, BundlerError | PlatformError, Registry | Progress.Progress | FileSystem.FileSystem | Path.Path>;
35
- //# sourceMappingURL=Download.d.ts.map
35
+ }) => Effect.Effect<DownloadReport, BundlerError | PlatformError, Registry | Progress.Progress | FileSystem.FileSystem | Path.Path | Crypto.Crypto>;
36
+ //# sourceMappingURL=download.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"download.d.ts","sourceRoot":"","sources":["../src/download.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAG1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAIhD,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,8CAA8C;AAC9C,MAAM,MAAM,cAAc,GAAG;IAC5B,uCAAuC;IACvC,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5C,+DAA+D;IAC/D,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC3C,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,aACb,aAAa,CAAC,eAAe,CAAC,WAC/B,MAAM,WACN;IAAE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAA;CAAE,KAC1E,MAAM,CAAC,MAAM,CACf,cAAc,EACd,YAAY,GAAG,aAAa,EAC5B,QAAQ,GAAG,QAAQ,CAAC,QAAQ,GAAG,UAAU,CAAC,UAAU,GAAG,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,MAAM,CA6G9E,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { ValueOf } from "../types/value-of.js";
2
+ /** What a bundle run wrote to the output directory. */
3
+ export declare const ArtifactKind: {
4
+ readonly Archive: "archive";
5
+ readonly Directory: "directory";
6
+ };
7
+ export type ArtifactKind = ValueOf<typeof ArtifactKind>;
8
+ //# sourceMappingURL=artifact-kind.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"artifact-kind.d.ts","sourceRoot":"","sources":["../../src/enums/artifact-kind.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD,uDAAuD;AACvD,eAAO,MAAM,YAAY;aACxB,OAAO,EAAE,SAAS;aAClB,SAAS,EAAE,WAAW;CACb,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,OAAO,YAAY,CAAC,CAAC"}
@@ -0,0 +1,29 @@
1
+ import type { ValueOf } from "../types/value-of.js";
2
+ /**
3
+ * Why one package depends on another.
4
+ *
5
+ * `EdgeKind` and `LockedRootKind` are one concept in two parts, which is why
6
+ * they share a file: `Dev` exists only at the top level, because lockfiles
7
+ * record dev dependencies for the project alone — a transitive devDependency is
8
+ * never installed, so it is never locked.
9
+ */
10
+ export declare const EdgeKind: {
11
+ readonly Prod: "prod";
12
+ readonly Optional: "optional";
13
+ readonly Peer: "peer";
14
+ };
15
+ export type EdgeKind = ValueOf<typeof EdgeKind>;
16
+ /** The kind that only a direct dependency of the locked project can have. */
17
+ export declare const DirectOnlyKind: {
18
+ readonly Dev: "dev";
19
+ };
20
+ export type DirectOnlyKind = ValueOf<typeof DirectOnlyKind>;
21
+ /** Why a direct dependency of the locked project is a root. */
22
+ export declare const LockedRootKind: {
23
+ readonly Prod: "prod";
24
+ readonly Optional: "optional";
25
+ readonly Peer: "peer";
26
+ readonly Dev: "dev";
27
+ };
28
+ export type LockedRootKind = ValueOf<typeof LockedRootKind>;
29
+ //# sourceMappingURL=edge-kind.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"edge-kind.d.ts","sourceRoot":"","sources":["../../src/enums/edge-kind.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ;aACpB,IAAI,EAAE,MAAM;aACZ,QAAQ,EAAE,UAAU;aACpB,IAAI,EAAE,MAAM;CACH,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEhD,6EAA6E;AAC7E,eAAO,MAAM,cAAc;aAC1B,GAAG,EAAE,KAAK;CACD,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D,+DAA+D;AAC/D,eAAO,MAAM,cAAc;mBAfpB,MAAM;uBACF,UAAU;mBACd,MAAM;kBAOP,KAAK;CASD,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,cAAc,CAAC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { ValueOf } from "../types/value-of.js";
2
+ /** Which of the three shapes a `--file` input turned out to be. */
3
+ export declare const InputFileKind: {
4
+ /** Bundle everything a package.json depends on. */
5
+ readonly PackageJson: "package.json";
6
+ /** Bundle the exact versions a lockfile pins. */
7
+ readonly Lockfile: "lockfile";
8
+ /** A newline-delimited list of specs. */
9
+ readonly List: "list";
10
+ };
11
+ export type InputFileKind = ValueOf<typeof InputFileKind>;
12
+ //# sourceMappingURL=input-file-kind.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input-file-kind.d.ts","sourceRoot":"","sources":["../../src/enums/input-file-kind.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD,mEAAmE;AACnE,eAAO,MAAM,aAAa;IACzB,mDAAmD;aACnD,WAAW,EAAE,cAAc;IAC3B,iDAAiD;aACjD,QAAQ,EAAE,UAAU;IACpB,yCAAyC;aACzC,IAAI,EAAE,MAAM;CACH,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,OAAO,aAAa,CAAC,CAAC"}
@@ -0,0 +1,23 @@
1
+ import type { ValueOf } from "../types/value-of.js";
2
+ /** How the resulting tarball(s) are shaped. */
3
+ export declare const Layout: {
4
+ /**
5
+ * One tarball per requested spec, each carrying its own complete dependency
6
+ * closure. Shared dependencies repeat across tarballs, so the total is
7
+ * larger — but each one imports, rolls back and hands off independently.
8
+ */
9
+ readonly PerSpec: "per-spec";
10
+ /**
11
+ * One tarball for everything, with the union of all closures deduplicated.
12
+ * Smallest output and a single import step; all-or-nothing to roll back.
13
+ */
14
+ readonly Single: "single";
15
+ /**
16
+ * No archive at all — just the npm-layout directory tree, ready for
17
+ * `jf rt upload` or rsync.
18
+ */
19
+ readonly Dir: "dir";
20
+ };
21
+ export type Layout = ValueOf<typeof Layout>;
22
+ export declare const Layouts: ReadonlyArray<Layout>;
23
+ //# sourceMappingURL=layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/enums/layout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD,+CAA+C;AAC/C,eAAO,MAAM,MAAM;IAClB;;;;OAIG;aACH,OAAO,EAAE,UAAU;IACnB;;;OAGG;aACH,MAAM,EAAE,QAAQ;IAChB;;;OAGG;aACH,GAAG,EAAE,KAAK;CACD,CAAC;AAEX,MAAM,MAAM,MAAM,GAAG,OAAO,CAAC,OAAO,MAAM,CAAC,CAAC;AAE5C,eAAO,MAAM,OAAO,EAAE,aAAa,CAAC,MAAM,CAAyB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { ValueOf } from "../types/value-of.js";
2
+ /** Which package manager wrote a lockfile. */
3
+ export declare const LockfileFormat: {
4
+ readonly Npm: "npm";
5
+ readonly Pnpm: "pnpm";
6
+ readonly Bun: "bun";
7
+ };
8
+ export type LockfileFormat = ValueOf<typeof LockfileFormat>;
9
+ //# sourceMappingURL=lockfile-format.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lockfile-format.d.ts","sourceRoot":"","sources":["../../src/enums/lockfile-format.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD,8CAA8C;AAC9C,eAAO,MAAM,cAAc;aAC1B,GAAG,EAAE,KAAK;aACV,IAAI,EAAE,MAAM;aACZ,GAAG,EAAE,KAAK;CACD,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,cAAc,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { ValueOf } from "../types/value-of.js";
2
+ /** The phases a bundle run moves through, in order. */
3
+ export declare const Phase: {
4
+ readonly Preflight: "preflight";
5
+ readonly Resolve: "resolve";
6
+ readonly Download: "download";
7
+ readonly Archive: "archive";
8
+ readonly Done: "done";
9
+ };
10
+ export type Phase = ValueOf<typeof Phase>;
11
+ //# sourceMappingURL=phase.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"phase.d.ts","sourceRoot":"","sources":["../../src/enums/phase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD,uDAAuD;AACvD,eAAO,MAAM,KAAK;aACjB,SAAS,EAAE,WAAW;aACtB,OAAO,EAAE,SAAS;aAClB,QAAQ,EAAE,UAAU;aACpB,OAAO,EAAE,SAAS;aAClB,IAAI,EAAE,MAAM;CACH,CAAC;AAEX,MAAM,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,KAAK,CAAC,CAAC"}
@@ -11,12 +11,10 @@
11
11
  * locked-down network trying to work out why a download did not happen.
12
12
  */
13
13
  /** Discriminant union of every failure the bundler can produce. */
14
- export type BundlerError = InvalidSpecError | InvalidInputFileError | RegistryUnreachableError | PackageNotFoundError | VersionNotFoundError | NoMatchingVersionsError | RegistryResponseError | AuthenticationError | IntegrityError | ArchiveError | OutputError;
14
+ export type BundlerError = InvalidSpecError | InvalidInputFileError | LockfileError | LockfileIncompleteError | LockfileOutOfDateError | RegistryUnreachableError | PackageNotFoundError | VersionNotFoundError | NoMatchingVersionsError | RegistryResponseError | AuthenticationError | IntegrityError | ArchiveError | OutputError;
15
15
  declare abstract class BundlerErrorBase extends Error {
16
16
  abstract readonly _tag: string;
17
- constructor(message: string, options?: {
18
- cause?: unknown;
19
- });
17
+ constructor(message: string, options?: ErrorOptions);
20
18
  }
21
19
  /** A package spec on the command line or in an input file could not be parsed. */
22
20
  export declare class InvalidSpecError extends BundlerErrorBase {
@@ -34,6 +32,50 @@ export declare class InvalidInputFileError extends BundlerErrorBase {
34
32
  cause?: unknown;
35
33
  });
36
34
  }
35
+ /** A lockfile could not be read, or is in a format we do not support. */
36
+ export declare class LockfileError extends BundlerErrorBase {
37
+ readonly _tag: "LockfileError";
38
+ readonly path: string;
39
+ readonly reason: string;
40
+ constructor(path: string, reason: string, options?: {
41
+ cause?: unknown;
42
+ });
43
+ }
44
+ /**
45
+ * The lockfile parsed, but does not pin everything the bundle needs.
46
+ *
47
+ * Falling back to a range here would defeat the entire point of reading a
48
+ * lockfile — you would get a bundle that is *mostly* what CI installed, with no
49
+ * indication of which parts were guessed. So this is fatal, and it names every
50
+ * gap at once so one `npm install` fixes all of them.
51
+ */
52
+ export declare class LockfileIncompleteError extends BundlerErrorBase {
53
+ readonly _tag: "LockfileIncompleteError";
54
+ readonly path: string;
55
+ readonly missing: ReadonlyArray<string>;
56
+ constructor(path: string, missing: ReadonlyArray<string>, detail: string, remedy: string);
57
+ }
58
+ /**
59
+ * The lockfile pins versions the registry no longer serves.
60
+ *
61
+ * Unpublished, or never mirrored into a private registry. Either way the
62
+ * bundle cannot be built as specified, and quietly substituting a nearby
63
+ * version would produce exactly the mismatch this feature exists to prevent.
64
+ */
65
+ export declare class LockfileOutOfDateError extends BundlerErrorBase {
66
+ readonly _tag: "LockfileOutOfDateError";
67
+ readonly path: string;
68
+ readonly registry: string;
69
+ readonly missing: ReadonlyArray<{
70
+ readonly name: string;
71
+ readonly version: string;
72
+ }>;
73
+ constructor(path: string, registry: string, missing: ReadonlyArray<{
74
+ readonly name: string;
75
+ readonly version: string;
76
+ readonly detail: string;
77
+ }>);
78
+ }
37
79
  /**
38
80
  * The registry could not be reached at all — DNS failure, refused connection,
39
81
  * proxy blackhole, or a preflight that timed out.
@@ -44,10 +86,10 @@ export declare class InvalidInputFileError extends BundlerErrorBase {
44
86
  export declare class RegistryUnreachableError extends BundlerErrorBase {
45
87
  readonly _tag: "RegistryUnreachableError";
46
88
  readonly registry: string;
47
- readonly timeoutMillis: number | undefined;
89
+ readonly timeoutMs: number | undefined;
48
90
  constructor(registry: string, detail: string, options?: {
49
91
  cause?: unknown;
50
- timeoutMillis?: number;
92
+ timeoutMs?: number;
51
93
  });
52
94
  }
53
95
  /** The registry answered, but has never heard of this package. */
@@ -121,4 +163,4 @@ export declare class OutputError extends BundlerErrorBase {
121
163
  });
122
164
  }
123
165
  export {};
124
- //# sourceMappingURL=Errors.d.ts.map
166
+ //# sourceMappingURL=errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,mEAAmE;AACnE,MAAM,MAAM,YAAY,GACrB,gBAAgB,GAChB,qBAAqB,GACrB,aAAa,GACb,uBAAuB,GACvB,sBAAsB,GACtB,wBAAwB,GACxB,oBAAoB,GACpB,oBAAoB,GACp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AGtE;CACD"}
package/dist/index.d.ts CHANGED
@@ -4,33 +4,51 @@
4
4
  * Nothing in here knows about npm specifically. Point it at any implementation
5
5
  * of the `Registry` service and it will resolve, download, verify and package
6
6
  * a dependency closure.
7
+ *
8
+ * This is the package's whole public API. Everything not named here is an
9
+ * implementation detail, including modules that happen to be reachable.
7
10
  */
8
- export * as Archive from "./Archive.js";
9
- export * as Bundle from "./Bundle.js";
10
- export * as DependencyRange from "./DependencyRange.js";
11
- export * as Download from "./Download.js";
12
- export * as Integrity from "./Integrity.js";
13
- export * as InputFile from "./InputFile.js";
14
- export * as Layout from "./Layout.js";
15
- export * as Manifest from "./Manifest.js";
16
- export * as Options from "./Options.js";
17
- export * as Platform from "./Platform.js";
18
- export * as Progress from "./Progress.js";
19
- export * as Resolve from "./Resolve.js";
20
- export * as Spec from "./Spec.js";
21
- export { bundle, bundleResolved, plan, plannedOutputs, summarize, withLayout } from "./Bundle.js";
22
- export type { BundleArtifact, BundleContext, BundleResult, PlanSummary } from "./Bundle.js";
23
- export { Registry } from "./Registry.js";
24
- export type { Packument, PackageDist, PackageManifest, RegistryService } from "./Registry.js";
25
- export { Progress as ProgressTag } from "./Progress.js";
26
- export type { ProgressEvent } from "./Progress.js";
27
- export { resolve } from "./Resolve.js";
28
- export type { Resolution, ResolvedPackage, RootResolution } from "./Resolve.js";
29
- export { parseSpec, parseSpecs } from "./Spec.js";
30
- export type { PackageSpec, Selector } from "./Spec.js";
31
- export type { BundleOptions, DependencyScope, Layout as LayoutKind, ResolveOptions } from "./Options.js";
32
- export { defaultBundleOptions, defaultResolveOptions, defaultScope, layouts } from "./Options.js";
33
- export type { PlatformFilter, PlatformTarget } from "./Platform.js";
34
- export { allPlatforms, currentPlatform, parsePlatformTarget, platformTargets } from "./Platform.js";
35
- export * from "./Errors.js";
11
+ export type * from "./errors.js";
12
+ export { ArchiveError, AuthenticationError, IntegrityError, InvalidInputFileError, InvalidSpecError, LockfileError, LockfileIncompleteError, LockfileOutOfDateError, NoMatchingVersionsError, OutputError, PackageNotFoundError, RegistryResponseError, RegistryUnreachableError, VersionNotFoundError, } from "./errors.js";
13
+ export { ArtifactKind } from "./enums/artifact-kind.js";
14
+ export { DirectOnlyKind, EdgeKind, LockedRootKind } from "./enums/edge-kind.js";
15
+ export { InputFileKind } from "./enums/input-file-kind.js";
16
+ export { Layout, Layouts } from "./enums/layout.js";
17
+ export { LockfileFormat } from "./enums/lockfile-format.js";
18
+ export { Phase } from "./enums/phase.js";
19
+ export type { ValueOf } from "./types/value-of.js";
20
+ export { isRecord } from "./utils/is-record.js";
21
+ export { OptionalFlagRecordOrAbsentSchema, OptionalFlagRecordSchema, OptionalStringArraySchema, OptionalStringRecordSchema, StringArraySchema, StringRecordSchema, tolerant, } from "./schemas/lenient.js";
22
+ export type { PackageSpec, Selector } from "./spec.js";
23
+ export { dedupeSpecs, formatSelector, formatSpec, parseSpec, parseSpecs } from "./spec.js";
24
+ export type { DependencyTarget } from "./dependency-range.js";
25
+ export { parseDependencyTarget } from "./dependency-range.js";
26
+ export type { PlatformConstraints, PlatformFilter, PlatformTarget } from "./platform.js";
27
+ export { allPlatforms, currentPlatform, formatPlatformFilter, isIncluded, parsePlatformTarget, platformTargets, } from "./platform.js";
28
+ export type { BundleOptions, DependencyScope, ResolveOptions } from "./options.js";
29
+ export { defaultBundleOptions, defaultResolveOptions, defaultScope } from "./options.js";
30
+ export type { Packument, PackageDist, PackageManifest } from "./registry.js";
31
+ export { Registry } from "./registry.js";
32
+ export type { ProgressEvent } from "./progress.js";
33
+ export { emit as emitProgress, layerCallback as layerCallbackProgress, layerSilent as layerSilentProgress, makeCollector as makeProgressCollector, Progress, } from "./progress.js";
34
+ export type { IntegrityAlgorithm, IntegrityHash, VerificationResult } from "./integrity.js";
35
+ export { digestOf, hexDigestOf, parseIntegrity, verify as verifyIntegrity } from "./integrity.js";
36
+ export type { ArchiveResult, CreateArchiveOptions } from "./archive.js";
37
+ export { Archiver, createArchive } from "./archive.js";
38
+ export { importGuide, MANIFEST_FILE, packagePath, perSpecArchiveName, README_FILE, singleArchiveName, splitName, tarballFileName, } from "./layout.js";
39
+ export type { BundleManifest, ManifestEntry } from "./manifest.js";
40
+ export { buildManifest, MANIFEST_VERSION, serializeManifest } from "./manifest.js";
41
+ export type { PackageKey, Reason, Resolution, ResolutionWarning, ResolvedPackage, RootResolution, } from "./resolve.js";
42
+ export { indexPackages, packageKey, resolve, selectVersions } from "./resolve.js";
43
+ export type { LockedResolveOptions } from "./locked-resolve.js";
44
+ export { resolveLocked } from "./locked-resolve.js";
45
+ export type { LockfileDetection } from "./lockfile/detect.js";
46
+ export { detectLockfile } from "./lockfile/detect.js";
47
+ export type { LockedEdge, LockedPackage, LockedRoot, LockedTree, LockfileParseOptions, } from "./lockfile/types.js";
48
+ export { formatByLockfileName, lockfileNamesFor } from "./lockfile/names.js";
49
+ export { parseLockfile } from "./lockfile/parse.js";
50
+ export type { InputFileOptions, InputFileResult } from "./input-file.js";
51
+ export { defaultInputFileOptions, parseInputFile, readInputFile } from "./input-file.js";
52
+ export type { BundleArtifact, BundleContext, BundleResult, PlannedOutput, PlanSummary, } from "./bundle.js";
53
+ export { bundle, bundleLocked, bundleResolved, plan, planLocked, plannedOutputs, summarize, withLayout, } from "./bundle.js";
36
54
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AACvC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,eAAe,MAAM,sBAAsB,CAAA;AACvD,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAA;AACzC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAC3C,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAC3C,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK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