@rpack-dev/core 0.1.11 → 0.1.12-dev-f2ed683

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.
@@ -56,9 +56,11 @@ declare class RPack {
56
56
  getPlugin<T extends RPPlugin>(key: string): Promise<RegistryDataFiltered<T> | undefined>;
57
57
  }
58
58
  export declare abstract class PluginArchive {
59
+ static readonly MANIFEST_PATH = "manifest.json";
59
60
  private readonly map;
60
61
  private manifest;
61
62
  protected constructor();
63
+ protected detectMimeType(path: string): string;
62
64
  protected abstract resolveEntry(path: string): Promise<Blob | null>;
63
65
  getEntry(path: string): Promise<Blob | null>;
64
66
  abstract getEntries(): Promise<string[]>;
@@ -782,16 +784,22 @@ export declare namespace Registry {
782
784
  function withDefaultOptions(options?: Partial<RegistryOptions>): RegistryOptions;
783
785
  function withPublicDefaultOptions(options?: Partial<RegistryOptions>): PublicRegistryOptions;
784
786
  }
785
- export interface DevPluginSourceR2SHelloPacket {
786
- id: "hello_request";
787
+ export interface DevPluginSourceR2SHelloRPackPacket {
788
+ id: "hello_request_rpack";
787
789
  rpackChannel: string;
788
790
  rpackVersion: string;
789
791
  implementationName: string;
790
792
  implementationChannel: string;
791
793
  implementationVersion: string;
792
794
  }
795
+ export interface DevPluginSourceR2SHelloServerPacket {
796
+ id: "hello_request_server";
797
+ serverVersion: string;
798
+ serverBrand: string;
799
+ }
793
800
  export interface DevPluginSourceR2SPackets {
794
- "hello_request": DevPluginSourceR2SHelloPacket;
801
+ "hello_request_rpack": DevPluginSourceR2SHelloRPackPacket;
802
+ "hello_request_server": DevPluginSourceR2SHelloRPackPacket;
795
803
  }
796
804
  export interface DevPluginSourceS2RHelloPacket {
797
805
  id: "hello_response";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpack-dev/core",
3
- "version": "0.1.11",
3
+ "version": "0.1.12-dev-f2ed683",
4
4
  "description": "",
5
5
  "license": "LGPL-3.0-or-later",
6
6
  "repository": {