workshopper-exercise
Advanced tools
+3
-3
@@ -5,3 +5,3 @@ const chalk = require('chalk') | ||
| , through2 = require('through2') | ||
| , wcsize = require('wcsize') | ||
| , wcstring = require('wcstring') | ||
@@ -25,3 +25,3 @@ | ||
| function center (s, sz) { | ||
| var sps = Math.floor((sz - wcsize(s)) / 2) | ||
| var sps = Math.floor((sz - wcstring(s).size()) / 2) | ||
| , sp = repeat(' ', sps) | ||
@@ -34,3 +34,3 @@ return sp + s + sp + (sp.length != sps ? ' ' : '') | ||
| var s = String(s_) | ||
| return s + repeat(' ', Math.max(0, n + 1 - wcsize(s))) | ||
| return s + repeat(' ', Math.max(0, n + 1 - wcstring(s).size())) | ||
| } | ||
@@ -37,0 +37,0 @@ |
+2
-2
| { | ||
| "name": "workshopper-exercise", | ||
| "version": "2.6.0", | ||
| "version": "2.6.1", | ||
| "description": "An exercise runner component for the Workshopper framework", | ||
@@ -22,3 +22,3 @@ "main": "./exercise.js", | ||
| "tuple-stream": "0.0.2", | ||
| "wcsize": "^1.0.0", | ||
| "wcstring": "^2.1.0", | ||
| "xtend": "^4.0.1" | ||
@@ -25,0 +25,0 @@ }, |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
25519
0.09%+ Added
+ Added
+ Added
- Removed