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

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.1.0 to 1.2.0

5

History.md
1.2.0 / 2014-10-31
==================
* feat: Supports Object.{is,assign,getOwnPropertySymbols,setPrototypeOf}
1.1.0 / 2014-10-30

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

@@ -44,1 +44,8 @@ /**!

// Object.{is,assign,getOwnPropertySymbols,setPrototypeOf}
exports.Object = {
is: typeof Object.is === 'function',
assign: typeof Object.assign === 'function',
getOwnPropertySymbols: typeof Object.getOwnPropertySymbols === 'function',
setPrototypeOf: typeof Object.setPrototypeOf === 'function'
};

2

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

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

@@ -27,3 +27,4 @@ enable

Detect es6 features enable or not.
Detect [es6](http://kangax.github.io/compat-table/es6) and [es7](http://kangax.github.io/compat-table/es7)
features enable or not.

@@ -42,3 +43,3 @@ ## Install

if (enable.generator) {
console.log('supports generator');
console.log('supports generator: `function* a() {}`');
}

@@ -53,18 +54,20 @@

}
```
## API
if (enable.Object.is) {
console.log('supports `Object.is();`');
}
### .generator
if (enable.Object.assign) {
console.log('supports `Object.assign();`');
}
Detect generator enable or not
if (enable.Object.getOwnPropertySymbols) {
console.log('supports `Object.getOwnPropertySymbols();`');
}
### .let
if (enable.Object.setPrototypeOf) {
console.log('supports `Object.setPrototypeOf();`');
}
```
Supports `let a;` or not
### .const
Supports `const a = 1;` or not
## Test

@@ -71,0 +74,0 @@

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