Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@wixc3/engine-core

Package Overview
Dependencies
Maintainers
142
Versions
333
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wixc3/engine-core - npm Package Compare versions

Comparing version 3.1.5 to 3.1.6

6

cjs/com/communication.d.ts
import { Message } from './message-types';
import { AsyncApi, EnvironmentInstanceToken, SerializableArguments, Target, WindowHost } from './types';
import { AsyncEnvironment, AsyncSingleEndpointEnvironment } from '../entities/async-env';
import { EnvironmentLiveServer, SingleEndpointContextualEnvironment } from '../entities/env';
import { NodeEnvironment, SingleEndpointContextualEnvironment } from '../entities/env';
import { IDTag } from '../types';

@@ -42,5 +42,5 @@ /**

/**
* Connects to a remote EnvironmentLiveServer
* Connects to a remote NodeEnvironment
*/
connect(endPoint: EnvironmentLiveServer<string>): Promise<{
connect(endPoint: NodeEnvironment<string>): Promise<{
id: string;

@@ -47,0 +47,0 @@ }>;

@@ -85,3 +85,3 @@ "use strict";

/**
* Connects to a remote EnvironmentLiveServer
* Connects to a remote NodeEnvironment
*/

@@ -88,0 +88,0 @@ async connect(endPoint) {

@@ -6,3 +6,3 @@ import { Communication } from './com/communication';

import { Config } from './entities/config';
import { AllEnvironments, EnvironmentLiveServer, SingleEndpointContextualEnvironment } from './entities/env';
import { AllEnvironments, NodeEnvironment, SingleEndpointContextualEnvironment } from './entities/env';
import { Feature } from './entities/feature';

@@ -30,5 +30,5 @@ import { Service } from './entities/service';

}>, AllEnvironments, AllEnvironments, false>;
connect: Service<(endPoint: EnvironmentLiveServer<string>) => Promise<{
connect: Service<(endPoint: NodeEnvironment<string>) => Promise<{
id: string;
}>, (endPoint: EnvironmentLiveServer<string>) => Promise<{
}>, (endPoint: NodeEnvironment<string>) => Promise<{
id: string;

@@ -35,0 +35,0 @@ }>, AllEnvironments, AllEnvironments, false>;

@@ -15,3 +15,3 @@ import { EnvironmentTypes } from '../com/types';

}
export declare class EnvironmentLiveServer<ID extends string> extends Environment<ID, 'single'> {
export declare class NodeEnvironment<ID extends string> extends Environment<ID, 'single'> {
constructor(env: ID);

@@ -18,0 +18,0 @@ getLocalTopology(port: number): {

@@ -12,3 +12,3 @@ "use strict";

exports.Environment = Environment;
class EnvironmentLiveServer extends Environment {
class NodeEnvironment extends Environment {
constructor(env) {

@@ -23,3 +23,3 @@ super(env, 'single', 'node');

}
exports.EnvironmentLiveServer = EnvironmentLiveServer;
exports.NodeEnvironment = NodeEnvironment;
class EnvironmentContext {

@@ -26,0 +26,0 @@ constructor(env, activeEnvironmentName, runtimeEnvType) {

@@ -24,5 +24,5 @@ import { RuntimeFeature } from './entities/feature';

}>, import("./entities").AllEnvironments, import("./entities").AllEnvironments, false>;
connect: import("./entities").Service<(endPoint: import("./entities").EnvironmentLiveServer<string>) => Promise<{
connect: import("./entities").Service<(endPoint: import("./entities").NodeEnvironment<string>) => Promise<{
id: string;
}>, (endPoint: import("./entities").EnvironmentLiveServer<string>) => Promise<{
}>, (endPoint: import("./entities").NodeEnvironment<string>) => Promise<{
id: string;

@@ -45,5 +45,5 @@ }>, import("./entities").AllEnvironments, import("./entities").AllEnvironments, false>;

}>, import("./entities").AllEnvironments, import("./entities").AllEnvironments, false>;
connect: import("./entities").Service<(endPoint: import("./entities").EnvironmentLiveServer<string>) => Promise<{
connect: import("./entities").Service<(endPoint: import("./entities").NodeEnvironment<string>) => Promise<{
id: string;
}>, (endPoint: import("./entities").EnvironmentLiveServer<string>) => Promise<{
}>, (endPoint: import("./entities").NodeEnvironment<string>) => Promise<{
id: string;

@@ -50,0 +50,0 @@ }>, import("./entities").AllEnvironments, import("./entities").AllEnvironments, false>;

{
"name": "@wixc3/engine-core",
"version": "3.1.5",
"version": "3.1.6",
"main": "cjs/index.js",

@@ -5,0 +5,0 @@ "types": "cjs/index.d.ts",

@@ -30,3 +30,3 @@ import {

import { AsyncEnvironment, AsyncSingleEndpointEnvironment } from '../entities/async-env';
import { EnvironmentLiveServer, SingleEndpointContextualEnvironment } from '../entities/env';
import { NodeEnvironment, SingleEndpointContextualEnvironment } from '../entities/env';
import { IDTag } from '../types';

@@ -100,3 +100,3 @@ import { BaseHost } from './base-host';

return activeEnvironment!.envType === 'node'
? this.connect(activeEnvironment as EnvironmentLiveServer<string>)
? this.connect(activeEnvironment as NodeEnvironment<string>)
: this.spawn(activeEnvironment as AsyncEnvironment);

@@ -126,5 +126,5 @@ }

/**
* Connects to a remote EnvironmentLiveServer
* Connects to a remote NodeEnvironment
*/
public async connect(endPoint: EnvironmentLiveServer<string>) {
public async connect(endPoint: NodeEnvironment<string>) {
const { env, envType } = endPoint;

@@ -131,0 +131,0 @@

@@ -7,3 +7,3 @@ import { BaseHost } from './com/base-host';

import { Config } from './entities/config';
import { AllEnvironments, EnvironmentLiveServer, SingleEndpointContextualEnvironment, Universal } from './entities/env';
import { AllEnvironments, NodeEnvironment, SingleEndpointContextualEnvironment, Universal } from './entities/env';
import { Feature } from './entities/feature';

@@ -53,3 +53,3 @@ import { Service } from './entities/service';

>().defineEntity(AllEnvironments),
connect: Service.withType<(endPoint: EnvironmentLiveServer<string>) => Promise<{ id: string }>>().defineEntity(
connect: Service.withType<(endPoint: NodeEnvironment<string>) => Promise<{ id: string }>>().defineEntity(
AllEnvironments

@@ -56,0 +56,0 @@ ),

@@ -21,3 +21,3 @@ import { EnvironmentTypes } from '../com/types';

export class EnvironmentLiveServer<ID extends string> extends Environment<ID, 'single'> {
export class NodeEnvironment<ID extends string> extends Environment<ID, 'single'> {
constructor(env: ID) {

@@ -24,0 +24,0 @@ super(env, 'single', 'node');

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc