New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

workshopper-adventure

Package Overview
Dependencies
Maintainers
4
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

workshopper-adventure - npm Package Compare versions

Comparing version 5.1.8 to 6.0.0

CHANGELOG.md

64

i18n.js

@@ -56,39 +56,37 @@ const i18n = require('i18n-core')

var lang = choose(null)
var translator = root.lang(lang, true)
var translator = root.section(lang, true)
// TODO: _excercises is unused... is this ok?
// eslint-disable-next-line
var result = i18n(i18nExtend(translator, {
get: function (key) {
if (options[key]) {
return options[key]
}
var result = i18n(i18nExtend(translator, function (key) {
if (options[key]) {
return options[key]
}
// legacy -- start
if (key === 'title') {
return options.name.toUpperCase()
}
// legacy -- start
if (key === 'title') {
return options.name.toUpperCase()
}
if (key === 'appName' || key === 'appname' || key === 'ADVENTURE_NAME') {
return options.name
}
if (key === 'appName' || key === 'appname' || key === 'ADVENTURE_NAME') {
return options.name
}
if (key === 'rootdir') {
return options.appDir
}
if (key === 'rootdir') {
return options.appDir
}
if (key === 'COMMAND' || key === 'ADVENTURE_COMMAND') {
return commandify(options.name)
// legacy -- end
}
if (key === 'COMMAND' || key === 'ADVENTURE_COMMAND') {
return commandify(options.name)
// legacy -- end
}
var exercisePrefix = 'exercise.'
if (key.indexOf(exercisePrefix) === 0) {
return key.substr(exercisePrefix.length)
var exercisePrefix = 'exercise.'
if (key.indexOf(exercisePrefix) === 0) {
return key.substr(exercisePrefix.length)
}
if (key.length > UNDERLINE.length) {
var end = key.length - UNDERLINE.length
if (key.indexOf(UNDERLINE) === end) {
return util.repeat('\u2500', chalk.stripColor(result.__(key.substr(0, end))).length + 2)
}
if (key.length > UNDERLINE.length) {
var end = key.length - UNDERLINE.length
if (key.indexOf(UNDERLINE) === end) {
return util.repeat('\u2500', chalk.stripColor(result.__(key.substr(0, end))).length + 2)
}
}
}

@@ -102,9 +100,7 @@ }))

lang = choose(lng)
translator.changeLang(lang)
translator.changeSection(lang)
}
result.extend = function (obj) {
return i18n(i18nExtend(result, {
get: function (key) {
return obj[key]
}
return i18n(i18nExtend(result, function (key) {
return obj[key]
}))

@@ -111,0 +107,0 @@ }

{
"name": "workshopper-adventure",
"version": "5.1.8",
"version": "6.0.0",
"description": "A terminal workshop runner framework (adventure compatible)",

@@ -18,4 +18,4 @@ "main": "./index.js",

"commandico": "^2.0.2",
"i18n-core": "^2.1.1",
"latest-version": "^2.0.0",
"latest-version": "^3.0.0",
"i18n-core": "^3.0.0",
"msee": "^0.3.2",

@@ -22,0 +22,0 @@ "simple-terminal-menu": "^1.1.3",

@@ -19,3 +19,3 @@ # Workshopper-Adventure

[@linclark](https://github.com/linclark) has written a good introduction on creating your own workshop, available [here](http://lin-clark.com/blog/2014/07/01/authoring-nodejs-workshopper-lessons/).
[@linclark](https://github.com/linclark) has written a good introduction on creating your own workshop, available [here](https://github.com/linclark/lin-clark.com/blob/master/content/blog/2014/07/01/authoring-nodejs-workshopper-lessons.md).

@@ -22,0 +22,0 @@ ## High-level overview

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc