@vltpkg/types 1.0.0-rc.18 → 1.0.0-rc.22

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/package.json CHANGED
@@ -1,18 +1,21 @@
1
1
  {
2
2
  "name": "@vltpkg/types",
3
3
  "description": "definitions for some of vlt's core types",
4
- "version": "1.0.0-rc.18",
4
+ "version": "1.0.0-rc.22",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/vltpkg/vltpkg.git",
8
8
  "directory": "src/types"
9
9
  },
10
- "author": "vlt technology inc. <support@vlt.sh> (http://vlt.sh)",
10
+ "author": {
11
+ "name": "vlt technology inc.",
12
+ "email": "support@vlt.sh"
13
+ },
11
14
  "dependencies": {
12
- "@vltpkg/dep-id": "1.0.0-rc.18",
13
- "@vltpkg/semver": "1.0.0-rc.18",
14
- "@vltpkg/spec": "1.0.0-rc.18",
15
- "@vltpkg/error-cause": "1.0.0-rc.18"
15
+ "@vltpkg/dep-id": "1.0.0-rc.22",
16
+ "@vltpkg/error-cause": "1.0.0-rc.22",
17
+ "@vltpkg/semver": "1.0.0-rc.22",
18
+ "@vltpkg/spec": "1.0.0-rc.22"
16
19
  },
17
20
  "devDependencies": {
18
21
  "@eslint/js": "^9.39.1",
@@ -26,33 +29,34 @@
26
29
  },
27
30
  "license": "BSD-2-Clause-Patent",
28
31
  "engines": {
29
- "node": ">=22.9.0"
32
+ "node": ">=22.22.0"
33
+ },
34
+ "scripts": {
35
+ "format": "prettier --write . --log-level warn --ignore-path ../../.prettierignore --cache",
36
+ "format:check": "prettier --check . --ignore-path ../../.prettierignore --cache",
37
+ "lint": "eslint . --fix",
38
+ "lint:check": "eslint .",
39
+ "prepack": "tsc -p tsconfig.publish.json && ../../scripts/update-dist-exports.ts",
40
+ "snap": "tap",
41
+ "test": "tap",
42
+ "posttest": "tsc --noEmit",
43
+ "typecheck": "tsc --noEmit"
30
44
  },
31
45
  "tap": {
32
46
  "extends": "../../tap-config.yaml"
33
47
  },
34
48
  "prettier": "../../.prettierrc.js",
35
- "module": "./dist/index.js",
49
+ "module": "./src/index.ts",
36
50
  "type": "module",
37
51
  "exports": {
38
52
  "./package.json": "./package.json",
39
53
  ".": {
40
54
  "import": {
41
- "default": "./dist/index.js"
55
+ "default": "./src/index.ts"
42
56
  }
43
57
  }
44
58
  },
45
59
  "files": [
46
60
  "dist"
47
- ],
48
- "scripts": {
49
- "format": "prettier --write . --log-level warn --ignore-path ../../.prettierignore --cache",
50
- "format:check": "prettier --check . --ignore-path ../../.prettierignore --cache",
51
- "lint": "eslint . --fix",
52
- "lint:check": "eslint .",
53
- "snap": "tap",
54
- "test": "tap",
55
- "posttest": "tsc --noEmit",
56
- "typecheck": "tsc --noEmit"
57
- }
58
- }
61
+ ]
62
+ }
package/dist/index.d.ts DELETED
@@ -1,559 +0,0 @@
1
- import type { DepID } from '@vltpkg/dep-id';
2
- import type { Spec, SpecLikeBase, SpecOptions } from '@vltpkg/spec';
3
- /**
4
- * Utility type that overrides specific properties of type T with new types
5
- * from R. Constrains override values to exclude undefined, ensuring that
6
- * normalization cannot introduce undefined to fields that shouldn't have it.
7
- */
8
- export type Override<T, R extends {
9
- [K in keyof R]: R[K] extends undefined ? never : R[K];
10
- }> = {
11
- [K in keyof T]: K extends keyof R ? R[K] : T[K];
12
- };
13
- /** anything that can be encoded in JSON */
14
- export type JSONField = JSONField[] | boolean | number | string | {
15
- [k: string]: JSONField;
16
- } | null | undefined;
17
- /** sha512 SRI string */
18
- export type Integrity = `sha512-${string}`;
19
- /** SHA256 key identifier */
20
- export type KeyID = `SHA256:${string}`;
21
- /** The Manifest['dist'] field present in registry manifests */
22
- export type Dist = {
23
- integrity?: Integrity;
24
- shasum?: string;
25
- tarball?: string;
26
- fileCount?: number;
27
- unpackedSize?: number;
28
- signatures?: {
29
- keyid: KeyID;
30
- sig: string;
31
- }[];
32
- };
33
- /** An object used to mark some peerDeps as optional */
34
- export type PeerDependenciesMetaValue = {
35
- optional?: boolean;
36
- };
37
- export type ConditionalValueObject = {
38
- [k: string]: ConditionalValue;
39
- };
40
- export type ConditionalValue = ConditionalValue[] | ConditionalValueObject | string | null;
41
- export type ExportsSubpaths = {
42
- [path in '.' | `./${string}`]?: ConditionalValue;
43
- };
44
- export type Exports = Exclude<ConditionalValue, null> | ExportsSubpaths;
45
- export type Imports = Record<`#${string}`, ConditionalValue>;
46
- export type FundingEntry = string | {
47
- url: string;
48
- type?: string;
49
- [key: string]: JSONField;
50
- };
51
- export type Funding = FundingEntry | FundingEntry[];
52
- /**
53
- * An object with url and optional additional properties
54
- */
55
- export type NormalizedFundingEntry = {
56
- url: string;
57
- type?: string;
58
- [key: string]: JSONField;
59
- };
60
- /**
61
- * Normalized funding information, an array of {@link NormalizedFundingEntry}.
62
- */
63
- export type NormalizedFunding = NormalizedFundingEntry[];
64
- /**
65
- * Normalize funding information to a consistent format.
66
- */
67
- export declare const normalizeFunding: (funding: unknown) => NormalizedFunding | undefined;
68
- /**
69
- * Type guard to check if a value is a {@link NormalizedFundingEntry}.
70
- */
71
- export declare const isNormalizedFundingEntry: (o: unknown) => o is NormalizedFundingEntry;
72
- /**
73
- * Type guard to check if a value is a {@link NormalizedFunding}.
74
- */
75
- export declare const isNormalizedFunding: (o: unknown) => o is NormalizedFunding;
76
- /**
77
- * Given a version Normalize the version field in a manifest.
78
- */
79
- export declare const fixManifestVersion: <T extends Manifest | ManifestRegistry>(manifest: T) => T;
80
- declare const kWriteAccess: unique symbol;
81
- declare const kIsPublisher: unique symbol;
82
- /**
83
- * Parse a string or object into a normalized contributor.
84
- */
85
- export declare const parsePerson: (person: unknown, writeAccess?: boolean, isPublisher?: boolean) => NormalizedContributorEntry | undefined;
86
- /**
87
- * Normalized contributors - always an array of {@link NormalizedContributorEntry}.
88
- */
89
- export type NormalizedContributors = NormalizedContributorEntry[];
90
- /**
91
- * Represents a normalized contributor object. This is the type that is
92
- * used in the {@link NormalizedManifest} and {@link NormalizedManifestRegistry}
93
- * objects.
94
- */
95
- export type NormalizedContributorEntry = {
96
- email?: string;
97
- name?: string;
98
- [kWriteAccess]?: boolean;
99
- [kIsPublisher]?: boolean;
100
- writeAccess?: boolean;
101
- isPublisher?: boolean;
102
- };
103
- /**
104
- * Type guard to check if a value is a normalized contributor entry.
105
- */
106
- export declare const isNormalizedContributorEntry: (o: unknown) => o is NormalizedContributorEntry;
107
- /**
108
- * Type guard to check if a value is a {@link NormalizedContributors}.
109
- */
110
- export declare const isNormalizedContributors: (o: unknown) => o is NormalizedContributors;
111
- /**
112
- * Normalize contributors and maintainers from various formats
113
- */
114
- export declare const normalizeContributors: (contributors: unknown, maintainers?: unknown) => NormalizedContributorEntry[] | undefined;
115
- export type Person = string | {
116
- name: string;
117
- url?: string;
118
- email?: string;
119
- };
120
- export type Repository = string | {
121
- type: string;
122
- url: string;
123
- };
124
- export type Bugs = string | {
125
- url?: string;
126
- email?: string;
127
- };
128
- export type Keywords = string[] | string;
129
- /**
130
- * Normalized bugs entry - always an object with type and url/email
131
- */
132
- export type NormalizedBugsEntry = {
133
- type?: 'email' | 'link';
134
- url?: string;
135
- email?: string;
136
- };
137
- /**
138
- * Normalized keywords - always an array of strings
139
- */
140
- export type NormalizedKeywords = string[];
141
- /**
142
- * Normalized engines - always a record of string to string
143
- */
144
- export type NormalizedEngines = Record<string, string>;
145
- /**
146
- * Normalized OS list - always an array of strings
147
- */
148
- export type NormalizedOs = string[];
149
- /**
150
- * Normalized CPU list - always an array of strings
151
- */
152
- export type NormalizedCpu = string[];
153
- /**
154
- * Normalized libc list - always an array of strings
155
- */
156
- export type NormalizedLibc = string[];
157
- /**
158
- * Normalized bugs - always an array of {@link NormalizedBugsEntry}
159
- */
160
- export type NormalizedBugs = NormalizedBugsEntry[];
161
- /**
162
- * Normalized bin - always a record of string to string
163
- */
164
- export type NormalizedBin = Record<string, string>;
165
- /**
166
- * Normalize bugs information to a {@link NormalizedBugs} consistent format.
167
- */
168
- export declare const normalizeBugs: (bugs: unknown) => NormalizedBugs | undefined;
169
- /**
170
- * Type guard to check if a value is a {@link NormalizedBugsEntry}.
171
- */
172
- export declare const isNormalizedBugsEntry: (o: unknown) => o is NormalizedBugsEntry;
173
- /**
174
- * Type guard to check if a value is a {@link NormalizedBugs}.
175
- */
176
- export declare const isNormalizedBugs: (o: unknown) => o is NormalizedBugs;
177
- /**
178
- * Normalize keywords information to a {@link NormalizedKeywords} consistent format.
179
- */
180
- export declare const normalizeKeywords: (keywords: unknown) => NormalizedKeywords | undefined;
181
- /**
182
- * Type guard to check if a value is a {@link NormalizedKeywords}.
183
- */
184
- export declare const isNormalizedKeywords: (o: unknown) => o is NormalizedKeywords;
185
- /**
186
- * Normalize engines information to a {@link NormalizedEngines} consistent format.
187
- */
188
- export declare const normalizeEngines: (engines: unknown) => NormalizedEngines | undefined;
189
- /**
190
- * Normalize OS information to a {@link NormalizedOs} consistent format.
191
- */
192
- export declare const normalizeOs: (os: unknown) => NormalizedOs | undefined;
193
- /**
194
- * Normalize CPU information to a {@link NormalizedCpu} consistent format.
195
- */
196
- export declare const normalizeCpu: (cpu: unknown) => NormalizedCpu | undefined;
197
- /**
198
- * Normalize libc information to a {@link NormalizedLibc} consistent format.
199
- */
200
- export declare const normalizeLibc: (libc: unknown) => NormalizedLibc | undefined;
201
- /**
202
- * Type guard to check if a value is a {@link NormalizedEngines}.
203
- */
204
- export declare const isNormalizedEngines: (o: unknown) => o is NormalizedEngines;
205
- /**
206
- * Type guard to check if a value is a {@link NormalizedOs}.
207
- */
208
- export declare const isNormalizedOs: (o: unknown) => o is NormalizedOs;
209
- /**
210
- * Type guard to check if a value is a {@link NormalizedCpu}.
211
- */
212
- export declare const isNormalizedCpu: (o: unknown) => o is NormalizedCpu;
213
- /**
214
- * Type guard to check if a value is a {@link NormalizedLibc}.
215
- */
216
- export declare const isNormalizedLibc: (o: unknown) => o is NormalizedLibc;
217
- /**
218
- * Normalizes the bin paths.
219
- */
220
- export declare const normalizeBinPaths: (manifest: Pick<Manifest, "bin" | "name">) => Record<string, string> | undefined;
221
- export type Manifest = {
222
- /** The name of the package. optional because {} is a valid package.json */
223
- name?: string;
224
- /** The version of the package. optional because {} is a valid package.json */
225
- version?: string;
226
- /** production dependencies, name:specifier */
227
- dependencies?: Record<string, string>;
228
- /** development dependencies, name:specifier */
229
- devDependencies?: Record<string, string>;
230
- /** optional dependencies, name:specifier */
231
- optionalDependencies?: Record<string, string>;
232
- /** peer dependencies, name:specifier */
233
- peerDependencies?: Record<string, string>;
234
- /** peer dependencies marked as optional */
235
- peerDependenciesMeta?: Record<string, PeerDependenciesMetaValue>;
236
- /** dependency ranges that are acceptable, but not forced */
237
- acceptDependencies?: Record<string, string>;
238
- /** names of dependencies included in the package tarball */
239
- bundleDependencies?: string[];
240
- /** a message indicating that this is not to be used */
241
- deprecated?: string;
242
- /** executable built and linked by this package */
243
- bin?: Record<string, string> | string;
244
- /** run-script actions for this package */
245
- scripts?: Record<string, string>;
246
- /** supported run-time platforms this package can run on */
247
- engines?: Record<string, string>;
248
- /** supported operating systems this package can run on */
249
- os?: string[] | string;
250
- /** supported CPU architectures this package can run on */
251
- cpu?: string[] | string;
252
- /** supported libc implementations this package can run on (e.g. glibc, musl) */
253
- libc?: string[] | string;
254
- /** URLs that can be visited to fund this project */
255
- funding?: Funding;
256
- /** The homepage of the repository */
257
- homepage?: string;
258
- /**
259
- * Only present in Manifests served by a registry. Contains information
260
- * about the artifact served for this package release.
261
- */
262
- dist?: Dist;
263
- /** a short description of the package */
264
- description?: string;
265
- /** search keywords */
266
- keywords?: Keywords;
267
- /** where to go to file issues */
268
- bugs?: Bugs;
269
- /** where the development happens */
270
- repository?: Repository;
271
- /** the main module, if exports['.'] is not set */
272
- main?: string;
273
- /** named subpath exports */
274
- exports?: Exports;
275
- /** named #identifier imports */
276
- imports?: Imports;
277
- /**
278
- * the HEAD of the git repo this was published from
279
- * only present in published packages
280
- */
281
- gitHead?: string;
282
- /** whether the package is private */
283
- private?: boolean;
284
- /** whether this is ESM or CommonJS by default */
285
- type?: 'commonjs' | 'module';
286
- /** npm puts this on published manifests */
287
- gypfile?: boolean;
288
- /** the author of a package */
289
- author?: Person;
290
- /** contributors to the package */
291
- contributors?: Person[];
292
- /** the license of the package */
293
- license?: string;
294
- };
295
- export type NormalizedFields = {
296
- bugs: NormalizedBugs | undefined;
297
- author: NormalizedContributorEntry | undefined;
298
- contributors: NormalizedContributors | undefined;
299
- funding: NormalizedFunding | undefined;
300
- keywords: NormalizedKeywords | undefined;
301
- engines: NormalizedEngines | undefined;
302
- os: NormalizedOs | undefined;
303
- cpu: NormalizedCpu | undefined;
304
- libc: NormalizedLibc | undefined;
305
- bin: NormalizedBin | undefined;
306
- };
307
- /**
308
- * A {@link Manifest} object that contains normalized fields.
309
- */
310
- export type NormalizedManifest = Override<Manifest, NormalizedFields>;
311
- /**
312
- * A {@link ManifestRegistry} object that contains normalized fields.
313
- */
314
- export type NormalizedManifestRegistry = Override<ManifestRegistry, NormalizedFields>;
315
- /**
316
- * A specific type of {@link Manifest} that represents manifests that were
317
- * retrieved from a registry, these will always have `name`, `version`
318
- * and `dist` information along with an optional `maintainers` field.
319
- */
320
- export type ManifestRegistry = Manifest & Required<Pick<Manifest, 'name' | 'version' | 'dist'>> & {
321
- maintainers?: unknown;
322
- };
323
- /**
324
- * Maps the manifest type to the equivalent normalized manifest type.
325
- */
326
- export type SomeNormalizedManifest<T> = T extends ManifestRegistry ? NormalizedManifestRegistry : NormalizedManifest;
327
- /**
328
- * A document that represents available package versions in a given registry
329
- * along with extra information, such as `dist-tags` and `maintainers` info.
330
- * The `versions` field is key-value structure in which keys are the
331
- * available versions of a given package and values are
332
- * {@link ManifestRegistry} objects.
333
- */
334
- export type Packument = {
335
- name: string;
336
- 'dist-tags': Record<string, string>;
337
- versions: Record<string, Manifest>;
338
- modified?: string;
339
- time?: Record<string, string>;
340
- readme?: string;
341
- contributors?: Person[];
342
- maintainers?: Person[];
343
- };
344
- export type RefType = 'branch' | 'head' | 'other' | 'pull' | 'tag';
345
- /**
346
- * A representation of a given remote ref in a {@link RevDoc} object.
347
- */
348
- export type RevDocEntry = Omit<Manifest, 'type'> & Required<Pick<Manifest, 'version'>> & {
349
- /** sha this references */
350
- sha: string;
351
- /** ref as passed git locally */
352
- ref: string;
353
- /** canonical full ref, like `refs/tags/blahblah` */
354
- rawRef: string;
355
- /** what type of ref this is: 'branch', 'tag', etc. */
356
- type: RefType;
357
- };
358
- /**
359
- * An object kind of resembling a packument, but about a git repo.
360
- */
361
- export type RevDoc = Omit<Packument, 'versions'> & {
362
- /** all semver-looking tags go in this record */
363
- versions: Record<string, RevDocEntry>;
364
- /** all named things that can be cloned down remotely */
365
- refs: Record<string, RevDocEntry>;
366
- /** all named shas referenced above */
367
- shas: Record<string, string[]>;
368
- };
369
- /**
370
- * A type guard to check if a value is a boolean.
371
- */
372
- export declare const isBoolean: (value: unknown) => value is boolean;
373
- export declare const integrityRE: RegExp;
374
- export declare const isIntegrity: (i: unknown) => i is Integrity;
375
- export declare const asIntegrity: (i: unknown) => Integrity;
376
- export declare const assertIntegrity: (i: unknown) => asserts i is Integrity;
377
- export declare const keyIDRE: RegExp;
378
- export declare const isKeyID: (k: unknown) => k is KeyID;
379
- export declare const asKeyID: (k: unknown) => KeyID;
380
- export declare const assertKeyID: (k: unknown) => asserts k is KeyID;
381
- /**
382
- * Convert an unknown value to an error.
383
- */
384
- export declare const asError: (er: unknown, fallbackMessage?: string) => Error;
385
- /**
386
- * Check if a value is an error.
387
- */
388
- export declare const isError: (er: unknown) => er is Error;
389
- /**
390
- * Check if an error has a cause property.
391
- */
392
- export declare const isErrorWithCause: (er: unknown) => er is Error & {
393
- cause: unknown;
394
- };
395
- /**
396
- * Check if an unknown value is a plain object.
397
- */
398
- export declare const isObject: (v: unknown) => v is Record<string, unknown>;
399
- export declare const maybeRecordStringString: (o: unknown) => o is Record<string, string> | undefined;
400
- export declare const isRecordStringString: (o: unknown) => o is Record<string, string>;
401
- export declare const assertRecordStringString: (o: unknown) => void;
402
- export declare const isRecordStringT: <T>(o: unknown, check: (o: unknown) => o is T) => o is Record<string, T>;
403
- export declare const assertRecordStringT: <T>(o: unknown, check: (o: unknown) => o is T, wanted: string) => asserts o is Record<string, T>;
404
- export declare const isRecordStringManifest: (o: unknown) => o is Record<string, Manifest>;
405
- export declare const maybePeerDependenciesMetaSet: (o: unknown) => o is Record<string, PeerDependenciesMetaValue> | undefined;
406
- export declare const maybeBoolean: (o: unknown) => o is boolean;
407
- export declare const isPeerDependenciesMetaValue: (o: unknown) => o is PeerDependenciesMetaValue;
408
- export declare const maybeString: (a: unknown) => a is string | undefined;
409
- export declare const maybeDist: (a: unknown) => a is Manifest["dist"];
410
- /**
411
- * Is a given unknown value a valid {@link Manifest} object?
412
- * Returns `true` if so.
413
- */
414
- export declare const isManifest: (m: unknown) => m is Manifest;
415
- /**
416
- * A specific {@link Manifest} that is retrieved uniquely from reading
417
- * registry packument and manifest endpoints, it has `dist`, `name` and
418
- * `version` fields defined.
419
- */
420
- export declare const isManifestRegistry: (m: unknown) => m is ManifestRegistry;
421
- /**
422
- * Given an unknown value, convert it to a {@link Manifest}.
423
- */
424
- export declare const asManifest: (m: unknown, from?: (...a: unknown[]) => any) => Manifest;
425
- /**
426
- * Given a {@link Manifest} returns a {@link NormalizedManifest} that
427
- * contains normalized author, bugs, funding, contributors, keywords and
428
- * version fields.
429
- */
430
- export declare const normalizeManifest: <T extends Manifest | ManifestRegistry>(manifest: T) => SomeNormalizedManifest<T>;
431
- /**
432
- * Type guard to check if a value is a {@link NormalizedManifest}.
433
- */
434
- export declare const isNormalizedManifest: (o: unknown) => o is NormalizedManifest;
435
- /**
436
- * Given an unknown value, convert it to a {@link NormalizedManifest}.
437
- */
438
- export declare const asNormalizedManifest: (m: unknown, from?: (...a: unknown[]) => any) => NormalizedManifest;
439
- /**
440
- * Given an unknown value, convert it to a {@link ManifestRegistry}.
441
- */
442
- export declare const asManifestRegistry: (m: unknown, from?: (...a: unknown[]) => any) => ManifestRegistry;
443
- /**
444
- * Type guard to check if a value is a {@link NormalizedManifestRegistry}.
445
- */
446
- export declare const isNormalizedManifestRegistry: (o: unknown) => o is NormalizedManifestRegistry;
447
- /**
448
- * Given an unknown value, convert it to a {@link NormalizedManifestRegistry}.
449
- */
450
- export declare const asNormalizedManifestRegistry: (m: unknown, from?: (...a: unknown[]) => any) => NormalizedManifestRegistry;
451
- /**
452
- * Walks a normalized manifest and expands any symbols found
453
- * in the `author` and `contributors` fields.
454
- */
455
- export declare const expandNormalizedManifestSymbols: (m: NormalizedManifest) => NormalizedManifest;
456
- export declare const assertManifest: (m: unknown) => asserts m is Manifest;
457
- export declare const assertManifestRegistry: (m: unknown) => asserts m is ManifestRegistry;
458
- export declare const isPackument: (p: unknown) => p is Packument;
459
- export declare const asPackument: (p: unknown, from?: (...a: unknown[]) => any) => Packument;
460
- export declare const assertPackument: (m: unknown) => asserts m is Packument;
461
- /**
462
- * Name of the package.json keys used to define different types of dependencies.
463
- */
464
- export type DependencyTypeLong = 'dependencies' | 'devDependencies' | 'optionalDependencies' | 'peerDependencies';
465
- /**
466
- * Unique keys that define different types of dependencies relationship.
467
- */
468
- export type DependencyTypeShort = 'dev' | 'optional' | 'peer' | 'peerOptional' | 'prod';
469
- /**
470
- * Unique keys that indicate how a new or updated dependency should be saved
471
- * back to a manifest.
472
- *
473
- * `'implicit'` is used to indicate that a dependency should be saved as
474
- * whatever type it already exists as. If the dependency does not exist,
475
- * then `'implicit'` is equivalent to `'prod'`, as that is the default
476
- * save type.
477
- */
478
- export type DependencySaveType = DependencyTypeShort | 'implicit';
479
- /**
480
- * A set of the possible long dependency type names,
481
- * as used in `package.json` files.
482
- */
483
- export declare const longDependencyTypes: Set<DependencyTypeLong>;
484
- /**
485
- * A set of the short type keys used to represent dependency relationships.
486
- */
487
- export declare const shortDependencyTypes: Set<DependencyTypeShort>;
488
- /**
489
- * Maps between long form names usually used in `package.json` files
490
- * to a corresponding short form name, used in lockfiles.
491
- */
492
- export declare const dependencyTypes: Map<DependencyTypeLong, DependencyTypeShort>;
493
- export type EdgeLike = {
494
- name: string;
495
- from: NodeLike;
496
- spec: SpecLikeBase;
497
- to?: NodeLike;
498
- type: DependencyTypeShort;
499
- optional?: boolean;
500
- peer?: boolean;
501
- };
502
- export type GraphLike = {
503
- importers: Set<NodeLike>;
504
- mainImporter: NodeLike;
505
- projectRoot: string;
506
- nodes: Map<DepID, NodeLike>;
507
- nodesByName: Map<string, Set<NodeLike>>;
508
- edges: Set<EdgeLike>;
509
- addEdge: (type: DependencyTypeShort, spec: Spec, from: NodeLike, to?: NodeLike) => EdgeLike;
510
- addNode: (id?: DepID, manifest?: NormalizedManifest, spec?: Spec, name?: string, version?: string) => NodeLike;
511
- removeNode(node: NodeLike, replacement?: NodeLike, keepEdges?: boolean): void;
512
- };
513
- export type NodeLike = {
514
- id: DepID;
515
- confused: boolean;
516
- edgesIn: Set<EdgeLike>;
517
- edgesOut: Map<string, EdgeLike>;
518
- workspaces: Map<string, EdgeLike> | undefined;
519
- location?: string;
520
- manifest?: NormalizedManifest | null;
521
- rawManifest?: NormalizedManifest | null;
522
- name?: string | null;
523
- version?: string | null;
524
- integrity?: string | null;
525
- resolved?: string | null;
526
- importer: boolean;
527
- graph: GraphLike;
528
- mainImporter: boolean;
529
- projectRoot: string;
530
- dev: boolean;
531
- optional: boolean;
532
- modifier?: string | undefined;
533
- peerSetHash?: string | undefined;
534
- registry?: string;
535
- platform?: {
536
- engines?: Record<string, string>;
537
- os?: string[] | string;
538
- cpu?: string[] | string;
539
- libc?: string[] | string;
540
- };
541
- bins?: Record<string, string>;
542
- buildState?: 'none' | 'needed' | 'built' | 'failed';
543
- buildAllowed?: boolean;
544
- buildBlocked?: boolean;
545
- options: SpecOptions;
546
- toJSON: () => Pick<NodeLike, 'id' | 'name' | 'version' | 'location' | 'importer' | 'manifest' | 'projectRoot' | 'integrity' | 'resolved' | 'dev' | 'optional' | 'confused' | 'platform' | 'buildState' | 'buildAllowed' | 'buildBlocked'> & {
547
- rawManifest?: NodeLike['manifest'];
548
- };
549
- toString(): string;
550
- setResolved(): void;
551
- setConfusedManifest(fixed: NormalizedManifest, confused?: NormalizedManifest): void;
552
- maybeSetConfusedManifest(spec: Spec, confused?: NormalizedManifest): void;
553
- };
554
- /**
555
- * Parse a scoped package name into its scope and name components.
556
- */
557
- export declare const parseScope: (scoped: string) => [string | undefined, string];
558
- export {};
559
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAC3C,OAAO,KAAK,EAAE,IAAI,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAEnE;;;;GAIG;AACH,MAAM,MAAM,QAAQ,CAClB,CAAC,EACD,CAAC,SAAS;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC;CAAE,IACjE;KACD,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAChD,CAAA;AAED,2CAA2C;AAC3C,MAAM,MAAM,SAAS,GACjB,SAAS,EAAE,GACX,OAAO,GACP,MAAM,GACN,MAAM,GACN;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,GAC1B,IAAI,GACJ,SAAS,CAAA;AAEb,wBAAwB;AACxB,MAAM,MAAM,SAAS,GAAG,UAAU,MAAM,EAAE,CAAA;AAE1C,4BAA4B;AAC5B,MAAM,MAAM,KAAK,GAAG,UAAU,MAAM,EAAE,CAAA;AAEtC,+DAA+D;AAC/D,MAAM,MAAM,IAAI,GAAG;IACjB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,MAAM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