Socket
Socket
Sign inDemoInstall

doctrine

Package Overview
Dependencies
2
Maintainers
3
Versions
33
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.4.0 to 1.5.0

4

CHANGELOG.md

@@ -0,1 +1,5 @@

v1.5.0 - October 13, 2016
* e33c6bb Update: Add support for BooleanLiteralType (#173) (Erik Arvidsson)
v1.4.0 - September 13, 2016

@@ -2,0 +6,0 @@

@@ -46,3 +46,4 @@ /*

StringLiteralType: 'StringLiteralType',
NumericLiteralType: 'NumericLiteralType'
NumericLiteralType: 'NumericLiteralType',
BooleanLiteralType: 'BooleanLiteralType'
};

@@ -887,2 +888,10 @@

if (value === 'true' || value === 'false') {
consume(Token.NAME);
return {
type: Syntax.BooleanLiteralType,
value: value === 'true'
};
}
context = Context.save();

@@ -1253,2 +1262,6 @@ if (value === 'function') {

case Syntax.BooleanLiteralType:
result = String(node.value);
break;
default:

@@ -1255,0 +1268,0 @@ utility.throwError('Unknown type ' + node.type);

2

package.json

@@ -6,3 +6,3 @@ {

"main": "lib/doctrine.js",
"version": "1.4.0",
"version": "1.5.0",
"engines": {

@@ -9,0 +9,0 @@ "node": ">=0.10.0"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc