resourcexjs 2.4.0 → 2.5.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/dist/arp.d.ts CHANGED
@@ -7,19 +7,6 @@ import { Resource, SemanticHandler, ResourceMeta, SemanticContext, TextResource,
7
7
  import { ARI, ARL } from "@resourcexjs/arp";
8
8
  import { TransportHandler, TransportResult, TransportParams } from "@resourcexjs/arp";
9
9
  /**
10
- * Minimal registry interface required by RxrTransport.
11
- * This allows RxrTransport to work without depending on the full Registry type.
12
- */
13
- interface RxrTransportRegistry {
14
- get(locator: string): Promise<{
15
- archive: {
16
- extract(): Promise<{
17
- files(): Promise<Map<string, Buffer>>
18
- }>
19
- }
20
- }>;
21
- }
22
- /**
23
10
  * RXR Transport - Access files inside a resource.
24
11
  *
25
12
  * Location format: {rxl}/{internal-path}
@@ -28,9 +15,9 @@ interface RxrTransportRegistry {
28
15
  * The RXL portion ends at @version, and the internal path follows.
29
16
  */
30
17
  declare class RxrTransport implements TransportHandler {
31
- private registry?;
18
+ private basePath?;
32
19
  readonly name = "rxr";
33
- constructor(registry?: RxrTransportRegistry);
20
+ constructor(basePath?: string);
34
21
  /**
35
22
  * Get file content from inside a resource.
36
23
  */
@@ -49,7 +36,6 @@ declare class RxrTransport implements TransportHandler {
49
36
  delete(_location: string): Promise<void>;
50
37
  /**
51
38
  * Get the registry instance.
52
- * Uses injected registry if provided, otherwise creates/returns singleton.
53
39
  */
54
40
  private getRegistry;
55
41
  /**
@@ -82,4 +68,4 @@ declare function clearRegistryCache(): void;
82
68
  * ```
83
69
  */
84
70
  declare function createARP(config?: ARPConfig): ARP;
85
- export { textSemantic, httpsTransport, httpTransport, fileTransport, createARP, clearRegistryCache, binarySemantic, VERSION, TransportResult2 as TransportResult, TransportParams2 as TransportParams, TransportHandler2 as TransportHandler, TransportError, TextSemanticHandler, TextResource, SemanticHandler, SemanticError, SemanticContext, RxrTransportRegistry, RxrTransport, ResourceMeta, Resource, ParseError, HttpTransportHandler, FileTransportHandler, BinarySemanticHandler, BinaryResource, BinaryInput, ARPError, ARPConfig2 as ARPConfig, ARP2 as ARP, ARL, ARI };
71
+ export { textSemantic, httpsTransport, httpTransport, fileTransport, createARP, clearRegistryCache, binarySemantic, VERSION, TransportResult2 as TransportResult, TransportParams2 as TransportParams, TransportHandler2 as TransportHandler, TransportError, TextSemanticHandler, TextResource, SemanticHandler, SemanticError, SemanticContext, RxrTransport, ResourceMeta, Resource, ParseError, HttpTransportHandler, FileTransportHandler, BinarySemanticHandler, BinaryResource, BinaryInput, ARPError, ARPConfig2 as ARPConfig, ARP2 as ARP, ARL, ARI };