@node-red/registry
Advanced tools
Comparing version 1.0.0-beta.2 to 1.0.0-beta.3
@@ -53,3 +53,8 @@ /** | ||
"tail": {module:"node-red-node-tail"} | ||
"tail": {module:"node-red-node-tail"}, | ||
"rpi-gpio in": {module:"node-red-node-pi-gpio"}, | ||
"rpi-gpio out": {module:"node-red-node-pi-gpio"}, | ||
"rpi-mouse": {module:"node-red-node-pi-gpio"}, | ||
"rpi-keyboard": {module:"node-red-node-pi-gpio"} | ||
} | ||
@@ -56,0 +61,0 @@ |
@@ -54,3 +54,2 @@ /** | ||
}) | ||
resolve(result); | ||
@@ -65,2 +64,3 @@ }) | ||
return getFlowsFromPath(path).then(function(result) { | ||
if (JSON.stringify(result).indexOf('{"f":') === -1) { return; } | ||
exampleFlows = exampleFlows||{}; | ||
@@ -67,0 +67,0 @@ exampleFlows[module] = result; |
@@ -375,4 +375,6 @@ /** | ||
// If this finds an svg and a png with the same name, it will only list the svg | ||
function scanIconDir(dir) { | ||
var iconList = []; | ||
var svgs = {}; | ||
try { | ||
@@ -382,4 +384,8 @@ var files = fs.readdirSync(dir); | ||
var stats = fs.statSync(path.join(dir, file)); | ||
if (stats.isFile() && iconFileExtensions.indexOf(path.extname(file)) !== -1) { | ||
var ext = path.extname(file).toLowerCase(); | ||
if (stats.isFile() && iconFileExtensions.indexOf(ext) !== -1) { | ||
iconList.push(file); | ||
if (ext === ".svg") { | ||
svgs[file.substring(0,file.length-4)] = true; | ||
} | ||
} | ||
@@ -389,2 +395,5 @@ }); | ||
} | ||
iconList = iconList.filter(f => { | ||
return /.svg$/i.test(f) || !svgs[f.substring(0,f.length-4)] | ||
}) | ||
return iconList; | ||
@@ -391,0 +400,0 @@ } |
{ | ||
"name": "@node-red/registry", | ||
"version": "1.0.0-beta.2", | ||
"version": "1.0.0-beta.3", | ||
"license": "Apache-2.0", | ||
@@ -19,7 +19,7 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@node-red/util": "1.0.0-beta.2", | ||
"semver": "6.0.0", | ||
"uglify-js": "3.5.15", | ||
"@node-red/util": "1.0.0-beta.3", | ||
"semver": "6.3.0", | ||
"uglify-js": "3.6.0", | ||
"when": "3.7.8" | ||
} | ||
} |
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
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
77954
1883
+ Added@node-red/util@1.0.0-beta.3(transitive)
+ Addedjsonata@1.6.5(transitive)
+ Addedsemver@6.3.0(transitive)
+ Addeduglify-js@3.6.0(transitive)
- Removed@node-red/util@1.0.0-beta.2(transitive)
- Removedjsonata@1.6.4(transitive)
- Removedsemver@6.0.0(transitive)
- Removeduglify-js@3.5.15(transitive)
Updated@node-red/util@1.0.0-beta.3
Updatedsemver@6.3.0
Updateduglify-js@3.6.0