Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cardinal

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cardinal - npm Package Compare versions

Comparing version 0.5.0 to 0.6.0

6

package.json
{
"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 @@

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