@tsdoctor/bundle 0.3.0 → 0.3.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.
- package/index.d.ts +46 -46
- package/package.json +12 -12
package/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ import { JsoncCanonicalizeError } from "@effected/jsonc";
|
|
|
20
20
|
*
|
|
21
21
|
* @public
|
|
22
22
|
*/
|
|
23
|
-
declare const KNOWN_REGISTRY_TYPES: readonly ["npm", "jsr"];
|
|
23
|
+
export declare const KNOWN_REGISTRY_TYPES: readonly ["npm", "jsr"];
|
|
24
24
|
/**
|
|
25
25
|
* A registry protocol family this reader recognizes.
|
|
26
26
|
*
|
|
@@ -34,7 +34,7 @@ type KnownRegistryType = (typeof KNOWN_REGISTRY_TYPES)[number];
|
|
|
34
34
|
*
|
|
35
35
|
* @public
|
|
36
36
|
*/
|
|
37
|
-
declare function isKnownRegistryType(type: string): type is KnownRegistryType;
|
|
37
|
+
export declare function isKnownRegistryType(type: string): type is KnownRegistryType;
|
|
38
38
|
/**
|
|
39
39
|
* One registry the documented package is published to.
|
|
40
40
|
*
|
|
@@ -46,7 +46,7 @@ declare function isKnownRegistryType(type: string): type is KnownRegistryType;
|
|
|
46
46
|
*
|
|
47
47
|
* @public
|
|
48
48
|
*/
|
|
49
|
-
declare const RegistryRef: Schema.Struct<{
|
|
49
|
+
export declare const RegistryRef: Schema.Struct<{
|
|
50
50
|
/** The protocol family, e.g. `"npm"` or `"jsr"`. Unknown values are accepted. */
|
|
51
51
|
readonly type: Schema.String;
|
|
52
52
|
/** The human instance label, e.g. `"npm"` or `"Savvy Web Registry"`. */
|
|
@@ -59,7 +59,7 @@ declare const RegistryRef: Schema.Struct<{
|
|
|
59
59
|
*
|
|
60
60
|
* @public
|
|
61
61
|
*/
|
|
62
|
-
type RegistryRef = typeof RegistryRef.Type;
|
|
62
|
+
export type RegistryRef = typeof RegistryRef.Type;
|
|
63
63
|
/**
|
|
64
64
|
* One Open Graph image declared by the manifest.
|
|
65
65
|
*
|
|
@@ -73,7 +73,7 @@ type RegistryRef = typeof RegistryRef.Type;
|
|
|
73
73
|
*
|
|
74
74
|
* @public
|
|
75
75
|
*/
|
|
76
|
-
declare const OpenGraphImage: Schema.Struct<{
|
|
76
|
+
export declare const OpenGraphImage: Schema.Struct<{
|
|
77
77
|
/** Bundle-relative asset path. Mutually exclusive with `url`. */
|
|
78
78
|
readonly path: Schema.optionalKey<Schema.String>;
|
|
79
79
|
/** Absolute external URL, used verbatim. Mutually exclusive with `path`. */
|
|
@@ -92,7 +92,7 @@ declare const OpenGraphImage: Schema.Struct<{
|
|
|
92
92
|
*
|
|
93
93
|
* @public
|
|
94
94
|
*/
|
|
95
|
-
type OpenGraphImage = typeof OpenGraphImage.Type;
|
|
95
|
+
export type OpenGraphImage = typeof OpenGraphImage.Type;
|
|
96
96
|
/**
|
|
97
97
|
* The manifest's Open Graph block: the asset-ish pieces only — most OG tags
|
|
98
98
|
* are page-level and derive at render time in the consuming platform.
|
|
@@ -103,7 +103,7 @@ type OpenGraphImage = typeof OpenGraphImage.Type;
|
|
|
103
103
|
*
|
|
104
104
|
* @public
|
|
105
105
|
*/
|
|
106
|
-
declare const OpenGraphConfig: Schema.Struct<{
|
|
106
|
+
export declare const OpenGraphConfig: Schema.Struct<{
|
|
107
107
|
/** Declared images, first-wins per OG array semantics. */
|
|
108
108
|
readonly images: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
109
109
|
/** Bundle-relative asset path. Mutually exclusive with `url`. */
|
|
@@ -127,14 +127,14 @@ declare const OpenGraphConfig: Schema.Struct<{
|
|
|
127
127
|
*
|
|
128
128
|
* @public
|
|
129
129
|
*/
|
|
130
|
-
type OpenGraphConfig = typeof OpenGraphConfig.Type;
|
|
130
|
+
export type OpenGraphConfig = typeof OpenGraphConfig.Type;
|
|
131
131
|
/**
|
|
132
132
|
* A pointer to the bundle's SBOM, computed by the bundler at publish and
|
|
133
133
|
* served as a downloadable static asset.
|
|
134
134
|
*
|
|
135
135
|
* @public
|
|
136
136
|
*/
|
|
137
|
-
declare const SbomRef: Schema.Struct<{
|
|
137
|
+
export declare const SbomRef: Schema.Struct<{
|
|
138
138
|
/** Bundle-relative path to the SBOM file. */
|
|
139
139
|
readonly path: Schema.String;
|
|
140
140
|
/** SBOM format label, e.g. `"spdx-json"`. Unknown values are accepted. */
|
|
@@ -145,7 +145,7 @@ declare const SbomRef: Schema.Struct<{
|
|
|
145
145
|
*
|
|
146
146
|
* @public
|
|
147
147
|
*/
|
|
148
|
-
type SbomRef = typeof SbomRef.Type;
|
|
148
|
+
export type SbomRef = typeof SbomRef.Type;
|
|
149
149
|
/**
|
|
150
150
|
* The inherited project tier, flattened into the emitted manifest by the
|
|
151
151
|
* bundler (a fetched bundle has no parent directory to walk). Kept nested —
|
|
@@ -154,7 +154,7 @@ type SbomRef = typeof SbomRef.Type;
|
|
|
154
154
|
*
|
|
155
155
|
* @public
|
|
156
156
|
*/
|
|
157
|
-
declare const ProjectIdentity: Schema.Struct<{
|
|
157
|
+
export declare const ProjectIdentity: Schema.Struct<{
|
|
158
158
|
/** The project display name, e.g. `"Effected"` over leaf `@effected/store`. */
|
|
159
159
|
readonly name: Schema.optionalKey<Schema.String>;
|
|
160
160
|
/** The project tagline. */
|
|
@@ -165,7 +165,7 @@ declare const ProjectIdentity: Schema.Struct<{
|
|
|
165
165
|
*
|
|
166
166
|
* @public
|
|
167
167
|
*/
|
|
168
|
-
type ProjectIdentity = typeof ProjectIdentity.Type;
|
|
168
|
+
export type ProjectIdentity = typeof ProjectIdentity.Type;
|
|
169
169
|
/**
|
|
170
170
|
* The versioned `tsdoctor.json` sidecar manifest — bundle layer 3.
|
|
171
171
|
*
|
|
@@ -178,7 +178,7 @@ type ProjectIdentity = typeof ProjectIdentity.Type;
|
|
|
178
178
|
*
|
|
179
179
|
* @public
|
|
180
180
|
*/
|
|
181
|
-
declare const BundleManifest: Schema.Struct<{
|
|
181
|
+
export declare const BundleManifest: Schema.Struct<{
|
|
182
182
|
/** The integer spec version. This reader understands spec 1. */
|
|
183
183
|
readonly spec: Schema.Literal<1>;
|
|
184
184
|
/** Human display name (the npm name is dry; this one is SEO-friendly). */
|
|
@@ -236,7 +236,7 @@ declare const BundleManifest: Schema.Struct<{
|
|
|
236
236
|
*
|
|
237
237
|
* @public
|
|
238
238
|
*/
|
|
239
|
-
type BundleManifest = typeof BundleManifest.Type;
|
|
239
|
+
export type BundleManifest = typeof BundleManifest.Type;
|
|
240
240
|
declare const BundleManifestError_base: Schema.Class<BundleManifestError, Schema.TaggedStruct<"BundleManifestError", {
|
|
241
241
|
/** The manifest file path, when the failure is tied to a file on disk. */
|
|
242
242
|
readonly path: Schema.optionalKey<Schema.String>;
|
|
@@ -253,7 +253,7 @@ declare const BundleManifestError_base: Schema.Class<BundleManifestError, Schema
|
|
|
253
253
|
*
|
|
254
254
|
* @public
|
|
255
255
|
*/
|
|
256
|
-
declare class BundleManifestError extends BundleManifestError_base {
|
|
256
|
+
export declare class BundleManifestError extends BundleManifestError_base {
|
|
257
257
|
get message(): string;
|
|
258
258
|
}
|
|
259
259
|
/**
|
|
@@ -266,19 +266,19 @@ declare class BundleManifestError extends BundleManifestError_base {
|
|
|
266
266
|
*
|
|
267
267
|
* @public
|
|
268
268
|
*/
|
|
269
|
-
declare function decodeBundleManifest(input: unknown, path?: string): Effect.Effect<BundleManifest, BundleManifestError>;
|
|
269
|
+
export declare function decodeBundleManifest(input: unknown, path?: string): Effect.Effect<BundleManifest, BundleManifestError>;
|
|
270
270
|
/**
|
|
271
271
|
* The manifest spec version this package reads and writes.
|
|
272
272
|
*
|
|
273
273
|
* @public
|
|
274
274
|
*/
|
|
275
|
-
declare const MANIFEST_SPEC: 1;
|
|
275
|
+
export declare const MANIFEST_SPEC: 1;
|
|
276
276
|
/**
|
|
277
277
|
* The sidecar manifest's file name inside a bundle folder.
|
|
278
278
|
*
|
|
279
279
|
* @public
|
|
280
280
|
*/
|
|
281
|
-
declare const TSDOCTOR_MANIFEST_FILENAME = "tsdoctor.json";
|
|
281
|
+
export declare const TSDOCTOR_MANIFEST_FILENAME = "tsdoctor.json";
|
|
282
282
|
/**
|
|
283
283
|
* Encode a {@link (BundleManifest:type)} into the JSON-ready value a writer
|
|
284
284
|
* serializes as `tsdoctor.json`.
|
|
@@ -290,7 +290,7 @@ declare const TSDOCTOR_MANIFEST_FILENAME = "tsdoctor.json";
|
|
|
290
290
|
*
|
|
291
291
|
* @public
|
|
292
292
|
*/
|
|
293
|
-
declare function encodeBundleManifest(manifest: BundleManifest): Effect.Effect<unknown, BundleManifestError>;
|
|
293
|
+
export declare function encodeBundleManifest(manifest: BundleManifest): Effect.Effect<unknown, BundleManifestError>;
|
|
294
294
|
//#endregion
|
|
295
295
|
//#region src/ManifestSource.d.ts
|
|
296
296
|
/**
|
|
@@ -305,7 +305,7 @@ declare function encodeBundleManifest(manifest: BundleManifest): Effect.Effect<u
|
|
|
305
305
|
*
|
|
306
306
|
* @public
|
|
307
307
|
*/
|
|
308
|
-
declare const ManifestSource: Schema.Struct<{
|
|
308
|
+
export declare const ManifestSource: Schema.Struct<{
|
|
309
309
|
readonly name: Schema.optionalKey<Schema.String>;
|
|
310
310
|
readonly tagline: Schema.optionalKey<Schema.String>;
|
|
311
311
|
readonly description: Schema.optionalKey<Schema.String>;
|
|
@@ -335,13 +335,13 @@ declare const ManifestSource: Schema.Struct<{
|
|
|
335
335
|
*
|
|
336
336
|
* @public
|
|
337
337
|
*/
|
|
338
|
-
type ManifestSource = typeof ManifestSource.Type;
|
|
338
|
+
export type ManifestSource = typeof ManifestSource.Type;
|
|
339
339
|
/**
|
|
340
340
|
* Decode an unknown value into a {@link (ManifestSource:type)}.
|
|
341
341
|
*
|
|
342
342
|
* @public
|
|
343
343
|
*/
|
|
344
|
-
declare function decodeManifestSource(input: unknown, path?: string): Effect.Effect<ManifestSource, BundleManifestError>;
|
|
344
|
+
export declare function decodeManifestSource(input: unknown, path?: string): Effect.Effect<ManifestSource, BundleManifestError>;
|
|
345
345
|
//#endregion
|
|
346
346
|
//#region src/Bundle.d.ts
|
|
347
347
|
/**
|
|
@@ -380,7 +380,7 @@ declare const BundleLayerError_base: Schema.Class<BundleLayerError, Schema.Tagge
|
|
|
380
380
|
*
|
|
381
381
|
* @public
|
|
382
382
|
*/
|
|
383
|
-
declare class BundleLayerError extends BundleLayerError_base {
|
|
383
|
+
export declare class BundleLayerError extends BundleLayerError_base {
|
|
384
384
|
get message(): string;
|
|
385
385
|
}
|
|
386
386
|
/**
|
|
@@ -441,7 +441,7 @@ interface Bundle {
|
|
|
441
441
|
*
|
|
442
442
|
* @public
|
|
443
443
|
*/
|
|
444
|
-
declare function readApiModelInfo(modelPath: string): Effect.Effect<ApiModelInfo, BundleLayerError, FileSystem.FileSystem>;
|
|
444
|
+
export declare function readApiModelInfo(modelPath: string): Effect.Effect<ApiModelInfo, BundleLayerError, FileSystem.FileSystem>;
|
|
445
445
|
/**
|
|
446
446
|
* Read all four layers of a discovered bundle into a {@link Bundle}.
|
|
447
447
|
*
|
|
@@ -455,7 +455,7 @@ declare function readApiModelInfo(modelPath: string): Effect.Effect<ApiModelInfo
|
|
|
455
455
|
*
|
|
456
456
|
* @public
|
|
457
457
|
*/
|
|
458
|
-
declare function readBundle(descriptor: BundleDescriptor): Effect.Effect<Bundle, BundleLayerError | BundleManifestError, FileSystem.FileSystem | Path.Path>;
|
|
458
|
+
export declare function readBundle(descriptor: BundleDescriptor): Effect.Effect<Bundle, BundleLayerError | BundleManifestError, FileSystem.FileSystem | Path.Path>;
|
|
459
459
|
//#endregion
|
|
460
460
|
//#region src/PlatformOverrides.d.ts
|
|
461
461
|
/**
|
|
@@ -472,7 +472,7 @@ declare function readBundle(descriptor: BundleDescriptor): Effect.Effect<Bundle,
|
|
|
472
472
|
*
|
|
473
473
|
* @public
|
|
474
474
|
*/
|
|
475
|
-
declare const PlatformOverrides: Schema.Struct<{
|
|
475
|
+
export declare const PlatformOverrides: Schema.Struct<{
|
|
476
476
|
/** Human display name override. */
|
|
477
477
|
readonly name: Schema.optionalKey<Schema.String>;
|
|
478
478
|
/** Tagline override. */
|
|
@@ -508,7 +508,7 @@ declare const PlatformOverrides: Schema.Struct<{
|
|
|
508
508
|
*
|
|
509
509
|
* @public
|
|
510
510
|
*/
|
|
511
|
-
type PlatformOverrides = typeof PlatformOverrides.Type;
|
|
511
|
+
export type PlatformOverrides = typeof PlatformOverrides.Type;
|
|
512
512
|
/**
|
|
513
513
|
* Decode an unknown value into a {@link (PlatformOverrides:type)}.
|
|
514
514
|
*
|
|
@@ -519,7 +519,7 @@ type PlatformOverrides = typeof PlatformOverrides.Type;
|
|
|
519
519
|
*
|
|
520
520
|
* @public
|
|
521
521
|
*/
|
|
522
|
-
declare function decodePlatformOverrides(input: unknown): Effect.Effect<PlatformOverrides, BundleManifestError>;
|
|
522
|
+
export declare function decodePlatformOverrides(input: unknown): Effect.Effect<PlatformOverrides, BundleManifestError>;
|
|
523
523
|
//#endregion
|
|
524
524
|
//#region src/BundleResolver.d.ts
|
|
525
525
|
/**
|
|
@@ -652,13 +652,13 @@ interface ResolveBundleInput {
|
|
|
652
652
|
*
|
|
653
653
|
* @public
|
|
654
654
|
*/
|
|
655
|
-
declare function resolveBundle(input: ResolveBundleInput): ResolvedBundle;
|
|
655
|
+
export declare function resolveBundle(input: ResolveBundleInput): ResolvedBundle;
|
|
656
656
|
/**
|
|
657
657
|
* Resolve a read {@link Bundle}, unwrapping its `Option` layers.
|
|
658
658
|
*
|
|
659
659
|
* @public
|
|
660
660
|
*/
|
|
661
|
-
declare function resolveBundleFrom(bundle: Bundle, platform?: PlatformOverrides): ResolvedBundle;
|
|
661
|
+
export declare function resolveBundleFrom(bundle: Bundle, platform?: PlatformOverrides): ResolvedBundle;
|
|
662
662
|
//#endregion
|
|
663
663
|
//#region src/BundleAssets.d.ts
|
|
664
664
|
declare const BundleAssetError_base: Schema.Class<BundleAssetError, Schema.TaggedStruct<"BundleAssetError", {
|
|
@@ -672,7 +672,7 @@ declare const BundleAssetError_base: Schema.Class<BundleAssetError, Schema.Tagge
|
|
|
672
672
|
*
|
|
673
673
|
* @public
|
|
674
674
|
*/
|
|
675
|
-
declare class BundleAssetError extends BundleAssetError_base {
|
|
675
|
+
export declare class BundleAssetError extends BundleAssetError_base {
|
|
676
676
|
get message(): string;
|
|
677
677
|
}
|
|
678
678
|
/**
|
|
@@ -732,7 +732,7 @@ interface PublishBundleAssetsInput {
|
|
|
732
732
|
*
|
|
733
733
|
* @public
|
|
734
734
|
*/
|
|
735
|
-
declare const publishBundleAssets: (input: PublishBundleAssetsInput) => Effect.Effect<readonly PublishedOpenGraphImage[], BundleAssetError, FileSystem.FileSystem | Path.Path>;
|
|
735
|
+
export declare const publishBundleAssets: (input: PublishBundleAssetsInput) => Effect.Effect<readonly PublishedOpenGraphImage[], BundleAssetError, FileSystem.FileSystem | Path.Path>;
|
|
736
736
|
//#endregion
|
|
737
737
|
//#region src/BundleDiscovery.d.ts
|
|
738
738
|
declare const BundleDiscoveryError_base: Schema.Class<BundleDiscoveryError, Schema.TaggedStruct<"BundleDiscoveryError", {
|
|
@@ -755,7 +755,7 @@ declare const BundleDiscoveryError_base: Schema.Class<BundleDiscoveryError, Sche
|
|
|
755
755
|
*
|
|
756
756
|
* @public
|
|
757
757
|
*/
|
|
758
|
-
declare class BundleDiscoveryError extends BundleDiscoveryError_base {
|
|
758
|
+
export declare class BundleDiscoveryError extends BundleDiscoveryError_base {
|
|
759
759
|
get message(): string;
|
|
760
760
|
}
|
|
761
761
|
/**
|
|
@@ -807,7 +807,7 @@ interface DiscoverBundlesOptions {
|
|
|
807
807
|
*
|
|
808
808
|
* @public
|
|
809
809
|
*/
|
|
810
|
-
declare function discoverBundle(dir: string, options?: DiscoverBundleOptions): Effect.Effect<BundleDescriptor, BundleDiscoveryError | BundleLayerError, FileSystem.FileSystem | Path.Path>;
|
|
810
|
+
export declare function discoverBundle(dir: string, options?: DiscoverBundleOptions): Effect.Effect<BundleDescriptor, BundleDiscoveryError | BundleLayerError, FileSystem.FileSystem | Path.Path>;
|
|
811
811
|
/**
|
|
812
812
|
* Strictly scan a parent directory and discover one bundle per subfolder.
|
|
813
813
|
*
|
|
@@ -821,19 +821,19 @@ declare function discoverBundle(dir: string, options?: DiscoverBundleOptions): E
|
|
|
821
821
|
*
|
|
822
822
|
* @public
|
|
823
823
|
*/
|
|
824
|
-
declare function discoverBundles(parentDir: string, options?: DiscoverBundlesOptions): Effect.Effect<ReadonlyArray<BundleDescriptor>, BundleDiscoveryError | BundleLayerError, FileSystem.FileSystem | Path.Path>;
|
|
824
|
+
export declare function discoverBundles(parentDir: string, options?: DiscoverBundlesOptions): Effect.Effect<ReadonlyArray<BundleDescriptor>, BundleDiscoveryError | BundleLayerError, FileSystem.FileSystem | Path.Path>;
|
|
825
825
|
/**
|
|
826
826
|
* Discover and read a single bundle in one call.
|
|
827
827
|
*
|
|
828
828
|
* @public
|
|
829
829
|
*/
|
|
830
|
-
declare function loadBundle(dir: string, options?: DiscoverBundleOptions): Effect.Effect<Bundle, BundleDiscoveryError | BundleLayerError | BundleManifestError, FileSystem.FileSystem | Path.Path>;
|
|
830
|
+
export declare function loadBundle(dir: string, options?: DiscoverBundleOptions): Effect.Effect<Bundle, BundleDiscoveryError | BundleLayerError | BundleManifestError, FileSystem.FileSystem | Path.Path>;
|
|
831
831
|
/**
|
|
832
832
|
* Discover and read every bundle under a parent directory in one call.
|
|
833
833
|
*
|
|
834
834
|
* @public
|
|
835
835
|
*/
|
|
836
|
-
declare function loadBundles(parentDir: string, options?: DiscoverBundlesOptions): Effect.Effect<ReadonlyArray<Bundle>, BundleDiscoveryError | BundleLayerError | BundleManifestError, FileSystem.FileSystem | Path.Path>;
|
|
836
|
+
export declare function loadBundles(parentDir: string, options?: DiscoverBundlesOptions): Effect.Effect<ReadonlyArray<Bundle>, BundleDiscoveryError | BundleLayerError | BundleManifestError, FileSystem.FileSystem | Path.Path>;
|
|
837
837
|
//#endregion
|
|
838
838
|
//#region src/BundleFetch.d.ts
|
|
839
839
|
declare const BundleFetchError_base: Schema.Class<BundleFetchError, Schema.TaggedStruct<"BundleFetchError", {
|
|
@@ -860,7 +860,7 @@ declare const BundleFetchError_base: Schema.Class<BundleFetchError, Schema.Tagge
|
|
|
860
860
|
*
|
|
861
861
|
* @public
|
|
862
862
|
*/
|
|
863
|
-
declare class BundleFetchError extends BundleFetchError_base {
|
|
863
|
+
export declare class BundleFetchError extends BundleFetchError_base {
|
|
864
864
|
get message(): string;
|
|
865
865
|
}
|
|
866
866
|
/**
|
|
@@ -929,7 +929,7 @@ interface FetchGitHubReleaseBundleOptions {
|
|
|
929
929
|
*
|
|
930
930
|
* @public
|
|
931
931
|
*/
|
|
932
|
-
declare function fetchNpmBundle(options: FetchNpmBundleOptions): Effect.Effect<Bundle, BundleFetchError | BundleLayerError | BundleManifestError, NpmRegistry | PackageTarball | Cache | AppDirs | FileSystem.FileSystem | Path.Path>;
|
|
932
|
+
export declare function fetchNpmBundle(options: FetchNpmBundleOptions): Effect.Effect<Bundle, BundleFetchError | BundleLayerError | BundleManifestError, NpmRegistry | PackageTarball | Cache | AppDirs | FileSystem.FileSystem | Path.Path>;
|
|
933
933
|
/**
|
|
934
934
|
* Fetch a bundle attached to a GitHub release as a `*.npm.meta.tgz`-style
|
|
935
935
|
* asset, through the durable XDG cache.
|
|
@@ -951,7 +951,7 @@ declare function fetchNpmBundle(options: FetchNpmBundleOptions): Effect.Effect<B
|
|
|
951
951
|
*
|
|
952
952
|
* @public
|
|
953
953
|
*/
|
|
954
|
-
declare function fetchGitHubReleaseBundle(options: FetchGitHubReleaseBundleOptions): Effect.Effect<Bundle, BundleFetchError | BundleLayerError | BundleManifestError, GitHubRelease | PackageTarball | Cache | AppDirs | FileSystem.FileSystem | Path.Path>;
|
|
954
|
+
export declare function fetchGitHubReleaseBundle(options: FetchGitHubReleaseBundleOptions): Effect.Effect<Bundle, BundleFetchError | BundleLayerError | BundleManifestError, GitHubRelease | PackageTarball | Cache | AppDirs | FileSystem.FileSystem | Path.Path>;
|
|
955
955
|
//#endregion
|
|
956
956
|
//#region src/BundleHash.d.ts
|
|
957
957
|
/**
|
|
@@ -967,7 +967,7 @@ declare function fetchGitHubReleaseBundle(options: FetchGitHubReleaseBundleOptio
|
|
|
967
967
|
*
|
|
968
968
|
* @public
|
|
969
969
|
*/
|
|
970
|
-
declare function normalizeText(text: string): string;
|
|
970
|
+
export declare function normalizeText(text: string): string;
|
|
971
971
|
/**
|
|
972
972
|
* Hash text content: {@link normalizeText} then SHA-256 (lowercase hex).
|
|
973
973
|
*
|
|
@@ -979,7 +979,7 @@ declare function normalizeText(text: string): string;
|
|
|
979
979
|
*
|
|
980
980
|
* @public
|
|
981
981
|
*/
|
|
982
|
-
declare function hashText(text: string): Effect.Effect<string, PlatformError.PlatformError, Crypto.Crypto>;
|
|
982
|
+
export declare function hashText(text: string): Effect.Effect<string, PlatformError.PlatformError, Crypto.Crypto>;
|
|
983
983
|
/**
|
|
984
984
|
* Hash a JSON-shaped value: RFC 8785 (JCS) canonicalization then SHA-256.
|
|
985
985
|
*
|
|
@@ -992,7 +992,7 @@ declare function hashText(text: string): Effect.Effect<string, PlatformError.Pla
|
|
|
992
992
|
*
|
|
993
993
|
* @public
|
|
994
994
|
*/
|
|
995
|
-
declare function hashJsonValue(value: unknown): Effect.Effect<string, JsoncCanonicalizeError | PlatformError.PlatformError, Crypto.Crypto>;
|
|
995
|
+
export declare function hashJsonValue(value: unknown): Effect.Effect<string, JsoncCanonicalizeError | PlatformError.PlatformError, Crypto.Crypto>;
|
|
996
996
|
/**
|
|
997
997
|
* Hash one bundle layer file's raw text — the COARSE half of change
|
|
998
998
|
* detection (all layer hashes match → skip resolution entirely).
|
|
@@ -1008,7 +1008,7 @@ declare function hashJsonValue(value: unknown): Effect.Effect<string, JsoncCanon
|
|
|
1008
1008
|
*
|
|
1009
1009
|
* @public
|
|
1010
1010
|
*/
|
|
1011
|
-
declare function hashLayerText(text: string): Effect.Effect<string, PlatformError.PlatformError, Crypto.Crypto>;
|
|
1011
|
+
export declare function hashLayerText(text: string): Effect.Effect<string, PlatformError.PlatformError, Crypto.Crypto>;
|
|
1012
1012
|
/**
|
|
1013
1013
|
* Fingerprint every present field of a {@link ResolvedBundle} — the FINE
|
|
1014
1014
|
* half of change detection, hashing each field's `{ value, source }` pair.
|
|
@@ -1027,7 +1027,7 @@ declare function hashLayerText(text: string): Effect.Effect<string, PlatformErro
|
|
|
1027
1027
|
*
|
|
1028
1028
|
* @public
|
|
1029
1029
|
*/
|
|
1030
|
-
declare function fingerprintResolvedBundle(resolved: ResolvedBundle): Effect.Effect<Readonly<Record<string, string>>, PlatformError.PlatformError, Crypto.Crypto>;
|
|
1030
|
+
export declare function fingerprintResolvedBundle(resolved: ResolvedBundle): Effect.Effect<Readonly<Record<string, string>>, PlatformError.PlatformError, Crypto.Crypto>;
|
|
1031
1031
|
//#endregion
|
|
1032
|
-
export {
|
|
1032
|
+
export type { ApiModelInfo, Bundle, BundleDescriptor, BundleOverrides, DiscoverBundleOptions, DiscoverBundlesOptions, FetchGitHubReleaseBundleOptions, FetchNpmBundleOptions, KnownRegistryType, ProvenanceSource, Provenanced, PublishBundleAssetsInput, PublishedOpenGraphImage, ResolveBundleInput, ResolvedBundle, ResolvedOpenGraph, ResolvedOpenGraphImage };
|
|
1033
1033
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsdoctor/bundle",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The tsdoctor bundle spec: layered bundle discovery, the versioned tsdoctor.json sidecar manifest, provenance-carrying resolution and canonical input hashing for API documentation bundles.",
|
|
6
6
|
"keywords": [
|
|
@@ -39,17 +39,17 @@
|
|
|
39
39
|
"./package.json": "./package.json"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@effected/github": "^0.
|
|
43
|
-
"@effected/glob": "^0.
|
|
44
|
-
"@effected/jsonc": "^0.
|
|
45
|
-
"@effected/npm": "^0.
|
|
46
|
-
"@effected/package-json": "^0.
|
|
47
|
-
"@effected/store": "^0.
|
|
48
|
-
"@effected/tsconfig-json": "^0.
|
|
49
|
-
"@effected/walker": "^0.
|
|
50
|
-
"@effected/xdg": "^0.
|
|
51
|
-
"@tsdoctor/manifest": "0.1.
|
|
52
|
-
"effect": "4.0.0-rc.
|
|
42
|
+
"@effected/github": "^0.9.0",
|
|
43
|
+
"@effected/glob": "^0.5.0",
|
|
44
|
+
"@effected/jsonc": "^0.9.0",
|
|
45
|
+
"@effected/npm": "^0.13.0",
|
|
46
|
+
"@effected/package-json": "^0.14.0",
|
|
47
|
+
"@effected/store": "^0.7.0",
|
|
48
|
+
"@effected/tsconfig-json": "^0.8.0",
|
|
49
|
+
"@effected/walker": "^0.6.0",
|
|
50
|
+
"@effected/xdg": "^0.4.0",
|
|
51
|
+
"@tsdoctor/manifest": "0.1.1",
|
|
52
|
+
"effect": "4.0.0-rc.112",
|
|
53
53
|
"image-size": "^2.0.2"
|
|
54
54
|
},
|
|
55
55
|
"engines": {
|