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.2.3 to 1.3.0

4

CHANGELOG.md

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

v1.3.0 - August 22, 2016
* 12c7ad9 Update: Add support for numeric and string literal types (fixes #156) (#172) (Andrew Walter)
v1.2.3 - August 16, 2016

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

@@ -44,3 +44,5 @@ /*

NameExpression: 'NameExpression',
TypeApplication: 'TypeApplication'
TypeApplication: 'TypeApplication',
StringLiteralType: 'StringLiteralType',
NumericLiteralType: 'NumericLiteralType'
};

@@ -466,2 +468,6 @@

case 0x2D: /* '-' */
token = scanNumber();
return token;
default:

@@ -893,2 +899,16 @@ if (esutils.code.isDecimalDigit(ch)) {

case Token.STRING:
next();
return {
type: Syntax.StringLiteralType,
value: value
};
case Token.NUMBER:
next();
return {
type: Syntax.NumericLiteralType,
value: value
};
default:

@@ -1226,2 +1246,10 @@ utility.throwError('unexpected token');

case Syntax.StringLiteralType:
result = '"' + node.value + '"';
break;
case Syntax.NumericLiteralType:
result = String(node.value);
break;
default:

@@ -1228,0 +1256,0 @@ utility.throwError('Unknown type ' + node.type);

2

package.json

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

"main": "lib/doctrine.js",
"version": "1.2.3",
"version": "1.3.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