New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@dynacom/core

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dynacom/core - npm Package Compare versions

Comparing version

to
1.1.13

2

classes/domain.js

@@ -22,3 +22,3 @@ const Future = require( '@dynacom/futures' );

this.pattern = new urlPattern( pattern );
this.secureContext = {}
this.secureContext = null;
this.routes = []

@@ -25,0 +25,0 @@ this.handler = handler;

@@ -39,2 +39,3 @@ const fs = require( 'fs' );

let domainIndex = 0;
let selectedDomain = null;
while ( domainIndex < this.domains.length ) {

@@ -44,2 +45,3 @@ if ( null == this.domains[ domainIndex ].port || this.domains[ domainIndex ].port.includes( port ) ) {

if ( domainPattern = this.domains[ domainIndex ].pattern.match( domain ) ) {
selectedDomain = this.domains[ domainIndex ];
break;

@@ -50,3 +52,9 @@ }

}
callback( null, this.domains[ domainIndex ].secureContext );
console.log( 'selectedDomain.secureContext' )
console.log( selectedDomain.secureContext )
if ( selectedDomain && selectedDomain.secureContext ) {
callback( null, selectedDomain.secureContext );
} else {
callback( null, null );
}
}

@@ -53,0 +61,0 @@ , } );

@@ -10,3 +10,3 @@ {

, "name": "@dynacom/core"
, "version": "1.1.12"
, "version": "1.1.13"
, "repository": {

@@ -13,0 +13,0 @@ "type": "git"