akashacms-cli
Advanced tools
Comparing version 0.4.0 to 0.4.1
11
cli.js
@@ -29,5 +29,14 @@ #!/usr/bin/env node | ||
var program = require('commander'); | ||
var akasha = require('akashacms'); | ||
var request = require('request'); | ||
var resolve = require('resolve').sync; | ||
var fnakasha; | ||
try { | ||
fnakasha = resolve('akashacms', { basedir: process.cwd() }); | ||
} catch (ex) { | ||
console.error("Could not find AkashaCMS because: "+ ex); | ||
} | ||
var akasha = require(fnakasha); | ||
'use strict'; | ||
@@ -34,0 +43,0 @@ |
@@ -32,3 +32,3 @@ { | ||
}, | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"engines": { | ||
@@ -35,0 +35,0 @@ "node": ">=0.10.1" |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
24514
324
20