From 0ef25b6cd2921794d36f066e2b11c406342cf167 Mon Sep 17 00:00:00 2001 From: isaacs Date: Tue, 8 Dec 2020 15:56:06 -0800 Subject: libnpmsearch@3.1.0 Update to accept query params as options, so we can paginate. --- node_modules/libnpmsearch/index.js | 1 + node_modules/libnpmsearch/package.json | 13 ++-- package-lock.json | 120 +++++++++++++++++++++++++++++++-- package.json | 2 +- 4 files changed, 121 insertions(+), 15 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 ", "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", diff --git a/package-lock.json b/package-lock.json index bbfae182f..00662a982 100644 --- a/package-lock.json +++ b/package-lock.json @@ -75,6 +75,10 @@ "validate-npm-package-name", "which", "write-file-atomic", + "@babel/code-frame", + "@babel/helper-validator-identifier", + "@babel/highlight", + "@eslint/eslintrc", "@npmcli/git", "@npmcli/installed-package-contents", "@npmcli/map-workspaces", @@ -84,16 +88,24 @@ "@npmcli/node-gyp", "@npmcli/promise-spawn", "@tootallnate/once", + "@types/json5", + "acorn", + "acorn-jsx", "agent-base", "agentkeepalive", "aggregate-error", "ajv", + "ansi-colors", "ansi-regex", "ansi-styles", "are-we-there-yet", + "argparse", + "array-includes", + "array.prototype.flat", "asap", "asn1", "assert-plus", + "astral-regex", "asynckit", "aws-sign2", "aws4", @@ -101,6 +113,7 @@ "bcrypt-pbkdf", "brace-expansion", "builtins", + "callsites", "caseless", "cidr-regex", "clean-stack", @@ -114,33 +127,70 @@ "common-ancestor-path", "concat-map", "console-control-strings", + "contains-path", "core-util-is", + "cross-spawn", "dashdash", "debug", "debuglog", + "deep-is", "defaults", + "define-properties", "delayed-stream", "delegates", "depd", "dezalgo", + "doctrine", "ecc-jsbn", "emoji-regex", "encoding", + "enquirer", "env-paths", "err-code", + "error-ex", + "es-abstract", + "es-to-primitive", + "eslint", + "eslint-import-resolver-node", + "eslint-module-utils", + "eslint-plugin-es", + "eslint-plugin-import", + "eslint-plugin-node", + "eslint-plugin-promise", + "eslint-plugin-standard", + "eslint-scope", + "eslint-utils", + "eslint-visitor-keys", + "espree", + "esprima", + "esquery", + "esrecurse", + "estraverse", + "esutils", "extend", "extsprintf", "fast-deep-equal", "fast-json-stable-stringify", + "fast-levenshtein", + "file-entry-cache", + "find-up", + "flat-cache", + "flatted", "forever-agent", "form-data", "fs-minipass", "fs.realpath", + "function-bind", + "functional-red-black-tree", "gauge", "getpass", + "glob-parent", + "globals", "har-schema", "har-validator", + "has", "has-flag", + "has-symbols", "has-unicode", "http-cache-semantics", "http-proxy-agent", @@ -148,33 +198,52 @@ "https-proxy-agent", "humanize-ms", "iconv-lite", + "ignore", "ignore-walk", + "import-fresh", "imurmurhash", "indent-string", "infer-owner", "inflight", "ip", "ip-regex", + "is-arrayish", + "is-callable", + "is-date-object", + "is-extglob", "is-fullwidth-code-point", + "is-glob", "is-lambda", + "is-negative-zero", + "is-regex", + "is-string", + "is-symbol", "is-typedarray", "isarray", "isexe", "isstream", + "js-tokens", + "js-yaml", "jsbn", "json-parse-even-better-errors", "json-schema", "json-schema-traverse", + "json-stable-stringify-without-jsonify", "json-stringify-nice", "json-stringify-safe", "jsonparse", "jsprim", "just-diff", "just-diff-apply", + "levn", + "load-json-file", + "locate-path", + "lodash", "lru-cache", "mime-db", "mime-types", "minimatch", + "minimist", "minipass", "minipass-collect", "minipass-fetch", @@ -184,6 +253,7 @@ "minipass-sized", "minizlib", "mute-stream", + "natural-compare", "npm-bundled", "npm-install-checks", "npm-normalize-package-bin", @@ -191,12 +261,29 @@ "number-is-nan", "oauth-sign", "object-assign", + "object-inspect", + "object-keys", + "object.assign", + "object.values", "once", + "optionator", + "p-limit", + "p-locate", "p-map", + "p-try", + "parent-module", + "parse-json", + "path-exists", "path-is-absolute", + "path-key", "path-parse", + "path-type", "performance-now", + "pify", + "pkg-dir", + "prelude-ls", "process-nextick-args", + "progress", "promise-all-reject-late", "promise-call-limit", "promise-inflight", @@ -207,15 +294,22 @@ "punycode", "qs", "read-cmd-shim", + "read-pkg", + "read-pkg-up", "readable-stream", "readdir-scoped-modules", + "regexpp", "request", "resolve", + "resolve-from", "retry", "safe-buffer", "safer-buffer", "set-blocking", + "shebang-command", + "shebang-regex", "signal-exit", + "slice-ansi", "smart-buffer", "socks", "socks-proxy-agent", @@ -223,27 +317,39 @@ "spdx-exceptions", "spdx-expression-parse", "spdx-license-ids", + "sprintf-js", "sshpk", "string_decoder", "string-width", + "string.prototype.trimend", + "string.prototype.trimstart", "stringify-package", "strip-ansi", + "strip-bom", + "strip-json-comments", "supports-color", + "table", "tough-cookie", "treeverse", + "tsconfig-paths", "tunnel-agent", "tweetnacl", + "type-check", + "type-fest", "typedarray-to-buffer", "unique-filename", "unique-slug", "uri-js", "util-deprecate", + "v8-compile-cache", "validate-npm-package-license", "verror", "walk-up-path", "wcwidth", "wide-align", + "word-wrap", "wrappy", + "write", "yallist" ], "license": "Artistic-2.0", @@ -280,7 +386,7 @@ "libnpmorg": "^2.0.1", "libnpmpack": "^2.0.0", "libnpmpublish": "^4.0.0", - "libnpmsearch": "^3.0.1", + "libnpmsearch": "^3.1.0", "libnpmteam": "^2.0.2", "libnpmversion": "^1.0.7", "make-fetch-happen": "^8.0.11", @@ -3974,9 +4080,9 @@ } }, "node_modules/libnpmsearch": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/libnpmsearch/-/libnpmsearch-3.0.1.tgz", - "integrity": "sha512-AiYl3w8yrSrmxnwa97bXBNTcWlDiAFIIVUGtk4yPz4YNtx9CCeGpYinZKN+G9I5KJGAS+sAVv9SykFEKextB5w==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/libnpmsearch/-/libnpmsearch-3.1.0.tgz", + "integrity": "sha512-UQyzQjtAv99kZDuijqTB2Do63qtt+2SKNOVSTnehWTQbxzXF7Jvc8UD3YNPljm8+Y5T31K2AqptbY5BD6XHlIg==", "inBundle": true, "dependencies": { "npm-registry-fetch": "^9.0.0" @@ -11725,9 +11831,9 @@ } }, "libnpmsearch": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/libnpmsearch/-/libnpmsearch-3.0.1.tgz", - "integrity": "sha512-AiYl3w8yrSrmxnwa97bXBNTcWlDiAFIIVUGtk4yPz4YNtx9CCeGpYinZKN+G9I5KJGAS+sAVv9SykFEKextB5w==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/libnpmsearch/-/libnpmsearch-3.1.0.tgz", + "integrity": "sha512-UQyzQjtAv99kZDuijqTB2Do63qtt+2SKNOVSTnehWTQbxzXF7Jvc8UD3YNPljm8+Y5T31K2AqptbY5BD6XHlIg==", "requires": { "npm-registry-fetch": "^9.0.0" } diff --git a/package.json b/package.json index dec87faf6..299c628af 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,7 @@ "libnpmorg": "^2.0.1", "libnpmpack": "^2.0.0", "libnpmpublish": "^4.0.0", - "libnpmsearch": "^3.0.1", + "libnpmsearch": "^3.1.0", "libnpmteam": "^2.0.2", "libnpmversion": "^1.0.7", "make-fetch-happen": "^8.0.11", -- cgit v1.2.3