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

asty-astq

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asty-astq - npm Package Compare versions

Comparing version 1.13.6 to 1.13.7

2

Gruntfile.js
/*
** ASTy-ASTq -- Abstract Syntax Tree With Integrated Query Engine
** Copyright (c) 2014-2022 Dr. Ralf S. Engelschall <rse@engelschall.com>
** Copyright (c) 2014-2023 Dr. Ralf S. Engelschall <rse@engelschall.com>
**

@@ -5,0 +5,0 @@ ** Permission is hereby granted, free of charge, to any person obtaining

/*
** ASTy-ASTq -- Abstract Syntax Tree With Integrated Query Engine
** Copyright (c) 2014-2022 Dr. Ralf S. Engelschall <rse@engelschall.com>
** Copyright (c) 2014-2023 Dr. Ralf S. Engelschall <rse@engelschall.com>
**

@@ -30,3 +30,3 @@ ** Permission is hereby granted, free of charge, to any person obtaining

** ASTy-ASTq -- Abstract Syntax Tree With Integrated Query Engine
** Copyright (c) 2014-2022 Dr. Ralf S. Engelschall <rse@engelschall.com>
** Copyright (c) 2014-2023 Dr. Ralf S. Engelschall <rse@engelschall.com>
**

@@ -55,35 +55,27 @@ ** Permission is hereby granted, free of charge, to any person obtaining

const ASTY = require("asty");
const ASTQ = require("astq");
const ASTQ = require("astq");
/* define an ASTq adapter for ASTy */
const ASTQAdapter = class ASTQAdapter {
taste() {
taste( /* node */) {
return true;
}
getParentNode(node) {
return node.parent();
}
getChildNodes(node) {
return node.childs();
}
getNodeType(node) {
return node.type();
}
getNodeAttrNames(node) {
return node.attrs();
}
getNodeAttrValue(node, attr) {
return node.get(attr);
}
};
};
/* define an ASTy super class hooking up ASTq to ASTy */
const ASTYASTQ = class ASTYASTQ extends ASTY {

@@ -93,11 +85,11 @@ constructor() {

super();
/* allow us to be called without "new" */
if (!(this instanceof ASTYASTQ)) return new ASTYASTQ();
if (!(this instanceof ASTYASTQ)) return new ASTYASTQ();
/* create an ASTq instance, able to operate on ASTy */
const astq = new ASTQ();
astq.adapter(new ASTQAdapter());
/* extend this ASTy instance with ASTq methods */
this.extend({

@@ -107,18 +99,14 @@ compile(selector, trace) {

},
execute(query, params, trace) {
return astq.execute(this, query, params, trace);
},
query(selector, params, trace) {
return astq.query(this, selector, params, trace);
}
});
return this;
}
};
};
/* export us as an ASTy super class */
module.exports = ASTYASTQ;

@@ -125,0 +113,0 @@

{
"name": "asty-astq",
"version": "1.13.6",
"version": "1.13.7",
"description": "Abstract Syntax Tree With Integrated Query Engine",

@@ -20,3 +20,3 @@ "keywords": [ "ast", "abstract", "syntax", "tree", "query", "engine", "integration", "asty", "astq" ],

"devDependencies": {
"grunt": "1.5.3",
"grunt": "1.6.1",
"grunt-cli": "1.4.3",

@@ -26,13 +26,13 @@ "grunt-contrib-clean": "2.0.1",

"grunt-mocha-test": "0.13.3",
"grunt-eslint": "24.0.0",
"@babel/core": "7.18.6",
"eslint": "8.18.0",
"eslint-config-standard": "17.0.0",
"eslint-plugin-promise": "6.0.0",
"eslint-plugin-import": "2.26.0",
"grunt-eslint": "24.3.0",
"@babel/core": "7.22.11",
"eslint": "8.48.0",
"eslint-config-standard": "17.1.0",
"eslint-plugin-promise": "6.1.1",
"eslint-plugin-import": "2.28.1",
"eslint-plugin-node": "11.1.0",
"mocha": "10.0.0",
"chai": "4.3.6",
"mocha": "10.2.0",
"chai": "4.3.8",
"babelify": "10.0.0",
"@babel/preset-env": "7.18.6",
"@babel/preset-env": "7.22.10",
"uglifyify": "5.0.2",

@@ -43,7 +43,7 @@ "browserify-header": "1.1.0",

"dependencies": {
"asty": "1.8.18",
"astq": "2.7.9"
"asty": "1.8.19",
"astq": "2.7.10"
},
"engines": {
"node": ">=8.0.0"
"node": ">=12.0.0"
},

@@ -50,0 +50,0 @@ "scripts": {

@@ -7,8 +7,8 @@

<p/>
<img src="https://nodei.co/npm/asty-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/asty-astq?logo=npm&label=npm%20release&color=%23cc3333)](https://npmjs.com/asty-astq)
[![npm (project downloads)](https://img.shields.io/npm/dm/asty-astq?logo=npm&label=npm%20downloads&color=%23cc3333)](https://npmjs.com/asty-astq)
<p/>
<img src="https://david-dm.org/rse/asty-astq.png" alt=""/>
Installation

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

Copyright (c) 2014-2022 Dr. Ralf S. Engelschall (http://engelschall.com/)
Copyright &copy; 2014-2023 Dr. Ralf S. Engelschall (http://engelschall.com/)

@@ -83,0 +83,0 @@ Permission is hereby granted, free of charge, to any person obtaining

/*
** ASTy-ASTq -- Abstract Syntax Tree With Integrated Query Engine
** Copyright (c) 2014-2022 Dr. Ralf S. Engelschall <rse@engelschall.com>
** Copyright (c) 2014-2023 Dr. Ralf S. Engelschall <rse@engelschall.com>
**

@@ -5,0 +5,0 @@ ** Permission is hereby granted, free of charge, to any person obtaining

/*
** ASTy-ASTq -- Abstract Syntax Tree With Integrated Query Engine
** Copyright (c) 2014-2022 Dr. Ralf S. Engelschall <rse@engelschall.com>
** Copyright (c) 2014-2023 Dr. Ralf S. Engelschall <rse@engelschall.com>
**

@@ -5,0 +5,0 @@ ** Permission is hereby granted, free of charge, to any person obtaining

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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