Comparing version 0.0.2 to 0.0.3
#!/usr/bin/env node | ||
const semver = require('semver'); | ||
const requiredVersion = require('../package.json').engines.node; | ||
const chalk = require('chalk'); | ||
const path = require('path'); | ||
const Utils = require('../util/utils.js'); | ||
const Nightframe = require('../lib/server.js'); | ||
const CliSetup = require('../lib/cli-setup.js'); | ||
// some platforms create a copy of the binary file instead of a symlink | ||
const frameworkFolder = path.join(__dirname, '../nightframe').replace('node_modules/nightframe/nightframe', 'node_modules/nightframe'); | ||
const requiredVersion = require(path.join(frameworkFolder, 'package.json')).engines.node; | ||
const chalk = require('chalk'); | ||
const Utils = require(path.join(frameworkFolder, 'util/utils.js')); | ||
const Nightframe = require(path.join(frameworkFolder, 'lib/server.js')); | ||
const CliSetup = require(path.join(frameworkFolder, 'lib/cli-setup.js')); | ||
function requireApp() { | ||
const Application = require('../lib/app.js'); | ||
const Application = require(path.join(frameworkFolder, 'lib/app.js')); | ||
@@ -56,3 +60,3 @@ let userDefined = path.join(process.cwd(), 'app.js'); | ||
} else if (argv.version) { | ||
let packageConfig = require(__dirname + '/../package.json'); | ||
let packageConfig = require(path.join(frameworkFolder, 'package.json')); | ||
console.log(' Nightframe:'); | ||
@@ -59,0 +63,0 @@ console.log(' version: ' + packageConfig.version); |
{ | ||
"name": "nightframe", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "A small Node.js web application framework built on top of Express", | ||
@@ -5,0 +5,0 @@ "author": { |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
46505
1430
3
24