Comparing version 0.1.2 to 0.1.3
@@ -24,2 +24,3 @@ const DSFeeds = require('./js_module'); | ||
}; | ||
console.log('x: ', feeds.tryGet.call(id)[0]); | ||
return result; | ||
@@ -26,0 +27,0 @@ }; |
{ | ||
"name": "dsfeeds", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Command line app to manage feeds easily.", | ||
@@ -10,4 +10,3 @@ "main": "./dsfeeds", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"build": "gulp build" | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
@@ -45,5 +44,4 @@ "repository": { | ||
"eslint-config-airbnb-base": "^11.1.0", | ||
"eslint-plugin-import": "^2.2.0", | ||
"gulp": "^3.9.1" | ||
"eslint-plugin-import": "^2.2.0" | ||
} | ||
} |
15
utils.js
@@ -21,5 +21,14 @@ function toBytes(number, bytes) { | ||
} else { | ||
// Private network | ||
const network = result > 3 ? 4 : result; | ||
const env = [null, 'live', 'morden', 'ropsten', 'develop'][network]; | ||
switch(result) { | ||
case '1': | ||
env = 'live'; break; | ||
case '2': | ||
env = 'morden'; break; | ||
case '3': | ||
env = 'ropsten'; break; | ||
case '42': | ||
env = 'kovan'; break; | ||
default: | ||
env = 'develop'; break; | ||
} | ||
resolve(env); | ||
@@ -26,0 +35,0 @@ } |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
105427
3
2618
11