Comparing version 0.5.0 to 0.6.0
{ | ||
"name": "cardinal", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"description": "Syntax highlights JavaScript code with ANSI colors to be printed to the terminal.", | ||
@@ -31,4 +31,4 @@ "main": "cardinal.js", | ||
"dependencies": { | ||
"redeyed": "~0.5.0", | ||
"ansicolors": "~0.2.1" | ||
"ansicolors": "~0.2.1", | ||
"redeyed": "~0.6.0" | ||
}, | ||
@@ -35,0 +35,0 @@ "devDependencies": { |
@@ -35,3 +35,3 @@ var colors = require('ansicolors'); | ||
// show keys of object literals and json in different color | ||
return (nextToken && nextToken.type === 'Punctuator' && nextToken.value === ':') | ||
return (nextToken && nextToken.type === 'Punctuator' && nextToken.value === ':') | ||
? colors.green(s) | ||
@@ -57,2 +57,3 @@ : colors.brightGreen(s); | ||
, 'else' : undefined | ||
, 'enum' : undefined | ||
, 'export' : undefined | ||
@@ -66,2 +67,3 @@ , 'extends' : undefined | ||
, 'if' : undefined | ||
, 'implements' : undefined | ||
, 'import' : undefined | ||
@@ -72,2 +74,6 @@ , 'in' : undefined | ||
, 'new' : colors.red | ||
, 'package' : undefined | ||
, 'private' : undefined | ||
, 'protected' : undefined | ||
, 'public' : undefined | ||
, 'return' : colors.red | ||
@@ -93,9 +99,9 @@ , 'static' : undefined | ||
';': colors.brightBlack | ||
, '.': colors.green | ||
, ',': colors.green | ||
, '.': colors.green | ||
, ',': colors.green | ||
, '{': colors.yellow | ||
, '}': colors.yellow | ||
, '(': colors.brightBlack | ||
, ')': colors.brightBlack | ||
, '(': colors.brightBlack | ||
, ')': colors.brightBlack | ||
, '[': colors.yellow | ||
@@ -145,3 +151,3 @@ , ']': colors.yellow | ||
, '...': undefined | ||
, '>>>=': undefined | ||
@@ -148,0 +154,0 @@ |
@@ -1,2 +0,2 @@ | ||
/* | ||
/* | ||
* Copy this file and use it as a starting point for your custom cardinal color theme. | ||
@@ -34,3 +34,3 @@ * Just fill in or change the entries for the tokens you want to color | ||
, 'Keyword': { | ||
, 'Keyword': { | ||
'break' : undefined | ||
@@ -50,2 +50,3 @@ | ||
, 'else' : undefined | ||
, 'enum' : undefined | ||
, 'export' : undefined | ||
@@ -59,7 +60,15 @@ , 'extends' : undefined | ||
, 'if' : undefined | ||
, 'implements' : undefined | ||
, 'import' : undefined | ||
, 'in' : undefined | ||
, 'instanceof' : undefined | ||
, 'interface' : undefined | ||
, 'let' : undefined | ||
, 'new' : undefined | ||
, 'package' : undefined | ||
, 'private' : undefined | ||
, 'protected' : undefined | ||
, 'public' : undefined | ||
, 'return' : undefined | ||
@@ -84,10 +93,10 @@ , 'static' : undefined | ||
, 'Punctuator': { | ||
';': undefined | ||
, '.': undefined | ||
, ',': undefined | ||
';': undefined | ||
, '.': undefined | ||
, ',': undefined | ||
, '{': undefined | ||
, '}': undefined | ||
, '(': undefined | ||
, ')': undefined | ||
, '{': undefined | ||
, '}': undefined | ||
, '(': undefined | ||
, ')': undefined | ||
, '[': undefined | ||
@@ -137,3 +146,3 @@ , ']': undefined | ||
, '...': undefined | ||
, '>>>=': undefined | ||
@@ -140,0 +149,0 @@ |
@@ -35,3 +35,3 @@ var colors = require('ansicolors'); | ||
// show keys of object literals and json in different color | ||
return (nextToken && nextToken.type === 'Punctuator' && nextToken.value === ':') | ||
return (nextToken && nextToken.type === 'Punctuator' && nextToken.value === ':') | ||
? colors.green(s) | ||
@@ -57,2 +57,3 @@ : colors.brightGreen(s); | ||
, 'else' : undefined | ||
, 'enum' : undefined | ||
, 'export' : undefined | ||
@@ -66,2 +67,3 @@ , 'extends' : undefined | ||
, 'if' : undefined | ||
, 'implements' : undefined | ||
, 'import' : undefined | ||
@@ -72,2 +74,6 @@ , 'in' : undefined | ||
, 'new' : colors.red | ||
, 'package' : undefined | ||
, 'private' : undefined | ||
, 'protected' : undefined | ||
, 'public' : undefined | ||
, 'return' : colors.red | ||
@@ -95,9 +101,9 @@ , 'static' : undefined | ||
, '.': colors.green | ||
, ',': colors.green | ||
, '.': colors.green | ||
, ',': colors.green | ||
, '{': colors.yellow | ||
, '}': colors.yellow | ||
, '(': colors.brightBlack | ||
, ')': colors.brightBlack | ||
, '(': colors.brightBlack | ||
, ')': colors.brightBlack | ||
, '[': colors.yellow | ||
@@ -147,3 +153,3 @@ , ']': colors.yellow | ||
, '...': undefined | ||
, '>>>=': undefined | ||
@@ -150,0 +156,0 @@ |
@@ -49,3 +49,3 @@ var colors = require('ansicolors'); | ||
// show keys of object literals and json in different color | ||
return (nextToken && nextToken.type === 'Punctuator' && nextToken.value === ':') | ||
return (nextToken && nextToken.type === 'Punctuator' && nextToken.value === ':') | ||
? colors.green(s) | ||
@@ -71,2 +71,3 @@ : colors.brightGreen(s); | ||
, 'else' : colors.magenta | ||
, 'enum' : undefined | ||
, 'export' : undefined | ||
@@ -80,2 +81,3 @@ , 'extends' : undefined | ||
, 'if' : colors.magenta | ||
, 'implements' : undefined | ||
, 'import' : undefined | ||
@@ -86,2 +88,6 @@ , 'in' : colors.cyan | ||
, 'new' : colors.cyan | ||
, 'package' : undefined | ||
, 'private' : undefined | ||
, 'protected' : undefined | ||
, 'public' : undefined | ||
, 'return' : colors.magenta | ||
@@ -158,3 +164,3 @@ , 'static' : undefined | ||
, '...': undefined | ||
, '>>>=': undefined | ||
@@ -161,0 +167,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59108
1405
+ Addedesprima@2.7.3(transitive)
+ Addedredeyed@0.6.0(transitive)
- Removedesprima-fb@12001.1.0-dev-harmony-fb(transitive)
- Removedredeyed@0.5.0(transitive)
Updatedredeyed@~0.6.0