Comparing version 5.0.3 to 6.0.0
@@ -127,12 +127,4 @@ /*jslint node: true */ | ||
{ | ||
// wrap_native.js uses 'async *' which isn't available on Node 8 | ||
try | ||
{ | ||
const wrap_native = require('../lib/wrap_native.js'); | ||
QlobberSub.native = wrap_native(qlobber_native.QlobberSub, QlobberSub); | ||
} | ||
catch (ex) | ||
{ | ||
} | ||
const wrap_native = require('../lib/wrap_native.js'); | ||
QlobberSub.native = wrap_native(qlobber_native.QlobberSub, QlobberSub); | ||
return module.exports; | ||
@@ -139,0 +131,0 @@ }; |
/*jslint node: true */ | ||
"use strict"; | ||
const c8 = "npx c8 -x Gruntfile.js -x 'test/**'"; | ||
module.exports = function (grunt) | ||
@@ -16,6 +18,2 @@ { | ||
mochaTest: { | ||
src: 'test/*.js' | ||
}, | ||
apidox: { | ||
@@ -28,35 +26,34 @@ input: 'lib/qlobber.js', | ||
exec: { | ||
exec: Object.fromEntries(Object.entries({ | ||
test: { | ||
cmd: 'node --expose-gc ./node_modules/.bin/mocha test/*.js' | ||
}, | ||
cover: { | ||
cmd: "./node_modules/.bin/nyc -x Gruntfile.js -x 'test/**' node --expose-gc ./node_modules/.bin/grunt test" | ||
cmd: `${c8} npx grunt test` | ||
}, | ||
cover_report: { | ||
cmd: './node_modules/.bin/nyc report -r lcov' | ||
cmd: `${c8} report -r lcov` | ||
}, | ||
cover_check: { | ||
cmd: './node_modules/.bin/nyc check-coverage --statements 100 --branches 100 --functions 100 --lines 100' | ||
cmd: `${c8} check-coverage --statements 100 --branches 100 --functions 100 --lines 100` | ||
}, | ||
coveralls: { | ||
cmd: 'cat coverage/lcov.info | coveralls' | ||
}, | ||
bench: { | ||
cmd: './node_modules/.bin/bench -c 20000 -i bench/options/default.js,bench/options/dedup.js,bench/options/mapval.js,bench/options/default-native.js,bench/options/dedup-native.js,bench/options/default-cache-splits.js -k options bench/add bench/add_match_remove bench/match bench/match_search bench/test' | ||
cmd: 'npx bench -c 20000 -i bench/options/default.js,bench/options/dedup.js,bench/options/mapval.js,bench/options/default-native.js,bench/options/dedup-native.js,bench/options/default-cache-splits.js -k options bench/add bench/add_match_remove bench/match bench/match_search bench/test' | ||
}, | ||
'bench-check': { | ||
cmd: './node_modules/.bin/bench -c 20000 -i bench/options/check-default.js,bench/options/check-dedup.js,bench/options/check-mapval.js,bench/options/check-default-native.js,bench/options/check-dedup-native.js -k options bench/add bench/add_match_remove bench/match bench/match_search bench/test' | ||
cmd: 'npx bench -c 20000 -i bench/options/check-default.js,bench/options/check-dedup.js,bench/options/check-mapval.js,bench/options/check-default-native.js,bench/options/check-dedup-native.js -k options bench/add bench/add_match_remove bench/match bench/match_search bench/test' | ||
}, | ||
'bench-many': { | ||
cmd: './node_modules/.bin/bench -c 1 -i bench/options/default.js,bench/options/dedup.js,bench/options/mapval.js,bench/options/default-native.js,bench/options/dedup-native.js,bench/options/default-cache-splits.js -k options bench/add_many bench/add_shortcut_many bench/match_many bench/match_search_many bench/test_many' | ||
cmd: 'npx bench -c 1 -i bench/options/default.js,bench/options/dedup.js,bench/options/mapval.js,bench/options/default-native.js,bench/options/dedup-native.js,bench/options/default-cache-splits.js -k options bench/add_many bench/add_shortcut_many bench/match_many bench/match_search_many bench/test_many' | ||
} | ||
} | ||
}).map(([k, v]) => [k, { stdio: 'inherit', ...v }])) | ||
}); | ||
grunt.loadNpmTasks('grunt-contrib-jshint'); | ||
grunt.loadNpmTasks('grunt-mocha-test'); | ||
grunt.loadNpmTasks('grunt-apidox'); | ||
@@ -66,3 +63,3 @@ grunt.loadNpmTasks('grunt-exec'); | ||
grunt.registerTask('lint', 'jshint'); | ||
grunt.registerTask('test', 'mochaTest'); | ||
grunt.registerTask('test', 'exec:test'); | ||
grunt.registerTask('docs', 'apidox'); | ||
@@ -72,3 +69,2 @@ grunt.registerTask('coverage', ['exec:cover', | ||
'exec:cover_check']); | ||
grunt.registerTask('coveralls', 'exec:coveralls'); | ||
grunt.registerTask('bench', ['exec:bench', | ||
@@ -75,0 +71,0 @@ 'exec:bench-many']); |
/** | ||
# qlobber [![Build Status](https://travis-ci.org/davedoesdev/qlobber.png)](https://travis-ci.org/davedoesdev/qlobber) [![Coverage Status](https://coveralls.io/repos/davedoesdev/qlobber/badge.png?branch=master)](https://coveralls.io/r/davedoesdev/qlobber?branch=master) [![NPM version](https://badge.fury.io/js/qlobber.png)](http://badge.fury.io/js/qlobber) | ||
# qlobber [![ci](https://github.com/davedoesdev/qlobber/actions/workflows/ci.yml/badge.svg)](https://github.com/davedoesdev/qlobber/actions/workflows/ci.yml) [![Coverage Status](https://coveralls.io/repos/davedoesdev/qlobber/badge.png?branch=master)](https://coveralls.io/r/davedoesdev/qlobber?branch=master) [![NPM version](https://badge.fury.io/js/qlobber.png)](http://badge.fury.io/js/qlobber) | ||
@@ -125,3 +125,3 @@ Node.js globbing for amqp-like topics. | ||
```shell | ||
npm run lint | ||
grunt lint | ||
``` | ||
@@ -135,3 +135,3 @@ | ||
[Istanbul](http://gotwarlost.github.io/istanbul/) results are available [here](http://rawgit.davedoesdev.com/davedoesdev/qlobber/master/coverage/lcov-report/index.html). | ||
[c8](https://github.com/bcoe/c8) results are available [here](http://rawgit.davedoesdev.com/davedoesdev/qlobber/master/coverage/lcov-report/index.html). | ||
@@ -171,3 +171,4 @@ Coveralls page is [here](https://coveralls.io/r/davedoesdev/qlobber). | ||
Note that qlobber-native requires Gnu C++ version 9+ and Boost 1.70+. | ||
Note that qlobber-native requires Gnu C++ version 9+ and Boost 1.70+, | ||
including the `boost_context` runtime library. | ||
@@ -1111,16 +1112,9 @@ Once's you've added it to qlobber, the following classes will be available | ||
{ | ||
// wrap_native.js uses 'async *' which isn't available on Node 8 | ||
try | ||
{ | ||
const wrap_native = require('./wrap_native.js'); | ||
Qlobber.nativeString = wrap_native(qlobber_native.QlobberString, Qlobber); | ||
Qlobber.nativeNumber = wrap_native(qlobber_native.QlobberNumber, Qlobber); | ||
QlobberDedup.nativeString = wrap_native(qlobber_native.QlobberDedupString, QlobberDedup); | ||
QlobberDedup.nativeNumber = wrap_native(qlobber_native.QlobberDedupNumber, QlobberDedup); | ||
QlobberTrue.native = wrap_native(qlobber_native.QlobberTrue, QlobberTrue); | ||
native_module = qlobber_native; | ||
} | ||
catch (ex) | ||
{ | ||
} | ||
const wrap_native = require('./wrap_native.js'); | ||
Qlobber.nativeString = wrap_native(qlobber_native.QlobberString, Qlobber); | ||
Qlobber.nativeNumber = wrap_native(qlobber_native.QlobberNumber, Qlobber); | ||
QlobberDedup.nativeString = wrap_native(qlobber_native.QlobberDedupString, QlobberDedup); | ||
QlobberDedup.nativeNumber = wrap_native(qlobber_native.QlobberDedupNumber, QlobberDedup); | ||
QlobberTrue.native = wrap_native(qlobber_native.QlobberTrue, QlobberTrue); | ||
native_module = qlobber_native; | ||
} | ||
@@ -1127,0 +1121,0 @@ |
{ | ||
"name": "qlobber", | ||
"description": "Node.js globbing for amqp-like topics", | ||
"version": "5.0.3", | ||
"version": "6.0.0", | ||
"homepage": "https://github.com/davedoesdev/qlobber", | ||
@@ -21,6 +21,4 @@ "author": { | ||
"scripts": { | ||
"test": "(cd native && npm install && node-gyp rebuild --debug) && node --expose-gc ./node_modules/.bin/grunt lint test", | ||
"coverage": "(cd native && npm install && node-gyp rebuild --debug) && grunt lint coverage", | ||
"coveralls": "grunt coveralls", | ||
"lint": "grunt lint" | ||
"test": "(cd native && npm install && node-gyp rebuild --debug) && grunt test", | ||
"coverage": "(cd native && npm install && node-gyp rebuild --debug) && grunt coverage" | ||
}, | ||
@@ -38,18 +36,16 @@ "directories": { | ||
"engines": { | ||
"node": ">= 8" | ||
"node": ">= 12" | ||
}, | ||
"devDependencies": { | ||
"grunt": "^1.3.0", | ||
"grunt-contrib-jshint": "^2.1.0", | ||
"grunt-mocha-test": "^0.13.3", | ||
"grunt-apidox": "^2.0.10", | ||
"b": "git://github.com/davedoesdev/b.git", | ||
"c8": "^7.10.0", | ||
"chai": "^4.3.4", | ||
"grunt": "^1.4.1", | ||
"grunt-apidox": "^2.0.14", | ||
"grunt-contrib-jshint": "^3.1.1", | ||
"grunt-exec": "^3.0.0", | ||
"mocha": "^8.1.3", | ||
"chai": "^4.2.0", | ||
"nyc": "^15.1.0", | ||
"coveralls": "^3.1.0", | ||
"b": "git://github.com/davedoesdev/b.git", | ||
"JSONStream": "^1.3.5", | ||
"mocha": "^9.1.3", | ||
"stream-buffers": "^3.0.2" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# qlobber [![Build Status](https://travis-ci.org/davedoesdev/qlobber.png)](https://travis-ci.org/davedoesdev/qlobber) [![Coverage Status](https://coveralls.io/repos/davedoesdev/qlobber/badge.png?branch=master)](https://coveralls.io/r/davedoesdev/qlobber?branch=master) [![NPM version](https://badge.fury.io/js/qlobber.png)](http://badge.fury.io/js/qlobber) | ||
# qlobber [![ci](https://github.com/davedoesdev/qlobber/actions/workflows/ci.yml/badge.svg)](https://github.com/davedoesdev/qlobber/actions/workflows/ci.yml) [![Coverage Status](https://coveralls.io/repos/davedoesdev/qlobber/badge.png?branch=master)](https://coveralls.io/r/davedoesdev/qlobber?branch=master) [![NPM version](https://badge.fury.io/js/qlobber.png)](http://badge.fury.io/js/qlobber) | ||
@@ -124,3 +124,3 @@ Node.js globbing for amqp-like topics. | ||
```shell | ||
npm run lint | ||
grunt lint | ||
``` | ||
@@ -134,3 +134,3 @@ | ||
[Istanbul](http://gotwarlost.github.io/istanbul/) results are available [here](http://rawgit.davedoesdev.com/davedoesdev/qlobber/master/coverage/lcov-report/index.html). | ||
[c8](https://github.com/bcoe/c8) results are available [here](http://rawgit.davedoesdev.com/davedoesdev/qlobber/master/coverage/lcov-report/index.html). | ||
@@ -170,3 +170,4 @@ Coveralls page is [here](https://coveralls.io/r/davedoesdev/qlobber). | ||
Note that qlobber-native requires Gnu C++ version 9+ and Boost 1.70+. | ||
Note that qlobber-native requires Gnu C++ version 9+ and Boost 1.70+, | ||
including the `boost_context` runtime library. | ||
@@ -173,0 +174,0 @@ Once's you've added it to qlobber, the following classes will be available |
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
61266
10
9
518
1191