Skip to content

Commit b63ef88

Browse files
committed
Update roadmap, update packages, and lint
1 parent f487e8e commit b63ef88

File tree

9 files changed

+228
-472
lines changed

9 files changed

+228
-472
lines changed

ROADMAP.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,14 @@ Here we describe upcoming and recent releases and the key features/fixes they in
77
### 1.4.0
88
* Support custom colors
99

10-
### 1.3.2
10+
### 1.3.4
1111
* Refactor tests to use a testing library like jest (only affects dev/testing)
1212

13+
### ~~1.3.3 (12/9/18)~~
14+
15+
* ~~Remove extraneous swap files~~
16+
* ~~Fix subtle bug in custom theme properties mixing themes and styles~~
17+
1318
### ~~1.3.1 (7/22/18)~~
1419

1520
* ~~Remove circular dependencies due to color maps~~

lib/custom/trap.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module['exports'] = function runTheTrap(text, options) {
88
c: ['\u00a9', '\u023b', '\u03fe'],
99
d: ['\u00d0', '\u018a', '\u0500', '\u0501', '\u0502', '\u0503'],
1010
e: ['\u00cb', '\u0115', '\u018e', '\u0258', '\u03a3', '\u03be', '\u04bc',
11-
'\u0a6c'],
11+
'\u0a6c'],
1212
f: ['\u04fa'],
1313
g: ['\u0262'],
1414
h: ['\u0126', '\u0195', '\u04a2', '\u04ba', '\u04c7', '\u050a'],
@@ -19,7 +19,7 @@ module['exports'] = function runTheTrap(text, options) {
1919
m: ['\u028d', '\u04cd', '\u04ce', '\u0520', '\u0521', '\u0d69'],
2020
n: ['\u00d1', '\u014b', '\u019d', '\u0376', '\u03a0', '\u048a'],
2121
o: ['\u00d8', '\u00f5', '\u00f8', '\u01fe', '\u0298', '\u047a', '\u05dd',
22-
'\u06dd', '\u0e4f'],
22+
'\u06dd', '\u0e4f'],
2323
p: ['\u01f7', '\u048e'],
2424
q: ['\u09cd'],
2525
r: ['\u00ae', '\u01a6', '\u0210', '\u024c', '\u0280', '\u042f'],

lib/custom/zalgo.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -75,21 +75,21 @@ module['exports'] = function zalgo(text, options) {
7575
result = result + text[l];
7676
counts = {'up': 0, 'down': 0, 'mid': 0};
7777
switch (options.size) {
78-
case 'mini':
79-
counts.up = randomNumber(8);
80-
counts.mid = randomNumber(2);
81-
counts.down = randomNumber(8);
82-
break;
83-
case 'maxi':
84-
counts.up = randomNumber(16) + 3;
85-
counts.mid = randomNumber(4) + 1;
86-
counts.down = randomNumber(64) + 3;
87-
break;
88-
default:
89-
counts.up = randomNumber(8) + 1;
90-
counts.mid = randomNumber(6) / 2;
91-
counts.down = randomNumber(8) + 1;
92-
break;
78+
case 'mini':
79+
counts.up = randomNumber(8);
80+
counts.mid = randomNumber(2);
81+
counts.down = randomNumber(8);
82+
break;
83+
case 'maxi':
84+
counts.up = randomNumber(16) + 3;
85+
counts.mid = randomNumber(4) + 1;
86+
counts.down = randomNumber(64) + 3;
87+
break;
88+
default:
89+
counts.up = randomNumber(8) + 1;
90+
counts.mid = randomNumber(6) / 2;
91+
counts.down = randomNumber(8) + 1;
92+
break;
9393
}
9494

9595
var arr = ['up', 'mid', 'down'];

lib/extendStringPrototype.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ module['exports'] = function() {
8585
return ret;
8686
};
8787
addProperty(prop, themePropApplicator);
88-
colors[prop] = function(str){
88+
colors[prop] = function(str) {
8989
return themePropApplicator(str);
9090
};
9191
}
@@ -102,7 +102,7 @@ module['exports'] = function() {
102102
'\'/../themes/generic-logging.js\'); The new syntax looks like '+
103103
'colors.setTheme(require(__dirname + ' +
104104
'\'/../themes/generic-logging.js\'));');
105-
return;
105+
return;
106106
} else {
107107
applyTheme(theme);
108108
}

lib/maps/random.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module['exports'] = function(colors) {
44
return function(letter, i, exploded) {
55
return letter === ' ' ? letter :
66
colors[
7-
available[Math.round(Math.random() * (available.length - 2))]
7+
available[Math.round(Math.random() * (available.length - 2))]
88
](letter);
99
};
1010
};

0 commit comments

Comments
 (0)