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

@nguniversal/socket-engine

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nguniversal/socket-engine - npm Package Compare versions

Comparing version 6.1.0 to 7.0.0-rc.0

5

bundles/socket-engine.umd.js

@@ -247,8 +247,9 @@ (function (global, factory) {

*/
function startSocketEngine(moduleOrFactory, host, port) {
function startSocketEngine(moduleOrFactory, providers, host, port) {
var _this = this;
if (providers === void 0) { providers = []; }
if (host === void 0) { host = 'localhost'; }
if (port === void 0) { port = 9090; }
return new Promise(function (resolve, _reject) {
var engine = new CommonEngine(moduleOrFactory);
var engine = new CommonEngine(moduleOrFactory, providers);
var server = net.createServer(function (socket) {

@@ -255,0 +256,0 @@ socket.on('data', function (buff) { return __awaiter(_this, void 0, void 0, function () {

2

bundles/socket-engine.umd.min.js

@@ -31,2 +31,2 @@ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("fs"),require("@angular/compiler"),require("@angular/core"),require("@angular/platform-server"),require("net")):"function"==typeof define&&define.amd?define("@nguniversal/socket-engine",["exports","fs","@angular/compiler","@angular/core","@angular/platform-server","net"],t):t((e.nguniversal=e.nguniversal||{},e.nguniversal.socketEngine={}),e.fs,e.ng.compiler,e.ng.core,e.ng.platformServer,e.net)}(this,function(e,t,r,n,o,i){"use strict";

*/
function l(e,t,r){var n=this;return void 0===t&&(t="localhost"),void 0===r&&(r=9090),new Promise(function(o,a){var u=new c(e),l=i.createServer(function(e){e.on("data",function(t){return r=n,void 0,i=function(){var r,n,o,i;return function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function c(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=n[2&i[0]?"return":i[0]?"throw":"next"])&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[0,o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}(this,function(a){switch(a.label){case 0:r=t.toString(),n=JSON.parse(r),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,u.render(n)];case 2:return o=a.sent(),e.write(JSON.stringify({html:o,id:n.id})),[3,4];case 3:throw i=a.sent(),e.write(JSON.stringify({html:null,id:n.id,error:i})),i;case 4:return[2]}})},new((o=void 0)||(o=Promise))(function(e,t){function n(e){try{u(i.next(e))}catch(e){t(e)}}function a(e){try{u(i.throw(e))}catch(e){t(e)}}function u(t){t.done?e(t.value):new o(function(e){e(t.value)}).then(n,a)}u((i=i.apply(r,[])).next())});var r,o,i})});l.listen(r,t),o({close:function(){return l.close()}})})},Object.defineProperty(e,"__esModule",{value:!0})});
function l(e,t,r,n){var o=this;return void 0===t&&(t=[]),void 0===r&&(r="localhost"),void 0===n&&(n=9090),new Promise(function(a,u){var l=new c(e,t),s=i.createServer(function(e){e.on("data",function(t){return r=o,void 0,i=function(){var r,n,o,i;return function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function c(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=n[2&i[0]?"return":i[0]?"throw":"next"])&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[0,o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}(this,function(a){switch(a.label){case 0:r=t.toString(),n=JSON.parse(r),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,l.render(n)];case 2:return o=a.sent(),e.write(JSON.stringify({html:o,id:n.id})),[3,4];case 3:throw i=a.sent(),e.write(JSON.stringify({html:null,id:n.id,error:i})),i;case 4:return[2]}})},new((n=void 0)||(n=Promise))(function(e,t){function o(e){try{u(i.next(e))}catch(e){t(e)}}function a(e){try{u(i.throw(e))}catch(e){t(e)}}function u(t){t.done?e(t.value):new n(function(e){e(t.value)}).then(o,a)}u((i=i.apply(r,[])).next())});var r,n,i})});s.listen(n,r),a({close:function(){return s.close()}})})},Object.defineProperty(e,"__esModule",{value:!0})});

@@ -45,2 +45,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

* @param {?} moduleOrFactory
* @param {?=} providers
* @param {?=} host

@@ -50,5 +51,5 @@ * @param {?=} port

*/
export function startSocketEngine(moduleOrFactory, host = 'localhost', port = 9090) {
export function startSocketEngine(moduleOrFactory, providers = [], host = 'localhost', port = 9090) {
return new Promise((resolve, _reject) => {
const /** @type {?} */ engine = new CommonEngine(moduleOrFactory);
const /** @type {?} */ engine = new CommonEngine(moduleOrFactory, providers);
const /** @type {?} */ server = net.createServer(socket => {

@@ -75,2 +76,2 @@ socket.on('data', (buff) => __awaiter(this, void 0, void 0, function* () {

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL21vZHVsZXMvc29ja2V0LWVuZ2luZS9zcmMvbWFpbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFPQSxPQUFPLEVBQUUsYUFBYSxJQUFJLFlBQVksRUFDSCxNQUFNLDRCQUE0QixDQUFDO0FBRXRFLE9BQU8sS0FBSyxHQUFHLE1BQU0sS0FBSyxDQUFDOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQWdCM0IsTUFBTSw0QkFDSixlQUErQyxFQUMvQyxJQUFJLEdBQUcsV0FBVyxFQUNsQixJQUFJLEdBQUcsSUFBSTtJQUVYLE1BQU0sQ0FBQyxJQUFJLE9BQU8sQ0FBQyxDQUFDLE9BQU8sRUFBRSxPQUFPLEVBQUUsRUFBRTtRQUN0Qyx1QkFBTSxNQUFNLEdBQUcsSUFBSSxZQUFZLENBQUMsZUFBZSxDQUFDLENBQUM7UUFFakQsdUJBQU0sTUFBTSxHQUFHLEdBQUcsQ0FBQyxZQUFZLENBQUMsTUFBTSxDQUFDLEVBQUU7WUFDdkMsTUFBTSxDQUFDLEVBQUUsQ0FBQyxNQUFNLEVBQUUsQ0FBTSxJQUFJLEVBQUMsRUFBRTtnQkFDN0IsdUJBQU0sT0FBTyxHQUFHLElBQUksQ0FBQyxRQUFRLEVBQUUsQ0FBQztnQkFDaE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XG5cbiAgICBjb25zdCBzZXJ2ZXIgPSBuZXQuY3JlYXRlU2VydmVyKHNvY2tldCA9PiB7XG4gICAgICBzb2NrZXQub24oJ2RhdGEnLCBhc3luYyBidWZmID0+IHtcbiAgICAgICAgY29uc3QgbWVzc2FnZSA9IGJ1ZmYudG9TdHJpbmcoKTtcbiAgICAgICAgY29uc3QgcmVuZGVyT3B0aW9ucyA9IEpTT04ucGFyc2UobWVzc2FnZSkgYXMgU29ja2V0RW5naW5lUmVuZGVyT3B0aW9ucztcbiAgICAgICAgdHJ5IHtcbiAgICAgICAgICBjb25zdCBodG1sID0gYXdhaXQgZW5naW5lLnJlbmRlcihyZW5kZXJPcHRpb25zKTtcbiAgICAgICAgICBzb2NrZXQud3JpdGUoSlNPTi5zdHJpbmdpZnkoe2h0bWwsIGlkOiByZW5kZXJPcHRpb25zLmlkfSBhcyBTb2NrZXRFbmdpbmVSZXNwb25zZSkpO1xuICAgICAgICB9IGNhdGNoIChlcnJvcikge1xuICAgICAgICAgIC8vIHNlbmQgdGhlIGVycm9yIGRvd24gdG8gdGhlIGNsaWVudCB0aGVuIHJldGhyb3cgaXRcbiAgICAgICAgICBzb2NrZXQud3JpdGUoSlNPTi5zdHJpbmdpZnkoe2h0bWw6IG51bGwsXG4gICAgICAgICAgICBpZDogcmVuZGVyT3B0aW9ucy5pZCwgZXJyb3J9IGFzIFNvY2tldEVuZ2luZVJlc3BvbnNlKSk7XG4gICAgICAgICAgdGhyb3cgZXJyb3I7XG4gICAgICAgIH1cbiAgICAgIH0pO1xuICAgIH0pO1xuXG4gICAgc2VydmVyLmxpc3Rlbihwb3J0LCBob3N0KTtcbiAgICByZXNvbHZlKHtjbG9zZTogKCkgPT4gc2VydmVyLmNsb3NlKCl9KTtcbiAgfSk7XG59XG5cbiJdfQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi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mluZygpO1xuICAgICAgICBjb25zdCByZW5kZXJPcHRpb25zID0gSlNPTi5wYXJzZShtZXNzYWdlKSBhcyBTb2NrZXRFbmdpbmVSZW5kZXJPcHRpb25zO1xuICAgICAgICB0cnkge1xuICAgICAgICAgIGNvbnN0IGh0bWwgPSBhd2FpdCBlbmdpbmUucmVuZGVyKHJlbmRlck9wdGlvbnMpO1xuICAgICAgICAgIHNvY2tldC53cml0ZShKU09OLnN0cmluZ2lmeSh7aHRtbCwgaWQ6IHJlbmRlck9wdGlvbnMuaWR9IGFzIFNvY2tldEVuZ2luZVJlc3BvbnNlKSk7XG4gICAgICAgIH0gY2F0Y2ggKGVycm9yKSB7XG4gICAgICAgICAgLy8gc2VuZCB0aGUgZXJyb3IgZG93biB0byB0aGUgY2xpZW50IHRoZW4gcmV0aHJvdyBpdFxuICAgICAgICAgIHNvY2tldC53cml0ZShKU09OLnN0cmluZ2lmeSh7aHRtbDogbnVsbCxcbiAgICAgICAgICAgIGlkOiByZW5kZXJPcHRpb25zLmlkLCBlcnJvcn0gYXMgU29ja2V0RW5naW5lUmVzcG9uc2UpKTtcbiAgICAgICAgICB0aHJvdyBlcnJvcjtcbiAgICAgICAgfVxuICAgICAgfSk7XG4gICAgfSk7XG5cbiAgICBzZXJ2ZXIubGlzdGVuKHBvcnQsIGhvc3QpO1xuICAgIHJlc29sdmUoe2Nsb3NlOiAoKSA9PiBzZXJ2ZXIuY2xvc2UoKX0pO1xuICB9KTtcbn1cblxuIl19

@@ -45,8 +45,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

import * as net from 'net';
export function startSocketEngine(moduleOrFactory, host, port) {
export function startSocketEngine(moduleOrFactory, providers, host, port) {
var _this = this;
if (providers === void 0) { providers = []; }
if (host === void 0) { host = 'localhost'; }
if (port === void 0) { port = 9090; }
return new Promise(function (resolve, _reject) {
var engine = new CommonEngine(moduleOrFactory);
var engine = new CommonEngine(moduleOrFactory, providers);
var server = net.createServer(function (socket) {

@@ -84,2 +85,2 @@ socket.on('data', function (buff) { return __awaiter(_this, void 0, void 0, function () {

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL21vZHVsZXMvc29ja2V0LWVuZ2luZS9zcmMvbWFpbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBOzs7Ozs7R0FNRztBQUNILE9BQU8sRUFBRSxhQUFhLElBQUksWUFBWSxFQUNILE1BQU0sNEJBQTRCLENBQUM7QUFFdEUsT0FBTyxLQUFLLEdBQUcsTUFBTSxLQUFLLENBQUM7QUFnQjNCLE1BQU0sNEJBQ0osZUFBK0MsRUFDL0MsSUFBa0IsRUFDbEIsSUFBVztJQUhiLGlCQTJCQztJQXpCQyxxQkFBQSxFQUFBLGtCQUFrQjtJQUNsQixxQkFBQSxFQUFBLFdBQVc7SUFFWCxNQUFNLENBQUMsSUFBSSxPQUFPLENBQUMsVUFBQyxPQUFPLEVBQUUsT0FBTztRQUNsQyxJQUFNLE1BQU0sR0FBRyxJQUFJLFlBQVksQ0FBQyxlQUFlLENBQUMsQ0FBQztRQUVqRCxJQUFNLE1BQU0sR0FBRyxHQUFHLENBQUMsWUFBWSxDQUFDLFVBQUEsTUFBTTtZQUNwQyxNQUFNLENBQUMsRUFBRSxDQUFDLE1BQU0sRUFBRSxVQUFNLElBQUk7Ozs7OzRCQUNwQixPQUFPLEdBQUcsSUFBSSxDQUFDLFFBQVEsRUFBRSxDQUFDOzRCQUMxQixhQUFhLEdBQUcsSUFBSSxDQUFDLEtBQUssQ0FBQyxPQUFPLENBQThCLENBQUM7Ozs7NEJBRXhELHFCQUFNLE1BQU0sQ0FBQyxNQUFNLENBQUMsYUFBYSxD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bWwgPSBhd2FpdCBlbmdpbmUucmVuZGVyKHJlbmRlck9wdGlvbnMpO1xuICAgICAgICAgIHNvY2tldC53cml0ZShKU09OLnN0cmluZ2lmeSh7aHRtbCwgaWQ6IHJlbmRlck9wdGlvbnMuaWR9IGFzIFNvY2tldEVuZ2luZVJlc3BvbnNlKSk7XG4gICAgICAgIH0gY2F0Y2ggKGVycm9yKSB7XG4gICAgICAgICAgLy8gc2VuZCB0aGUgZXJyb3IgZG93biB0byB0aGUgY2xpZW50IHRoZW4gcmV0aHJvdyBpdFxuICAgICAgICAgIHNvY2tldC53cml0ZShKU09OLnN0cmluZ2lmeSh7aHRtbDogbnVsbCxcbiAgICAgICAgICAgIGlkOiByZW5kZXJPcHRpb25zLmlkLCBlcnJvcn0gYXMgU29ja2V0RW5naW5lUmVzcG9uc2UpKTtcbiAgICAgICAgICB0aHJvdyBlcnJvcjtcbiAgICAgICAgfVxuICAgICAgfSk7XG4gICAgfSk7XG5cbiAgICBzZXJ2ZXIubGlzdGVuKHBvcnQsIGhvc3QpO1xuICAgIHJlc29sdmUoe2Nsb3NlOiAoKSA9PiBzZXJ2ZXIuY2xvc2UoKX0pO1xuICB9KTtcbn1cblxuIl19

@@ -30,2 +30,3 @@ import { ɵCommonEngine } from '@nguniversal/common/engine';

* @param {?} moduleOrFactory
* @param {?=} providers
* @param {?=} host

@@ -35,5 +36,5 @@ * @param {?=} port

*/
function startSocketEngine(moduleOrFactory, host = 'localhost', port = 9090) {
function startSocketEngine(moduleOrFactory, providers = [], host = 'localhost', port = 9090) {
return new Promise((resolve, _reject) => {
const /** @type {?} */ engine$$1 = new ɵCommonEngine(moduleOrFactory);
const /** @type {?} */ engine$$1 = new ɵCommonEngine(moduleOrFactory, providers);
const /** @type {?} */ server = createServer(socket => {

@@ -40,0 +41,0 @@ socket.on('data', (buff) => __awaiter(this, void 0, void 0, function* () {

@@ -247,8 +247,9 @@ import { readFile, readFileSync } from 'fs';

*/
function startSocketEngine(moduleOrFactory, host, port) {
function startSocketEngine(moduleOrFactory, providers, host, port) {
var _this = this;
if (providers === void 0) { providers = []; }
if (host === void 0) { host = 'localhost'; }
if (port === void 0) { port = 9090; }
return new Promise(function (resolve, _reject) {
var engine = new CommonEngine(moduleOrFactory);
var engine = new CommonEngine(moduleOrFactory, providers);
var server = createServer(function (socket) {

@@ -255,0 +256,0 @@ socket.on('data', function (buff) { return __awaiter(_this, void 0, void 0, function () {

{
"name": "@nguniversal/socket-engine",
"version": "v6.1.0",
"version": "v7.0.0-rc.0",
"description": "Socket Engine for running Server Angular Apps",

@@ -12,3 +12,3 @@ "license": "MIT",

"peerDependencies": {
"@nguniversal/common": "v6.1.0",
"@nguniversal/common": "v7.0.0-rc.0",
"@angular/core": "^6.0.0"

@@ -15,0 +15,0 @@ },

@@ -1,1 +0,1 @@

{"__symbolic":"module","version":4,"metadata":{"startSocketEngine":{"__symbolic":"function","parameters":["moduleOrFactory","host","port"],"defaults":[null,"localhost",9090],"value":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"Promise"},"arguments":[{"__symbolic":"error","message":"Lambda not supported","line":31,"character":21,"module":"./src/main"}]}},"SocketEngineResponse":{"__symbolic":"interface"},"SocketEngineRenderOptions":{"__symbolic":"interface"}},"origins":{"startSocketEngine":"./src/main","SocketEngineResponse":"./src/main","SocketEngineRenderOptions":"./src/main"},"importAs":"@nguniversal/socket-engine"}
{"__symbolic":"module","version":4,"metadata":{"startSocketEngine":{"__symbolic":"function","parameters":["moduleOrFactory","providers","host","port"],"defaults":[null,[],"localhost",9090],"value":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"Promise"},"arguments":[{"__symbolic":"error","message":"Lambda not supported","line":32,"character":21,"module":"./src/main"}]}},"SocketEngineResponse":{"__symbolic":"interface"},"SocketEngineRenderOptions":{"__symbolic":"interface"}},"origins":{"startSocketEngine":"./src/main","SocketEngineResponse":"./src/main","SocketEngineRenderOptions":"./src/main"},"importAs":"@nguniversal/socket-engine"}

@@ -9,3 +9,3 @@ /**

import { ɵRenderOptions as RenderOptions } from '@nguniversal/common/engine';
import { NgModuleFactory, Type } from '@angular/core';
import { NgModuleFactory, Type, StaticProvider } from '@angular/core';
export interface SocketEngineServer {

@@ -22,2 +22,2 @@ close: () => void;

}
export declare function startSocketEngine(moduleOrFactory: Type<{}> | NgModuleFactory<{}>, host?: string, port?: number): Promise<SocketEngineServer>;
export declare function startSocketEngine(moduleOrFactory: Type<{}> | NgModuleFactory<{}>, providers?: StaticProvider[], host?: string, port?: number): Promise<SocketEngineServer>;

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