diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2024-09-13 15:27:20 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-13 15:27:20 +0100 |
| commit | 8539cacbbe7dd7e5bece23b971cf1792f9ade3e7 (patch) | |
| tree | 311368b8c8f86a4c36f71a84be9b9d5df1724302 /tests/registry/npm/@npmcli | |
| parent | 1270d9bc93dc6bceb0ae45b73ca154bbcf1a5db8 (diff) | |
chore: update more registry.json files (#25615)
Extracted out of https://github.com/denoland/deno/pull/25614
It's better for these to be non-minified because then diffs are better
when adding new versions.
Diffstat (limited to 'tests/registry/npm/@npmcli')
| -rw-r--r-- | tests/registry/npm/@npmcli/agent/registry.json | 99 | ||||
| -rw-r--r-- | tests/registry/npm/@npmcli/fs/registry.json | 85 |
2 files changed, 182 insertions, 2 deletions
diff --git a/tests/registry/npm/@npmcli/agent/registry.json b/tests/registry/npm/@npmcli/agent/registry.json index 40237be0b..452ecb94a 100644 --- a/tests/registry/npm/@npmcli/agent/registry.json +++ b/tests/registry/npm/@npmcli/agent/registry.json @@ -1 +1,98 @@ -{"name":"@npmcli/agent","description":"the http/https agent used by the npm cli","dist-tags":{"latest":"2.2.2"},"versions":{"2.2.2":{"name":"@npmcli/agent","version":"2.2.2","author":{"name":"GitHub Inc."},"license":"ISC","_id":"@npmcli/agent@2.2.2","bugs":{"url":"https://github.com/npm/agent/issues"},"tap":{"nyc-arg":["--exclude","tap-snapshots/**"]},"dist":{"shasum":"967604918e62f620a648c7975461c9c9e74fc5d5","tarball":"http://localhost:4260/@npmcli/agent/agent-2.2.2.tgz","fileCount":8,"integrity":"sha512-OrcNPXdpSl9UX7qPVRWbmWMCSXrcDa2M9DvrbOTj7ao1S4PlqVFYv9/yLKMkrJKZ/V5A/kDBC690or307i26Og==","signatures":[{"sig":"MEYCIQD8utuvBD/N8G0uYr0HEHH22zAe3c5tqP0Gj0z80N+saQIhAJu+Qf6LE+R2RmJtdZVBAIPYico2M8zk7QAOpDwjstzf","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"http://localhost:4260/attestations/@npmcli%2fagent@2.2.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":17739},"main":"lib/index.js","engines":{"node":"^16.14.0 || >=18.0.0"},"gitHead":"47b9043b041c5ab982810fe16ea1c16e9ad9024e","scripts":{"lint":"eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"","snap":"tap","test":"tap","lintfix":"npm run lint -- --fix","gencerts":"bash scripts/create-cert.sh","postlint":"template-oss-check","posttest":"npm run lint","template-oss-apply":"template-oss-apply --force"},"repository":{"url":"git+https://github.com/npm/agent.git","type":"git"},"_npmVersion":"10.5.0","description":"the http/https agent used by the npm cli","directories":{},"templateOSS":{"publish":"true","version":"4.21.3","//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten."},"_nodeVersion":"20.11.1","dependencies":{"lru-cache":"^10.0.1","agent-base":"^7.1.0","http-proxy-agent":"^7.0.0","https-proxy-agent":"^7.0.1","socks-proxy-agent":"^8.0.3"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^16.3.0","nock":"^13.2.7","semver":"^7.5.4","simple-socks":"^3.1.0","minipass-fetch":"^3.0.3","@npmcli/template-oss":"4.21.3","@npmcli/eslint-config":"^4.0.0"}}},"author":{"name":"GitHub Inc."},"repository":{"url":"git+https://github.com/npm/agent.git","type":"git"},"license":"ISC","homepage":"https://github.com/npm/agent#readme","bugs":{"url":"https://github.com/npm/agent/issues"},"readme":"## @npmcli/agent\n\nA pair of Agent implementations for nodejs that provide consistent keep-alives, granular timeouts, dns caching, and proxy support.\n\n### Usage\n\n```js\nconst { getAgent, HttpAgent } = require('@npmcli/agent')\nconst fetch = require('minipass-fetch')\n\nconst main = async () => {\n // if you know what agent you need, you can create one directly\n const agent = new HttpAgent(agentOptions)\n // or you can use the getAgent helper, it will determine and create an Agent\n // instance for you as well as reuse that agent for new requests as appropriate\n const agent = getAgent('https://registry.npmjs.org/npm', agentOptions)\n // minipass-fetch is just an example, this will work for any http client that\n // supports node's Agents\n const res = await fetch('https://registry.npmjs.org/npm', { agent })\n}\n\nmain()\n```\n\n### Options\n\nAll options supported by the node Agent implementations are supported here, see [the docs](https://nodejs.org/api/http.html#new-agentoptions) for those.\n\nOptions that have been added by this module include:\n\n- `family`: what tcp family to use, can be `4` for IPv4, `6` for IPv6 or `0` for both.\n- `proxy`: a URL to a supported proxy, currently supports `HTTP CONNECT` based http/https proxies as well as socks4 and 5.\n- `dns`: configuration for the built-in dns cache\n - `ttl`: how long (in milliseconds) to keep cached dns entries, defaults to `5 * 60 * 100 (5 minutes)`\n - `lookup`: optional function to override how dns lookups are performed, defaults to `require('dns').lookup`\n- `timeouts`: a set of granular timeouts, all default to `0`\n - `connection`: time between initiating connection and actually connecting\n - `idle`: time between data packets (if a top level `timeout` is provided, it will be copied here)\n - `response`: time between sending a request and receiving a response\n - `transfer`: time between starting to receive a request and consuming the response fully\n","readmeFilename":"README.md"} +{ + "name": "@npmcli/agent", + "description": "the http/https agent used by the npm cli", + "dist-tags": { + "latest": "2.2.2" + }, + "versions": { + "2.2.2": { + "name": "@npmcli/agent", + "version": "2.2.2", + "author": { + "name": "GitHub Inc." + }, + "license": "ISC", + "_id": "@npmcli/agent@2.2.2", + "bugs": { + "url": "https://github.com/npm/agent/issues" + }, + "tap": { + "nyc-arg": [ + "--exclude", + "tap-snapshots/**" + ] + }, + "dist": { + "shasum": "967604918e62f620a648c7975461c9c9e74fc5d5", + "tarball": "http://localhost:4260/@npmcli/agent/agent-2.2.2.tgz", + "fileCount": 8, + "integrity": "sha512-OrcNPXdpSl9UX7qPVRWbmWMCSXrcDa2M9DvrbOTj7ao1S4PlqVFYv9/yLKMkrJKZ/V5A/kDBC690or307i26Og==", + "attestations": { + "url": "http://localhost:4260/attestations/@npmcli%2fagent@2.2.2", + "provenance": { + "predicateType": "https://slsa.dev/provenance/v1" + } + }, + "unpackedSize": 17739 + }, + "main": "lib/index.js", + "engines": { + "node": "^16.14.0 || >=18.0.0" + }, + "gitHead": "47b9043b041c5ab982810fe16ea1c16e9ad9024e", + "scripts": { + "lint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"", + "snap": "tap", + "test": "tap", + "lintfix": "npm run lint -- --fix", + "gencerts": "bash scripts/create-cert.sh", + "postlint": "template-oss-check", + "posttest": "npm run lint", + "template-oss-apply": "template-oss-apply --force" + }, + "repository": { + "url": "git+https://github.com/npm/agent.git", + "type": "git" + }, + "_npmVersion": "10.5.0", + "description": "the http/https agent used by the npm cli", + "directories": {}, + "templateOSS": { + "publish": "true", + "version": "4.21.3", + "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten." + }, + "_nodeVersion": "20.11.1", + "dependencies": { + "lru-cache": "^10.0.1", + "agent-base": "^7.1.0", + "http-proxy-agent": "^7.0.0", + "https-proxy-agent": "^7.0.1", + "socks-proxy-agent": "^8.0.3" + }, + "_hasShrinkwrap": false, + "devDependencies": { + "tap": "^16.3.0", + "nock": "^13.2.7", + "semver": "^7.5.4", + "simple-socks": "^3.1.0", + "minipass-fetch": "^3.0.3", + "@npmcli/template-oss": "4.21.3", + "@npmcli/eslint-config": "^4.0.0" + } + } + }, + "author": { + "name": "GitHub Inc." + }, + "repository": { + "url": "git+https://github.com/npm/agent.git", + "type": "git" + }, + "license": "ISC", + "homepage": "https://github.com/npm/agent#readme", + "bugs": { + "url": "https://github.com/npm/agent/issues" + }, + "readmeFilename": "README.md" +} diff --git a/tests/registry/npm/@npmcli/fs/registry.json b/tests/registry/npm/@npmcli/fs/registry.json index 85cb620cb..3864ebd67 100644 --- a/tests/registry/npm/@npmcli/fs/registry.json +++ b/tests/registry/npm/@npmcli/fs/registry.json @@ -1 +1,84 @@ -{"name":"@npmcli/fs","description":"filesystem utilities for the npm cli","dist-tags":{"latest":"3.1.1"},"versions":{"3.1.1":{"name":"@npmcli/fs","version":"3.1.1","author":{"name":"GitHub Inc."},"license":"ISC","_id":"@npmcli/fs@3.1.1","bugs":{"url":"https://github.com/npm/fs/issues"},"tap":{"nyc-arg":["--exclude","tap-snapshots/**"]},"dist":{"shasum":"59cdaa5adca95d135fc00f2bb53f5771575ce726","tarball":"http://localhost:4260/@npmcli/fs/fs-3.1.1.tgz","fileCount":13,"integrity":"sha512-q9CRWjpHCMIh5sVyefoD1cA7PkvILqCZsnSOEUUivORLjxCO/Irmue2DprETiNgEqktDBZaM1Bi+jrarx1XdCg==","signatures":[{"sig":"MEQCIGgGtUq4+uzs0XScvlFRq+OwngJ/rv7arf79l9nlbNG8AiBdjGr9Hq1zFtsBVRBKL45mZOkBR8qHofq5eZRE9wke5Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26547},"main":"lib/index.js","engines":{"node":"^14.17.0 || ^16.13.0 || >=18.0.0"},"gitHead":"6f51359dd52cd06bd4cb2c36202163f330c528c4","scripts":{"lint":"eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"","snap":"tap","test":"tap","lintfix":"npm run lint -- --fix","postlint":"template-oss-check","postsnap":"npm run lintfix --","posttest":"npm run lint","npmclilint":"npmcli-lint","template-oss-apply":"template-oss-apply --force"},"repository":{"url":"git+https://github.com/npm/fs.git","type":"git"},"_npmVersion":"10.7.0","description":"filesystem utilities for the npm cli","directories":{},"templateOSS":{"version":"4.22.0","//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten."},"_nodeVersion":"20.7.0","dependencies":{"semver":"^7.3.5"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^16.0.1","@npmcli/template-oss":"4.22.0","@npmcli/eslint-config":"^4.0.0"}}},"author":{"name":"GitHub Inc."},"repository":{"url":"git+https://github.com/npm/fs.git","type":"git"},"license":"ISC","homepage":"https://github.com/npm/fs#readme","bugs":{"url":"https://github.com/npm/fs/issues"},"readme":"# @npmcli/fs\n\npolyfills, and extensions, of the core `fs` module.\n\n## Features\n\n- `fs.cp` polyfill for node < 16.7.0\n- `fs.withTempDir` added\n- `fs.readdirScoped` added\n- `fs.moveFile` added\n\n## `fs.withTempDir(root, fn, options) -> Promise`\n\n### Parameters\n\n- `root`: the directory in which to create the temporary directory\n- `fn`: a function that will be called with the path to the temporary directory\n- `options`\n - `tmpPrefix`: a prefix to be used in the generated directory name\n\n### Usage\n\nThe `withTempDir` function creates a temporary directory, runs the provided\nfunction (`fn`), then removes the temporary directory and resolves or rejects\nbased on the result of `fn`.\n\n```js\nconst fs = require('@npmcli/fs')\nconst os = require('os')\n\n// this function will be called with the full path to the temporary directory\n// it is called with `await` behind the scenes, so can be async if desired.\nconst myFunction = async (tempPath) => {\n return 'done!'\n}\n\nconst main = async () => {\n const result = await fs.withTempDir(os.tmpdir(), myFunction)\n // result === 'done!'\n}\n\nmain()\n```\n\n## `fs.readdirScoped(root) -> Promise`\n\n### Parameters\n\n- `root`: the directory to read\n\n### Usage\n\nLike `fs.readdir` but handling `@org/module` dirs as if they were\na single entry.\n\n```javascript\nconst { readdirScoped } = require('@npmcli/fs')\nconst entries = await readdirScoped('node_modules')\n// entries will be something like: ['a', '@org/foo', '@org/bar']\n```\n\n## `fs.moveFile(source, dest, options) -> Promise`\n\nA fork of [move-file](https://github.com/sindresorhus/move-file) with\nsupport for Common JS.\n\n### Highlights\n\n- Promise API.\n- Supports moving a file across partitions and devices.\n- Optionally prevent overwriting an existing file.\n- Creates non-existent destination directories for you.\n- Automatically recurses when source is a directory.\n\n### Parameters\n\n- `source`: File, or directory, you want to move.\n- `dest`: Where you want the file or directory moved.\n- `options`\n - `overwrite` (`boolean`, default: `true`): Overwrite existing destination file(s).\n\n### Usage\n\nThe built-in\n[`fs.rename()`](https://nodejs.org/api/fs.html#fs_fs_rename_oldpath_newpath_callback)\nis just a JavaScript wrapper for the C `rename(2)` function, which doesn't\nsupport moving files across partitions or devices. This module is what you\nwould have expected `fs.rename()` to be.\n\n```js\nconst { moveFile } = require('@npmcli/fs');\n\n(async () => {\n\tawait moveFile('source/unicorn.png', 'destination/unicorn.png');\n\tconsole.log('The file has been moved');\n})();\n```\n","readmeFilename":"README.md"} +{ + "name": "@npmcli/fs", + "description": "filesystem utilities for the npm cli", + "dist-tags": { + "latest": "3.1.1" + }, + "versions": { + "3.1.1": { + "name": "@npmcli/fs", + "version": "3.1.1", + "author": { + "name": "GitHub Inc." + }, + "license": "ISC", + "_id": "@npmcli/fs@3.1.1", + "bugs": { + "url": "https://github.com/npm/fs/issues" + }, + "tap": { + "nyc-arg": [ + "--exclude", + "tap-snapshots/**" + ] + }, + "dist": { + "shasum": "59cdaa5adca95d135fc00f2bb53f5771575ce726", + "tarball": "http://localhost:4260/@npmcli/fs/fs-3.1.1.tgz", + "fileCount": 13, + "integrity": "sha512-q9CRWjpHCMIh5sVyefoD1cA7PkvILqCZsnSOEUUivORLjxCO/Irmue2DprETiNgEqktDBZaM1Bi+jrarx1XdCg==", + "unpackedSize": 26547 + }, + "main": "lib/index.js", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + }, + "gitHead": "6f51359dd52cd06bd4cb2c36202163f330c528c4", + "scripts": { + "lint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"", + "snap": "tap", + "test": "tap", + "lintfix": "npm run lint -- --fix", + "postlint": "template-oss-check", + "postsnap": "npm run lintfix --", + "posttest": "npm run lint", + "npmclilint": "npmcli-lint", + "template-oss-apply": "template-oss-apply --force" + }, + "repository": { + "url": "git+https://github.com/npm/fs.git", + "type": "git" + }, + "_npmVersion": "10.7.0", + "description": "filesystem utilities for the npm cli", + "directories": {}, + "templateOSS": { + "version": "4.22.0", + "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten." + }, + "_nodeVersion": "20.7.0", + "dependencies": { + "semver": "^7.3.5" + }, + "_hasShrinkwrap": false, + "devDependencies": { + "tap": "^16.0.1", + "@npmcli/template-oss": "4.22.0", + "@npmcli/eslint-config": "^4.0.0" + } + } + }, + "author": { + "name": "GitHub Inc." + }, + "repository": { + "url": "git+https://github.com/npm/fs.git", + "type": "git" + }, + "license": "ISC", + "homepage": "https://github.com/npm/fs#readme", + "bugs": { + "url": "https://github.com/npm/fs/issues" + }, + "readmeFilename": "README.md" +} |
