Socket
Socket
Sign inDemoInstall

@soundworks/core

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@soundworks/core - npm Package Compare versions

Comparing version 3.3.0 to 3.3.1

2

package.json
{
"name": "@soundworks/core",
"version": "3.3.0",
"version": "3.3.1",
"description": "full-stack javascript framework for distributed audio visual experiences on the web",

@@ -5,0 +5,0 @@ "authors": [

@@ -406,8 +406,19 @@ "use strict";

}).then(() => {
if (this.templateEngine === null) {
throw new Error('Undefined "server.templateEngine": please provide a valid template engine');
let nodeOnly = true; // do not throw if no browser clients are defined, very usefull for
// cleaning tests in particular
for (let clientType in this.config.app.clients) {
if (this.config.app.clients[clientType].target === 'browser') {
nodeOnly = false;
}
}
if (this.templateDirectory === null) {
throw new Error('Undefined "server.templateDirectory": please provide a valid template directory');
if (!nodeOnly) {
if (this.templateEngine === null) {
throw new Error('Undefined "server.templateEngine": please provide a valid template engine');
}
if (this.templateDirectory === null) {
throw new Error('Undefined "server.templateDirectory": please provide a valid template directory');
}
} // ------------------------------------------------------------

@@ -431,2 +442,7 @@ // INIT ROUTING

for (let clientType in this._clientTypeActivitiesMap) {
// do nothing if client type is not registered in config
if (!(clientType in this.config.app.clients)) {
continue;
}
if (clientType !== defaultClientType) {

@@ -446,2 +462,7 @@ const clientTarget = this.config.app.clients[clientType].target;

for (let clientType in this._clientTypeActivitiesMap) {
// do nothing if client type is not registered in config
if (!(clientType in this.config.app.clients)) {
continue;
}
if (clientType === defaultClientType) {

@@ -448,0 +469,0 @@ const clientTarget = this.config.app.clients[clientType].target;

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