@effected/package-json 0.13.0 → 0.14.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.
- package/index.d.ts +50 -50
- package/package.json +6 -6
package/index.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ declare const Dependency_base: Schema.Class<Dependency, Schema.Struct<{
|
|
|
21
21
|
*
|
|
22
22
|
* @public
|
|
23
23
|
*/
|
|
24
|
-
declare class Dependency extends Dependency_base {
|
|
24
|
+
export declare class Dependency extends Dependency_base {
|
|
25
25
|
/** The classified protocol, or `None` for an empty specifier. */
|
|
26
26
|
get protocol(): Option.Option<DependencyProtocol$1>;
|
|
27
27
|
/** Parse the specifier as a semver `Range`, `None` when it is not a range. */
|
|
@@ -60,7 +60,7 @@ type UnresolvedDependency = Dependency & {
|
|
|
60
60
|
*
|
|
61
61
|
* @public
|
|
62
62
|
*/
|
|
63
|
-
declare const isUnresolvedDependency: <T extends {
|
|
63
|
+
export declare const isUnresolvedDependency: <T extends {
|
|
64
64
|
readonly isUnresolved: boolean;
|
|
65
65
|
}>(dependency: T) => dependency is T & {
|
|
66
66
|
readonly isUnresolved: true;
|
|
@@ -80,20 +80,20 @@ declare const DevEngine_base: Schema.Class<DevEngine, Schema.Struct<{
|
|
|
80
80
|
*
|
|
81
81
|
* @public
|
|
82
82
|
*/
|
|
83
|
-
declare class DevEngine extends DevEngine_base {}
|
|
83
|
+
export declare class DevEngine extends DevEngine_base {}
|
|
84
84
|
/**
|
|
85
85
|
* A `devEngines` constraint slot: a single {@link DevEngine} or an array of them.
|
|
86
86
|
*
|
|
87
87
|
* @public
|
|
88
88
|
*/
|
|
89
|
-
declare const DevEngineOrArray: Schema.Union<[typeof DevEngine, Schema.$Array<typeof DevEngine>]>;
|
|
89
|
+
export declare const DevEngineOrArray: Schema.Union<[typeof DevEngine, Schema.$Array<typeof DevEngine>]>;
|
|
90
90
|
/**
|
|
91
91
|
* The `devEngines` field schema, modeling runtime and package-manager
|
|
92
92
|
* constraints as optional {@link DevEngine} slots.
|
|
93
93
|
*
|
|
94
94
|
* @public
|
|
95
95
|
*/
|
|
96
|
-
declare const DevEnginesSchema: Schema.Struct<{
|
|
96
|
+
export declare const DevEnginesSchema: Schema.Struct<{
|
|
97
97
|
readonly packageManager: Schema.optionalKey<typeof DevEngineOrArray>;
|
|
98
98
|
readonly runtime: Schema.optionalKey<typeof DevEngineOrArray>;
|
|
99
99
|
readonly os: Schema.optionalKey<typeof DevEngineOrArray>;
|
|
@@ -150,7 +150,7 @@ declare const UnresolvedEntryPointError_base: Schema.Class<UnresolvedEntryPointE
|
|
|
150
150
|
*
|
|
151
151
|
* @public
|
|
152
152
|
*/
|
|
153
|
-
declare class UnresolvedEntryPointError extends UnresolvedEntryPointError_base {
|
|
153
|
+
export declare class UnresolvedEntryPointError extends UnresolvedEntryPointError_base {
|
|
154
154
|
get message(): string;
|
|
155
155
|
}
|
|
156
156
|
/**
|
|
@@ -223,7 +223,7 @@ interface EntryPointManifest {
|
|
|
223
223
|
*
|
|
224
224
|
* @public
|
|
225
225
|
*/
|
|
226
|
-
declare const resolveEntryPoint: (manifest: EntryPointManifest, options?: ResolveEntryPointOptions) => Result.Result<string, UnresolvedEntryPointError>;
|
|
226
|
+
export declare const resolveEntryPoint: (manifest: EntryPointManifest, options?: ResolveEntryPointOptions) => Result.Result<string, UnresolvedEntryPointError>;
|
|
227
227
|
//#endregion
|
|
228
228
|
//#region src/Funding.d.ts
|
|
229
229
|
declare const Funding_base: Schema.Class<Funding, Schema.Struct<{
|
|
@@ -258,7 +258,7 @@ declare const Funding_base: Schema.Class<Funding, Schema.Struct<{
|
|
|
258
258
|
*
|
|
259
259
|
* @public
|
|
260
260
|
*/
|
|
261
|
-
declare class Funding extends Funding_base {
|
|
261
|
+
export declare class Funding extends Funding_base {
|
|
262
262
|
/**
|
|
263
263
|
* A single `funding` entry: the bare URL string or the object form, always
|
|
264
264
|
* decoded to a {@link Funding} and always re-encoded in the form it was read
|
|
@@ -304,7 +304,7 @@ declare const InvalidSpdxLicenseError_base: Schema.Class<InvalidSpdxLicenseError
|
|
|
304
304
|
*
|
|
305
305
|
* @public
|
|
306
306
|
*/
|
|
307
|
-
declare class InvalidSpdxLicenseError extends InvalidSpdxLicenseError_base {
|
|
307
|
+
export declare class InvalidSpdxLicenseError extends InvalidSpdxLicenseError_base {
|
|
308
308
|
get message(): string;
|
|
309
309
|
}
|
|
310
310
|
/**
|
|
@@ -313,7 +313,7 @@ declare class InvalidSpdxLicenseError extends InvalidSpdxLicenseError_base {
|
|
|
313
313
|
*
|
|
314
314
|
* @public
|
|
315
315
|
*/
|
|
316
|
-
declare const isValidSpdx: (value: string) => boolean;
|
|
316
|
+
export declare const isValidSpdx: (value: string) => boolean;
|
|
317
317
|
/**
|
|
318
318
|
* A valid SPDX license identifier, expression, `UNLICENSED`, or
|
|
319
319
|
* `SEE LICENSE IN <file>`.
|
|
@@ -331,13 +331,13 @@ declare const isValidSpdx: (value: string) => boolean;
|
|
|
331
331
|
*
|
|
332
332
|
* @public
|
|
333
333
|
*/
|
|
334
|
-
declare const SpdxLicense: Schema.brand<Schema.String, "SpdxLicense">;
|
|
334
|
+
export declare const SpdxLicense: Schema.brand<Schema.String, "SpdxLicense">;
|
|
335
335
|
/**
|
|
336
336
|
* A branded SPDX license string.
|
|
337
337
|
*
|
|
338
338
|
* @public
|
|
339
339
|
*/
|
|
340
|
-
type SpdxLicense = string & Brand.Brand<"SpdxLicense">;
|
|
340
|
+
export type SpdxLicense = string & Brand.Brand<"SpdxLicense">;
|
|
341
341
|
/**
|
|
342
342
|
* The parsed SPDX expression a manifest's `license` denotes, or `Option.none()`
|
|
343
343
|
* when it denotes no expression at all.
|
|
@@ -371,7 +371,7 @@ type SpdxLicense = string & Brand.Brand<"SpdxLicense">;
|
|
|
371
371
|
*
|
|
372
372
|
* @public
|
|
373
373
|
*/
|
|
374
|
-
declare const licenseExpressionOf: (license: SpdxLicense) => Option.Option<SpdxExpression>;
|
|
374
|
+
export declare const licenseExpressionOf: (license: SpdxLicense) => Option.Option<SpdxExpression>;
|
|
375
375
|
//#endregion
|
|
376
376
|
//#region src/PackageManager.d.ts
|
|
377
377
|
declare const PackageManager_base: Schema.Class<PackageManager, Schema.Struct<{
|
|
@@ -437,7 +437,7 @@ declare const PackageManager_base: Schema.Class<PackageManager, Schema.Struct<{
|
|
|
437
437
|
*
|
|
438
438
|
* @public
|
|
439
439
|
*/
|
|
440
|
-
declare class PackageManager extends PackageManager_base {
|
|
440
|
+
export declare class PackageManager extends PackageManager_base {
|
|
441
441
|
/**
|
|
442
442
|
* Schema transformation between the `"name@version+integrity"` string and a
|
|
443
443
|
* {@link PackageManager}.
|
|
@@ -469,7 +469,7 @@ declare const InvalidPackageNameError_base: Schema.Class<InvalidPackageNameError
|
|
|
469
469
|
*
|
|
470
470
|
* @public
|
|
471
471
|
*/
|
|
472
|
-
declare class InvalidPackageNameError extends InvalidPackageNameError_base {
|
|
472
|
+
export declare class InvalidPackageNameError extends InvalidPackageNameError_base {
|
|
473
473
|
get message(): string;
|
|
474
474
|
}
|
|
475
475
|
/**
|
|
@@ -477,31 +477,31 @@ declare class InvalidPackageNameError extends InvalidPackageNameError_base {
|
|
|
477
477
|
*
|
|
478
478
|
* @public
|
|
479
479
|
*/
|
|
480
|
-
declare const ScopedPackageName: Schema.brand<Schema.String, "ScopedPackageName">;
|
|
480
|
+
export declare const ScopedPackageName: Schema.brand<Schema.String, "ScopedPackageName">;
|
|
481
481
|
/**
|
|
482
482
|
* A valid npm scoped package name.
|
|
483
483
|
*
|
|
484
484
|
* @public
|
|
485
485
|
*/
|
|
486
|
-
type ScopedPackageName = string & Brand.Brand<"ScopedPackageName">;
|
|
486
|
+
export type ScopedPackageName = string & Brand.Brand<"ScopedPackageName">;
|
|
487
487
|
/**
|
|
488
488
|
* A valid npm unscoped package name (no `@scope/` prefix).
|
|
489
489
|
*
|
|
490
490
|
* @public
|
|
491
491
|
*/
|
|
492
|
-
declare const UnscopedPackageName: Schema.brand<Schema.String, "UnscopedPackageName">;
|
|
492
|
+
export declare const UnscopedPackageName: Schema.brand<Schema.String, "UnscopedPackageName">;
|
|
493
493
|
/**
|
|
494
494
|
* A valid npm unscoped package name.
|
|
495
495
|
*
|
|
496
496
|
* @public
|
|
497
497
|
*/
|
|
498
|
-
type UnscopedPackageName = string & Brand.Brand<"UnscopedPackageName">;
|
|
498
|
+
export type UnscopedPackageName = string & Brand.Brand<"UnscopedPackageName">;
|
|
499
499
|
/**
|
|
500
500
|
* A valid npm package name, scoped or unscoped.
|
|
501
501
|
*
|
|
502
502
|
* @public
|
|
503
503
|
*/
|
|
504
|
-
type PackageName = ScopedPackageName | UnscopedPackageName;
|
|
504
|
+
export type PackageName = ScopedPackageName | UnscopedPackageName;
|
|
505
505
|
/**
|
|
506
506
|
* The union of `ScopedPackageName` and `UnscopedPackageName`,
|
|
507
507
|
* carrying the classification statics (`PackageName.isValid` and friends)
|
|
@@ -510,7 +510,7 @@ type PackageName = ScopedPackageName | UnscopedPackageName;
|
|
|
510
510
|
*
|
|
511
511
|
* @public
|
|
512
512
|
*/
|
|
513
|
-
declare const PackageName: Schema.Union<readonly [Schema.brand<Schema.String, "ScopedPackageName">, Schema.brand<Schema.String, "UnscopedPackageName">]> & {
|
|
513
|
+
export declare const PackageName: Schema.Union<readonly [Schema.brand<Schema.String, "ScopedPackageName">, Schema.brand<Schema.String, "UnscopedPackageName">]> & {
|
|
514
514
|
isValid: (name: string) => boolean;
|
|
515
515
|
scope: (name: string) => Option.Option<string>;
|
|
516
516
|
unscoped: (name: string) => string;
|
|
@@ -534,7 +534,7 @@ declare const Person_base: Schema.Class<Person, Schema.Struct<{
|
|
|
534
534
|
*
|
|
535
535
|
* @public
|
|
536
536
|
*/
|
|
537
|
-
declare class Person extends Person_base {
|
|
537
|
+
export declare class Person extends Person_base {
|
|
538
538
|
/**
|
|
539
539
|
* The object wire codec: an open JSON object ↔ a {@link Person}, partitioning
|
|
540
540
|
* unknown keys into `rest` and flattening them back on encode so the on-disk
|
|
@@ -609,7 +609,7 @@ declare const Repository_base: Schema.Class<Repository, Schema.Struct<{
|
|
|
609
609
|
*
|
|
610
610
|
* @public
|
|
611
611
|
*/
|
|
612
|
-
declare class Repository extends Repository_base {
|
|
612
|
+
export declare class Repository extends Repository_base {
|
|
613
613
|
/**
|
|
614
614
|
* The browsable `https://` URL, or `Option.none()` when `url` is not a form
|
|
615
615
|
* this model recognizes.
|
|
@@ -685,7 +685,7 @@ declare const Bugs_base: Schema.Class<Bugs, Schema.Struct<{
|
|
|
685
685
|
*
|
|
686
686
|
* @public
|
|
687
687
|
*/
|
|
688
|
-
declare class Bugs extends Bugs_base {
|
|
688
|
+
export declare class Bugs extends Bugs_base {
|
|
689
689
|
/** The `bugs` field: a URL string or the object form. */
|
|
690
690
|
static readonly FromValue: Schema.Codec<Bugs, string | {
|
|
691
691
|
readonly [k: string]: unknown;
|
|
@@ -700,7 +700,7 @@ declare class Bugs extends Bugs_base {
|
|
|
700
700
|
*
|
|
701
701
|
* @public
|
|
702
702
|
*/
|
|
703
|
-
declare const DependencyMapField: Schema.decodeTo<Schema.HashMap<Schema.String, Schema.String>, Schema.withDecodingDefaultKey<Schema.$Record<Schema.String, Schema.String>, never>, never, never>;
|
|
703
|
+
export declare const DependencyMapField: Schema.decodeTo<Schema.HashMap<Schema.String, Schema.String>, Schema.withDecodingDefaultKey<Schema.$Record<Schema.String, Schema.String>, never>, never, never>;
|
|
704
704
|
/**
|
|
705
705
|
* A string→string map field decoding a plain JSON object to a `HashMap`,
|
|
706
706
|
* with no default (an absent key stays absent). Backs `engines`. Not meant to
|
|
@@ -708,21 +708,21 @@ declare const DependencyMapField: Schema.decodeTo<Schema.HashMap<Schema.String,
|
|
|
708
708
|
*
|
|
709
709
|
* @public
|
|
710
710
|
*/
|
|
711
|
-
declare const StringMapField: Schema.decodeTo<Schema.HashMap<Schema.String, Schema.String>, Schema.$Record<Schema.String, Schema.String>, never, never>;
|
|
711
|
+
export declare const StringMapField: Schema.decodeTo<Schema.HashMap<Schema.String, Schema.String>, Schema.$Record<Schema.String, Schema.String>, never, never>;
|
|
712
712
|
/**
|
|
713
713
|
* The `bin` field: a single string path or a name→path map. Not meant to be
|
|
714
714
|
* referenced directly.
|
|
715
715
|
*
|
|
716
716
|
* @public
|
|
717
717
|
*/
|
|
718
|
-
declare const BinField: Schema.Union<readonly [Schema.String, Schema.decodeTo<Schema.HashMap<Schema.String, Schema.String>, Schema.$Record<Schema.String, Schema.String>, never, never>]>;
|
|
718
|
+
export declare const BinField: Schema.Union<readonly [Schema.String, Schema.decodeTo<Schema.HashMap<Schema.String, Schema.String>, Schema.$Record<Schema.String, Schema.String>, never, never>]>;
|
|
719
719
|
/**
|
|
720
720
|
* The `exports` field: a single string entry point or an open object of
|
|
721
721
|
* conditional exports. Not meant to be referenced directly.
|
|
722
722
|
*
|
|
723
723
|
* @public
|
|
724
724
|
*/
|
|
725
|
-
declare const ExportsField: Schema.Union<readonly [Schema.String, Schema.$Record<Schema.String, Schema.Unknown>]>;
|
|
725
|
+
export declare const ExportsField: Schema.Union<readonly [Schema.String, Schema.$Record<Schema.String, Schema.Unknown>]>;
|
|
726
726
|
/**
|
|
727
727
|
* The `publishConfig` field: an open record preserving known npm keys
|
|
728
728
|
* (`access`, `directory`, ...) plus extensions like `targets`. Not meant to be
|
|
@@ -730,14 +730,14 @@ declare const ExportsField: Schema.Union<readonly [Schema.String, Schema.$Record
|
|
|
730
730
|
*
|
|
731
731
|
* @public
|
|
732
732
|
*/
|
|
733
|
-
declare const PublishConfigField: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
733
|
+
export declare const PublishConfigField: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
734
734
|
/**
|
|
735
735
|
* The `peerDependenciesMeta` field: a map of package name to `{ optional? }`.
|
|
736
736
|
* Not meant to be referenced directly.
|
|
737
737
|
*
|
|
738
738
|
* @public
|
|
739
739
|
*/
|
|
740
|
-
declare const PeerDependenciesMetaField: Schema.$Record<Schema.String, Schema.Struct<{
|
|
740
|
+
export declare const PeerDependenciesMetaField: Schema.$Record<Schema.String, Schema.Struct<{
|
|
741
741
|
readonly optional: Schema.optionalKey<Schema.Boolean>;
|
|
742
742
|
}>>;
|
|
743
743
|
/**
|
|
@@ -750,7 +750,7 @@ declare const PeerDependenciesMetaField: Schema.$Record<Schema.String, Schema.St
|
|
|
750
750
|
*
|
|
751
751
|
* @public
|
|
752
752
|
*/
|
|
753
|
-
declare const RepositoryField: Schema.Union<readonly [Schema.String, Schema.$Record<Schema.String, Schema.Unknown>]>;
|
|
753
|
+
export declare const RepositoryField: Schema.Union<readonly [Schema.String, Schema.$Record<Schema.String, Schema.Unknown>]>;
|
|
754
754
|
declare const PackageDecodeError_base: Schema.Class<PackageDecodeError, Schema.TaggedStruct<"PackageDecodeError", {
|
|
755
755
|
/** The underlying `SchemaError`, preserved structurally rather than stringified. */
|
|
756
756
|
readonly cause: Schema.Defect;
|
|
@@ -764,7 +764,7 @@ declare const PackageDecodeError_base: Schema.Class<PackageDecodeError, Schema.T
|
|
|
764
764
|
*
|
|
765
765
|
* @public
|
|
766
766
|
*/
|
|
767
|
-
declare class PackageDecodeError extends PackageDecodeError_base {
|
|
767
|
+
export declare class PackageDecodeError extends PackageDecodeError_base {
|
|
768
768
|
get message(): string;
|
|
769
769
|
}
|
|
770
770
|
/**
|
|
@@ -882,7 +882,7 @@ declare const Package_base: Schema.Class<Package, Schema.Struct<{
|
|
|
882
882
|
*
|
|
883
883
|
* @public
|
|
884
884
|
*/
|
|
885
|
-
declare class Package extends Package_base {
|
|
885
|
+
export declare class Package extends Package_base {
|
|
886
886
|
pipe<A>(this: A): A;
|
|
887
887
|
pipe<A, B>(this: A, ab: (_: A) => B): B;
|
|
888
888
|
pipe<A, B, C>(this: A, ab: (_: A) => B, bc: (_: B) => C): C;
|
|
@@ -1045,7 +1045,7 @@ declare const PackageJsonSyntaxError_base: Schema.Class<PackageJsonSyntaxError,
|
|
|
1045
1045
|
*
|
|
1046
1046
|
* @public
|
|
1047
1047
|
*/
|
|
1048
|
-
declare class PackageJsonSyntaxError extends PackageJsonSyntaxError_base {
|
|
1048
|
+
export declare class PackageJsonSyntaxError extends PackageJsonSyntaxError_base {
|
|
1049
1049
|
get message(): string;
|
|
1050
1050
|
}
|
|
1051
1051
|
/**
|
|
@@ -1095,7 +1095,7 @@ declare const PackageJsonModifyError_base: Schema.Class<PackageJsonModifyError,
|
|
|
1095
1095
|
*
|
|
1096
1096
|
* @public
|
|
1097
1097
|
*/
|
|
1098
|
-
declare class PackageJsonModifyError extends PackageJsonModifyError_base {
|
|
1098
|
+
export declare class PackageJsonModifyError extends PackageJsonModifyError_base {
|
|
1099
1099
|
get message(): string;
|
|
1100
1100
|
}
|
|
1101
1101
|
/**
|
|
@@ -1117,7 +1117,7 @@ declare class PackageJsonModifyError extends PackageJsonModifyError_base {
|
|
|
1117
1117
|
*
|
|
1118
1118
|
* @public
|
|
1119
1119
|
*/
|
|
1120
|
-
declare class PackageJsonFormat {
|
|
1120
|
+
export declare class PackageJsonFormat {
|
|
1121
1121
|
private constructor();
|
|
1122
1122
|
/**
|
|
1123
1123
|
* Order a package.json object's keys canonically **without decoding it into
|
|
@@ -1345,7 +1345,7 @@ declare const LenientManifest_base: Schema.Class<LenientManifest, Schema.Struct<
|
|
|
1345
1345
|
*
|
|
1346
1346
|
* @public
|
|
1347
1347
|
*/
|
|
1348
|
-
declare class LenientManifest extends LenientManifest_base {
|
|
1348
|
+
export declare class LenientManifest extends LenientManifest_base {
|
|
1349
1349
|
/**
|
|
1350
1350
|
* Decode an unknown JSON value leniently, degrading malformed fields instead
|
|
1351
1351
|
* of failing the document. The sync primitive backing
|
|
@@ -1453,7 +1453,7 @@ declare const PackageManagerRange_base: Schema.Class<PackageManagerRange, Schema
|
|
|
1453
1453
|
*
|
|
1454
1454
|
* @public
|
|
1455
1455
|
*/
|
|
1456
|
-
declare class PackageManagerRange extends PackageManagerRange_base {
|
|
1456
|
+
export declare class PackageManagerRange extends PackageManagerRange_base {
|
|
1457
1457
|
/**
|
|
1458
1458
|
* Schema transformation between the `"name@range[+integrity]"` string and a
|
|
1459
1459
|
* {@link PackageManagerRange}.
|
|
@@ -1581,7 +1581,7 @@ declare const PackageManifest_base: Schema.Class<PackageManifest, Schema.Struct<
|
|
|
1581
1581
|
*
|
|
1582
1582
|
* @public
|
|
1583
1583
|
*/
|
|
1584
|
-
declare class PackageManifest extends PackageManifest_base {
|
|
1584
|
+
export declare class PackageManifest extends PackageManifest_base {
|
|
1585
1585
|
/**
|
|
1586
1586
|
* The wire codec: an open JSON object ↔ a {@link PackageManifest} instance,
|
|
1587
1587
|
* partitioning unknown keys into `rest` and flattening them back on encode —
|
|
@@ -1625,7 +1625,7 @@ declare const PackageJsonReadError_base: Schema.Class<PackageJsonReadError, Sche
|
|
|
1625
1625
|
*
|
|
1626
1626
|
* @public
|
|
1627
1627
|
*/
|
|
1628
|
-
declare class PackageJsonReadError extends PackageJsonReadError_base {
|
|
1628
|
+
export declare class PackageJsonReadError extends PackageJsonReadError_base {
|
|
1629
1629
|
get message(): string;
|
|
1630
1630
|
}
|
|
1631
1631
|
declare const PackageJsonNotFoundError_base: Schema.Class<PackageJsonNotFoundError, Schema.TaggedStruct<"PackageJsonNotFoundError", {
|
|
@@ -1638,7 +1638,7 @@ declare const PackageJsonNotFoundError_base: Schema.Class<PackageJsonNotFoundErr
|
|
|
1638
1638
|
*
|
|
1639
1639
|
* @public
|
|
1640
1640
|
*/
|
|
1641
|
-
declare class PackageJsonNotFoundError extends PackageJsonNotFoundError_base {
|
|
1641
|
+
export declare class PackageJsonNotFoundError extends PackageJsonNotFoundError_base {
|
|
1642
1642
|
get message(): string;
|
|
1643
1643
|
}
|
|
1644
1644
|
declare const PackageJsonParseError_base: Schema.Class<PackageJsonParseError, Schema.TaggedStruct<"PackageJsonParseError", {
|
|
@@ -1652,7 +1652,7 @@ declare const PackageJsonParseError_base: Schema.Class<PackageJsonParseError, Sc
|
|
|
1652
1652
|
*
|
|
1653
1653
|
* @public
|
|
1654
1654
|
*/
|
|
1655
|
-
declare class PackageJsonParseError extends PackageJsonParseError_base {
|
|
1655
|
+
export declare class PackageJsonParseError extends PackageJsonParseError_base {
|
|
1656
1656
|
get message(): string;
|
|
1657
1657
|
}
|
|
1658
1658
|
declare const PackageJsonWriteError_base: Schema.Class<PackageJsonWriteError, Schema.TaggedStruct<"PackageJsonWriteError", {
|
|
@@ -1668,7 +1668,7 @@ declare const PackageJsonWriteError_base: Schema.Class<PackageJsonWriteError, Sc
|
|
|
1668
1668
|
*
|
|
1669
1669
|
* @public
|
|
1670
1670
|
*/
|
|
1671
|
-
declare class PackageJsonWriteError extends PackageJsonWriteError_base {
|
|
1671
|
+
export declare class PackageJsonWriteError extends PackageJsonWriteError_base {
|
|
1672
1672
|
get message(): string;
|
|
1673
1673
|
}
|
|
1674
1674
|
/**
|
|
@@ -1756,7 +1756,7 @@ declare const PackageJsonFile_base: Context.ServiceClass<PackageJsonFile, "@effe
|
|
|
1756
1756
|
*
|
|
1757
1757
|
* @public
|
|
1758
1758
|
*/
|
|
1759
|
-
declare class PackageJsonFile extends PackageJsonFile_base {
|
|
1759
|
+
export declare class PackageJsonFile extends PackageJsonFile_base {
|
|
1760
1760
|
/** Build the service implementation from `FileSystem` / `Path` in context; use {@link PackageJsonFile.layer} to provide it. */
|
|
1761
1761
|
static readonly make: Effect.Effect<PackageJsonFileShape, never, FileSystem.FileSystem | Path.Path>;
|
|
1762
1762
|
/**
|
|
@@ -1806,7 +1806,7 @@ declare const PackageValidationError_base: Schema.Class<PackageValidationError,
|
|
|
1806
1806
|
*
|
|
1807
1807
|
* @public
|
|
1808
1808
|
*/
|
|
1809
|
-
declare class PackageValidationError extends PackageValidationError_base {
|
|
1809
|
+
export declare class PackageValidationError extends PackageValidationError_base {
|
|
1810
1810
|
get message(): string;
|
|
1811
1811
|
}
|
|
1812
1812
|
/**
|
|
@@ -1815,21 +1815,21 @@ declare class PackageValidationError extends PackageValidationError_base {
|
|
|
1815
1815
|
*
|
|
1816
1816
|
* @public
|
|
1817
1817
|
*/
|
|
1818
|
-
declare const noUnresolvedDepsRule: ValidationRule;
|
|
1818
|
+
export declare const noUnresolvedDepsRule: ValidationRule;
|
|
1819
1819
|
/**
|
|
1820
1820
|
* A rule that fails when any dependency uses a local `file:`, `link:` or
|
|
1821
1821
|
* `portal:` specifier.
|
|
1822
1822
|
*
|
|
1823
1823
|
* @public
|
|
1824
1824
|
*/
|
|
1825
|
-
declare const noLocalDepsRule: ValidationRule;
|
|
1825
|
+
export declare const noLocalDepsRule: ValidationRule;
|
|
1826
1826
|
/**
|
|
1827
1827
|
* The default validation rules: license, description, repository and
|
|
1828
1828
|
* not-private.
|
|
1829
1829
|
*
|
|
1830
1830
|
* @public
|
|
1831
1831
|
*/
|
|
1832
|
-
declare const defaultRules: ReadonlyArray<ValidationRule>;
|
|
1832
|
+
export declare const defaultRules: ReadonlyArray<ValidationRule>;
|
|
1833
1833
|
declare const PackageValidator_base: Context.ServiceClass<PackageValidator, "@effected/package-json/PackageValidator", {
|
|
1834
1834
|
readonly validate: (pkg: Package) => Effect.Effect<void, PackageValidationError>;
|
|
1835
1835
|
}>;
|
|
@@ -1851,7 +1851,7 @@ declare const PackageValidator_base: Context.ServiceClass<PackageValidator, "@ef
|
|
|
1851
1851
|
*
|
|
1852
1852
|
* @public
|
|
1853
1853
|
*/
|
|
1854
|
-
declare class PackageValidator extends PackageValidator_base {
|
|
1854
|
+
export declare class PackageValidator extends PackageValidator_base {
|
|
1855
1855
|
/** The default layer, backed by {@link defaultRules}. */
|
|
1856
1856
|
static readonly layer: Layer.Layer<PackageValidator>;
|
|
1857
1857
|
/**
|
|
@@ -1865,5 +1865,5 @@ declare class PackageValidator extends PackageValidator_base {
|
|
|
1865
1865
|
}): Layer.Layer<PackageValidator>;
|
|
1866
1866
|
}
|
|
1867
1867
|
//#endregion
|
|
1868
|
-
export {
|
|
1868
|
+
export { type DependencyKind, type DependencyProtocol, DependencySpecifier, type DependencySpecifierBrand, type DevEngines, type EntryPointManifest, InvalidDependencySpecifierError, JsoncEdit, type JsoncPath, type LenientFieldIssue, type PackageFieldEdit, type PackageFormatOptions, type PackageFormatTextOptions, type PackageIndent, type PackageJsonFileShape, type PackagePatch, type ResolveEntryPointOptions, type RuleFailure, type UnresolvedDependency, type ValidationRule, isValidDependencySpecifier };
|
|
1869
1869
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effected/package-json",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "package.json parsing, editing, validation and file IO as Effect schemas.",
|
|
6
6
|
"keywords": [
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
"./package.json": "./package.json"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@effected/jsonc": "^0.
|
|
42
|
-
"@effected/npm": "^0.
|
|
43
|
-
"@effected/semver": "^0.
|
|
44
|
-
"@effected/spdx": "^0.
|
|
41
|
+
"@effected/jsonc": "^0.9.0",
|
|
42
|
+
"@effected/npm": "^0.13.0",
|
|
43
|
+
"@effected/semver": "^0.6.0",
|
|
44
|
+
"@effected/spdx": "^0.6.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"effect": "4.0.0-rc.
|
|
47
|
+
"effect": "4.0.0-rc.112"
|
|
48
48
|
},
|
|
49
49
|
"engines": {
|
|
50
50
|
"node": ">=24.11.0"
|