diff options
author | isaacs <i@izs.me> | 2020-12-09 02:56:06 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2020-12-09 02:56:06 +0300 |
commit | 0ef25b6cd2921794d36f066e2b11c406342cf167 (patch) | |
tree | 30a79bf2da200f48024ba12945a7805fc2497920 /node_modules/libnpmsearch | |
parent | 77c6ced2a6daaadbff715c8f05b2e61ba76e9bab (diff) |
libnpmsearch@3.1.0
Update to accept query params as options, so we can paginate.
Diffstat (limited to 'node_modules/libnpmsearch')
-rw-r--r-- | node_modules/libnpmsearch/index.js | 1 | ||||
-rw-r--r-- | node_modules/libnpmsearch/package.json | 13 |
2 files changed, 7 insertions, 7 deletions
diff --git a/node_modules/libnpmsearch/index.js b/node_modules/libnpmsearch/index.js index 43889e537..cb6b50783 100644 --- a/node_modules/libnpmsearch/index.js +++ b/node_modules/libnpmsearch/index.js @@ -15,6 +15,7 @@ function searchStream (query, opts = {}) { quality: 0.65, popularity: 0.98, maintenance: 0.5, + ...opts.opts, // this is to support the cli's --searchopts parameter ...opts } diff --git a/node_modules/libnpmsearch/package.json b/node_modules/libnpmsearch/package.json index 5b86d77d5..a32a194ae 100644 --- a/node_modules/libnpmsearch/package.json +++ b/node_modules/libnpmsearch/package.json @@ -1,6 +1,6 @@ { "name": "libnpmsearch", - "version": "3.0.1", + "version": "3.1.0", "description": "Programmatic API for searching in npm and compatible registries.", "author": "Kat Marchán <kzm@sykosomatic.org>", "files": [ @@ -15,10 +15,10 @@ ], "license": "ISC", "scripts": { - "prerelease": "npm t", - "release": "standard-version -s", - "postrelease": "npm publish && git push --follow-tags", - "pretest": "standard", + "preversion": "npm test", + "postversion": "npm publish", + "prepublishOnly": "git push origin --follow-tags", + "posttest": "standard", "test": "tap" }, "tap": { @@ -27,8 +27,7 @@ "devDependencies": { "nock": "^9.6.1", "standard": "^12.0.0", - "standard-version": "*", - "tap": "^14.10.6" + "tap": "^14.11.0" }, "repository": { "type": "git", |