workshopper-exercise
Advanced tools
+3
-3
@@ -5,3 +5,3 @@ const chalk = require('chalk') | ||
| , through2 = require('through2') | ||
| , vw = require('visualwidth') | ||
| , wcsize = require('wcsize') | ||
@@ -25,3 +25,3 @@ | ||
| function center (s, sz) { | ||
| var sps = Math.floor((sz - vw.width(s, true)) / 2) | ||
| var sps = Math.floor((sz - wcsize(s)) / 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 - vw.width(s, true))) | ||
| return s + repeat(' ', Math.max(0, n + 1 - wcsize(s))) | ||
| } | ||
@@ -37,0 +37,0 @@ |
+7
-7
| { | ||
| "name": "workshopper-exercise", | ||
| "version": "2.5.3", | ||
| "version": "2.6.0", | ||
| "description": "An exercise runner component for the Workshopper framework", | ||
@@ -17,9 +17,9 @@ "main": "./exercise.js", | ||
| "after": "~0.8.1", | ||
| "chalk": "~0.4.0", | ||
| "i18n-core": "^1.3.2", | ||
| "split": "~0.3.0", | ||
| "through2": "~0.4.1", | ||
| "chalk": "^1.1.1", | ||
| "i18n-core": "^2.1.1", | ||
| "split": "^1.0.0", | ||
| "through2": "^2.0.0", | ||
| "tuple-stream": "0.0.2", | ||
| "visualwidth": "~0.0.1", | ||
| "xtend": "~2.1.2" | ||
| "wcsize": "^1.0.0", | ||
| "xtend": "^4.0.1" | ||
| }, | ||
@@ -26,0 +26,0 @@ "devDependencies": { |
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
25495
-0.1%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated
Updated
Updated