posthtml-parser
Advanced tools
Comparing version 0.4.0 to 0.4.1
'use strict'; | ||
var Parser = require('htmlparser2/lib/Parser'); | ||
var isObject = require('isobject'); | ||
var objectAssign = require('object-assign'); | ||
@@ -138,3 +137,7 @@ | ||
if (arguments.length === 1 && isObject(arguments[0])) { | ||
if ( | ||
arguments.length === 1 && | ||
Boolean(arguments[0]) && | ||
arguments[0].constructor.name === 'Object' | ||
) { | ||
option = arguments[0]; | ||
@@ -141,0 +144,0 @@ return parser; |
{ | ||
"name": "posthtml-parser", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Parse HTML/XML to PostHTMLTree", | ||
@@ -29,3 +29,2 @@ "keywords": [ | ||
"htmlparser2": "^3.9.2", | ||
"isobject": "^2.1.0", | ||
"object-assign": "^4.1.1" | ||
@@ -32,0 +31,0 @@ }, |
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
26316
2
121
- Removedisobject@^2.1.0
- Removedisarray@1.0.0(transitive)
- Removedisobject@2.1.0(transitive)