broccoli-babel-transpiler
Advanced tools
Comparing version 7.1.0 to 7.1.1
@@ -37,3 +37,3 @@ 'use strict'; | ||
const type = typeof object; | ||
const hasProperties = type === 'function' || type === 'object' || Array.isArray(object); | ||
const hasProperties = type === 'function' || (type === 'object' && object !== null) || Array.isArray(object); | ||
@@ -200,3 +200,3 @@ return hasProperties && | ||
if (optionsType === 'object' || | ||
if ((optionsType === 'object' && options !== null) || | ||
optionsType === 'function' || | ||
@@ -203,0 +203,0 @@ Array.isArray(options)) { |
{ | ||
"name": "broccoli-babel-transpiler", | ||
"version": "7.1.0", | ||
"version": "7.1.1", | ||
"description": "A Broccoli plugin which transpile ES6 to readable ES5 by using babel.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -20,4 +20,4 @@ # broccoli-babel-transpiler | ||
```js | ||
const esTranspiler = require('broccoli-babel-transpiler'); | ||
const scriptTree = esTranspiler(inputTree, babelOptions); | ||
const babel = require('broccoli-babel-transpiler'); | ||
const scriptTree = babel(inputTree, babelOptions); | ||
``` | ||
@@ -41,2 +41,3 @@ | ||
```js | ||
const babel = require('broccoli-babel-transpiler'); | ||
let scriptTree = babel(inputTree, { | ||
@@ -43,0 +44,0 @@ presets: [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28235
317