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/which-module | |
| 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/which-module')
| -rw-r--r-- | tests/registry/npm/which-module/registry.json | 67 |
1 files changed, 66 insertions, 1 deletions
diff --git a/tests/registry/npm/which-module/registry.json b/tests/registry/npm/which-module/registry.json index 6de46b125..762e068c4 100644 --- a/tests/registry/npm/which-module/registry.json +++ b/tests/registry/npm/which-module/registry.json @@ -1 +1,66 @@ -{"name":"which-module","description":"Find the module object for something that was require()d","dist-tags":{"latest":"2.0.0"},"versions":{"2.0.0":{"name":"which-module","version":"2.0.0","description":"Find the module object for something that was require()d","main":"index.js","scripts":{"pretest":"standard","test":"nyc ava","coverage":"nyc report --reporter=text-lcov | coveralls","release":"standard-version"},"files":["index.js"],"repository":{"type":"git","url":"git+https://github.com/nexdrew/which-module.git"},"author":{"name":"nexdrew"},"license":"ISC","bugs":{"url":"https://github.com/nexdrew/which-module/issues"},"devDependencies":{"ava":"^0.19.1","coveralls":"^2.13.1","nyc":"^10.3.0","standard":"^10.0.2","standard-version":"^4.0.0"},"gitHead":"7f78f42d0761133263c3947a3b24dde324a467ce","_id":"which-module@2.0.0","_shasum":"d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.9.0","dist":{"shasum":"d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a","tarball":"http://localhost:4260/which-module/which-module-2.0.0.tgz","integrity":"sha512-B+enWhmw6cjfVC7kS8Pj9pCrKSc5txArRyaYGe088shv/FGWH+0Rjx/xPgtsWfsUtS27FkP697E4DDhgrgoc0Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC53OPKZYZEE0kq+DSThbHCGmj9pK3ydC0qIfmE6vmSkQIhAMuI0FnrJwWYGDqZGh7/upXLNzuN3E3Zj872XxGix75U"}]}}},"readme":"# which-module\n\n> Find the module object for something that was require()d\n\n[](https://travis-ci.org/nexdrew/which-module)\n[](https://coveralls.io/github/nexdrew/which-module?branch=master)\n[](https://github.com/conventional-changelog/standard-version)\n\nFind the `module` object in `require.cache` for something that was `require()`d\nor `import`ed - essentially a reverse `require()` lookup.\n\nUseful for libs that want to e.g. lookup a filename for a module or submodule\nthat it did not `require()` itself.\n\n## Install and Usage\n\n```\nnpm install --save which-module\n```\n\n```js\nconst whichModule = require('which-module')\n\nconsole.log(whichModule(require('something')))\n// Module {\n// id: '/path/to/project/node_modules/something/index.js',\n// exports: [Function],\n// parent: ...,\n// filename: '/path/to/project/node_modules/something/index.js',\n// loaded: true,\n// children: [],\n// paths: [ '/path/to/project/node_modules/something/node_modules',\n// '/path/to/project/node_modules',\n// '/path/to/node_modules',\n// '/path/node_modules',\n// '/node_modules' ] }\n```\n\n## API\n\n### `whichModule(exported)`\n\nReturn the [`module` object](https://nodejs.org/api/modules.html#modules_the_module_object),\nif any, that represents the given argument in the `require.cache`.\n\n`exported` can be anything that was previously `require()`d or `import`ed as a\nmodule, submodule, or dependency - which means `exported` is identical to the\n`module.exports` returned by this method.\n\nIf `exported` did not come from the `exports` of a `module` in `require.cache`,\nthen this method returns `null`.\n\n## License\n\nISC © Contributors\n","homepage":"https://github.com/nexdrew/which-module#readme","repository":{"type":"git","url":"git+https://github.com/nexdrew/which-module.git"},"author":{"name":"nexdrew"},"bugs":{"url":"https://github.com/nexdrew/which-module/issues"},"license":"ISC","readmeFilename":"README.md"} +{ + "name": "which-module", + "description": "Find the module object for something that was require()d", + "dist-tags": { + "latest": "2.0.0" + }, + "versions": { + "2.0.0": { + "name": "which-module", + "version": "2.0.0", + "description": "Find the module object for something that was require()d", + "main": "index.js", + "scripts": { + "pretest": "standard", + "test": "nyc ava", + "coverage": "nyc report --reporter=text-lcov | coveralls", + "release": "standard-version" + }, + "files": [ + "index.js" + ], + "repository": { + "type": "git", + "url": "git+https://github.com/nexdrew/which-module.git" + }, + "author": { + "name": "nexdrew" + }, + "license": "ISC", + "bugs": { + "url": "https://github.com/nexdrew/which-module/issues" + }, + "devDependencies": { + "ava": "^0.19.1", + "coveralls": "^2.13.1", + "nyc": "^10.3.0", + "standard": "^10.0.2", + "standard-version": "^4.0.0" + }, + "gitHead": "7f78f42d0761133263c3947a3b24dde324a467ce", + "_id": "which-module@2.0.0", + "_shasum": "d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a", + "_from": ".", + "_npmVersion": "4.2.0", + "_nodeVersion": "7.9.0", + "dist": { + "shasum": "d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a", + "tarball": "http://localhost:4260/which-module/which-module-2.0.0.tgz", + "integrity": "sha512-B+enWhmw6cjfVC7kS8Pj9pCrKSc5txArRyaYGe088shv/FGWH+0Rjx/xPgtsWfsUtS27FkP697E4DDhgrgoc0Q==" + } + } + }, + "homepage": "https://github.com/nexdrew/which-module#readme", + "repository": { + "type": "git", + "url": "git+https://github.com/nexdrew/which-module.git" + }, + "author": { + "name": "nexdrew" + }, + "bugs": { + "url": "https://github.com/nexdrew/which-module/issues" + }, + "license": "ISC", + "readmeFilename": "README.md" +} |
