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.4.4 to 0.5.0

4

package.json
{
"name": "cardinal",
"version": "0.4.4",
"version": "0.5.0",
"description": "Syntax highlights JavaScript code with ANSI colors to be printed to the terminal.",

@@ -31,3 +31,3 @@ "main": "cardinal.js",

"dependencies": {
"redeyed": "~0.4.0",
"redeyed": "~0.5.0",
"ansicolors": "~0.2.1"

@@ -34,0 +34,0 @@ },

@@ -127,7 +127,1 @@ # cardinal [![Build Status](https://secure.travis-ci.org/thlorenz/cardinal.png)](http://travis-ci.org/thlorenz/cardinal)

***highlightFileSync()***
[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/thlorenz/cardinal/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

@@ -45,5 +45,5 @@ 'use strict';

cardinal.highlightFile('./not/existing', function (err, highlighted) {
t.similar(err.message, /ENOENT, .*not.existing/)
t.similar(err.message, /ENOENT. .*not.existing/)
t.end()
})
})

@@ -45,5 +45,5 @@ 'use strict';

} catch (e) {
t.similar(e.message, /ENOENT, .*not.existing/)
t.similar(e.message, /ENOENT. .*not.existing/)
t.end()
}
})

@@ -46,2 +46,4 @@ var colors = require('ansicolors');

, 'catch' : colors.cyan
, 'class' : undefined
, 'const' : undefined
, 'continue' : undefined

@@ -55,2 +57,4 @@

, 'else' : undefined
, 'export' : undefined
, 'extends' : undefined

@@ -62,7 +66,10 @@ , 'finally' : colors.cyan

, 'if' : undefined
, 'import' : undefined
, 'in' : undefined
, 'instanceof' : undefined
, 'let' : undefined
, 'new' : colors.red
, 'return' : colors.red
, 'static' : undefined
, 'super' : undefined
, 'switch' : undefined

@@ -80,2 +87,3 @@

, 'with' : undefined
, 'yield' : undefined
, _default : colors.brightBlue

@@ -128,2 +136,3 @@ }

, '/=': undefined
, '=>': undefined

@@ -135,2 +144,3 @@ , '===': undefined

, '>>=': undefined
, '...': undefined

@@ -137,0 +147,0 @@ , '>>>=': undefined

@@ -39,2 +39,4 @@ /*

, 'catch' : undefined
, 'class' : undefined
, 'const' : undefined
, 'continue' : undefined

@@ -48,2 +50,4 @@

, 'else' : undefined
, 'export' : undefined
, 'extends' : undefined

@@ -55,7 +59,10 @@ , 'finally' : undefined

, 'if' : undefined
, 'import' : undefined
, 'in' : undefined
, 'instanceof' : undefined
, 'let' : undefined
, 'new' : undefined
, 'return' : undefined
, 'static' : undefined
, 'super' : undefined
, 'switch' : undefined

@@ -73,2 +80,3 @@

, 'with' : undefined
, 'yield' : undefined
, _default : undefined

@@ -121,2 +129,3 @@ }

, '/=': undefined
, '=>': undefined

@@ -128,2 +137,3 @@ , '===': undefined

, '>>=': undefined
, '...': undefined

@@ -130,0 +140,0 @@ , '>>>=': undefined

@@ -46,2 +46,4 @@ var colors = require('ansicolors');

, 'catch' : colors.cyan
, 'class' : undefined
, 'const' : undefined
, 'continue' : undefined

@@ -55,2 +57,4 @@

, 'else' : undefined
, 'export' : undefined
, 'extends' : undefined

@@ -62,7 +66,10 @@ , 'finally' : colors.cyan

, 'if' : undefined
, 'import' : undefined
, 'in' : undefined
, 'instanceof' : undefined
, 'let' : undefined
, 'new' : colors.red
, 'return' : colors.red
, 'static' : undefined
, 'super' : undefined
, 'switch' : undefined

@@ -80,2 +87,3 @@

, 'with' : undefined
, 'yield' : undefined
, _default : colors.brightBlue

@@ -130,2 +138,3 @@ }

, '/=': undefined
, '=>': undefined

@@ -137,2 +146,3 @@ , '===': undefined

, '>>=': undefined
, '...': undefined

@@ -139,0 +149,0 @@ , '>>>=': undefined

@@ -60,2 +60,4 @@ var colors = require('ansicolors');

, 'catch' : colors.magenta
, 'class' : undefined
, 'const' : undefined
, 'continue' : colors.magenta

@@ -69,2 +71,4 @@

, 'else' : colors.magenta
, 'export' : undefined
, 'extends' : undefined

@@ -76,7 +80,10 @@ , 'finally' : colors.magenta

, 'if' : colors.magenta
, 'import' : undefined
, 'in' : colors.cyan
, 'instanceof' : colors.cyan
, 'let' : undefined
, 'new' : colors.cyan
, 'return' : colors.magenta
, 'static' : undefined
, 'super' : undefined
, 'switch' : colors.magenta

@@ -94,2 +101,3 @@

, 'with' : colors.cyan
, 'yield' : undefined
, _default : colors.white

@@ -142,2 +150,3 @@ }

, '/=': undefined
, '=>': undefined

@@ -149,2 +158,3 @@ , '===': undefined

, '>>=': undefined
, '...': undefined

@@ -151,0 +161,0 @@ , '>>>=': undefined

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