@http-forge/core 0.4.2 → 0.4.4
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/README.md +8 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +208 -205
- package/dist/index.mjs +209 -206
- package/dist/infrastructure/collection/collection-service.d.ts +2 -0
- package/dist/infrastructure/collection/folder-collection-store.d.ts +9 -0
- package/dist/runtime/direct-execution.d.ts +4 -2
- package/dist/runtime/ref-resolver.d.ts +80 -0
- package/dist/runtime/runtime-contracts.d.ts +44 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -549,6 +549,14 @@ Detects Postman format by `info._postman_id` and converts all five body modes:
|
|
|
549
549
|
|
|
550
550
|
Auth types `bearer`, `basic`, and `apikey` are converted. Pre-request and test scripts (`prerequest`/`test` events) are imported as `scripts.preRequest`/`scripts.postResponse`. Folder hierarchy and item order are preserved.
|
|
551
551
|
|
|
552
|
+
The whole collection is built in memory and persisted with a single `saveCollection()`
|
|
553
|
+
call. `FolderCollectionStore.save()` writes sibling items and each request's
|
|
554
|
+
independent files (body, docs, scripts, schemas) in parallel and writes each
|
|
555
|
+
metadata file once; fresh imports skip stale-body cleanup and schema-existence
|
|
556
|
+
probes. Loaders read JSON via a `readJsonFileSafe` helper that silently skips
|
|
557
|
+
empty or half-written files, so a watcher reloading mid-import never throws
|
|
558
|
+
`Unexpected end of JSON input`.
|
|
559
|
+
|
|
552
560
|
**Export** (`exportCollection(collectionId, filePath)`):
|
|
553
561
|
|
|
554
562
|
Converts back to Postman v2.1 JSON. All body types round-trip correctly: `x-www-form-urlencoded` exports as `mode: "urlencoded"`, `form-data` as `mode: "formdata"`, `graphql` as `mode: "graphql"`, and `binary` as `mode: "binary"`.
|
package/dist/index.d.ts
CHANGED
|
@@ -67,6 +67,8 @@ export { generateSlug } from './infrastructure/collection/folder-io';
|
|
|
67
67
|
export { ParserRegistry } from './infrastructure/collection/parser-registry';
|
|
68
68
|
export { JsonCollectionLoader } from './infrastructure/collection/json-collection-loader';
|
|
69
69
|
export type { Collection, CollectionFolderItem, CollectionItem, CollectionRequestItem, ICollectionService } from './types/collection';
|
|
70
|
+
export { AmbiguousRefError, resolveCollectionRef, resolveFolderRef, resolveRequestRef } from './runtime/ref-resolver';
|
|
71
|
+
export type { RefCandidate, RefKind, RefTier, ResolutionInfo } from './runtime/ref-resolver';
|
|
70
72
|
export { EnvironmentConfigService } from './infrastructure/environment/environment-config-service';
|
|
71
73
|
export { isSystemEnvironmentFile, loadEnvironmentsFromFolder } from './infrastructure/environment/environment-file-loader';
|
|
72
74
|
export type { EnvironmentEntry, EnvironmentFolderData } from './infrastructure/environment/environment-file-loader';
|