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.7.2 to 1.8.0

eslint.yaml

37

Gruntfile.js

@@ -27,13 +27,12 @@ /*

module.exports = function (grunt) {
grunt.loadNpmTasks("grunt-contrib-jshint");
grunt.loadNpmTasks("grunt-contrib-clean");
grunt.loadNpmTasks("grunt-browserify");
grunt.loadNpmTasks("grunt-mocha-test");
grunt.loadNpmTasks("grunt-eslint");
grunt.initConfig({
jshint: {
eslint: {
options: {
jshintrc: "jshint.json"
configFile: "eslint.yaml"
},
"gruntfile": [ "Gruntfile.js" ],
"asty-astq": [ "src/**/*.js", "tst/**/*.js" ]

@@ -47,5 +46,15 @@ },

options: {
transform: [ [ "babelify", { presets: [ "es2015" ] } ] ],
transform: [
[ "babelify", {
presets: [
[ "env", {
"targets": {
"browser": [ "last 8 versions", "> 1%", "ie 9" ]
}
} ]
]
} ],
[ "uglifyify", { sourceMap: false, global: true } ]
],
plugin: [
[ "minifyify", { map: "asty-astq.browser.map", output: "lib/asty-astq.browser.map" } ],
[ "browserify-derequire" ],

@@ -58,3 +67,3 @@ [ "browserify-header" ]

standalone: "ASTYASTQ",
debug: true
debug: false
}

@@ -68,3 +77,13 @@ }

options: {
transform: [ [ "babelify", { presets: [ "es2015" ] } ] ],
transform: [
[ "babelify", {
presets: [
[ "env", {
"targets": {
"node": [ "4.0.0" ]
}
} ]
]
} ]
],
plugin: [

@@ -99,5 +118,5 @@ [ "browserify-derequire" ],

grunt.registerTask("default", [ "jshint", "browserify", "mochaTest" ]);
grunt.registerTask("default", [ "eslint", "browserify", "mochaTest" ]);
grunt.registerTask("test", [ "mochaTest" ]);
};

@@ -116,16 +116,20 @@ /*

var _this = _possibleConstructorReturn(this, (ASTYASTQ.__proto__ || Object.getPrototypeOf(ASTYASTQ)).call(this));
/* give ASTy super class a chance to initialize */
if (!(_this instanceof ASTYASTQ)) return _ret = new ASTYASTQ(), _possibleConstructorReturn(_this, _ret);
/* give ASTy super class a chance to initialize */
/* create an ASTq instance, able to operate on ASTy */
var _this = _possibleConstructorReturn(this, (ASTYASTQ.__proto__ || Object.getPrototypeOf(ASTYASTQ)).call(this));
var astq = new ASTQ();
astq.adapter(new ASTQAdapter());
/* extend this ASTy instance with an ASTq query method */
/* extend this ASTy instance with ASTq methods */
_this.extend({
query: function query(selector, params, trace) {
compile(selector, trace) {
return astq.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);

@@ -132,0 +136,0 @@ }

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

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

"devDependencies": {
"grunt": "1.0.2",
"grunt-cli": "1.2.0",
"grunt-contrib-jshint": "1.1.0",
"grunt-contrib-clean": "1.1.0",
"grunt-browserify": "5.2.0",
"grunt-mocha-test": "0.13.3",
"mocha": "5.0.5",
"chai": "4.1.2",
"babelify": "8.0.0",
"babel-core": "6.26.0",
"babel-preset-es2015": "6.24.1",
"minifyify": "7.3.5",
"browserify-header": "0.9.2",
"browserify-derequire": "0.9.4"
"grunt": "1.0.2",
"grunt-cli": "1.2.0",
"grunt-contrib-clean": "1.1.0",
"grunt-browserify": "5.2.0",
"grunt-mocha-test": "0.13.3",
"grunt-eslint": "20.1.0",
"babel-eslint": "8.2.2",
"babel-core": "6.26.0",
"eslint": "4.19.1",
"eslint-config-standard": "11.0.0",
"eslint-plugin-standard": "3.0.1",
"eslint-plugin-promise": "3.7.0",
"eslint-plugin-import": "2.9.0",
"eslint-plugin-node": "6.0.1",
"mocha": "5.0.5",
"chai": "4.1.2",
"babelify": "8.0.0",
"babel-core": "6.26.0",
"babel-preset-env": "1.6.1",
"uglifyify": "4.0.5",
"browserify-header": "0.9.2",
"browserify-derequire": "0.9.4"
},
"dependencies": {
"asty": "1.6.3",
"astq": "2.1.2"
"asty": "1.7.2",
"astq": "2.2.1"
},
"engines": {
"node": ">=4.0.0"
},
"scripts": {
"prepublishOnly": "grunt default",
"build": "grunt default"
}
}

@@ -16,4 +16,2 @@

#### Node environments (with NPM package manager):
```shell

@@ -23,8 +21,2 @@ $ npm install asty-astq

#### Browser environments (with Bower package manager):
```shell
$ bower install asty-astq
```
About

@@ -38,6 +30,15 @@ -----

Technically ASTy-ASTq is a super-class of ASTy while it internally
integrates ASTq so that each ASTy node has an additional `query` method
available. The `query` method has the folowing signature (in TypeScript
notation):
integrates ASTq so that each ASTy node has additional `compile`,
`execute` and `query` methods available. The methods have the folowing
signatures (in TypeScript notation):
compile(
selector: String,
trace?: Boolean
): ASTYQuery
execute(
query: ASTQQuery,
params?: { [name: String]: [value: Any] },
trace?: Boolean
): ASTYNode[]
query(

@@ -47,3 +48,3 @@ selector: String,

trace?: Boolean
): ASTYNode
): ASTYNode[]

@@ -50,0 +51,0 @@ In other words, the following ASTy-ASTq usage...

@@ -42,2 +42,3 @@ /*

constructor () {
/* give ASTy super class a chance to initialize */
super()

@@ -49,5 +50,2 @@

/* give ASTy super class a chance to initialize */
super()
/* create an ASTq instance, able to operate on ASTy */

@@ -57,4 +55,10 @@ let astq = new ASTQ()

/* extend this ASTy instance with an ASTq query method */
/* extend this ASTy instance with ASTq methods */
this.extend({
compile (selector, trace) {
return astq.compile(selector, trace)
},
execute (query, params, trace) {
return astq.execute(this, query, params, trace)
},
query (selector, params, trace) {

@@ -61,0 +65,0 @@ return astq.query(this, selector, params, trace)

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

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