You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign 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.6.0
to
2.6.1
+3
-3
comparestdout.js

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

{
"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 @@ },