Socket
Socket
Sign inDemoInstall

enable

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enable - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

5

History.md
1.1.0 / 2014-10-30
==================
* Should detect const (@hemanth)
1.0.2 / 2014-10-30

@@ -3,0 +8,0 @@ ==================

@@ -35,1 +35,10 @@ /**!

}
// const
try {
eval('(function () { const fubar = 42; return typeof fubar === "number"; }())');
exports.const = true;
} catch (_) {
exports.const = false;
}

2

package.json
{
"name": "enable",
"version": "1.0.2",
"version": "1.1.0",
"description": "Detect es6 features enable or not.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -41,8 +41,12 @@ enable

if (enable.generator) {
console.log('support generator');
console.log('supports generator');
}
if (enable.let) {
console.log('support let a = 1;');
console.log('supports `let a = 1;`');
}
if (enable.const) {
console.log('supports `const salary = 0;`')
}
```

@@ -58,4 +62,8 @@

support `let a;` or not
Supports `let a;` or not
### .const
Supports `const a = 1;` or not
## Test

@@ -62,0 +70,0 @@

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