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

enable

Package Overview
Dependencies
Maintainers
2
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 3.3.0 to 3.4.0

18

History.md
3.4.0 / 2020-02-15
==================
**features**
* [[`d831d40`](http://github.com/node-modules/enable/commit/d831d404c749d0c73184c5357daf7fc6bed24d49)] - feat: detect arrow and async function (#28) (fengmk2 <<fengmk2@gmail.com>>)
**others**
* [[`049d1b3`](http://github.com/node-modules/enable/commit/049d1b3f388371b55fdacb6bdf4d426224c40d30)] - Updated License. (hemanth.hm <<hemanth.hm@gmail.com>>)
* [[`0736fed`](http://github.com/node-modules/enable/commit/0736fedf9fe1b14e1729265eaeb94f038daf2dd0)] - Changelogs for v3.3.0 (Hemanth.HM <<hemanth.hm@gmail.com>>)
* [[`2af6043`](http://github.com/node-modules/enable/commit/2af6043b5a618f142dabc0d9da8c60b2df574629)] - 3.3.0 (Hemanth.HM <<hemanth.hm@gmail.com>>),
3.3.0 / 2014-12-25
==================
* All Array related checks.
3.2.0 / 2014-12-13
==================
* All WeakSet related checks.
* All Set related checks.
* All WeakSet related checks.
* All Set related checks.

@@ -7,0 +21,0 @@ 3.1.0/ 2014-12-09

45

index.js

@@ -1,13 +0,1 @@

/**!
* enable - index.js
*
* Copyright(c) 2014 fengmk2 and other contributors.
* MIT Licensed
*
* Authors:
* fengmk2 <fengmk2@gmail.com> (http://fengmk2.github.com)
* dead_horse <dead_horse@qq.com> (http://github.com/dead-horse)
* hemanth.hm <hemanth.hm@gmail.com> (http://h3manth.com)
*/
'use strict';

@@ -27,6 +15,2 @@

/**
* Module dependencies.
*/
// generator

@@ -41,2 +25,29 @@

// arrow function
try {
eval('(() => {})()');
exports.arrowFunction = true;
} catch (_) {
exports.arrowFunction = false;
}
// async function
try {
eval('(async function() {})()');
exports.asyncFunction = true;
} catch (_) {
exports.asyncFunction = false;
}
// async arrow function
try {
eval('(async () => {})()');
exports.asyncArrowFunction = true;
} catch (_) {
exports.asyncArrowFunction = false;
}
// let

@@ -75,3 +86,3 @@

// Prototype methods of Strings.
['codePointAt','normalize','repeat','startsWith','endsWith','contains'].forEach(function(attr){
['codePointAt','normalize','repeat','startsWith','endsWith','contains','includes'].forEach(function(attr){
str.prototype[attr] = isFunction(String.prototype[attr]);

@@ -78,0 +89,0 @@ });

{
"name": "enable",
"version": "3.3.0",
"version": "3.4.0",
"description": "ES6 and ES7 feature detection.",
"main": "index.js",
"files": [
"index.js"
],
"scripts": {
"test": "mocha --harmony --check-leaks -R spec -t 5000 -r should test/*.test.js",
"test-cov": "node --harmony node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- --check-leaks -t 5000 -r should test/*.test.js",
"test-travis": "node --harmony node_modules/.bin/istanbul cover node_modules/.bin/_mocha --report lcovonly -- --check-leaks -t 5000 -r should test/*.test.js",
"test": "mocha --check-leaks -R spec -t 5000 -r should test/*.test.js",
"test-cov": "istanbul cover node_modules/.bin/_mocha -- --check-leaks -t 5000 -r should test/*.test.js",
"jshint": "jshint .",

@@ -22,3 +24,3 @@ "autod": "autod -w --prefix '~' && npm run cnpm",

"istanbul-harmony": "*",
"mocha": "*"
"mocha": "2"
},

@@ -45,4 +47,4 @@ "homepage": "https://github.com/node-modules/enable",

},
"author": "fengmk2 <fengmk2@gmail.com> (http://fengmk2.github.com)",
"author": "fengmk2 <fengmk2@gmail.com> (https://fengmk2.com)",
"license": "MIT"
}

@@ -124,13 +124,13 @@ enable

* Map
* Map.prototype.size
* Map.prototype.get
* Map.prototype.has
* Map.prototype.set
* Map.prototype.delete
* Map.prototype.keys
* Map.prototype.values
* Map.prototype.clear
* Map
* Map.prototype.size
* Map.prototype.get
* Map.prototype.has
* Map.prototype.set
* Map.prototype.delete
* Map.prototype.keys
* Map.prototype.values
* Map.prototype.clear
* Map.prototype.forEach
* Map.prototype.entries
* Map.prototype.entries

@@ -186,2 +186,5 @@ __WeakMap related:__

* generator.
* arrowFunction
* asyncFunction
* asyncArrowFunction
* let.

@@ -188,0 +191,0 @@ * const.

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