diff --git a/tests/registry/npm/@babel/parser/registry.json b/tests/registry/npm/@babel/parser/registry.json index bc61187766..a7e2b8c605 100644 --- a/tests/registry/npm/@babel/parser/registry.json +++ b/tests/registry/npm/@babel/parser/registry.json @@ -1 +1,60 @@ -{"name":"@babel/parser","dist-tags":{"latest":"7.19.0"},"versions":{"7.19.0":{"name":"@babel/parser","version":"7.19.0","description":"A JavaScript parser","author":"The Babel Team (https://babel.dev/team)","bugs":"https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A+parser+%28babylon%29%22+is%3Aopen","license":"MIT","publishConfig":{"access":"public"},"repository":{"type":"git","url":"https://github.com/babel/babel.git","directory":"packages/babel-parser"},"main":"./lib/index.js","types":"./typings/babel-parser.d.ts","engines":{"node":">=6.0.0"},"devDependencies":{"@babel/code-frame":"^7.18.6","@babel/helper-check-duplicate-nodes":"^7.18.6","@babel/helper-fixtures":"^7.18.6","@babel/helper-string-parser":"^7.18.10","@babel/helper-validator-identifier":"^7.18.6","charcodes":"^0.2.0"},"bin":"./bin/babel-parser.js","type":"commonjs","_id":"@babel/parser@7.19.0","dist":{"shasum":"497fcafb1d5b61376959c1c338745ef0577aa02c","integrity":"sha512-74bEXKX2h+8rrfQUfsBfuZZHzsEs6Eql4pqy/T4Nn6Y9wNPggQOqD6z6pn5Bl8ZfysKouFZT/UXEH94ummEeQw==","tarball":"http://localhost:4260/@babel/parser/parser-7.19.0.tgz","fileCount":9,"unpackedSize":1926947,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDLyuxYEcwPpnDSd5zj2aROo6jy2I5H16rb6yp5bNvX6wIgIO6qzfHVZrGoqEI+b73UoltOUMNIGX5xfRipuXpJOvw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjFke1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr75g//fJSB/F+s79C65oFQclZV5zUctAHp2uUZxhBecOQM6CiVDH0X\r\nrhKpS1pvKH/TwknXHNx8dQfqgYB/fHBmHixftlQ6vcPhrX4R2dxTAbgOj/kJ\r\nB9VDiVVK4rKhm9OuuTLA/xRpWtFE3H18Qlo3Zoxh8SIR8udGSXGj7fYXNUgk\r\nGuZEFZqp5FXDY+Cx34BH0nVfcZGe5HUcOfRjpVc9yn1DrRWVzHKTZEGgiBXo\r\nJmbSzA+eUqIUDjmuCTKz66TPfMNC9hFRPDqcg4usP7bwOOkZ+xx7PNEeO4SI\r\nP53pUPx54CgR5fOoW/ue5Y4aWSIUrrf/txRwgeEaf+tYzegDeSfliUKEgS2h\r\nH3+1BdwymdJKuv3cveInyj5DRdepcmhTCUS2WHH/d4NnXw/lsutspw6PPr5h\r\nFnfMucSyyoHchCTluV9dR9RzTjZjbtU8X6Ad/SbYR5YlETMs0JhHu54/eWpF\r\nv+A5EBeacpscE1EnDrZOIYYFpexRCPiwr/wy0dqHIuI1Z2CoZ5+0SPt472pI\r\nWH5DCEsSn4H/LzDW1lepdyDfaScCNRzurxk6t4GBI/kk/62UqW5UoJ/tOC7u\r\n4dHRQETuK/szceMTuvHL9epnmiKcILvCxPMbSH5yxENdB8P8RqxB5qv77e2j\r\nIVyBYqXWg2l54A734Z86VjtCavQuooWavVQ=\r\n=35HW\r\n-----END PGP SIGNATURE-----\r\n"},"directories":{},"_hasShrinkwrap":false}},"description":"A JavaScript parser","homepage":"https://babel.dev/docs/en/next/babel-parser","repository":{"type":"git","url":"https://github.com/babel/babel.git","directory":"packages/babel-parser"},"author":"The Babel Team (https://babel.dev/team)","license":"MIT","readme":"","readmeFilename":"","bugs":"https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A+parser+%28babylon%29%22+is%3Aopen"} +{ + "name": "@babel/parser", + "dist-tags": { + "latest": "7.19.0" + }, + "versions": { + "7.19.0": { + "name": "@babel/parser", + "version": "7.19.0", + "description": "A JavaScript parser", + "author": "The Babel Team (https://babel.dev/team)", + "bugs": "https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A+parser+%28babylon%29%22+is%3Aopen", + "license": "MIT", + "publishConfig": { + "access": "public" + }, + "repository": { + "type": "git", + "url": "https://github.com/babel/babel.git", + "directory": "packages/babel-parser" + }, + "main": "./lib/index.js", + "types": "./typings/babel-parser.d.ts", + "engines": { + "node": ">=6.0.0" + }, + "devDependencies": { + "@babel/code-frame": "^7.18.6", + "@babel/helper-check-duplicate-nodes": "^7.18.6", + "@babel/helper-fixtures": "^7.18.6", + "@babel/helper-string-parser": "^7.18.10", + "@babel/helper-validator-identifier": "^7.18.6", + "charcodes": "^0.2.0" + }, + "bin": "./bin/babel-parser.js", + "type": "commonjs", + "_id": "@babel/parser@7.19.0", + "dist": { + "shasum": "497fcafb1d5b61376959c1c338745ef0577aa02c", + "integrity": "sha512-74bEXKX2h+8rrfQUfsBfuZZHzsEs6Eql4pqy/T4Nn6Y9wNPggQOqD6z6pn5Bl8ZfysKouFZT/UXEH94ummEeQw==", + "tarball": "http://localhost:4260/@babel/parser/parser-7.19.0.tgz", + "fileCount": 9, + "unpackedSize": 1926947 + }, + "directories": {}, + "_hasShrinkwrap": false + } + }, + "description": "A JavaScript parser", + "homepage": "https://babel.dev/docs/en/next/babel-parser", + "repository": { + "type": "git", + "url": "https://github.com/babel/babel.git", + "directory": "packages/babel-parser" + }, + "author": "The Babel Team (https://babel.dev/team)", + "license": "MIT", + "readmeFilename": "", + "bugs": "https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A+parser+%28babylon%29%22+is%3Aopen" +} diff --git a/tests/registry/npm/@isaacs/cliui/registry.json b/tests/registry/npm/@isaacs/cliui/registry.json index e9a0282c66..9cef3f6e50 100644 --- a/tests/registry/npm/@isaacs/cliui/registry.json +++ b/tests/registry/npm/@isaacs/cliui/registry.json @@ -1 +1,117 @@ -{"name":"@isaacs/cliui","dist-tags":{"latest":"8.0.2"},"versions":{"8.0.2":{"name":"@isaacs/cliui","version":"8.0.2","description":"easily create complex multi-column command-line-interfaces","main":"build/index.cjs","exports":{".":[{"import":"./index.mjs","require":"./build/index.cjs"},"./build/index.cjs"]},"type":"module","module":"./index.mjs","scripts":{"check":"standardx '**/*.ts' && standardx '**/*.js' && standardx '**/*.cjs'","fix":"standardx --fix '**/*.ts' && standardx --fix '**/*.js' && standardx --fix '**/*.cjs'","pretest":"rimraf build && tsc -p tsconfig.test.json && cross-env NODE_ENV=test npm run build:cjs","test":"c8 mocha ./test/*.cjs","test:esm":"c8 mocha ./test/**/*.mjs","postest":"check","coverage":"c8 report --check-coverage","precompile":"rimraf build","compile":"tsc","postcompile":"npm run build:cjs","build:cjs":"rollup -c","prepare":"npm run compile"},"repository":{"type":"git","url":"git+https://github.com/yargs/cliui.git"},"standard":{"ignore":["**/example/**"],"globals":["it"]},"author":{"name":"Ben Coe","email":"ben@npmjs.com"},"license":"ISC","dependencies":{"string-width":"^5.1.2","string-width-cjs":"npm:string-width@^4.2.0","strip-ansi":"^7.0.1","strip-ansi-cjs":"npm:strip-ansi@^6.0.1","wrap-ansi":"^8.1.0","wrap-ansi-cjs":"npm:wrap-ansi@^7.0.0"},"devDependencies":{"@types/node":"^14.0.27","@typescript-eslint/eslint-plugin":"^4.0.0","@typescript-eslint/parser":"^4.0.0","c8":"^7.3.0","chai":"^4.2.0","chalk":"^4.1.0","cross-env":"^7.0.2","eslint":"^7.6.0","eslint-plugin-import":"^2.22.0","eslint-plugin-node":"^11.1.0","gts":"^3.0.0","mocha":"^10.0.0","rimraf":"^3.0.2","rollup":"^2.23.1","rollup-plugin-ts":"^3.0.2","standardx":"^7.0.0","typescript":"^4.0.0"},"engines":{"node":">=12"},"gitHead":"aa397fedbd0550c9925af6b62f970de663285641","bugs":{"url":"https://github.com/yargs/cliui/issues"},"_id":"@isaacs/cliui@8.0.2","_nodeVersion":"18.16.0","_npmVersion":"9.6.5","dist":{"integrity":"sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==","shasum":"b37667b7bc181c168782259bab42474fbf52b550","tarball":"http://localhost:4260/@isaacs/cliui/cliui-8.0.2.tgz","fileCount":7,"unpackedSize":27797,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCelNZKJbAgma4U+TKy/m8jcOFEB03QqxhuvMsoQQpI9AIgMX6M/cVX8QYc0s3/19XRfc/+14yhVC1V1t5pwSlM4YE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUIJsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqkUQ/9HQ98oHBZHe6doxpZP74q0cHYRHcXj48JnBhVRF7irHTYfw48\r\nJA4Jbgkcg0ZtTd0J7OFjpPbjjLAcqTBwPxMRVYZ+ec7a8AmKyGwVF1nhxryX\r\npjqsBixCyXQfxVz3xw7yrN0j+Tvk2luLgku7Exm9jp99H+46FiGEuerisJ84\r\nyCp9WByM92ONza6MlGhFe2+4jxx4lPMm4G35DkLgM3hXklh34xPUDG9cgZ8Q\r\nmOoqRQ1IAYsGTqj/2jdmsO9pFMqzvE2GAphuNCpK07dAZx2VNoQUHLSNnVUp\r\nBw3hUCHPJSDwSVbmU4y7VxnYXBA6C4TVwc1G1qxBa5C51v95y2vk2OQReVk0\r\nkwHByA/JC0dYpglbH3uXG7CDk0D0CHrV5qoYTJpsvL4yzM2FR1JlbMdEr7mP\r\npMl1aoLfjDe/NSADR/nOA9diNKwVqXv6f7EhzshqmZrGS0PpVS2L8hV6cWbp\r\nLB6DclAOfOHgZndZE+gbsWkVlkkduPS/Lbfi15G0KG+pbEnJBk7/uTnGqr5f\r\ndYN3SCTdMh4KVLtSA8RJ6iJxcMuQbQoQuJt5jPl64Q2aCU9IB2H56F22yExR\r\nY6e8sxYnXVyI+VhDFpjANMQPpXrlirlpO+tQn2R3mOj0LUKJTlnjb5kBNb4E\r\n1Cnqd7sdwVXry1Y98a2qt+GY+HY4LHIm6Rc=\r\n=uzAW\r\n-----END PGP SIGNATURE-----\r\n"},"directories":{},"_hasShrinkwrap":false}},"description":"easily create complex multi-column command-line-interfaces","homepage":"https://github.com/yargs/cliui#readme","repository":{"type":"git","url":"git+https://github.com/yargs/cliui.git"},"author":{"name":"Ben Coe","email":"ben@npmjs.com"},"bugs":{"url":"https://github.com/yargs/cliui/issues"},"license":"ISC","readme":"# @isaacs/cliui\n\nTemporary fork of [cliui](http://npm.im/cliui).\n\n![ci](https://github.com/yargs/cliui/workflows/ci/badge.svg)\n[![NPM version](https://img.shields.io/npm/v/cliui.svg)](https://www.npmjs.com/package/cliui)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)\n![nycrc config on GitHub](https://img.shields.io/nycrc/yargs/cliui)\n\neasily create complex multi-column command-line-interfaces.\n\n## Example\n\n```js\nconst ui = require('cliui')()\n\nui.div('Usage: $0 [command] [options]')\n\nui.div({\n text: 'Options:',\n padding: [2, 0, 1, 0]\n})\n\nui.div(\n {\n text: \"-f, --file\",\n width: 20,\n padding: [0, 4, 0, 4]\n },\n {\n text: \"the file to load.\" +\n chalk.green(\"(if this description is long it wraps).\")\n ,\n width: 20\n },\n {\n text: chalk.red(\"[required]\"),\n align: 'right'\n }\n)\n\nconsole.log(ui.toString())\n```\n\n## Deno/ESM Support\n\nAs of `v7` `cliui` supports [Deno](https://github.com/denoland/deno) and\n[ESM](https://nodejs.org/api/esm.html#esm_ecmascript_modules):\n\n```typescript\nimport cliui from \"https://deno.land/x/cliui/deno.ts\";\n\nconst ui = cliui({})\n\nui.div('Usage: $0 [command] [options]')\n\nui.div({\n text: 'Options:',\n padding: [2, 0, 1, 0]\n})\n\nui.div({\n text: \"-f, --file\",\n width: 20,\n padding: [0, 4, 0, 4]\n})\n\nconsole.log(ui.toString())\n```\n\n\n\n## Layout DSL\n\ncliui exposes a simple layout DSL:\n\nIf you create a single `ui.div`, passing a string rather than an\nobject:\n\n* `\\n`: characters will be interpreted as new rows.\n* `\\t`: characters will be interpreted as new columns.\n* `\\s`: characters will be interpreted as padding.\n\n**as an example...**\n\n```js\nvar ui = require('./')({\n width: 60\n})\n\nui.div(\n 'Usage: node ./bin/foo.js\\n' +\n ' \\t provide a regex\\n' +\n ' \\t provide a glob\\t [required]'\n)\n\nconsole.log(ui.toString())\n```\n\n**will output:**\n\n```shell\nUsage: node ./bin/foo.js\n provide a regex\n provide a glob [required]\n```\n\n## Methods\n\n```js\ncliui = require('cliui')\n```\n\n### cliui({width: integer})\n\nSpecify the maximum width of the UI being generated.\nIf no width is provided, cliui will try to get the current window's width and use it, and if that doesn't work, width will be set to `80`.\n\n### cliui({wrap: boolean})\n\nEnable or disable the wrapping of text in a column.\n\n### cliui.div(column, column, column)\n\nCreate a row with any number of columns, a column\ncan either be a string, or an object with the following\noptions:\n\n* **text:** some text to place in the column.\n* **width:** the width of a column.\n* **align:** alignment, `right` or `center`.\n* **padding:** `[top, right, bottom, left]`.\n* **border:** should a border be placed around the div?\n\n### cliui.span(column, column, column)\n\nSimilar to `div`, except the next row will be appended without\na new line being created.\n\n### cliui.resetOutput()\n\nResets the UI elements of the current cliui instance, maintaining the values\nset for `width` and `wrap`.\n","readmeFilename":"README.md"} +{ + "name": "@isaacs/cliui", + "dist-tags": { + "latest": "8.0.2" + }, + "versions": { + "8.0.2": { + "name": "@isaacs/cliui", + "version": "8.0.2", + "description": "easily create complex multi-column command-line-interfaces", + "main": "build/index.cjs", + "exports": { + ".": [ + { + "import": "./index.mjs", + "require": "./build/index.cjs" + }, + "./build/index.cjs" + ] + }, + "type": "module", + "module": "./index.mjs", + "scripts": { + "check": "standardx '**/*.ts' && standardx '**/*.js' && standardx '**/*.cjs'", + "fix": "standardx --fix '**/*.ts' && standardx --fix '**/*.js' && standardx --fix '**/*.cjs'", + "pretest": "rimraf build && tsc -p tsconfig.test.json && cross-env NODE_ENV=test npm run build:cjs", + "test": "c8 mocha ./test/*.cjs", + "test:esm": "c8 mocha ./test/**/*.mjs", + "postest": "check", + "coverage": "c8 report --check-coverage", + "precompile": "rimraf build", + "compile": "tsc", + "postcompile": "npm run build:cjs", + "build:cjs": "rollup -c", + "prepare": "npm run compile" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/yargs/cliui.git" + }, + "standard": { + "ignore": [ + "**/example/**" + ], + "globals": [ + "it" + ] + }, + "author": { + "name": "Ben Coe", + "email": "ben@npmjs.com" + }, + "license": "ISC", + "dependencies": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "devDependencies": { + "@types/node": "^14.0.27", + "@typescript-eslint/eslint-plugin": "^4.0.0", + "@typescript-eslint/parser": "^4.0.0", + "c8": "^7.3.0", + "chai": "^4.2.0", + "chalk": "^4.1.0", + "cross-env": "^7.0.2", + "eslint": "^7.6.0", + "eslint-plugin-import": "^2.22.0", + "eslint-plugin-node": "^11.1.0", + "gts": "^3.0.0", + "mocha": "^10.0.0", + "rimraf": "^3.0.2", + "rollup": "^2.23.1", + "rollup-plugin-ts": "^3.0.2", + "standardx": "^7.0.0", + "typescript": "^4.0.0" + }, + "engines": { + "node": ">=12" + }, + "gitHead": "aa397fedbd0550c9925af6b62f970de663285641", + "bugs": { + "url": "https://github.com/yargs/cliui/issues" + }, + "_id": "@isaacs/cliui@8.0.2", + "_nodeVersion": "18.16.0", + "_npmVersion": "9.6.5", + "dist": { + "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "shasum": "b37667b7bc181c168782259bab42474fbf52b550", + "tarball": "http://localhost:4260/@isaacs/cliui/cliui-8.0.2.tgz", + "fileCount": 7, + "unpackedSize": 27797 + }, + "directories": {}, + "_hasShrinkwrap": false + } + }, + "description": "easily create complex multi-column command-line-interfaces", + "homepage": "https://github.com/yargs/cliui#readme", + "repository": { + "type": "git", + "url": "git+https://github.com/yargs/cliui.git" + }, + "author": { + "name": "Ben Coe", + "email": "ben@npmjs.com" + }, + "bugs": { + "url": "https://github.com/yargs/cliui/issues" + }, + "license": "ISC", + "readmeFilename": "README.md" +} diff --git a/tests/registry/npm/@ljharb/has-package-exports-patterns/registry.json b/tests/registry/npm/@ljharb/has-package-exports-patterns/registry.json index d9144c8524..c4a6c51af0 100644 --- a/tests/registry/npm/@ljharb/has-package-exports-patterns/registry.json +++ b/tests/registry/npm/@ljharb/has-package-exports-patterns/registry.json @@ -1 +1,61 @@ -{"name":"@ljharb/has-package-exports-patterns","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.2":{"name":"@ljharb/has-package-exports-patterns","version":"0.0.2","main":"./no.js","exports":{".":"./no.js","./patterns/*":"./patterns/*ed.js","./pattern-trailers/*":"./pattern-trailers/*ed.js","./pattern-trailers/*.js":"./pattern-trailers/*ed.js"},"repository":{"type":"git","url":"git+https://github.com/inspect-js/has-package-exports.git"},"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/inspect-js/has-package-exports/issues"},"publishConfig":{"access":"public"},"gitHead":"f0f693d8e03b9be35d8559df09f9d29cc93f0810","_id":"@ljharb/has-package-exports-patterns@0.0.2","_nodeVersion":"17.8.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-4/RWEeXDO6bocPONheFe6gX/oQdP/bEpv0oL4HqjPP5DCenBSt0mHgahppY49N0CpsaqffdwPq+TlX9CYOq2Dw==","shasum":"c1718939b65efa1f45f53686c2fcfa992b9fb68f","tarball":"http://localhost:4260/@ljharb/has-package-exports-patterns/has-package-exports-patterns-0.0.2.tgz","fileCount":4,"unpackedSize":770,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB2kq741WzizIG98/ELM99UeZlbDuUFh6N2Frl5pBxRFAiEAmmsPZYZVwIobIPJFHu+DlkHedTV3FZngCFTVkAlstJ4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiTnmjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmobhg/+M0JnGNgLGqhKeAP3rdF06hRZnZcwQ/aHufu6K5LKF42LQwNY\r\n0PZIpb4qyfCI+rvSbK+kat3cPuY0ZnV99slZe4ZxR85FpJm3WDm+WxHqkDi8\r\nm5G0rY6dmwTB+8o05g8pUDaxu5Pd+J5ouWXBoySzyrctNoNwslBCvXY5GZZL\r\nowcI3gOFW3uhaBUrZa955LFcB7fUEvZkD7cayMKT21lTBb2lcby3Thl7yVHE\r\nBGU/6a4spdnfOi/YsJx9R67oCqCjwt93gAAa+7rclvsOQZITiR9722toywAU\r\ny64tb8t/MSGsR4cjoBlcjrVfgMPinJSN2rIL34IijKX6pSBvGRFkWY0MqMcO\r\n/YvOH61l2ivdGEMQBxCNPsdfMXKGUKriwJ6NLUZiSMSue5cxGQASj6S5FtkA\r\nqQV7DaQTJut3mrSYL93fs5rvVubBdGw4mmIoKkuICFXAaYTCiROUCrHOnpST\r\nL1G7ZLXLkKyT1k/ISivh5vFQq17IacHCEZ/5Y56UwtSBVistNsBhuVMQSOxJ\r\nwzzi0i0+nAVrSV+OUc9y9rFgx8EMppewOMG+JlLHNMD6V6jmA2wZBgf7ek8O\r\nun9TanuxyINaWKKsqg5/fSZCXjRNDd+uGA+UlrMSoznUACz7zdG+feC1bO+k\r\nkzuAfVPdiRNcilaRUc3ihfQH9TevL0hobPA=\r\n=VOhM\r\n-----END PGP SIGNATURE-----\r\n"},"directories":{},"_hasShrinkwrap":false}},"homepage":"https://github.com/inspect-js/has-package-exports#readme","repository":{"type":"git","url":"git+https://github.com/inspect-js/has-package-exports.git"},"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"bugs":{"url":"https://github.com/inspect-js/has-package-exports/issues"},"license":"MIT","readme":"ERROR: No README data found!","readmeFilename":""} +{ + "name": "@ljharb/has-package-exports-patterns", + "dist-tags": { + "latest": "0.0.2" + }, + "versions": { + "0.0.2": { + "name": "@ljharb/has-package-exports-patterns", + "version": "0.0.2", + "main": "./no.js", + "exports": { + ".": "./no.js", + "./patterns/*": "./patterns/*ed.js", + "./pattern-trailers/*": "./pattern-trailers/*ed.js", + "./pattern-trailers/*.js": "./pattern-trailers/*ed.js" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/inspect-js/has-package-exports.git" + }, + "author": { + "name": "Jordan Harband", + "email": "ljharb@gmail.com" + }, + "license": "MIT", + "bugs": { + "url": "https://github.com/inspect-js/has-package-exports/issues" + }, + "publishConfig": { + "access": "public" + }, + "gitHead": "f0f693d8e03b9be35d8559df09f9d29cc93f0810", + "_id": "@ljharb/has-package-exports-patterns@0.0.2", + "_nodeVersion": "17.8.0", + "_npmVersion": "8.3.1", + "dist": { + "integrity": "sha512-4/RWEeXDO6bocPONheFe6gX/oQdP/bEpv0oL4HqjPP5DCenBSt0mHgahppY49N0CpsaqffdwPq+TlX9CYOq2Dw==", + "shasum": "c1718939b65efa1f45f53686c2fcfa992b9fb68f", + "tarball": "http://localhost:4260/@ljharb/has-package-exports-patterns/has-package-exports-patterns-0.0.2.tgz", + "fileCount": 4, + "unpackedSize": 770 + }, + "directories": {}, + "_hasShrinkwrap": false + } + }, + "homepage": "https://github.com/inspect-js/has-package-exports#readme", + "repository": { + "type": "git", + "url": "git+https://github.com/inspect-js/has-package-exports.git" + }, + "author": { + "name": "Jordan Harband", + "email": "ljharb@gmail.com" + }, + "bugs": { + "url": "https://github.com/inspect-js/has-package-exports/issues" + }, + "license": "MIT", + "readmeFilename": "" +} diff --git a/tests/registry/npm/@npmcli/agent/registry.json b/tests/registry/npm/@npmcli/agent/registry.json index 40237be0b8..452ecb94ad 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 85cb620cbf..3864ebd67e 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" +} diff --git a/tests/registry/npm/@pkgjs/parseargs/registry.json b/tests/registry/npm/@pkgjs/parseargs/registry.json index ca7c654f9a..035d6890f7 100644 --- a/tests/registry/npm/@pkgjs/parseargs/registry.json +++ b/tests/registry/npm/@pkgjs/parseargs/registry.json @@ -1 +1,66 @@ -{"name":"@pkgjs/parseargs","dist-tags":{"latest":"0.11.0"},"versions":{"0.11.0":{"name":"@pkgjs/parseargs","version":"0.11.0","description":"Polyfill of future proposal for `util.parseArgs()`","engines":{"node":">=14"},"main":"index.js","exports":{".":"./index.js","./package.json":"./package.json"},"scripts":{"coverage":"c8 --check-coverage tape 'test/*.js'","test":"c8 tape 'test/*.js'","posttest":"eslint .","fix":"npm run posttest -- --fix"},"repository":{"type":"git","url":"git+ssh://git@github.com/pkgjs/parseargs.git"},"author":"","license":"MIT","bugs":{"url":"https://github.com/pkgjs/parseargs/issues"},"devDependencies":{"c8":"^7.10.0","eslint":"^8.2.0","eslint-plugin-node-core":"github:iansu/eslint-plugin-node-core","tape":"^5.2.2"},"gitHead":"1e3a94a5f8fd42e7b56ac4a672adcb224ee3c9ff","_id":"@pkgjs/parseargs@0.11.0","_nodeVersion":"16.17.1","_npmVersion":"8.15.0","dist":{"integrity":"sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==","shasum":"a77ea742fab25775145434eb1d2328cf5013ac33","tarball":"http://localhost:4260/@pkgjs/parseargs/parseargs-0.11.0.tgz","fileCount":17,"unpackedSize":74173,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDvG/+saUhufCRZDSAMyqIZHb0x4c7N/gUvaev0PjFqHQIhAP3fAOwBeiw8NWaXAwTHTxmCZ5hxLTuFeTKtFBuLZrUz"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRCnEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoxPw//dpGdahKANuMATGuciM2D4V7hb2Xqh0j+fxQ6/f2YX9aVpciE\r\nthUd8xPNqjUY0XmJsVLT+6fyLMDuZQp5rujRujWSaYqP/wg8bf17iwKdPPEH\r\n9u8q3cBy8nZZ1/JGRoz5Tc4oH6BKIy35Grl7W2eyFBORHHfzGmqQ4xVXM67H\r\nA0kuU6fZmMzZ1wajInzTdRBFDtjFEzuFhd/86Izk1kXhPOosj6xPn2QgBkD0\r\n9q7+Hfw6sY4GJ4ZWAHBORZ4iMATPUWN5w0YcFUozkFFtSlBCDAUsjCHJMsII\r\naWSgySSTIsXLDxqTTeG27umBfJ22TxxC4zh8wNM0rbAXMFmJv7Sa3w0U27aY\r\nN6P+4B77iMeBYi9rpz4QdQiQrymC4DhH3nA1UQSmAXbxYlqVNLTs4vnLgq2l\r\nV9qCxnJoPfuE4KWgVlpnluoII3RtYdzwRLAtKdeGpyMMmCvi8TyrWxLbH2Xs\r\n3Sg96U0LEtriD6RBwat870K2nfmDj3jTtLqZQPmcuXq7DLv7K5UmLDimQXDq\r\nwLq86PmPPsiPevflOjTrXUGhZh0NwCB5VyXOHDuLsAtmz2lqm8psdhya/XKA\r\nBquEVg30l7bP/Y1+fTTQWXzmJDcCeSDH7Xnez2wGYaYxJWeaUGOMmzjz9CKE\r\n6e0EV7qjDa8wUCxk84OCu8C0zsqpHeSp+XY=\r\n=vsby\r\n-----END PGP SIGNATURE-----\r\n"},"directories":{},"_hasShrinkwrap":false}},"description":"Polyfill of future proposal for `util.parseArgs()`","homepage":"https://github.com/pkgjs/parseargs#readme","repository":{"type":"git","url":"git+ssh://git@github.com/pkgjs/parseargs.git"},"bugs":{"url":"https://github.com/pkgjs/parseargs/issues"},"license":"MIT","readme":"\n# parseArgs\n\n[![Coverage][coverage-image]][coverage-url]\n\nPolyfill of `util.parseArgs()`\n\n## `util.parseArgs([config])`\n\n\n\n> Stability: 1 - Experimental\n\n* `config` {Object} Used to provide arguments for parsing and to configure\n the parser. `config` supports the following properties:\n * `args` {string\\[]} array of argument strings. **Default:** `process.argv`\n with `execPath` and `filename` removed.\n * `options` {Object} Used to describe arguments known to the parser.\n Keys of `options` are the long names of options and values are an\n {Object} accepting the following properties:\n * `type` {string} Type of argument, which must be either `boolean` or `string`.\n * `multiple` {boolean} Whether this option can be provided multiple\n times. If `true`, all values will be collected in an array. If\n `false`, values for the option are last-wins. **Default:** `false`.\n * `short` {string} A single character alias for the option.\n * `default` {string | boolean | string\\[] | boolean\\[]} The default option\n value when it is not set by args. It must be of the same type as the\n the `type` property. When `multiple` is `true`, it must be an array.\n * `strict` {boolean} Should an error be thrown when unknown arguments\n are encountered, or when arguments are passed that do not match the\n `type` configured in `options`.\n **Default:** `true`.\n * `allowPositionals` {boolean} Whether this command accepts positional\n arguments.\n **Default:** `false` if `strict` is `true`, otherwise `true`.\n * `tokens` {boolean} Return the parsed tokens. This is useful for extending\n the built-in behavior, from adding additional checks through to reprocessing\n the tokens in different ways.\n **Default:** `false`.\n\n* Returns: {Object} The parsed command line arguments:\n * `values` {Object} A mapping of parsed option names with their {string}\n or {boolean} values.\n * `positionals` {string\\[]} Positional arguments.\n * `tokens` {Object\\[] | undefined} See [parseArgs tokens](#parseargs-tokens)\n section. Only returned if `config` includes `tokens: true`.\n\nProvides a higher level API for command-line argument parsing than interacting\nwith `process.argv` directly. Takes a specification for the expected arguments\nand returns a structured object with the parsed options and positionals.\n\n```mjs\nimport { parseArgs } from 'node:util';\nconst args = ['-f', '--bar', 'b'];\nconst options = {\n foo: {\n type: 'boolean',\n short: 'f'\n },\n bar: {\n type: 'string'\n }\n};\nconst {\n values,\n positionals\n} = parseArgs({ args, options });\nconsole.log(values, positionals);\n// Prints: [Object: null prototype] { foo: true, bar: 'b' } []\n```\n\n```cjs\nconst { parseArgs } = require('node:util');\nconst args = ['-f', '--bar', 'b'];\nconst options = {\n foo: {\n type: 'boolean',\n short: 'f'\n },\n bar: {\n type: 'string'\n }\n};\nconst {\n values,\n positionals\n} = parseArgs({ args, options });\nconsole.log(values, positionals);\n// Prints: [Object: null prototype] { foo: true, bar: 'b' } []\n```\n\n`util.parseArgs` is experimental and behavior may change. Join the\nconversation in [pkgjs/parseargs][] to contribute to the design.\n\n### `parseArgs` `tokens`\n\nDetailed parse information is available for adding custom behaviours by\nspecifying `tokens: true` in the configuration.\nThe returned tokens have properties describing:\n\n* all tokens\n * `kind` {string} One of 'option', 'positional', or 'option-terminator'.\n * `index` {number} Index of element in `args` containing token. So the\n source argument for a token is `args[token.index]`.\n* option tokens\n * `name` {string} Long name of option.\n * `rawName` {string} How option used in args, like `-f` of `--foo`.\n * `value` {string | undefined} Option value specified in args.\n Undefined for boolean options.\n * `inlineValue` {boolean | undefined} Whether option value specified inline,\n like `--foo=bar`.\n* positional tokens\n * `value` {string} The value of the positional argument in args (i.e. `args[index]`).\n* option-terminator token\n\nThe returned tokens are in the order encountered in the input args. Options\nthat appear more than once in args produce a token for each use. Short option\ngroups like `-xy` expand to a token for each option. So `-xxx` produces\nthree tokens.\n\nFor example to use the returned tokens to add support for a negated option\nlike `--no-color`, the tokens can be reprocessed to change the value stored\nfor the negated option.\n\n```mjs\nimport { parseArgs } from 'node:util';\n\nconst options = {\n 'color': { type: 'boolean' },\n 'no-color': { type: 'boolean' },\n 'logfile': { type: 'string' },\n 'no-logfile': { type: 'boolean' },\n};\nconst { values, tokens } = parseArgs({ options, tokens: true });\n\n// Reprocess the option tokens and overwrite the returned values.\ntokens\n .filter((token) => token.kind === 'option')\n .forEach((token) => {\n if (token.name.startsWith('no-')) {\n // Store foo:false for --no-foo\n const positiveName = token.name.slice(3);\n values[positiveName] = false;\n delete values[token.name];\n } else {\n // Resave value so last one wins if both --foo and --no-foo.\n values[token.name] = token.value ?? true;\n }\n });\n\nconst color = values.color;\nconst logfile = values.logfile ?? 'default.log';\n\nconsole.log({ logfile, color });\n```\n\n```cjs\nconst { parseArgs } = require('node:util');\n\nconst options = {\n 'color': { type: 'boolean' },\n 'no-color': { type: 'boolean' },\n 'logfile': { type: 'string' },\n 'no-logfile': { type: 'boolean' },\n};\nconst { values, tokens } = parseArgs({ options, tokens: true });\n\n// Reprocess the option tokens and overwrite the returned values.\ntokens\n .filter((token) => token.kind === 'option')\n .forEach((token) => {\n if (token.name.startsWith('no-')) {\n // Store foo:false for --no-foo\n const positiveName = token.name.slice(3);\n values[positiveName] = false;\n delete values[token.name];\n } else {\n // Resave value so last one wins if both --foo and --no-foo.\n values[token.name] = token.value ?? true;\n }\n });\n\nconst color = values.color;\nconst logfile = values.logfile ?? 'default.log';\n\nconsole.log({ logfile, color });\n```\n\nExample usage showing negated options, and when an option is used\nmultiple ways then last one wins.\n\n```console\n$ node negate.js\n{ logfile: 'default.log', color: undefined }\n$ node negate.js --no-logfile --no-color\n{ logfile: false, color: false }\n$ node negate.js --logfile=test.log --color\n{ logfile: 'test.log', color: true }\n$ node negate.js --no-logfile --logfile=test.log --color --no-color\n{ logfile: 'test.log', color: false }\n```\n\n-----\n\n\n## Table of Contents\n- [`util.parseArgs([config])`](#utilparseargsconfig)\n- [Scope](#scope)\n- [Version Matchups](#version-matchups)\n- [🚀 Getting Started](#-getting-started)\n- [🙌 Contributing](#-contributing)\n- [💡 `process.mainArgs` Proposal](#-processmainargs-proposal)\n - [Implementation:](#implementation)\n- [📃 Examples](#-examples)\n- [F.A.Qs](#faqs)\n- [Links & Resources](#links--resources)\n\n-----\n\n## Scope\n\nIt is already possible to build great arg parsing modules on top of what Node.js provides; the prickly API is abstracted away by these modules. Thus, process.parseArgs() is not necessarily intended for library authors; it is intended for developers of simple CLI tools, ad-hoc scripts, deployed Node.js applications, and learning materials.\n\nIt is exceedingly difficult to provide an API which would both be friendly to these Node.js users while being extensible enough for libraries to build upon. We chose to prioritize these use cases because these are currently not well-served by Node.js' API.\n\n----\n\n## Version Matchups\n\n| Node.js | @pkgjs/parseArgs |\n| -- | -- |\n| [v18.3.0](https://nodejs.org/docs/latest-v18.x/api/util.html#utilparseargsconfig) | [v0.9.1](https://github.com/pkgjs/parseargs/tree/v0.9.1#utilparseargsconfig) |\n| [v16.17.0](https://nodejs.org/dist/latest-v16.x/docs/api/util.html#utilparseargsconfig), [v18.7.0](https://nodejs.org/docs/latest-v18.x/api/util.html#utilparseargsconfig) | [0.10.0](https://github.com/pkgjs/parseargs/tree/v0.10.0#utilparseargsconfig) |\n\n----\n\n## 🚀 Getting Started\n\n1. **Install dependencies.**\n\n ```bash\n npm install\n ```\n\n2. **Open the index.js file and start editing!**\n\n3. **Test your code by calling parseArgs through our test file**\n\n ```bash\n npm test\n ```\n\n----\n\n## 🙌 Contributing\n\nAny person who wants to contribute to the initiative is welcome! Please first read the [Contributing Guide](CONTRIBUTING.md)\n\nAdditionally, reading the [`Examples w/ Output`](#-examples-w-output) section of this document will be the best way to familiarize yourself with the target expected behavior for parseArgs() once it is fully implemented.\n\nThis package was implemented using [tape](https://www.npmjs.com/package/tape) as its test harness.\n\n----\n\n## 💡 `process.mainArgs` Proposal\n\n> Note: This can be moved forward independently of the `util.parseArgs()` proposal/work.\n\n### Implementation:\n\n```javascript\nprocess.mainArgs = process.argv.slice(process._exec ? 1 : 2)\n```\n\n----\n\n## 📃 Examples\n\n```js\nconst { parseArgs } = require('@pkgjs/parseargs');\n```\n\n```js\nconst { parseArgs } = require('@pkgjs/parseargs');\n// specify the options that may be used\nconst options = {\n foo: { type: 'string'},\n bar: { type: 'boolean' },\n};\nconst args = ['--foo=a', '--bar'];\nconst { values, positionals } = parseArgs({ args, options });\n// values = { foo: 'a', bar: true }\n// positionals = []\n```\n\n```js\nconst { parseArgs } = require('@pkgjs/parseargs');\n// type:string & multiple\nconst options = {\n foo: {\n type: 'string',\n multiple: true,\n },\n};\nconst args = ['--foo=a', '--foo', 'b'];\nconst { values, positionals } = parseArgs({ args, options });\n// values = { foo: [ 'a', 'b' ] }\n// positionals = []\n```\n\n```js\nconst { parseArgs } = require('@pkgjs/parseargs');\n// shorts\nconst options = {\n foo: {\n short: 'f',\n type: 'boolean'\n },\n};\nconst args = ['-f', 'b'];\nconst { values, positionals } = parseArgs({ args, options, allowPositionals: true });\n// values = { foo: true }\n// positionals = ['b']\n```\n\n```js\nconst { parseArgs } = require('@pkgjs/parseargs');\n// unconfigured\nconst options = {};\nconst args = ['-f', '--foo=a', '--bar', 'b'];\nconst { values, positionals } = parseArgs({ strict: false, args, options, allowPositionals: true });\n// values = { f: true, foo: 'a', bar: true }\n// positionals = ['b']\n```\n\n----\n\n## F.A.Qs\n\n- Is `cmd --foo=bar baz` the same as `cmd baz --foo=bar`?\n - yes\n- Does the parser execute a function?\n - no\n- Does the parser execute one of several functions, depending on input?\n - no\n- Can subcommands take options that are distinct from the main command?\n - no\n- Does it output generated help when no options match?\n - no\n- Does it generated short usage? Like: `usage: ls [-ABCFGHLOPRSTUWabcdefghiklmnopqrstuwx1] [file ...]`\n - no (no usage/help at all)\n- Does the user provide the long usage text? For each option? For the whole command?\n - no\n- Do subcommands (if implemented) have their own usage output?\n - no\n- Does usage print if the user runs `cmd --help`?\n - no\n- Does it set `process.exitCode`?\n - no\n- Does usage print to stderr or stdout?\n - N/A\n- Does it check types? (Say, specify that an option is a boolean, number, etc.)\n - no\n- Can an option have more than one type? (string or false, for example)\n - no\n- Can the user define a type? (Say, `type: path` to call `path.resolve()` on the argument.)\n - no\n- Does a `--foo=0o22` mean 0, 22, 18, or \"0o22\"?\n - `\"0o22\"`\n- Does it coerce types?\n - no\n- Does `--no-foo` coerce to `--foo=false`? For all options? Only boolean options?\n - no, it sets `{values:{'no-foo': true}}`\n- Is `--foo` the same as `--foo=true`? Only for known booleans? Only at the end?\n - no, they are not the same. There is no special handling of `true` as a value so it is just another string.\n- Does it read environment variables? Ie, is `FOO=1 cmd` the same as `cmd --foo=1`?\n - no\n- Do unknown arguments raise an error? Are they parsed? Are they treated as positional arguments?\n - no, they are parsed, not treated as positionals\n- Does `--` signal the end of options?\n - yes\n- Is `--` included as a positional?\n - no\n- Is `program -- foo` the same as `program foo`?\n - yes, both store `{positionals:['foo']}`\n- Does the API specify whether a `--` was present/relevant?\n - no\n- Is `-bar` the same as `--bar`?\n - no, `-bar` is a short option or options, with expansion logic that follows the\n [Utility Syntax Guidelines in POSIX.1-2017](https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap12.html). `-bar` expands to `-b`, `-a`, `-r`.\n- Is `---foo` the same as `--foo`?\n - no\n - the first is a long option named `'-foo'`\n - the second is a long option named `'foo'`\n- Is `-` a positional? ie, `bash some-test.sh | tap -`\n - yes\n\n## Links & Resources\n\n* [Initial Tooling Issue](https://github.com/nodejs/tooling/issues/19)\n* [Initial Proposal](https://github.com/nodejs/node/pull/35015)\n* [parseArgs Proposal](https://github.com/nodejs/node/pull/42675)\n\n[coverage-image]: https://img.shields.io/nycrc/pkgjs/parseargs\n[coverage-url]: https://github.com/pkgjs/parseargs/blob/main/.nycrc\n[pkgjs/parseargs]: https://github.com/pkgjs/parseargs\n","readmeFilename":"README.md"} +{ + "name": "@pkgjs/parseargs", + "dist-tags": { + "latest": "0.11.0" + }, + "versions": { + "0.11.0": { + "name": "@pkgjs/parseargs", + "version": "0.11.0", + "description": "Polyfill of future proposal for `util.parseArgs()`", + "engines": { + "node": ">=14" + }, + "main": "index.js", + "exports": { + ".": "./index.js", + "./package.json": "./package.json" + }, + "scripts": { + "coverage": "c8 --check-coverage tape 'test/*.js'", + "test": "c8 tape 'test/*.js'", + "posttest": "eslint .", + "fix": "npm run posttest -- --fix" + }, + "repository": { + "type": "git", + "url": "git+ssh://git@github.com/pkgjs/parseargs.git" + }, + "author": "", + "license": "MIT", + "bugs": { + "url": "https://github.com/pkgjs/parseargs/issues" + }, + "devDependencies": { + "c8": "^7.10.0", + "eslint": "^8.2.0", + "eslint-plugin-node-core": "github:iansu/eslint-plugin-node-core", + "tape": "^5.2.2" + }, + "gitHead": "1e3a94a5f8fd42e7b56ac4a672adcb224ee3c9ff", + "_id": "@pkgjs/parseargs@0.11.0", + "_nodeVersion": "16.17.1", + "_npmVersion": "8.15.0", + "dist": { + "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "shasum": "a77ea742fab25775145434eb1d2328cf5013ac33", + "tarball": "http://localhost:4260/@pkgjs/parseargs/parseargs-0.11.0.tgz", + "fileCount": 17, + "unpackedSize": 74173 + }, + "directories": {}, + "_hasShrinkwrap": false + } + }, + "description": "Polyfill of future proposal for `util.parseArgs()`", + "homepage": "https://github.com/pkgjs/parseargs#readme", + "repository": { + "type": "git", + "url": "git+ssh://git@github.com/pkgjs/parseargs.git" + }, + "bugs": { + "url": "https://github.com/pkgjs/parseargs/issues" + }, + "license": "MIT", + "readmeFilename": "README.md" +} diff --git a/tests/registry/npm/@types/lz-string/registry.json b/tests/registry/npm/@types/lz-string/registry.json index 3b9dc633b9..261c433405 100644 --- a/tests/registry/npm/@types/lz-string/registry.json +++ b/tests/registry/npm/@types/lz-string/registry.json @@ -1 +1,59 @@ -{"name":"@types/lz-string","description":"Stub TypeScript definitions entry for lz-string, which provides its own types definitions","dist-tags":{"latest":"1.5.0"},"versions":{"1.3.33":{"name":"@types/lz-string","version":"1.3.33","description":"TypeScript definitions for lz-string","license":"MIT","main":"","types":"index","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"37e0f8cf2fb1fe08bdcc8e21278c91217d4a03d1cd6b32fc0eaec30757c6d4b1","typeScriptVersion":"2.0","_id":"@types/lz-string@1.3.33","dist":{"integrity":"sha512-yWj3OnlKlwNpq9+Jh/nJkVAD3ta8Abk2kIRpjWpVkDlAD43tn6Q6xk5hurp84ndcq54jBDBGCD/WcIR0pspG0A==","shasum":"de2d6105ea7bcaf67dd1d9451d580700d30473fc","tarball":"http://localhost:4260/@types/lz-string/lz-string-1.3.33.tgz","fileCount":4,"unpackedSize":5960,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcZIpFCRA9TVsSAnZWagAAYm8QAJCahktTDI8BUR8q+Qra\nzsvv7Vbb20Ti7uoh97yzJiEC8UEWCGnxpZouWr3xoy0FjByYIvGmHqslGohP\nksiikCXiy+5pfT0Yi3M4QeADPlQjqUVTweCoeMmpUaHWGBdqG2kE6tnioCQy\nAL9n/YnQc10b5SE/XYgKHuBN/HJ5tx1Ejcg/o7qJG/2cUe/1K1asIMFUockV\ncgwFXFl8OSMTcA3Bs0C84zIdcaC4njVqUIQOWqdgKbe1vs+O/Zf/OdiYQh9f\nZZMXffwJKVpLSfhOTeDHeD1WMNmiww+FVIikeUIihp7Xahk9YbrLtE5BUSgG\nl9/vNfzUDW+J5oJb6n8k9WojHjte00inzMa1O7QVT7cUC+e5Nup1df0VErNF\nVuaBMUy2o0LViCVcXOYUnDBQCoaKpQ8cIVhtl0VLFrOdyn+a0blcwaNNrvE1\nFKb+OgBqipIDwAx1QghV45MPtRzI/TLYeSZtHoOYVJ8zc11FzjaQ33NZj/5w\nVzMnRkmjpwF5j++JSOa3687iKJTgrJ6XHYliYpxRRpJY3Oa4Nl0/G+xMm1BS\n0ueZuqpM+h2ZMuG7TQOeDKtTll7tsuKwy2UlkkP2uJOVurqJkCvcK/ImG25W\nKENAcoJvsk956vlbvJCdqvIcV5OF5XhgQh10gaAfHl+pJiLbCBhHpeWd95+Y\n5/3T\r\n=MjUN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHlPUpoP+v+OWyats51tKkKMx97XrotlO8GzoVtS22/KAiEAxLb7ultFaZZIfGVCNeHE/X+J9I58zkNA6a8LKcm2Wns="}]},"directories":{},"_hasShrinkwrap":false},"1.5.0":{"name":"@types/lz-string","version":"1.5.0","description":"Stub TypeScript definitions entry for lz-string, which provides its own types definitions","main":"","scripts":{},"license":"MIT","dependencies":{"lz-string":"*"},"deprecated":"This is a stub types definition. lz-string provides its own type definitions, so you do not need this installed.","_id":"@types/lz-string@1.5.0","dist":{"integrity":"sha512-s84fKOrzqqNCAPljhVyC5TjAo6BH4jKHw9NRNFNiRUY5QSgZCmVm5XILlWbisiKl+0OcS7eWihmKGS5akc2iQw==","shasum":"2f15d2dd9dbfb344f3d31aee5a82cf350b037e5f","tarball":"http://localhost:4260/@types/lz-string/lz-string-1.5.0.tgz","fileCount":4,"unpackedSize":1754,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFwugI1BNDwbq90OnD5/morYlSnSQheJEnyTkclzw0SKAiAThdPB2+I/hjRlN5URdZcK4v0XXcVnh5xvMSf7SgQZ8A=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkECMgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmopOQ//U+7G8WFrWQ3ecjTZrMAAqmwWNK1jgA3r0PonmwkiDjQlNAHj\r\nXAfJK8YSuFBrl8buIAkoJT9i+H6bpHIShj5fA4FKVtA1ihcwclAdvvoilwH2\r\nNCvoFeZZgrZB6y5e6AvGDHY67C2DzQ9XhfqYM0myyXS+of2gfznAPVqXwGCs\r\nWW39ee/WAbBEoN2Z1/hEAh+W51hV0HUjs39sbupo0vOHy9GdYuVJtTMeqesF\r\nmCfDDaM1FxbsMFccy8qRsihD26iwBMRa+W3+208gCc0i9xs8wRc+8GQcAGWd\r\nxSrTEgRd8hfBs6bxDKlSD3Qg7pTq3L+HvlUZGL2AHSbC6k/MCNduHhxEcrrj\r\nssFE4iuCievfQsd0CC4rI/8s5MDGwdQ+nldv0rYjsSphjLgHDly0LE1kAbNv\r\nxZWFXmFb7318wmbC38KYDn1I0b6YndHQFu1usVJ+Z107H/mxWRZeRg0THlD8\r\n3LuLEkCJqRddGmLkSQkJ6IZtX8H9EuuhU4ny6Xb3FYFhnXWmw7YSuvrrfSgs\r\nPlLlscCRsXgWYPzQ7h8mOyE4MoHfrjzcgFKIUgWPvW6EprDPAKu28vIXnn7j\r\nG0CiCYL+IWWTqa6pKkOJsE1ILkPYTZj/592zfGPzspl9Kfb/4+IaDMmApBVO\r\n51TMBjyXgYYDajmh6y8/U389X93/bIV/wjY=\r\n=935O\r\n-----END PGP SIGNATURE-----\r\n"},"directories":{},"_hasShrinkwrap":false}},"license":"MIT","readmeFilename":""} +{ + "name": "@types/lz-string", + "description": "Stub TypeScript definitions entry for lz-string, which provides its own types definitions", + "dist-tags": { + "latest": "1.5.0" + }, + "versions": { + "1.3.33": { + "name": "@types/lz-string", + "version": "1.3.33", + "description": "TypeScript definitions for lz-string", + "license": "MIT", + "main": "", + "types": "index", + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" + }, + "scripts": {}, + "dependencies": {}, + "typesPublisherContentHash": "37e0f8cf2fb1fe08bdcc8e21278c91217d4a03d1cd6b32fc0eaec30757c6d4b1", + "typeScriptVersion": "2.0", + "_id": "@types/lz-string@1.3.33", + "dist": { + "integrity": "sha512-yWj3OnlKlwNpq9+Jh/nJkVAD3ta8Abk2kIRpjWpVkDlAD43tn6Q6xk5hurp84ndcq54jBDBGCD/WcIR0pspG0A==", + "shasum": "de2d6105ea7bcaf67dd1d9451d580700d30473fc", + "tarball": "http://localhost:4260/@types/lz-string/lz-string-1.3.33.tgz", + "fileCount": 4, + "unpackedSize": 5960 + }, + "directories": {}, + "_hasShrinkwrap": false + }, + "1.5.0": { + "name": "@types/lz-string", + "version": "1.5.0", + "description": "Stub TypeScript definitions entry for lz-string, which provides its own types definitions", + "main": "", + "scripts": {}, + "license": "MIT", + "dependencies": { + "lz-string": "*" + }, + "deprecated": "This is a stub types definition. lz-string provides its own type definitions, so you do not need this installed.", + "_id": "@types/lz-string@1.5.0", + "dist": { + "integrity": "sha512-s84fKOrzqqNCAPljhVyC5TjAo6BH4jKHw9NRNFNiRUY5QSgZCmVm5XILlWbisiKl+0OcS7eWihmKGS5akc2iQw==", + "shasum": "2f15d2dd9dbfb344f3d31aee5a82cf350b037e5f", + "tarball": "http://localhost:4260/@types/lz-string/lz-string-1.5.0.tgz", + "fileCount": 4, + "unpackedSize": 1754 + }, + "directories": {}, + "_hasShrinkwrap": false + } + }, + "license": "MIT", + "readmeFilename": "" +} diff --git a/tests/registry/npm/@types/node/registry.json b/tests/registry/npm/@types/node/registry.json index 9c51407059..4bdcd9f528 100644 --- a/tests/registry/npm/@types/node/registry.json +++ b/tests/registry/npm/@types/node/registry.json @@ -1 +1,85 @@ -{"name":"@types/node","description":"TypeScript definitions for node","dist-tags":{"latest":"18.8.2"},"versions":{"18.8.2":{"name":"@types/node","version":"18.8.2","description":"TypeScript definitions for Node.js","license":"MIT","main":"","types":"index.d.ts","typesVersions":{"<4.9.0-0":{"*":["ts4.8/*"]}},"repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/node"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"034172ea945b66afc6502e6be34d6fb957c596091e39cf43672e8aca563a8c66","typeScriptVersion":"4.1","_id":"@types/node@18.8.2","dist":{"integrity":"sha512-cRMwIgdDN43GO4xMWAfJAecYn8wV4JbsOGHNfNUIDiuYkUYAR5ec4Rj7IO2SAhFPEfpPtLtUTbbny/TCT7aDwA==","shasum":"17d42c6322d917764dd3d2d3a10d7884925de067","tarball":"http://localhost:4260/@types/node/node-18.8.2.tgz","fileCount":124,"unpackedSize":3524549,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCAqI3XibndhBD647C/13AFb58Fhmg4WmfCoGrIYrgtzwIhAIB0b0D58Tigwb3qKaOVsKnuYOOr0strAmprZSCi/+oq"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjPFItACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrKAg/+IwaUWPgePlO4IxW7CVhFEEFiyhjEH3FHe0ogC3YmreoBFv/A\r\nPwQrwObdskbGWrBzsAOVFvhzYktzP3kc857HtU2ia9FXeaEYvsSQBqh6jZfA\r\njR1+h+jn+W5JnmbnwRGfNn2riCo/un4tYoZ4o/bKiMdNd9WrdIs0Oii1Dd4N\r\nnsBXPb05UPPP4Uu8cz68u1bj+QQ6aslr6keGNyNeILf8bJsEfcfVkEO3l4cu\r\njyTIrxiD+tM8jrUE9CDeodF8CZNuvLh3hqdMPJeH3U47qkDtPDKEOvZTbyYm\r\ngodto6mcnuBr8F9vmikAQfGiXV0U2cg2XRjWc1lI8HT4X0kESTIo+nzNuliD\r\niTpfjyZHdKBGGIuHP1Ou9dVvx4t5XZ1JsK9EK5WTilvAlu/qZrynxXxAV3Rc\r\nvL9UhIacISprMWB3Sohl9ZtfcmGnV/KMRpM+yPZOWp39gQQCKaKF/j2f/mir\r\n8YFbFUnySZkXKzxgsgjrSsh9QiK2dYAzcqHlazITeFN9jOYRzYUjAFj3qOFm\r\n7o1eJpW0qM5vgR+fPq30WxcdcQ4PaWgHSlb/ll8hiwQG1ZUihO/1RU7FtDoc\r\n1KwcfrGOAJPL6vBSLPReUkhDIUTSBwfmvfMxzqD1aDp6YV5WX7h03B0dWbPJ\r\nmPJmJZjjZje4Trk9jBJ5/ZLpB8/zkrDKvhE=\r\n=LPWa\r\n-----END PGP SIGNATURE-----\r\n"},"directories":{},"_hasShrinkwrap":false},"18.16.19":{"name":"@types/node","version":"18.16.19","description":"TypeScript definitions for Node.js","license":"MIT","main":"","types":"index.d.ts","typesVersions":{"<=4.8":{"*":["ts4.8/*"]}},"repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/node"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"e0763594b4075c74150a6024cd39f92797ea5c273540e3a5fe0a63a791ffa0c8","typeScriptVersion":"4.3","_id":"@types/node@18.16.19","dist":{"integrity":"sha512-IXl7o+R9iti9eBW4Wg2hx1xQDig183jj7YLn8F7udNceyfkbn1ZxmzZXuak20gR40D7pIkIY1kYGx5VIGbaHKA==","shasum":"cb03fca8910fdeb7595b755126a8a78144714eea","tarball":"http://localhost:4260/@types/node/node-18.16.19.tgz","fileCount":125,"unpackedSize":3677153,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCrmUK+J0P1ywi+U/RBUqMXSK7c0kDYxMEYunkXNSPf+wIhANTRnqmuKWdzIKhsGHCZB+js8qhLcce/P+XOR1JmSNIc"}]},"directories":{},"_hasShrinkwrap":false}},"readme":"[object Object]","license":"MIT","readmeFilename":"","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/node"},"homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node"} +{ + "name": "@types/node", + "description": "TypeScript definitions for node", + "dist-tags": { + "latest": "18.8.2" + }, + "versions": { + "18.8.2": { + "name": "@types/node", + "version": "18.8.2", + "description": "TypeScript definitions for Node.js", + "license": "MIT", + "main": "", + "types": "index.d.ts", + "typesVersions": { + "<4.9.0-0": { + "*": [ + "ts4.8/*" + ] + } + }, + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", + "directory": "types/node" + }, + "scripts": {}, + "dependencies": {}, + "typesPublisherContentHash": "034172ea945b66afc6502e6be34d6fb957c596091e39cf43672e8aca563a8c66", + "typeScriptVersion": "4.1", + "_id": "@types/node@18.8.2", + "dist": { + "integrity": "sha512-cRMwIgdDN43GO4xMWAfJAecYn8wV4JbsOGHNfNUIDiuYkUYAR5ec4Rj7IO2SAhFPEfpPtLtUTbbny/TCT7aDwA==", + "shasum": "17d42c6322d917764dd3d2d3a10d7884925de067", + "tarball": "http://localhost:4260/@types/node/node-18.8.2.tgz", + "fileCount": 124, + "unpackedSize": 3524549 + }, + "directories": {}, + "_hasShrinkwrap": false + }, + "18.16.19": { + "name": "@types/node", + "version": "18.16.19", + "description": "TypeScript definitions for Node.js", + "license": "MIT", + "main": "", + "types": "index.d.ts", + "typesVersions": { + "<=4.8": { + "*": [ + "ts4.8/*" + ] + } + }, + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", + "directory": "types/node" + }, + "scripts": {}, + "dependencies": {}, + "typesPublisherContentHash": "e0763594b4075c74150a6024cd39f92797ea5c273540e3a5fe0a63a791ffa0c8", + "typeScriptVersion": "4.3", + "_id": "@types/node@18.16.19", + "dist": { + "integrity": "sha512-IXl7o+R9iti9eBW4Wg2hx1xQDig183jj7YLn8F7udNceyfkbn1ZxmzZXuak20gR40D7pIkIY1kYGx5VIGbaHKA==", + "shasum": "cb03fca8910fdeb7595b755126a8a78144714eea", + "tarball": "http://localhost:4260/@types/node/node-18.16.19.tgz", + "fileCount": 125, + "unpackedSize": 3677153 + }, + "directories": {}, + "_hasShrinkwrap": false + } + }, + "license": "MIT", + "readmeFilename": "", + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", + "directory": "types/node" + }, + "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node" +} diff --git a/tests/registry/npm/@vue/compiler-core/registry.json b/tests/registry/npm/@vue/compiler-core/registry.json index 81c0c51e25..7ea5bd5b97 100644 --- a/tests/registry/npm/@vue/compiler-core/registry.json +++ b/tests/registry/npm/@vue/compiler-core/registry.json @@ -1 +1,71 @@ -{"name":"@vue/compiler-core","dist-tags":{"latest":"3.2.38"},"versions":{"3.2.38":{"name":"@vue/compiler-core","version":"3.2.38","description":"@vue/compiler-core","main":"index.js","module":"dist/compiler-core.esm-bundler.js","types":"dist/compiler-core.d.ts","buildOptions":{"name":"VueCompilerCore","compat":true,"formats":["esm-bundler","cjs"]},"repository":{"type":"git","url":"git+https://github.com/vuejs/core.git","directory":"packages/compiler-core"},"author":{"name":"Evan You"},"license":"MIT","bugs":{"url":"https://github.com/vuejs/core/issues"},"dependencies":{"@vue/shared":"3.2.38","@babel/parser":"^7.16.4","estree-walker":"^2.0.2","source-map":"^0.6.1"},"devDependencies":{"@babel/types":"^7.16.0"},"licenseText":"The MIT License (MIT)\n\nCopyright (c) 2018-present, Yuxi (Evan) You\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","_id":"@vue/compiler-core@3.2.38","dist":{"shasum":"0a2a7bffd2280ac19a96baf5301838a2cf1964d7","integrity":"sha512-/FsvnSu7Z+lkd/8KXMa4yYNUiqQrI22135gfsQYVGuh5tqEgOB0XqrUdb/KnCLa5+TmQLPwvyUnKMyCpu+SX3Q==","tarball":"http://localhost:4260/@vue/compiler-core/compiler-core-3.2.38.tgz","fileCount":10,"unpackedSize":715064,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDsKPQqDaQJpXMwojakkgQ7ZTXf6tvF6VB4KgShDmnG/AIgbTYxfqFpVp/k1NCauhoOb6G7hsX86LoqEpPRt9o0mqQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjDcP6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrTCg//XS9cYJqJY63weci6LoEheFOtFdABVcbWsqg4sdlgTI0RT4qx\r\nJwdKqoRHbtiVVbPFmaCCfg14e4KFSUi4UL1OlhB7TnY7fdJ6L32y/P3+4Mi7\r\nm/SWcmqmZ/pGgrfs5PqPtTgVhgmIGd2qPkSiwbQIrzotvy/LAJXGwRgnU/zY\r\nZ7rl0FYPDh1MVp5gdxN8j0JurbW0GSlminPGEGo97bvgnYaoaLVcDfIp6lpD\r\nmKYP50Fne6QP1ofFmWE0k3DX7EikT9FGy9F+wgHzNCrh+HIJnKOB7RxrJSjH\r\n8a3FpmgB8IEVxqPfbUbgs1vtUCIH5pW8kNU0wEp93ad+4RQWySdcwfkM7QrK\r\nr9lbtgHcPhL5Zod4LVU9eVxz9/48fCyvEK+cMa7Bkjq8UxK4igGawiaz0Taf\r\nX8KWfo4q9bMawfuznXLwUl4k0uBJTuBJAcbXbkw1NS3IxriL1TlOPGzgxnoi\r\nWaZdZ17T23EF+HyFwMv7xL/fPPWi+0ZBI2WJ/qvq6o4lyi3cxKSeSIV0GssI\r\npWxc4pEN+dznoDTGQu4r2YaEq9R1IywlWOy35TOR9QRwLrNAUmUZ6NMA902w\r\nbug9lbp59hojNhjYKLzkbO0SXOUIPlfSWXiQTk8DqkUx/wyZwOp1raTvA0rm\r\nVucJyZfDCUcJniI9Eqgu7t9a1bfakhCQWMw=\r\n=a516\r\n-----END PGP SIGNATURE-----\r\n"},"directories":{},"_hasShrinkwrap":false}},"description":"@vue/compiler-core","homepage":"https://github.com/vuejs/core/tree/main/packages/compiler-core#readme","repository":{"type":"git","url":"git+https://github.com/vuejs/core.git","directory":"packages/compiler-core"},"author":{"name":"Evan You"},"bugs":{"url":"https://github.com/vuejs/core/issues"},"license":"MIT","readme":"# @vue/compiler-core\n","readmeFilename":"README.md"} +{ + "name": "@vue/compiler-core", + "dist-tags": { + "latest": "3.2.38" + }, + "versions": { + "3.2.38": { + "name": "@vue/compiler-core", + "version": "3.2.38", + "description": "@vue/compiler-core", + "main": "index.js", + "module": "dist/compiler-core.esm-bundler.js", + "types": "dist/compiler-core.d.ts", + "buildOptions": { + "name": "VueCompilerCore", + "compat": true, + "formats": [ + "esm-bundler", + "cjs" + ] + }, + "repository": { + "type": "git", + "url": "git+https://github.com/vuejs/core.git", + "directory": "packages/compiler-core" + }, + "author": { + "name": "Evan You" + }, + "license": "MIT", + "bugs": { + "url": "https://github.com/vuejs/core/issues" + }, + "dependencies": { + "@vue/shared": "3.2.38", + "@babel/parser": "^7.16.4", + "estree-walker": "^2.0.2", + "source-map": "^0.6.1" + }, + "devDependencies": { + "@babel/types": "^7.16.0" + }, + "licenseText": "The MIT License (MIT)\n\nCopyright (c) 2018-present, Yuxi (Evan) You\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n", + "_id": "@vue/compiler-core@3.2.38", + "dist": { + "shasum": "0a2a7bffd2280ac19a96baf5301838a2cf1964d7", + "integrity": "sha512-/FsvnSu7Z+lkd/8KXMa4yYNUiqQrI22135gfsQYVGuh5tqEgOB0XqrUdb/KnCLa5+TmQLPwvyUnKMyCpu+SX3Q==", + "tarball": "http://localhost:4260/@vue/compiler-core/compiler-core-3.2.38.tgz", + "fileCount": 10, + "unpackedSize": 715064 + }, + "directories": {}, + "_hasShrinkwrap": false + } + }, + "description": "@vue/compiler-core", + "homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-core#readme", + "repository": { + "type": "git", + "url": "git+https://github.com/vuejs/core.git", + "directory": "packages/compiler-core" + }, + "author": { + "name": "Evan You" + }, + "bugs": { + "url": "https://github.com/vuejs/core/issues" + }, + "license": "MIT", + "readmeFilename": "README.md" +} diff --git a/tests/registry/npm/@vue/compiler-dom/registry.json b/tests/registry/npm/@vue/compiler-dom/registry.json index 1c8f26e5ad..84b40e8058 100644 --- a/tests/registry/npm/@vue/compiler-dom/registry.json +++ b/tests/registry/npm/@vue/compiler-dom/registry.json @@ -1 +1,71 @@ -{"name":"@vue/compiler-dom","dist-tags":{"latest":"3.2.38"},"versions":{"3.2.38":{"name":"@vue/compiler-dom","version":"3.2.38","description":"@vue/compiler-dom","main":"index.js","module":"dist/compiler-dom.esm-bundler.js","types":"dist/compiler-dom.d.ts","unpkg":"dist/compiler-dom.global.js","jsdelivr":"dist/compiler-dom.global.js","sideEffects":false,"buildOptions":{"name":"VueCompilerDOM","compat":true,"formats":["esm-bundler","esm-browser","cjs","global"]},"repository":{"type":"git","url":"git+https://github.com/vuejs/core.git","directory":"packages/compiler-dom"},"author":{"name":"Evan You"},"license":"MIT","bugs":{"url":"https://github.com/vuejs/core/issues"},"dependencies":{"@vue/shared":"3.2.38","@vue/compiler-core":"3.2.38"},"licenseText":"The MIT License (MIT)\n\nCopyright (c) 2018-present, Yuxi (Evan) You\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","_id":"@vue/compiler-dom@3.2.38","dist":{"shasum":"53d04ed0c0c62d1ef259bf82f9b28100a880b6fd","integrity":"sha512-zqX4FgUbw56kzHlgYuEEJR8mefFiiyR3u96498+zWPsLeh1WKvgIReoNE+U7gG8bCUdvsrJ0JRmev0Ky6n2O0g==","tarball":"http://localhost:4260/@vue/compiler-dom/compiler-dom-3.2.38.tgz","fileCount":14,"unpackedSize":759600,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2mAYyYXARZ7RbubvapagWysT3wXmdqTbrSWTqw9KA3QIgOWXOYUllQuZbkyrKbvJKZ6QMkRLzwkGQ5HcpU/4gFnM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjDcP8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoA7BAAiXwXIr6HoY3c70aUrlTuChXxy29bfSEY01vGMhnbirIX09m6\r\nL6KKHDiaGolS3z9f9jlT096Lc5KS30RwOyzxlMNpkhT0v7aFb9t55kFQoDt7\r\nvtXMgqitb6QnNEr82mSt0TZEmhwTIdAoKfxH4vlxgQ+mnyRzjkZll6laf0oY\r\n/QFeiM5e/eeM56Es3Hh7l/YzaBSxbQpzrgdtCYQOkQj3AW2jIqKkkDuzgYd6\r\ntc9Vj1Zon3ANrFEvHFexrLQIG3g6hTLU47XJTwhFh/REXBwo3cM8sSwSYxOD\r\nMtYGZP1flljae4MHsAKvc5AYpqMPPCD2sBPtXYYnrIeJT9sfP4UEPiiySLA0\r\n76r7Fo1LM+ztzHhO9qF650066xcfy5VgUpL4dW8FkLZZG+3b1LrUC5L6G3vJ\r\nTlSQ6JluSUmBSDZw2QhLuZ81RAj+ePZzid+A7mTdj+bv8P6BgnfdwhC7DStf\r\ntNw5pLK88cdeBkY2F4mx7ddV5fB5ro8r92JVL3kIxAjZm/h1tZhuqAterBk0\r\n3zEEzpmgFzsWEg6ZZZtSbMdA608wDwH3CqCDKZW0hMRhdOUajN/YnedVnL4r\r\npqU+xwJm3TtL8nXcJrMUEDBE6KE22JQB4l+fko7fFn3/x2kInSpAG9N89cLx\r\nDACI1LOmo/ZF11abCcX87xzC8xhTmkHOouI=\r\n=jj9S\r\n-----END PGP SIGNATURE-----\r\n"},"directories":{},"_hasShrinkwrap":false}},"description":"@vue/compiler-dom","homepage":"https://github.com/vuejs/core/tree/main/packages/compiler-dom#readme","repository":{"type":"git","url":"git+https://github.com/vuejs/core.git","directory":"packages/compiler-dom"},"author":{"name":"Evan You"},"bugs":{"url":"https://github.com/vuejs/core/issues"},"license":"MIT","readme":"# @vue/compiler-dom","readmeFilename":"README.md"} +{ + "name": "@vue/compiler-dom", + "dist-tags": { + "latest": "3.2.38" + }, + "versions": { + "3.2.38": { + "name": "@vue/compiler-dom", + "version": "3.2.38", + "description": "@vue/compiler-dom", + "main": "index.js", + "module": "dist/compiler-dom.esm-bundler.js", + "types": "dist/compiler-dom.d.ts", + "unpkg": "dist/compiler-dom.global.js", + "jsdelivr": "dist/compiler-dom.global.js", + "sideEffects": false, + "buildOptions": { + "name": "VueCompilerDOM", + "compat": true, + "formats": [ + "esm-bundler", + "esm-browser", + "cjs", + "global" + ] + }, + "repository": { + "type": "git", + "url": "git+https://github.com/vuejs/core.git", + "directory": "packages/compiler-dom" + }, + "author": { + "name": "Evan You" + }, + "license": "MIT", + "bugs": { + "url": "https://github.com/vuejs/core/issues" + }, + "dependencies": { + "@vue/shared": "3.2.38", + "@vue/compiler-core": "3.2.38" + }, + "licenseText": "The MIT License (MIT)\n\nCopyright (c) 2018-present, Yuxi (Evan) You\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n", + "_id": "@vue/compiler-dom@3.2.38", + "dist": { + "shasum": "53d04ed0c0c62d1ef259bf82f9b28100a880b6fd", + "integrity": "sha512-zqX4FgUbw56kzHlgYuEEJR8mefFiiyR3u96498+zWPsLeh1WKvgIReoNE+U7gG8bCUdvsrJ0JRmev0Ky6n2O0g==", + "tarball": "http://localhost:4260/@vue/compiler-dom/compiler-dom-3.2.38.tgz", + "fileCount": 14, + "unpackedSize": 759600 + }, + "directories": {}, + "_hasShrinkwrap": false + } + }, + "description": "@vue/compiler-dom", + "homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-dom#readme", + "repository": { + "type": "git", + "url": "git+https://github.com/vuejs/core.git", + "directory": "packages/compiler-dom" + }, + "author": { + "name": "Evan You" + }, + "bugs": { + "url": "https://github.com/vuejs/core/issues" + }, + "license": "MIT", + "readmeFilename": "README.md" +} diff --git a/tests/registry/npm/@vue/compiler-sfc/registry.json b/tests/registry/npm/@vue/compiler-sfc/registry.json index 2f56e1229c..3ac30a4a35 100644 --- a/tests/registry/npm/@vue/compiler-sfc/registry.json +++ b/tests/registry/npm/@vue/compiler-sfc/registry.json @@ -1 +1,88 @@ -{"name":"@vue/compiler-sfc","dist-tags":{"latest":"3.2.38"},"versions":{"3.2.38":{"name":"@vue/compiler-sfc","version":"3.2.38","description":"@vue/compiler-sfc","main":"dist/compiler-sfc.cjs.js","module":"dist/compiler-sfc.esm-browser.js","types":"dist/compiler-sfc.d.ts","buildOptions":{"name":"VueCompilerSFC","formats":["cjs","esm-browser"],"prod":false,"enableNonBrowserBranches":true},"repository":{"type":"git","url":"git+https://github.com/vuejs/core.git","directory":"packages/compiler-sfc"},"author":{"name":"Evan You"},"license":"MIT","bugs":{"url":"https://github.com/vuejs/core/issues"},"dependencies":{"@babel/parser":"^7.16.4","@vue/compiler-core":"3.2.38","@vue/compiler-dom":"3.2.38","@vue/compiler-ssr":"3.2.38","@vue/reactivity-transform":"3.2.38","@vue/shared":"3.2.38","estree-walker":"^2.0.2","magic-string":"^0.25.7","source-map":"^0.6.1","postcss":"^8.1.10"},"devDependencies":{"@types/estree":"^0.0.48","@babel/types":"^7.16.0","@types/lru-cache":"^5.1.0","pug":"^3.0.1","sass":"^1.26.9","@vue/consolidate":"^0.17.3","hash-sum":"^2.0.0","lru-cache":"^5.1.1","merge-source-map":"^1.1.0","postcss-modules":"^4.0.0","postcss-selector-parser":"^6.0.4"},"licenseText":"The MIT License (MIT)\n\nCopyright (c) 2018-present, Yuxi (Evan) You\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","_id":"@vue/compiler-sfc@3.2.38","dist":{"shasum":"9e763019471a535eb1fceeaac9d4d18a83f0940f","integrity":"sha512-KZjrW32KloMYtTcHAFuw3CqsyWc5X6seb8KbkANSWt3Cz9p2qA8c1GJpSkksFP9ABb6an0FLCFl46ZFXx3kKpg==","tarball":"http://localhost:4260/@vue/compiler-sfc/compiler-sfc-3.2.38.tgz","fileCount":8,"unpackedSize":2080509,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDk5/k9sPiRsEXIxkcyK2qEeEBwvOLFL15UTD8bURAS5QIgT/WJ3KfBz3HA0VYwKRwkOtm3dYRO9H5pMcUA6LvJiNk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjDcP+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo/uQ//am1jTR52w+C6oH9kLSHrZGjPlChTzIgSZ0fzMf/j5BJrgfyo\r\nvhA8zhdpbxxs2KREDUiRISUo+ZWKX6LUwT20z9J835YELR6sSwV0wxSmA2Hh\r\nFfVIm4s4XkAqMudfaiCFVdF9qPcBm578Kz1p/WmiCBORKTnVcSc8NlEWYIf4\r\nzfO9ilffFpVvQhTLoDtLG/yAA6s32+mShRFDyuona2fizdU+9kf5RSPP7aOd\r\nKqIBiRU4OmwK5q3CrIFzdOszhLoFqo2qhUhecOAOTzTaOuRAJoqKqWq7UzBb\r\nKnmqIVD77JccQXV41PEMeSJrLq2JsWmvhOfa7ExkotT0K0CAhhZj839NC/q2\r\nDGeKdEmaXyhInOrpSXgD5vktgf+6G/jDxUb9bJyUjPMw2D4yAD1hBzZBCG/j\r\nWZKEhOxlnCKiIGZ++t6uTi4o6GQiwLX2FnBXkJIEi9NJj3+0LstgDT1EZFK3\r\nFl/8gy6k3bDCCVefZzsUBCaPDaVBQHeHI/NwUNTT/YGnPl30gi7Bqi3ApWQl\r\nETIRb88BzcpH58Ml9DpnnOCsEkFe6CJ2B+ZYKhUXmhQDYaexSBS53TizuMAO\r\n+poMrYP1XV3eLVlIbWGYYmdGT/sPa9nKFiUgM1d5Lla6BeqZrlfuYori+KYz\r\nefaLCjXPNtbKcBTDxbq4Pv7hCQwb2UbK83o=\r\n=uME4\r\n-----END PGP SIGNATURE-----\r\n"},"directories":{},"_hasShrinkwrap":false}},"description":"@vue/compiler-sfc","homepage":"https://github.com/vuejs/core/tree/main/packages/compiler-sfc#readme","repository":{"type":"git","url":"git+https://github.com/vuejs/core.git","directory":"packages/compiler-sfc"},"author":{"name":"Evan You"},"bugs":{"url":"https://github.com/vuejs/core/issues"},"license":"MIT","readme":"# @vue/compiler-sfc\n\n> Lower level utilities for compiling Vue Single File Components\n\n**Note: as of 3.2.13+, this package is included as a dependency of the main `vue` package and can be accessed as `vue/compiler-sfc`. This means you no longer need to explicitly install this package and ensure its version match that of `vue`'s. Just use the main `vue/compiler-sfc` deep import instead.**\n\nThis package contains lower level utilities that you can use if you are writing a plugin / transform for a bundler or module system that compiles Vue Single File Components (SFCs) into JavaScript. It is used in [vue-loader](https://github.com/vuejs/vue-loader), [rollup-plugin-vue](https://github.com/vuejs/rollup-plugin-vue) and [vite](https://github.com/vitejs/vite).\n\n## API\n\nThe API is intentionally low-level due to the various considerations when integrating Vue SFCs in a build system:\n\n- Separate hot-module replacement (HMR) for script, template and styles\n\n - template updates should not reset component state\n - style updates should be performed without component re-render\n\n- Leveraging the tool's plugin system for pre-processor handling. e.g. `