Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

workshopper-exercise

Package Overview
Dependencies
Maintainers
3
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

workshopper-exercise - npm Package Compare versions

Comparing version
2.5.3
to
2.6.0
+3
-3
comparestdout.js

@@ -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 @@

{
"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": {