queryfilters
Advanced tools
Comparing version 0.3.27 to 0.3.28
@@ -9,10 +9,2 @@ var gulp = require('gulp'); | ||
gulp.task('publish', function() { | ||
gulp.src('lib/*.js') | ||
.pipe(shell([ | ||
'git push origin master', | ||
'npm publish' | ||
])); | ||
}); | ||
gulp.task('test', function() { | ||
@@ -19,0 +11,0 @@ gulp.src('lib/*.js'). |
@@ -492,2 +492,8 @@ "use strict"; | ||
}; | ||
this.getJson = function () { | ||
return { | ||
filtering: this.filterManager.getFilters(), | ||
}; | ||
}; | ||
} | ||
@@ -494,0 +500,0 @@ |
{ | ||
"name": "queryfilters", | ||
"version": "v0.3.27", | ||
"version": "v0.3.28", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "test": "jest", |
@@ -64,1 +64,13 @@ const QueryQl = require('./../lib/queryql'); | ||
}); | ||
test('provide json representation', () => { | ||
var queryQl = new QueryQl() | ||
queryQl.applyFilter({ field: 'relation.nick', value: '@sensorario' }); | ||
queryQl.applyFilter({ field: 'foo.bar.name', value: 'Simone' }); | ||
expect(queryQl.getJson()).toEqual({ | ||
filtering: [ | ||
{ field: 'relation.nick', value: '@sensorario' }, | ||
{ field: 'foo.bar.name', value: 'Simone' }, | ||
] | ||
}); | ||
}); |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
63665
1331