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

feature-detect-es6

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

feature-detect-es6 - npm Package Compare versions

Comparing version 1.3.1 to 1.4.0

snapshot-00000-2017-12-02_13-28-38.178.jpg

12

lib/feature-detect-es6.js

@@ -72,2 +72,14 @@ 'use strict'

/**
* Returns true if the new functions of Object are available.
*
* @returns {boolean}
*/
exports.newObjectFeatures = function () {
return typeof Object.assign !== 'undefined' &&
typeof Object.setPrototypeOf !== 'undefined' &&
typeof Object.getOwnPropertySymbols !== 'undefined' &&
typeof Object.is !== 'undefined'
}
/**
* Returns true if `Map`, `WeakMap`, `Set` and `WeakSet` are available.

@@ -74,0 +86,0 @@ *

6

package.json
{
"name": "feature-detect-es6",
"author": "Lloyd Brookes <75pound@gmail.com>",
"version": "1.3.1",
"version": "1.4.0",
"description": "Detect which ES2015 features are available.",

@@ -37,4 +37,4 @@ "repository": "https://github.com/75lb/feature-detect-es6.git",

"devDependencies": {
"jsdoc-to-markdown": "^1.3.6",
"tape": "^4.5.1"
"jsdoc-to-markdown": "^3.0.2",
"tape": "^4.8.0"
},

@@ -41,0 +41,0 @@ "dependencies": {

[![view on npm](http://img.shields.io/npm/v/feature-detect-es6.svg)](https://www.npmjs.org/package/feature-detect-es6)
[![npm module downloads](http://img.shields.io/npm/dt/feature-detect-es6.svg)](https://www.npmjs.org/package/feature-detect-es6)
[![Build Status](https://travis-ci.org/75lb/feature-detect-es6.svg?branch=master)](https://travis-ci.org/75lb/feature-detect-es6)
[![Dependency Status](https://david-dm.org/75lb/feature-detect-es6.svg)](https://david-dm.org/75lb/feature-detect-es6)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard)

@@ -29,2 +28,3 @@

* [.newArrayFeatures()](#module_feature-detect-es6.newArrayFeatures) ⇒ <code>boolean</code>
* [.newObjectFeatures()](#module_feature-detect-es6.newObjectFeatures) ⇒ <code>boolean</code>
* [.collections()](#module_feature-detect-es6.collections) ⇒ <code>boolean</code>

@@ -45,3 +45,3 @@ * [.generators()](#module_feature-detect-es6.generators) ⇒ <code>boolean</code>

**Kind**: static method of <code>[feature-detect-es6](#module_feature-detect-es6)</code>
**Kind**: static method of [<code>feature-detect-es6</code>](#module_feature-detect-es6)
<a name="module_feature-detect-es6.arrowFunction"></a>

@@ -52,3 +52,3 @@

**Kind**: static method of <code>[feature-detect-es6](#module_feature-detect-es6)</code>
**Kind**: static method of [<code>feature-detect-es6</code>](#module_feature-detect-es6)
<a name="module_feature-detect-es6.let"></a>

@@ -59,3 +59,3 @@

**Kind**: static method of <code>[feature-detect-es6](#module_feature-detect-es6)</code>
**Kind**: static method of [<code>feature-detect-es6</code>](#module_feature-detect-es6)
<a name="module_feature-detect-es6.const"></a>

@@ -66,3 +66,3 @@

**Kind**: static method of <code>[feature-detect-es6](#module_feature-detect-es6)</code>
**Kind**: static method of [<code>feature-detect-es6</code>](#module_feature-detect-es6)
<a name="module_feature-detect-es6.newArrayFeatures"></a>

@@ -73,3 +73,9 @@

**Kind**: static method of <code>[feature-detect-es6](#module_feature-detect-es6)</code>
**Kind**: static method of [<code>feature-detect-es6</code>](#module_feature-detect-es6)
<a name="module_feature-detect-es6.newObjectFeatures"></a>
### detect.newObjectFeatures() ⇒ <code>boolean</code>
Returns true if the new functions of Object are available.
**Kind**: static method of [<code>feature-detect-es6</code>](#module_feature-detect-es6)
<a name="module_feature-detect-es6.collections"></a>

@@ -80,3 +86,3 @@

**Kind**: static method of <code>[feature-detect-es6](#module_feature-detect-es6)</code>
**Kind**: static method of [<code>feature-detect-es6</code>](#module_feature-detect-es6)
<a name="module_feature-detect-es6.generators"></a>

@@ -87,3 +93,3 @@

**Kind**: static method of <code>[feature-detect-es6](#module_feature-detect-es6)</code>
**Kind**: static method of [<code>feature-detect-es6</code>](#module_feature-detect-es6)
<a name="module_feature-detect-es6.promises"></a>

@@ -94,3 +100,3 @@

**Kind**: static method of <code>[feature-detect-es6](#module_feature-detect-es6)</code>
**Kind**: static method of [<code>feature-detect-es6</code>](#module_feature-detect-es6)
<a name="module_feature-detect-es6.templateStrings"></a>

@@ -101,3 +107,3 @@

**Kind**: static method of <code>[feature-detect-es6](#module_feature-detect-es6)</code>
**Kind**: static method of [<code>feature-detect-es6</code>](#module_feature-detect-es6)
<a name="module_feature-detect-es6.symbols"></a>

@@ -108,3 +114,3 @@

**Kind**: static method of <code>[feature-detect-es6](#module_feature-detect-es6)</code>
**Kind**: static method of [<code>feature-detect-es6</code>](#module_feature-detect-es6)
<a name="module_feature-detect-es6.destructuring"></a>

@@ -115,3 +121,3 @@

**Kind**: static method of <code>[feature-detect-es6](#module_feature-detect-es6)</code>
**Kind**: static method of [<code>feature-detect-es6</code>](#module_feature-detect-es6)
<a name="module_feature-detect-es6.spread"></a>

@@ -122,3 +128,3 @@

**Kind**: static method of <code>[feature-detect-es6](#module_feature-detect-es6)</code>
**Kind**: static method of [<code>feature-detect-es6</code>](#module_feature-detect-es6)
<a name="module_feature-detect-es6.defaultParamValues"></a>

@@ -129,3 +135,3 @@

**Kind**: static method of <code>[feature-detect-es6](#module_feature-detect-es6)</code>
**Kind**: static method of [<code>feature-detect-es6</code>](#module_feature-detect-es6)
<a name="module_feature-detect-es6.all"></a>

@@ -136,3 +142,3 @@

**Kind**: static method of <code>[feature-detect-es6](#module_feature-detect-es6)</code>
**Kind**: static method of [<code>feature-detect-es6</code>](#module_feature-detect-es6)

@@ -150,2 +156,2 @@ | Param | Type | Description |

&copy; 2015-16 Lloyd Brookes \<75pound@gmail.com\>. Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown).
&copy; 2015-18 Lloyd Brookes \<75pound@gmail.com\>. Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown).

@@ -29,2 +29,7 @@ var detect = require('../')

test('.newObjectFeatures()', function (t) {
t.strictEqual(detect.newObjectFeatures(), false)
t.end()
})
test('.collections()', function (t) {

@@ -31,0 +36,0 @@ t.strictEqual(detect.collections(), true)

@@ -29,2 +29,7 @@ var detect = require('../')

test('.newObjectFeatures()', function (t) {
t.strictEqual(detect.newObjectFeatures(), false)
t.end()
})
test('.collections()', function (t) {

@@ -31,0 +36,0 @@ t.strictEqual(detect.collections(), false)

@@ -29,2 +29,7 @@ var detect = require('../')

test('.newObjectFeatures()', function (t) {
t.strictEqual(detect.newObjectFeatures(), false)
t.end()
})
test('.collections()', function (t) {

@@ -31,0 +36,0 @@ t.strictEqual(detect.collections(), true)

@@ -29,2 +29,7 @@ var detect = require('../')

test('.newObjectFeatures()', function (t) {
t.strictEqual(detect.newObjectFeatures(), true)
t.end()
})
test('.collections()', function (t) {

@@ -31,0 +36,0 @@ t.strictEqual(detect.collections(), true)

@@ -29,2 +29,7 @@ var detect = require('../')

test('.newObjectFeatures()', function (t) {
t.strictEqual(detect.newObjectFeatures(), true)
t.end()
})
test('.collections()', function (t) {

@@ -31,0 +36,0 @@ t.strictEqual(detect.collections(), true)

@@ -29,2 +29,7 @@ var detect = require('../')

test('.newObjectFeatures()', function (t) {
t.strictEqual(detect.newObjectFeatures(), true)
t.end()
})
test('.collections()', function (t) {

@@ -31,0 +36,0 @@ t.strictEqual(detect.collections(), true)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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