Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update roadmap, update packages, and lint
  • Loading branch information
DABH committed Dec 10, 2018
1 parent f487e8e commit b63ef88
Show file tree
Hide file tree
Showing 9 changed files with 228 additions and 472 deletions.
7 changes: 6 additions & 1 deletion ROADMAP.md
Expand Up @@ -7,9 +7,14 @@ Here we describe upcoming and recent releases and the key features/fixes they in
### 1.4.0
* Support custom colors

### 1.3.2
### 1.3.4
* Refactor tests to use a testing library like jest (only affects dev/testing)

### ~~1.3.3 (12/9/18)~~

* ~~Remove extraneous swap files~~
* ~~Fix subtle bug in custom theme properties mixing themes and styles~~

### ~~1.3.1 (7/22/18)~~

* ~~Remove circular dependencies due to color maps~~
Expand Down
4 changes: 2 additions & 2 deletions lib/custom/trap.js
Expand Up @@ -8,7 +8,7 @@ module['exports'] = function runTheTrap(text, options) {
c: ['\u00a9', '\u023b', '\u03fe'],
d: ['\u00d0', '\u018a', '\u0500', '\u0501', '\u0502', '\u0503'],
e: ['\u00cb', '\u0115', '\u018e', '\u0258', '\u03a3', '\u03be', '\u04bc',
'\u0a6c'],
'\u0a6c'],
f: ['\u04fa'],
g: ['\u0262'],
h: ['\u0126', '\u0195', '\u04a2', '\u04ba', '\u04c7', '\u050a'],
Expand All @@ -19,7 +19,7 @@ module['exports'] = function runTheTrap(text, options) {
m: ['\u028d', '\u04cd', '\u04ce', '\u0520', '\u0521', '\u0d69'],
n: ['\u00d1', '\u014b', '\u019d', '\u0376', '\u03a0', '\u048a'],
o: ['\u00d8', '\u00f5', '\u00f8', '\u01fe', '\u0298', '\u047a', '\u05dd',
'\u06dd', '\u0e4f'],
'\u06dd', '\u0e4f'],
p: ['\u01f7', '\u048e'],
q: ['\u09cd'],
r: ['\u00ae', '\u01a6', '\u0210', '\u024c', '\u0280', '\u042f'],
Expand Down
30 changes: 15 additions & 15 deletions lib/custom/zalgo.js
Expand Up @@ -75,21 +75,21 @@ module['exports'] = function zalgo(text, options) {
result = result + text[l];
counts = {'up': 0, 'down': 0, 'mid': 0};
switch (options.size) {
case 'mini':
counts.up = randomNumber(8);
counts.mid = randomNumber(2);
counts.down = randomNumber(8);
break;
case 'maxi':
counts.up = randomNumber(16) + 3;
counts.mid = randomNumber(4) + 1;
counts.down = randomNumber(64) + 3;
break;
default:
counts.up = randomNumber(8) + 1;
counts.mid = randomNumber(6) / 2;
counts.down = randomNumber(8) + 1;
break;
case 'mini':
counts.up = randomNumber(8);
counts.mid = randomNumber(2);
counts.down = randomNumber(8);
break;
case 'maxi':
counts.up = randomNumber(16) + 3;
counts.mid = randomNumber(4) + 1;
counts.down = randomNumber(64) + 3;
break;
default:
counts.up = randomNumber(8) + 1;
counts.mid = randomNumber(6) / 2;
counts.down = randomNumber(8) + 1;
break;
}

var arr = ['up', 'mid', 'down'];
Expand Down
4 changes: 2 additions & 2 deletions lib/extendStringPrototype.js
Expand Up @@ -85,7 +85,7 @@ module['exports'] = function() {
return ret;
};
addProperty(prop, themePropApplicator);
colors[prop] = function(str){
colors[prop] = function(str) {
return themePropApplicator(str);
};
}
Expand All @@ -102,7 +102,7 @@ module['exports'] = function() {
'\'/../themes/generic-logging.js\'); The new syntax looks like '+
'colors.setTheme(require(__dirname + ' +
'\'/../themes/generic-logging.js\'));');
return;
return;
} else {
applyTheme(theme);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/maps/random.js
Expand Up @@ -4,7 +4,7 @@ module['exports'] = function(colors) {
return function(letter, i, exploded) {
return letter === ' ' ? letter :
colors[
available[Math.round(Math.random() * (available.length - 2))]
available[Math.round(Math.random() * (available.length - 2))]
](letter);
};
};

0 comments on commit b63ef88

Please sign in to comment.