Comparing version 2.7.10 to 2.7.11
{ | ||
"name": "astq", | ||
"version": "2.7.10", | ||
"version": "2.7.11", | ||
"description": "Abstract Syntax Tree (AST) Query Engine", | ||
@@ -34,12 +34,12 @@ "keywords": [ "abstract", "syntax", "tree", "query", "engine", "adaptable" ], | ||
"grunt-eslint": "24.3.0", | ||
"@babel/core": "7.22.11", | ||
"eslint": "8.48.0", | ||
"@babel/core": "7.23.5", | ||
"eslint": "8.55.0", | ||
"eslint-config-standard": "17.1.0", | ||
"eslint-plugin-promise": "6.1.1", | ||
"eslint-plugin-import": "2.28.1", | ||
"eslint-plugin-import": "2.29.0", | ||
"eslint-plugin-node": "11.1.0", | ||
"mocha": "10.2.0", | ||
"chai": "4.3.8", | ||
"chai": "4.3.10", | ||
"babelify": "10.0.0", | ||
"@babel/preset-env": "7.22.10", | ||
"@babel/preset-env": "7.23.5", | ||
"uglifyify": "5.0.2", | ||
@@ -46,0 +46,0 @@ "browserify-header": "1.1.0", |
@@ -7,8 +7,8 @@ | ||
<p/> | ||
<img src="https://nodei.co/npm/astq.png?downloads=true&stars=true" alt=""/> | ||
[![github (author stars)](https://img.shields.io/github/stars/rse?logo=github&label=author%20stars&color=%233377aa)](https://github.com/rse) | ||
[![github (author followers)](https://img.shields.io/github/followers/rse?label=author%20followers&logo=github&color=%234477aa)](https://github.com/rse) | ||
<br/> | ||
[![npm (project release)](https://img.shields.io/npm/v/astq?logo=npm&label=npm%20release&color=%23cc3333)](https://npmjs.com/astq) | ||
[![npm (project downloads)](https://img.shields.io/npm/dm/asty?logo=npm&label=npm%20downloads&color=%23cc3333)](https://npmjs.com/astq) | ||
<p/> | ||
<img src="https://david-dm.org/rse/astq.png" alt=""/> | ||
Installation | ||
@@ -15,0 +15,0 @@ ------------ |
@@ -5,7 +5,7 @@ { | ||
"dependencies": { | ||
"acorn": "8.7.1", | ||
"parse5": "7.0.0", | ||
"acorn": "8.11.2", | ||
"parse5": "7.1.2", | ||
"xmldom": "0.6.0", | ||
"less": "4.1.3", | ||
"cheerio": "1.0.0-rc.5", | ||
"less": "4.2.0", | ||
"cheerio": "1.0.0-rc.12", | ||
"unified": "9.2.2", | ||
@@ -12,0 +12,0 @@ "remark-parse": "9.0.0" |
@@ -137,3 +137,3 @@ | ||
let value = astq.query(node, `// "#text"`).map((node) => node.nodeValue).join("") | ||
console.log(`FOUND PARSE5: tag: ${tag}, value: ${value}`) | ||
console.log(`FOUND CHEERIO: tag: ${tag}, value: ${value}`) | ||
}) | ||
@@ -140,0 +140,0 @@ })(); |
@@ -27,8 +27,17 @@ /* | ||
static taste (node) { | ||
/* global Node: true */ | ||
return (typeof node === "object" | ||
/* global Document: true */ | ||
/* global Element: true */ | ||
return ( | ||
typeof node === "object" | ||
&& node !== null | ||
&& !(typeof Node === "object" && node instanceof Node) | ||
&& typeof node.tagName === "string" | ||
&& node.tagName !== "") | ||
&& (( | ||
!(typeof Element === "object" && node instanceof Element) | ||
&& typeof node.tagName === "string" | ||
&& node.tagName !== "" | ||
) || ( | ||
!(typeof Document === "object" && node instanceof Document) | ||
&& typeof node.type === "string" | ||
&& node.type === "root" | ||
)) | ||
) | ||
} | ||
@@ -35,0 +44,0 @@ static getParentNode (node /*, type */) { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
413814
8002