@dynacom/core
Advanced tools
Comparing version
20
index.js
@@ -1,16 +0,16 @@ | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
const fs = require( 'fs' ); | ||
const path = require( 'path' ); | ||
exports.Request = require(path.resolve(__dirname, 'classes', 'request.js')); | ||
exports.Response = require(path.resolve(__dirname, 'classes', 'response.js')); | ||
exports.Route = require(path.resolve(__dirname, 'classes', 'route.js')); | ||
exports.Domain = require(path.resolve(__dirname, 'classes', 'domain.js')); | ||
exports.Server = require(path.resolve(__dirname, 'classes', 'server.js')); | ||
exports.Request = require( path.resolve( __dirname, 'classes', 'request.js' ) ); | ||
exports.Response = require( path.resolve( __dirname, 'classes', 'response.js' ) ); | ||
exports.Route = require( path.resolve( __dirname, 'classes', 'route.js' ) ); | ||
exports.Domain = require( path.resolve( __dirname, 'classes', 'domain.js' ) ); | ||
exports.Server = require( path.resolve( __dirname, 'classes', 'server.js' ) ); | ||
exports.Object = { | ||
describe: require(path.resolve(__dirname, 'helpers', 'describeObject.js')) | ||
describe: require( path.resolve( __dirname, 'helpers', 'describeObject.js' ) ) | ||
} | ||
exports.SecureRedirect = (request, response) => { | ||
response.redirect('https://' + request._request.headers.host + request._request.url, 301); | ||
exports.SecureRedirect = ( request, response ) => { | ||
response.redirect( 'https://' + request.address + request.url.path, 301 ); | ||
} |
@@ -10,3 +10,3 @@ { | ||
, "name": "@dynacom/core" | ||
, "version": "1.1.6" | ||
, "version": "1.1.7" | ||
, "repository": { | ||
@@ -13,0 +13,0 @@ "type": "git" |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
19602
0.07%