Comparing version 3.0.1 to 3.1.0
@@ -8,2 +8,3 @@ /** | ||
var os = require('os') | ||
var path = require('path') | ||
@@ -124,3 +125,4 @@ /** | ||
function customLogic (os, name, file, cb) { | ||
try { require('./logic/' + name + '.js')(os, file, cb) } catch (e) { cb(null, os) } | ||
var logic = path.join(__dirname, 'logic/' + name + '.js') | ||
try { require(logic)(os, file, cb) } catch (e) { cb(null, os) } | ||
} | ||
@@ -127,0 +129,0 @@ |
@@ -9,2 +9,3 @@ { | ||
"/etc/debian_release" : ["Debian"], | ||
"/etc/os-release": ["Raspbian"], | ||
"/etc/annvix-release" : ["Annvix"], | ||
@@ -11,0 +12,0 @@ "/etc/arch-release" : ["Arch Linux"], |
{ | ||
"name": "getos", | ||
"version": "3.0.1", | ||
"version": "3.1.0", | ||
"description": "Get the OS/Distribution name of the environment you are working on", | ||
@@ -31,6 +31,6 @@ "main": "index.js", | ||
"standard": "^10.0.2", | ||
"tape": "4.6.3" | ||
"tape": "4.8.0" | ||
}, | ||
"dependencies": { | ||
"async": "2.3.0" | ||
"async": "2.4.0" | ||
}, | ||
@@ -37,0 +37,0 @@ "contributors": [ |
# getos | ||
[![Greenkeeper badge](https://badges.greenkeeper.io/retrohacker/getos.svg)](https://greenkeeper.io/) | ||
![getos](./imgs/logo.png) | ||
@@ -4,0 +6,0 @@ |
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
80
2
1
27153
19
281
+ Addedasync@2.4.0(transitive)
- Removedasync@2.3.0(transitive)
Updatedasync@2.4.0