@rpack-dev/core 0.1.13 → 0.1.14-dev-2ffbc31
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/rpack-core.d.ts
CHANGED
|
@@ -70,7 +70,7 @@ export declare abstract class RPPlatform {
|
|
|
70
70
|
private readonly id;
|
|
71
71
|
protected constructor(id: string);
|
|
72
72
|
abstract createRPackInstance(constructor: (options: RPackConstructorOptions) => RPack): Promise<RPack>;
|
|
73
|
-
abstract createRPackThread(threadId: string,
|
|
73
|
+
abstract createRPackThread(threadId: string, pluginKey: string): Promise<RPackThread>;
|
|
74
74
|
}
|
|
75
75
|
export declare abstract class RPackThread {
|
|
76
76
|
private readonly threadId;
|
|
@@ -351,14 +351,14 @@ export declare class NetworkManager {
|
|
|
351
351
|
private readonly wellKnownReverseMap;
|
|
352
352
|
constructor(rpack: RPack, threadId: string, hostMessenger?: Messenger<H2WPackets, W2HPackets>);
|
|
353
353
|
private mapWellKnown;
|
|
354
|
-
__initPlugin(scriptUrl: string): Promise<void>;
|
|
354
|
+
__initPlugin(pluginKey: string, scriptUrl: string): Promise<void>;
|
|
355
355
|
getRPack(): RPack;
|
|
356
356
|
getHostMessenger(): Messenger<H2WPackets, W2HPackets> | undefined;
|
|
357
357
|
getCurrentThreadId(): string;
|
|
358
358
|
getPlugin<T extends RPPlugin>(key: string): Promise<RegistryDataFiltered<T> | undefined>;
|
|
359
359
|
getPluginRegistry(): Registry<RPPlugin, string>;
|
|
360
360
|
__initRemotes(threadId: string, messenger: Messenger<H2WPackets | W2HPackets, H2WPackets | W2HPackets>): void;
|
|
361
|
-
__createThread(scriptUrl: string): Promise<string>;
|
|
361
|
+
__createThread(pluginKey: string, scriptUrl: string): Promise<string>;
|
|
362
362
|
private ensureJSONInner;
|
|
363
363
|
private ensureJSON;
|
|
364
364
|
private getFunctionNames;
|
|
@@ -385,6 +385,7 @@ export declare class ProxyManager {
|
|
|
385
385
|
* Represents the main entrypoint of a plugin.
|
|
386
386
|
*/
|
|
387
387
|
export declare class RPPlugin {
|
|
388
|
+
private static __VERY_VERY_SECRET_FIELD_THAT_IDENTIFIES_THAT_THIS_WANTS_TO_BE_A_RPPLUGIN_INSTANCE;
|
|
388
389
|
/**
|
|
389
390
|
* The owning RPack instance.
|
|
390
391
|
*/
|
|
@@ -825,6 +826,7 @@ export interface DevPluginSourceServerManifest {
|
|
|
825
826
|
export interface H2WHelloRequestPacket extends NoncePacket {
|
|
826
827
|
id: "thread:hello_request";
|
|
827
828
|
threadId: string;
|
|
829
|
+
pluginKey: string;
|
|
828
830
|
scriptUrl: string;
|
|
829
831
|
}
|
|
830
832
|
export interface H2WShutdownRequestPacket extends NoncePacket {
|