.
This commit is contained in:
		
							
								
								
									
										18
									
								
								qwen/nodejs/node_modules/is-core-module/.eslintrc
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								qwen/nodejs/node_modules/is-core-module/.eslintrc
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,18 @@
 | 
			
		||||
{
 | 
			
		||||
    "extends": "@ljharb",
 | 
			
		||||
    "root": true,
 | 
			
		||||
    "rules": {
 | 
			
		||||
		"func-style": 1,
 | 
			
		||||
    },
 | 
			
		||||
    "overrides": [
 | 
			
		||||
        {
 | 
			
		||||
            "files": "test/**",
 | 
			
		||||
            "rules": {
 | 
			
		||||
                "global-require": 0,
 | 
			
		||||
				"max-depth": 0,
 | 
			
		||||
                "max-lines-per-function": 0,
 | 
			
		||||
				"no-negated-condition": 0,
 | 
			
		||||
            },
 | 
			
		||||
        },
 | 
			
		||||
    ],
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										9
									
								
								qwen/nodejs/node_modules/is-core-module/.nycrc
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								qwen/nodejs/node_modules/is-core-module/.nycrc
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
			
		||||
{
 | 
			
		||||
	"all": true,
 | 
			
		||||
	"check-coverage": false,
 | 
			
		||||
	"reporter": ["text-summary", "text", "html", "json"],
 | 
			
		||||
	"exclude": [
 | 
			
		||||
		"coverage",
 | 
			
		||||
		"test"
 | 
			
		||||
	]
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										218
									
								
								qwen/nodejs/node_modules/is-core-module/CHANGELOG.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										218
									
								
								qwen/nodejs/node_modules/is-core-module/CHANGELOG.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,218 @@
 | 
			
		||||
# Changelog
 | 
			
		||||
 | 
			
		||||
All notable changes to this project will be documented in this file.
 | 
			
		||||
 | 
			
		||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
 | 
			
		||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
 | 
			
		||||
 | 
			
		||||
## [v2.16.1](https://github.com/inspect-js/is-core-module/compare/v2.16.0...v2.16.1) - 2024-12-21
 | 
			
		||||
 | 
			
		||||
### Fixed
 | 
			
		||||
 | 
			
		||||
- [Fix] `node:sqlite` is available in node ^22.13 [`#17`](https://github.com/inspect-js/is-core-module/issues/17)
 | 
			
		||||
 | 
			
		||||
## [v2.16.0](https://github.com/inspect-js/is-core-module/compare/v2.15.1...v2.16.0) - 2024-12-13
 | 
			
		||||
 | 
			
		||||
### Commits
 | 
			
		||||
 | 
			
		||||
- [New] add `node:sqlite` [`1ee94d2`](https://github.com/inspect-js/is-core-module/commit/1ee94d20857e22cdb24e9b4bb1a2097f2e03e26f)
 | 
			
		||||
- [Dev Deps] update `auto-changelog`, `tape` [`aa84aa3`](https://github.com/inspect-js/is-core-module/commit/aa84aa34face677f14e08ec1c737f0c4bba27260)
 | 
			
		||||
 | 
			
		||||
## [v2.15.1](https://github.com/inspect-js/is-core-module/compare/v2.15.0...v2.15.1) - 2024-08-21
 | 
			
		||||
 | 
			
		||||
### Commits
 | 
			
		||||
 | 
			
		||||
- [Tests] add `process.getBuiltinModule` tests [`28c7791`](https://github.com/inspect-js/is-core-module/commit/28c7791c196d58c64cfdf638b7e68ed1b62a4da0)
 | 
			
		||||
- [Fix] `test/mock_loader` is no longer exposed as of v22.7 [`68b08b0`](https://github.com/inspect-js/is-core-module/commit/68b08b0d7963447dbffa5142e8810dca550383af)
 | 
			
		||||
- [Tests] replace `aud` with `npm audit` [`32f8060`](https://github.com/inspect-js/is-core-module/commit/32f806026dac14f9016be4401a643851240c76b9)
 | 
			
		||||
- [Dev Deps] update `mock-property` [`f7d3c8f`](https://github.com/inspect-js/is-core-module/commit/f7d3c8f01e922be49621683eb41477c4f50522e1)
 | 
			
		||||
- [Dev Deps] add missing peer dep [`eaee885`](https://github.com/inspect-js/is-core-module/commit/eaee885b67238819e9c8ed5bd2098766e1d05331)
 | 
			
		||||
 | 
			
		||||
## [v2.15.0](https://github.com/inspect-js/is-core-module/compare/v2.14.0...v2.15.0) - 2024-07-17
 | 
			
		||||
 | 
			
		||||
### Commits
 | 
			
		||||
 | 
			
		||||
- [New] add `node:sea` [`2819fb3`](https://github.com/inspect-js/is-core-module/commit/2819fb3eae312fa64643bc5430ebd06ec0f3fb88)
 | 
			
		||||
 | 
			
		||||
## [v2.14.0](https://github.com/inspect-js/is-core-module/compare/v2.13.1...v2.14.0) - 2024-06-20
 | 
			
		||||
 | 
			
		||||
### Commits
 | 
			
		||||
 | 
			
		||||
- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `mock-property`, `npmignore`, `tape` [`0e43200`](https://github.com/inspect-js/is-core-module/commit/0e432006d97237cc082d41e6a593e87c81068364)
 | 
			
		||||
- [meta] add missing `engines.node` [`4ea3af8`](https://github.com/inspect-js/is-core-module/commit/4ea3af88891a1d4f96026f0ec0ef08c67cd1bd24)
 | 
			
		||||
- [New] add `test/mock_loader` [`e9fbd29`](https://github.com/inspect-js/is-core-module/commit/e9fbd2951383be070aeffb9ebbf3715237282610)
 | 
			
		||||
- [Deps] update `hasown` [`57f1940`](https://github.com/inspect-js/is-core-module/commit/57f1940947b3e368abdf529232d2f17d88909358)
 | 
			
		||||
 | 
			
		||||
## [v2.13.1](https://github.com/inspect-js/is-core-module/compare/v2.13.0...v2.13.1) - 2023-10-20
 | 
			
		||||
 | 
			
		||||
### Commits
 | 
			
		||||
 | 
			
		||||
- [Refactor] use `hasown` instead of `has` [`0e52096`](https://github.com/inspect-js/is-core-module/commit/0e520968b0a725276b67420ab4b877486b243ae0)
 | 
			
		||||
- [Dev Deps] update `mock-property`, `tape` [`8736b35`](https://github.com/inspect-js/is-core-module/commit/8736b35464d0f297b55da2c6b30deee04b8303c5)
 | 
			
		||||
 | 
			
		||||
## [v2.13.0](https://github.com/inspect-js/is-core-module/compare/v2.12.1...v2.13.0) - 2023-08-05
 | 
			
		||||
 | 
			
		||||
### Commits
 | 
			
		||||
 | 
			
		||||
- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `semver`, `tape` [`c75b263`](https://github.com/inspect-js/is-core-module/commit/c75b263d047cb53430c3970107e5eb64d6cd6c0c)
 | 
			
		||||
- [New] `node:test/reporters` and `wasi`/`node:wasi` are in v18.17 [`d76cbf8`](https://github.com/inspect-js/is-core-module/commit/d76cbf8e9b208acfd98913fed5a5f45cb15fe5dc)
 | 
			
		||||
 | 
			
		||||
## [v2.12.1](https://github.com/inspect-js/is-core-module/compare/v2.12.0...v2.12.1) - 2023-05-16
 | 
			
		||||
 | 
			
		||||
### Commits
 | 
			
		||||
 | 
			
		||||
- [Fix] `test/reporters` now requires the `node:` prefix as of v20.2 [`12183d0`](https://github.com/inspect-js/is-core-module/commit/12183d0d8e4edf56b6ce18a1b3be54bfce10175b)
 | 
			
		||||
 | 
			
		||||
## [v2.12.0](https://github.com/inspect-js/is-core-module/compare/v2.11.0...v2.12.0) - 2023-04-10
 | 
			
		||||
 | 
			
		||||
### Commits
 | 
			
		||||
 | 
			
		||||
- [actions] update rebase action to use reusable workflow [`c0a7251`](https://github.com/inspect-js/is-core-module/commit/c0a7251f734f3c621932c5fcdfd1bf966b42ca32)
 | 
			
		||||
- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `tape` [`9ae8b7f`](https://github.com/inspect-js/is-core-module/commit/9ae8b7fac03c369861d0991b4a2ce8d4848e6a7d)
 | 
			
		||||
- [New] `test/reporters` added in v19.9, `wasi` added in v20 [`9d5341a`](https://github.com/inspect-js/is-core-module/commit/9d5341ab32053f25b7fa7db3c0e18461db24a79c)
 | 
			
		||||
- [Dev Deps] add missing `in-publish` dep [`5980245`](https://github.com/inspect-js/is-core-module/commit/59802456e9ac919fa748f53be9d8fbf304a197df)
 | 
			
		||||
 | 
			
		||||
## [v2.11.0](https://github.com/inspect-js/is-core-module/compare/v2.10.0...v2.11.0) - 2022-10-18
 | 
			
		||||
 | 
			
		||||
### Commits
 | 
			
		||||
 | 
			
		||||
- [meta] use `npmignore` to autogenerate an npmignore file [`3360011`](https://github.com/inspect-js/is-core-module/commit/33600118857b46177178072fba2affcdeb009d12)
 | 
			
		||||
- [Dev Deps] update `aud`, `tape` [`651c6b0`](https://github.com/inspect-js/is-core-module/commit/651c6b0cc2799d4130866cf43ad333dcade3d26c)
 | 
			
		||||
- [New] `inspector/promises` and `node:inspector/promises` is now available in node 19 [`22d332f`](https://github.com/inspect-js/is-core-module/commit/22d332fe22ac050305444e0781ff85af819abcb0)
 | 
			
		||||
 | 
			
		||||
## [v2.10.0](https://github.com/inspect-js/is-core-module/compare/v2.9.0...v2.10.0) - 2022-08-03
 | 
			
		||||
 | 
			
		||||
### Commits
 | 
			
		||||
 | 
			
		||||
- [New] `node:test` is now available in node ^16.17 [`e8fd36e`](https://github.com/inspect-js/is-core-module/commit/e8fd36e9b86c917775a07cc473b62a3294f459f2)
 | 
			
		||||
- [Tests] improve skip message [`c014a4c`](https://github.com/inspect-js/is-core-module/commit/c014a4c0cd6eb15fff573ae4709191775e70cab4)
 | 
			
		||||
 | 
			
		||||
## [v2.9.0](https://github.com/inspect-js/is-core-module/compare/v2.8.1...v2.9.0) - 2022-04-19
 | 
			
		||||
 | 
			
		||||
### Commits
 | 
			
		||||
 | 
			
		||||
- [New] add `node:test`, in node 18+ [`f853eca`](https://github.com/inspect-js/is-core-module/commit/f853eca801d0a7d4e1dbb670f1b6d9837d9533c5)
 | 
			
		||||
- [Tests] use `mock-property` [`03b3644`](https://github.com/inspect-js/is-core-module/commit/03b3644dff4417f4ba5a7d0aa0138f5f6b3e5c46)
 | 
			
		||||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `tape` [`7c0e2d0`](https://github.com/inspect-js/is-core-module/commit/7c0e2d06ed2a89acf53abe2ab34d703ed5b03455)
 | 
			
		||||
- [meta] simplify "exports" [`d6ed201`](https://github.com/inspect-js/is-core-module/commit/d6ed201eba7fbba0e59814a9050fc49a6e9878c8)
 | 
			
		||||
 | 
			
		||||
## [v2.8.1](https://github.com/inspect-js/is-core-module/compare/v2.8.0...v2.8.1) - 2022-01-05
 | 
			
		||||
 | 
			
		||||
### Commits
 | 
			
		||||
 | 
			
		||||
- [actions] reuse common workflows [`cd2cf9b`](https://github.com/inspect-js/is-core-module/commit/cd2cf9b3b66c8d328f65610efe41e9325db7716d)
 | 
			
		||||
- [Fix] update node 0.4 results [`062195d`](https://github.com/inspect-js/is-core-module/commit/062195d89f0876a88b95d378b43f7fcc1205bc5b)
 | 
			
		||||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `safe-publish-latest`, `tape` [`0790b62`](https://github.com/inspect-js/is-core-module/commit/0790b6222848c6167132f9f73acc3520fa8d1298)
 | 
			
		||||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape` [`7d139a6`](https://github.com/inspect-js/is-core-module/commit/7d139a6d767709eabf0a0251e074ec1fb230c06e)
 | 
			
		||||
- [Tests] run `nyc` in `tests-only`, not `test` [`780e8a0`](https://github.com/inspect-js/is-core-module/commit/780e8a049951c71cf78b1707f0871c48a28bde14)
 | 
			
		||||
 | 
			
		||||
## [v2.8.0](https://github.com/inspect-js/is-core-module/compare/v2.7.0...v2.8.0) - 2021-10-14
 | 
			
		||||
 | 
			
		||||
### Commits
 | 
			
		||||
 | 
			
		||||
- [actions] update codecov uploader [`0cfe94e`](https://github.com/inspect-js/is-core-module/commit/0cfe94e106a7d005ea03e008c0a21dec13a77904)
 | 
			
		||||
- [New] add `readline/promises` to node v17+ [`4f78c30`](https://github.com/inspect-js/is-core-module/commit/4f78c3008b1b58b4db6dc91d99610b1bc859da7e)
 | 
			
		||||
- [Tests] node ^14.18 supports `node:` prefixes for CJS [`43e2f17`](https://github.com/inspect-js/is-core-module/commit/43e2f177452cea2f0eaf34f61b5407217bbdb6f4)
 | 
			
		||||
 | 
			
		||||
## [v2.7.0](https://github.com/inspect-js/is-core-module/compare/v2.6.0...v2.7.0) - 2021-09-27
 | 
			
		||||
 | 
			
		||||
### Commits
 | 
			
		||||
 | 
			
		||||
- [New] node `v14.18` added `node:`-prefixed core modules to `require` [`6d943ab`](https://github.com/inspect-js/is-core-module/commit/6d943abe81382b9bbe344384d80fbfebe1cc0526)
 | 
			
		||||
- [Tests] add coverage for Object.prototype pollution [`c6baf5f`](https://github.com/inspect-js/is-core-module/commit/c6baf5f942311a1945c1af41167bb80b84df2af7)
 | 
			
		||||
- [Dev Deps] update `@ljharb/eslint-config` [`6717f00`](https://github.com/inspect-js/is-core-module/commit/6717f000d063ea57beb772bded36c2f056ac404c)
 | 
			
		||||
- [eslint] fix linter warning [`594c10b`](https://github.com/inspect-js/is-core-module/commit/594c10bb7d39d7eb00925c90924199ff596184b2)
 | 
			
		||||
- [meta] add `sideEffects` flag [`c32cfa5`](https://github.com/inspect-js/is-core-module/commit/c32cfa5195632944c4dd4284a142b8476e75be13)
 | 
			
		||||
 | 
			
		||||
## [v2.6.0](https://github.com/inspect-js/is-core-module/compare/v2.5.0...v2.6.0) - 2021-08-17
 | 
			
		||||
 | 
			
		||||
### Commits
 | 
			
		||||
 | 
			
		||||
- [Dev Deps] update `eslint`, `tape` [`6cc928f`](https://github.com/inspect-js/is-core-module/commit/6cc928f8a4bba66aeeccc4f6beeac736d4bd3081)
 | 
			
		||||
- [New] add `stream/consumers` to node `>= 16.7` [`a1a423e`](https://github.com/inspect-js/is-core-module/commit/a1a423e467e4cc27df180234fad5bab45943e67d)
 | 
			
		||||
- [Refactor] Remove duplicated `&&` operand [`86faea7`](https://github.com/inspect-js/is-core-module/commit/86faea738213a2433c62d1098488dc9314dca832)
 | 
			
		||||
- [Tests] include prereleases [`a4da7a6`](https://github.com/inspect-js/is-core-module/commit/a4da7a6abf7568e2aa4fd98e69452179f1850963)
 | 
			
		||||
 | 
			
		||||
## [v2.5.0](https://github.com/inspect-js/is-core-module/compare/v2.4.0...v2.5.0) - 2021-07-12
 | 
			
		||||
 | 
			
		||||
### Commits
 | 
			
		||||
 | 
			
		||||
- [Dev Deps] update `auto-changelog`, `eslint` [`6334cc9`](https://github.com/inspect-js/is-core-module/commit/6334cc94f3af7469685bd8f236740991baaf2705)
 | 
			
		||||
- [New] add `stream/web` to node v16.5+ [`17ac59b`](https://github.com/inspect-js/is-core-module/commit/17ac59b662d63e220a2e5728625f005c24f177b2)
 | 
			
		||||
 | 
			
		||||
## [v2.4.0](https://github.com/inspect-js/is-core-module/compare/v2.3.0...v2.4.0) - 2021-05-09
 | 
			
		||||
 | 
			
		||||
### Commits
 | 
			
		||||
 | 
			
		||||
- [readme] add actions and codecov badges [`82b7faa`](https://github.com/inspect-js/is-core-module/commit/82b7faa12b56dbe47fbea67e1a5b9e447027ba40)
 | 
			
		||||
- [Dev Deps] update `@ljharb/eslint-config`, `aud` [`8096868`](https://github.com/inspect-js/is-core-module/commit/8096868c024a161ccd4d44110b136763e92eace8)
 | 
			
		||||
- [Dev Deps] update `eslint` [`6726824`](https://github.com/inspect-js/is-core-module/commit/67268249b88230018c510f6532a8046d7326346f)
 | 
			
		||||
- [New] add `diagnostics_channel` to node `^14.17` [`86c6563`](https://github.com/inspect-js/is-core-module/commit/86c65634201b8ff9b3e48a9a782594579c7f5c3c)
 | 
			
		||||
- [meta] fix prepublish script [`697a01e`](https://github.com/inspect-js/is-core-module/commit/697a01e3c9c0be074066520954f30fb28532ec57)
 | 
			
		||||
 | 
			
		||||
## [v2.3.0](https://github.com/inspect-js/is-core-module/compare/v2.2.0...v2.3.0) - 2021-04-24
 | 
			
		||||
 | 
			
		||||
### Commits
 | 
			
		||||
 | 
			
		||||
- [meta] do not publish github action workflow files [`060d4bb`](https://github.com/inspect-js/is-core-module/commit/060d4bb971a29451c19ff336eb56bee27f9fa95a)
 | 
			
		||||
- [New] add support for `node:` prefix, in node 16+ [`7341223`](https://github.com/inspect-js/is-core-module/commit/73412230a769f6e81c05eea50b6520cebf54ed2f)
 | 
			
		||||
- [actions] use `node/install` instead of `node/run`; use `codecov` action [`016269a`](https://github.com/inspect-js/is-core-module/commit/016269abae9f6657a5254adfbb813f09a05067f9)
 | 
			
		||||
- [patch] remove unneeded `.0` in version ranges [`cb466a6`](https://github.com/inspect-js/is-core-module/commit/cb466a6d89e52b8389e5c12715efcd550c41cea3)
 | 
			
		||||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `tape` [`c9f9c39`](https://github.com/inspect-js/is-core-module/commit/c9f9c396ace60ef81906f98059c064e6452473ed)
 | 
			
		||||
- [actions] update workflows [`3ee4a89`](https://github.com/inspect-js/is-core-module/commit/3ee4a89fd5a02fccd43882d905448ea6a98e9a3c)
 | 
			
		||||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config` [`dee4fed`](https://github.com/inspect-js/is-core-module/commit/dee4fed79690c1d43a22f7fa9426abebdc6d727f)
 | 
			
		||||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config` [`7d046ba`](https://github.com/inspect-js/is-core-module/commit/7d046ba07ae8c9292e43652694ca808d7b309de8)
 | 
			
		||||
- [meta] use `prepublishOnly` script for npm 7+ [`149e677`](https://github.com/inspect-js/is-core-module/commit/149e6771a5ede6d097e71785b467a9c4b4977cc7)
 | 
			
		||||
- [readme] remove travis badge [`903b51d`](https://github.com/inspect-js/is-core-module/commit/903b51d6b69b98abeabfbc3695c345b02646f19c)
 | 
			
		||||
 | 
			
		||||
## [v2.2.0](https://github.com/inspect-js/is-core-module/compare/v2.1.0...v2.2.0) - 2020-11-26
 | 
			
		||||
 | 
			
		||||
### Commits
 | 
			
		||||
 | 
			
		||||
- [Tests] migrate tests to Github Actions [`c919f57`](https://github.com/inspect-js/is-core-module/commit/c919f573c0a92d10a0acad0b650b5aecb033d426)
 | 
			
		||||
- [patch] `core.json`: %s/    /\t/g [`db3f685`](https://github.com/inspect-js/is-core-module/commit/db3f68581f53e73cc09cd675955eb1bdd6a5a39b)
 | 
			
		||||
- [Tests] run `nyc` on all tests [`b2f925f`](https://github.com/inspect-js/is-core-module/commit/b2f925f8866f210ef441f39fcc8cc42692ab89b1)
 | 
			
		||||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`; add `safe-publish-latest` [`89f02a2`](https://github.com/inspect-js/is-core-module/commit/89f02a2b4162246dea303a6ee31bb9a550b05c72)
 | 
			
		||||
- [New] add `path/posix`, `path/win32`, `util/types` [`77f94f1`](https://github.com/inspect-js/is-core-module/commit/77f94f1e90ffd7c0be2a3f1aa8574ebf7fd981b3)
 | 
			
		||||
 | 
			
		||||
## [v2.1.0](https://github.com/inspect-js/is-core-module/compare/v2.0.0...v2.1.0) - 2020-11-04
 | 
			
		||||
 | 
			
		||||
### Commits
 | 
			
		||||
 | 
			
		||||
- [Dev Deps] update `eslint` [`5e0034e`](https://github.com/inspect-js/is-core-module/commit/5e0034eae57c09c8f1bd769f502486a00f56c6e4)
 | 
			
		||||
- [New] Add `diagnostics_channel` [`c2d83d0`](https://github.com/inspect-js/is-core-module/commit/c2d83d0a0225a1a658945d9bab7036ea347d29ec)
 | 
			
		||||
 | 
			
		||||
## [v2.0.0](https://github.com/inspect-js/is-core-module/compare/v1.0.2...v2.0.0) - 2020-09-29
 | 
			
		||||
 | 
			
		||||
### Commits
 | 
			
		||||
 | 
			
		||||
- v2 implementation [`865aeb5`](https://github.com/inspect-js/is-core-module/commit/865aeb5ca0e90248a3dfff5d7622e4751fdeb9cd)
 | 
			
		||||
- Only apps should have lockfiles [`5a5e660`](https://github.com/inspect-js/is-core-module/commit/5a5e660d568e37eb44e17fb1ebb12a105205fc2b)
 | 
			
		||||
- Initial commit for v2 [`5a51524`](https://github.com/inspect-js/is-core-module/commit/5a51524e06f92adece5fbb138c69b7b9748a2348)
 | 
			
		||||
- Tests [`116eae4`](https://github.com/inspect-js/is-core-module/commit/116eae4fccd01bc72c1fd3cc4b7561c387afc496)
 | 
			
		||||
- [meta] add `auto-changelog` [`c24388b`](https://github.com/inspect-js/is-core-module/commit/c24388bee828d223040519d1f5b226ca35beee63)
 | 
			
		||||
- [actions] add "Automatic Rebase" and "require allow edits" actions [`34292db`](https://github.com/inspect-js/is-core-module/commit/34292dbcbadae0868aff03c22dbd8b7b8a11558a)
 | 
			
		||||
- [Tests] add `npm run lint` [`4f9eeee`](https://github.com/inspect-js/is-core-module/commit/4f9eeee7ddff10698bbf528620f4dc8d4fa3e697)
 | 
			
		||||
- [readme] fix travis badges, https all URLs [`e516a73`](https://github.com/inspect-js/is-core-module/commit/e516a73b0dccce20938c432b1ba512eae8eff9e9)
 | 
			
		||||
- [meta] create FUNDING.yml [`1aabebc`](https://github.com/inspect-js/is-core-module/commit/1aabebca98d01f8a04e46bc2e2520fa93cf21ac6)
 | 
			
		||||
- [Fix] `domain`: domain landed sometime > v0.7.7 and <= v0.7.12 [`2df7d37`](https://github.com/inspect-js/is-core-module/commit/2df7d37595d41b15eeada732b706b926c2771655)
 | 
			
		||||
- [Fix] `sys`: worked in 0.6, not 0.7, and 0.8+ [`a75c134`](https://github.com/inspect-js/is-core-module/commit/a75c134229e1e9441801f6b73f6a52489346eb65)
 | 
			
		||||
 | 
			
		||||
## [v1.0.2](https://github.com/inspect-js/is-core-module/compare/v1.0.1...v1.0.2) - 2014-09-28
 | 
			
		||||
 | 
			
		||||
### Commits
 | 
			
		||||
 | 
			
		||||
- simpler [`66fe90f`](https://github.com/inspect-js/is-core-module/commit/66fe90f9771581b9adc0c3900baa52c21b5baea2)
 | 
			
		||||
 | 
			
		||||
## [v1.0.1](https://github.com/inspect-js/is-core-module/compare/v1.0.0...v1.0.1) - 2014-09-28
 | 
			
		||||
 | 
			
		||||
### Commits
 | 
			
		||||
 | 
			
		||||
- remove stupid [`f21f906`](https://github.com/inspect-js/is-core-module/commit/f21f906f882c2bd656a5fc5ed6fbe48ddaffb2ac)
 | 
			
		||||
- update readme [`1eff0ec`](https://github.com/inspect-js/is-core-module/commit/1eff0ec69798d1ec65771552d1562911e90a8027)
 | 
			
		||||
 | 
			
		||||
## v1.0.0 - 2014-09-28
 | 
			
		||||
 | 
			
		||||
### Commits
 | 
			
		||||
 | 
			
		||||
- init [`48e5e76`](https://github.com/inspect-js/is-core-module/commit/48e5e76cac378fddb8c1f7d4055b8dfc943d6b96)
 | 
			
		||||
							
								
								
									
										20
									
								
								qwen/nodejs/node_modules/is-core-module/LICENSE
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								qwen/nodejs/node_modules/is-core-module/LICENSE
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
			
		||||
The MIT License (MIT)
 | 
			
		||||
 | 
			
		||||
Copyright (c) 2014 Dave Justice
 | 
			
		||||
 | 
			
		||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
 | 
			
		||||
this software and associated documentation files (the "Software"), to deal in
 | 
			
		||||
the Software without restriction, including without limitation the rights to
 | 
			
		||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
 | 
			
		||||
the Software, and to permit persons to whom the Software is furnished to do so,
 | 
			
		||||
subject to the following conditions:
 | 
			
		||||
 | 
			
		||||
The above copyright notice and this permission notice shall be included in all
 | 
			
		||||
copies or substantial portions of the Software.
 | 
			
		||||
 | 
			
		||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 | 
			
		||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
 | 
			
		||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
 | 
			
		||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
 | 
			
		||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 | 
			
		||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 | 
			
		||||
							
								
								
									
										40
									
								
								qwen/nodejs/node_modules/is-core-module/README.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										40
									
								
								qwen/nodejs/node_modules/is-core-module/README.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,40 @@
 | 
			
		||||
# is-core-module <sup>[![Version Badge][2]][1]</sup>
 | 
			
		||||
 | 
			
		||||
[![github actions][actions-image]][actions-url]
 | 
			
		||||
[![coverage][codecov-image]][codecov-url]
 | 
			
		||||
[![dependency status][5]][6]
 | 
			
		||||
[![dev dependency status][7]][8]
 | 
			
		||||
[![License][license-image]][license-url]
 | 
			
		||||
[![Downloads][downloads-image]][downloads-url]
 | 
			
		||||
 | 
			
		||||
[![npm badge][11]][1]
 | 
			
		||||
 | 
			
		||||
Is this specifier a node.js core module? Optionally provide a node version to check; defaults to the current node version.
 | 
			
		||||
 | 
			
		||||
## Example
 | 
			
		||||
 | 
			
		||||
```js
 | 
			
		||||
var isCore = require('is-core-module');
 | 
			
		||||
var assert = require('assert');
 | 
			
		||||
assert(isCore('fs'));
 | 
			
		||||
assert(!isCore('butts'));
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## Tests
 | 
			
		||||
Clone the repo, `npm install`, and run `npm test`
 | 
			
		||||
 | 
			
		||||
[1]: https://npmjs.org/package/is-core-module
 | 
			
		||||
[2]: https://versionbadg.es/inspect-js/is-core-module.svg
 | 
			
		||||
[5]: https://david-dm.org/inspect-js/is-core-module.svg
 | 
			
		||||
[6]: https://david-dm.org/inspect-js/is-core-module
 | 
			
		||||
[7]: https://david-dm.org/inspect-js/is-core-module/dev-status.svg
 | 
			
		||||
[8]: https://david-dm.org/inspect-js/is-core-module#info=devDependencies
 | 
			
		||||
[11]: https://nodei.co/npm/is-core-module.png?downloads=true&stars=true
 | 
			
		||||
[license-image]: https://img.shields.io/npm/l/is-core-module.svg
 | 
			
		||||
[license-url]: LICENSE
 | 
			
		||||
[downloads-image]: https://img.shields.io/npm/dm/is-core-module.svg
 | 
			
		||||
[downloads-url]: https://npm-stat.com/charts.html?package=is-core-module
 | 
			
		||||
[codecov-image]: https://codecov.io/gh/inspect-js/is-core-module/branch/main/graphs/badge.svg
 | 
			
		||||
[codecov-url]: https://app.codecov.io/gh/inspect-js/is-core-module/
 | 
			
		||||
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/is-core-module
 | 
			
		||||
[actions-url]: https://github.com/inspect-js/is-core-module/actions
 | 
			
		||||
							
								
								
									
										162
									
								
								qwen/nodejs/node_modules/is-core-module/core.json
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										162
									
								
								qwen/nodejs/node_modules/is-core-module/core.json
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,162 @@
 | 
			
		||||
{
 | 
			
		||||
	"assert": true,
 | 
			
		||||
	"node:assert": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"assert/strict": ">= 15",
 | 
			
		||||
	"node:assert/strict": ">= 16",
 | 
			
		||||
	"async_hooks": ">= 8",
 | 
			
		||||
	"node:async_hooks": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"buffer_ieee754": ">= 0.5 && < 0.9.7",
 | 
			
		||||
	"buffer": true,
 | 
			
		||||
	"node:buffer": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"child_process": true,
 | 
			
		||||
	"node:child_process": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"cluster": ">= 0.5",
 | 
			
		||||
	"node:cluster": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"console": true,
 | 
			
		||||
	"node:console": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"constants": true,
 | 
			
		||||
	"node:constants": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"crypto": true,
 | 
			
		||||
	"node:crypto": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"_debug_agent": ">= 1 && < 8",
 | 
			
		||||
	"_debugger": "< 8",
 | 
			
		||||
	"dgram": true,
 | 
			
		||||
	"node:dgram": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"diagnostics_channel": [">= 14.17 && < 15", ">= 15.1"],
 | 
			
		||||
	"node:diagnostics_channel": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"dns": true,
 | 
			
		||||
	"node:dns": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"dns/promises": ">= 15",
 | 
			
		||||
	"node:dns/promises": ">= 16",
 | 
			
		||||
	"domain": ">= 0.7.12",
 | 
			
		||||
	"node:domain": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"events": true,
 | 
			
		||||
	"node:events": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"freelist": "< 6",
 | 
			
		||||
	"fs": true,
 | 
			
		||||
	"node:fs": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"fs/promises": [">= 10 && < 10.1", ">= 14"],
 | 
			
		||||
	"node:fs/promises": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"_http_agent": ">= 0.11.1",
 | 
			
		||||
	"node:_http_agent": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"_http_client": ">= 0.11.1",
 | 
			
		||||
	"node:_http_client": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"_http_common": ">= 0.11.1",
 | 
			
		||||
	"node:_http_common": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"_http_incoming": ">= 0.11.1",
 | 
			
		||||
	"node:_http_incoming": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"_http_outgoing": ">= 0.11.1",
 | 
			
		||||
	"node:_http_outgoing": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"_http_server": ">= 0.11.1",
 | 
			
		||||
	"node:_http_server": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"http": true,
 | 
			
		||||
	"node:http": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"http2": ">= 8.8",
 | 
			
		||||
	"node:http2": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"https": true,
 | 
			
		||||
	"node:https": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"inspector": ">= 8",
 | 
			
		||||
	"node:inspector": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"inspector/promises": [">= 19"],
 | 
			
		||||
	"node:inspector/promises": [">= 19"],
 | 
			
		||||
	"_linklist": "< 8",
 | 
			
		||||
	"module": true,
 | 
			
		||||
	"node:module": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"net": true,
 | 
			
		||||
	"node:net": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"node-inspect/lib/_inspect": ">= 7.6 && < 12",
 | 
			
		||||
	"node-inspect/lib/internal/inspect_client": ">= 7.6 && < 12",
 | 
			
		||||
	"node-inspect/lib/internal/inspect_repl": ">= 7.6 && < 12",
 | 
			
		||||
	"os": true,
 | 
			
		||||
	"node:os": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"path": true,
 | 
			
		||||
	"node:path": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"path/posix": ">= 15.3",
 | 
			
		||||
	"node:path/posix": ">= 16",
 | 
			
		||||
	"path/win32": ">= 15.3",
 | 
			
		||||
	"node:path/win32": ">= 16",
 | 
			
		||||
	"perf_hooks": ">= 8.5",
 | 
			
		||||
	"node:perf_hooks": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"process": ">= 1",
 | 
			
		||||
	"node:process": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"punycode": ">= 0.5",
 | 
			
		||||
	"node:punycode": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"querystring": true,
 | 
			
		||||
	"node:querystring": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"readline": true,
 | 
			
		||||
	"node:readline": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"readline/promises": ">= 17",
 | 
			
		||||
	"node:readline/promises": ">= 17",
 | 
			
		||||
	"repl": true,
 | 
			
		||||
	"node:repl": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"node:sea": [">= 20.12 && < 21", ">= 21.7"],
 | 
			
		||||
	"smalloc": ">= 0.11.5 && < 3",
 | 
			
		||||
	"node:sqlite": [">= 22.13 && < 23", ">= 23.4"],
 | 
			
		||||
	"_stream_duplex": ">= 0.9.4",
 | 
			
		||||
	"node:_stream_duplex": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"_stream_transform": ">= 0.9.4",
 | 
			
		||||
	"node:_stream_transform": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"_stream_wrap": ">= 1.4.1",
 | 
			
		||||
	"node:_stream_wrap": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"_stream_passthrough": ">= 0.9.4",
 | 
			
		||||
	"node:_stream_passthrough": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"_stream_readable": ">= 0.9.4",
 | 
			
		||||
	"node:_stream_readable": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"_stream_writable": ">= 0.9.4",
 | 
			
		||||
	"node:_stream_writable": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"stream": true,
 | 
			
		||||
	"node:stream": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"stream/consumers": ">= 16.7",
 | 
			
		||||
	"node:stream/consumers": ">= 16.7",
 | 
			
		||||
	"stream/promises": ">= 15",
 | 
			
		||||
	"node:stream/promises": ">= 16",
 | 
			
		||||
	"stream/web": ">= 16.5",
 | 
			
		||||
	"node:stream/web": ">= 16.5",
 | 
			
		||||
	"string_decoder": true,
 | 
			
		||||
	"node:string_decoder": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"sys": [">= 0.4 && < 0.7", ">= 0.8"],
 | 
			
		||||
	"node:sys": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"test/reporters": ">= 19.9 && < 20.2",
 | 
			
		||||
	"node:test/reporters": [">= 18.17 && < 19", ">= 19.9", ">= 20"],
 | 
			
		||||
	"test/mock_loader": ">= 22.3 && < 22.7",
 | 
			
		||||
	"node:test/mock_loader": ">= 22.3 && < 22.7",
 | 
			
		||||
	"node:test": [">= 16.17 && < 17", ">= 18"],
 | 
			
		||||
	"timers": true,
 | 
			
		||||
	"node:timers": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"timers/promises": ">= 15",
 | 
			
		||||
	"node:timers/promises": ">= 16",
 | 
			
		||||
	"_tls_common": ">= 0.11.13",
 | 
			
		||||
	"node:_tls_common": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"_tls_legacy": ">= 0.11.3 && < 10",
 | 
			
		||||
	"_tls_wrap": ">= 0.11.3",
 | 
			
		||||
	"node:_tls_wrap": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"tls": true,
 | 
			
		||||
	"node:tls": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"trace_events": ">= 10",
 | 
			
		||||
	"node:trace_events": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"tty": true,
 | 
			
		||||
	"node:tty": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"url": true,
 | 
			
		||||
	"node:url": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"util": true,
 | 
			
		||||
	"node:util": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"util/types": ">= 15.3",
 | 
			
		||||
	"node:util/types": ">= 16",
 | 
			
		||||
	"v8/tools/arguments": ">= 10 && < 12",
 | 
			
		||||
	"v8/tools/codemap": [">= 4.4 && < 5", ">= 5.2 && < 12"],
 | 
			
		||||
	"v8/tools/consarray": [">= 4.4 && < 5", ">= 5.2 && < 12"],
 | 
			
		||||
	"v8/tools/csvparser": [">= 4.4 && < 5", ">= 5.2 && < 12"],
 | 
			
		||||
	"v8/tools/logreader": [">= 4.4 && < 5", ">= 5.2 && < 12"],
 | 
			
		||||
	"v8/tools/profile_view": [">= 4.4 && < 5", ">= 5.2 && < 12"],
 | 
			
		||||
	"v8/tools/splaytree": [">= 4.4 && < 5", ">= 5.2 && < 12"],
 | 
			
		||||
	"v8": ">= 1",
 | 
			
		||||
	"node:v8": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"vm": true,
 | 
			
		||||
	"node:vm": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"wasi": [">= 13.4 && < 13.5", ">= 18.17 && < 19", ">= 20"],
 | 
			
		||||
	"node:wasi": [">= 18.17 && < 19", ">= 20"],
 | 
			
		||||
	"worker_threads": ">= 11.7",
 | 
			
		||||
	"node:worker_threads": [">= 14.18 && < 15", ">= 16"],
 | 
			
		||||
	"zlib": ">= 0.5",
 | 
			
		||||
	"node:zlib": [">= 14.18 && < 15", ">= 16"]
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										69
									
								
								qwen/nodejs/node_modules/is-core-module/index.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										69
									
								
								qwen/nodejs/node_modules/is-core-module/index.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,69 @@
 | 
			
		||||
'use strict';
 | 
			
		||||
 | 
			
		||||
var hasOwn = require('hasown');
 | 
			
		||||
 | 
			
		||||
function specifierIncluded(current, specifier) {
 | 
			
		||||
	var nodeParts = current.split('.');
 | 
			
		||||
	var parts = specifier.split(' ');
 | 
			
		||||
	var op = parts.length > 1 ? parts[0] : '=';
 | 
			
		||||
	var versionParts = (parts.length > 1 ? parts[1] : parts[0]).split('.');
 | 
			
		||||
 | 
			
		||||
	for (var i = 0; i < 3; ++i) {
 | 
			
		||||
		var cur = parseInt(nodeParts[i] || 0, 10);
 | 
			
		||||
		var ver = parseInt(versionParts[i] || 0, 10);
 | 
			
		||||
		if (cur === ver) {
 | 
			
		||||
			continue; // eslint-disable-line no-restricted-syntax, no-continue
 | 
			
		||||
		}
 | 
			
		||||
		if (op === '<') {
 | 
			
		||||
			return cur < ver;
 | 
			
		||||
		}
 | 
			
		||||
		if (op === '>=') {
 | 
			
		||||
			return cur >= ver;
 | 
			
		||||
		}
 | 
			
		||||
		return false;
 | 
			
		||||
	}
 | 
			
		||||
	return op === '>=';
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function matchesRange(current, range) {
 | 
			
		||||
	var specifiers = range.split(/ ?&& ?/);
 | 
			
		||||
	if (specifiers.length === 0) {
 | 
			
		||||
		return false;
 | 
			
		||||
	}
 | 
			
		||||
	for (var i = 0; i < specifiers.length; ++i) {
 | 
			
		||||
		if (!specifierIncluded(current, specifiers[i])) {
 | 
			
		||||
			return false;
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	return true;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function versionIncluded(nodeVersion, specifierValue) {
 | 
			
		||||
	if (typeof specifierValue === 'boolean') {
 | 
			
		||||
		return specifierValue;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	var current = typeof nodeVersion === 'undefined'
 | 
			
		||||
		? process.versions && process.versions.node
 | 
			
		||||
		: nodeVersion;
 | 
			
		||||
 | 
			
		||||
	if (typeof current !== 'string') {
 | 
			
		||||
		throw new TypeError(typeof nodeVersion === 'undefined' ? 'Unable to determine current node version' : 'If provided, a valid node version is required');
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (specifierValue && typeof specifierValue === 'object') {
 | 
			
		||||
		for (var i = 0; i < specifierValue.length; ++i) {
 | 
			
		||||
			if (matchesRange(current, specifierValue[i])) {
 | 
			
		||||
				return true;
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		return false;
 | 
			
		||||
	}
 | 
			
		||||
	return matchesRange(current, specifierValue);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var data = require('./core.json');
 | 
			
		||||
 | 
			
		||||
module.exports = function isCore(x, nodeVersion) {
 | 
			
		||||
	return hasOwn(data, x) && versionIncluded(nodeVersion, data[x]);
 | 
			
		||||
};
 | 
			
		||||
							
								
								
									
										76
									
								
								qwen/nodejs/node_modules/is-core-module/package.json
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										76
									
								
								qwen/nodejs/node_modules/is-core-module/package.json
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,76 @@
 | 
			
		||||
{
 | 
			
		||||
	"name": "is-core-module",
 | 
			
		||||
	"version": "2.16.1",
 | 
			
		||||
	"description": "Is this specifier a node.js core module?",
 | 
			
		||||
	"main": "index.js",
 | 
			
		||||
	"sideEffects": false,
 | 
			
		||||
	"exports": {
 | 
			
		||||
		".": "./index.js",
 | 
			
		||||
		"./package.json": "./package.json"
 | 
			
		||||
	},
 | 
			
		||||
	"scripts": {
 | 
			
		||||
		"prepack": "npmignore --auto --commentLines=autogenerated",
 | 
			
		||||
		"prepublish": "not-in-publish || npm run prepublishOnly",
 | 
			
		||||
		"prepublishOnly": "safe-publish-latest",
 | 
			
		||||
		"lint": "eslint .",
 | 
			
		||||
		"pretest": "npm run lint",
 | 
			
		||||
		"tests-only": "nyc tape 'test/**/*.js'",
 | 
			
		||||
		"test": "npm run tests-only",
 | 
			
		||||
		"posttest": "npx npm@'>=10.2' audit --production",
 | 
			
		||||
		"version": "auto-changelog && git add CHANGELOG.md",
 | 
			
		||||
		"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
 | 
			
		||||
	},
 | 
			
		||||
	"repository": {
 | 
			
		||||
		"type": "git",
 | 
			
		||||
		"url": "git+https://github.com/inspect-js/is-core-module.git"
 | 
			
		||||
	},
 | 
			
		||||
	"keywords": [
 | 
			
		||||
		"core",
 | 
			
		||||
		"modules",
 | 
			
		||||
		"module",
 | 
			
		||||
		"npm",
 | 
			
		||||
		"node",
 | 
			
		||||
		"dependencies"
 | 
			
		||||
	],
 | 
			
		||||
	"author": "Jordan Harband <ljharb@gmail.com>",
 | 
			
		||||
	"funding": {
 | 
			
		||||
		"url": "https://github.com/sponsors/ljharb"
 | 
			
		||||
	},
 | 
			
		||||
	"license": "MIT",
 | 
			
		||||
	"bugs": {
 | 
			
		||||
		"url": "https://github.com/inspect-js/is-core-module/issues"
 | 
			
		||||
	},
 | 
			
		||||
	"homepage": "https://github.com/inspect-js/is-core-module",
 | 
			
		||||
	"dependencies": {
 | 
			
		||||
		"hasown": "^2.0.2"
 | 
			
		||||
	},
 | 
			
		||||
	"devDependencies": {
 | 
			
		||||
		"@ljharb/eslint-config": "^21.1.1",
 | 
			
		||||
		"auto-changelog": "^2.5.0",
 | 
			
		||||
		"encoding": "^0.1.13",
 | 
			
		||||
		"eslint": "=8.8.0",
 | 
			
		||||
		"in-publish": "^2.0.1",
 | 
			
		||||
		"mock-property": "^1.1.0",
 | 
			
		||||
		"npmignore": "^0.3.1",
 | 
			
		||||
		"nyc": "^10.3.2",
 | 
			
		||||
		"safe-publish-latest": "^2.0.0",
 | 
			
		||||
		"semver": "^6.3.1",
 | 
			
		||||
		"tape": "^5.9.0"
 | 
			
		||||
	},
 | 
			
		||||
	"auto-changelog": {
 | 
			
		||||
		"output": "CHANGELOG.md",
 | 
			
		||||
		"template": "keepachangelog",
 | 
			
		||||
		"unreleased": false,
 | 
			
		||||
		"commitLimit": false,
 | 
			
		||||
		"backfillLimit": false,
 | 
			
		||||
		"hideCredit": true
 | 
			
		||||
	},
 | 
			
		||||
	"publishConfig": {
 | 
			
		||||
		"ignore": [
 | 
			
		||||
			".github"
 | 
			
		||||
		]
 | 
			
		||||
	},
 | 
			
		||||
	"engines": {
 | 
			
		||||
		"node": ">= 0.4"
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										157
									
								
								qwen/nodejs/node_modules/is-core-module/test/index.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										157
									
								
								qwen/nodejs/node_modules/is-core-module/test/index.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,157 @@
 | 
			
		||||
'use strict';
 | 
			
		||||
 | 
			
		||||
var test = require('tape');
 | 
			
		||||
var keys = require('object-keys');
 | 
			
		||||
var semver = require('semver');
 | 
			
		||||
var mockProperty = require('mock-property');
 | 
			
		||||
 | 
			
		||||
var isCore = require('../');
 | 
			
		||||
var data = require('../core.json');
 | 
			
		||||
 | 
			
		||||
var supportsNodePrefix = semver.satisfies(process.versions.node, '^14.18 || >= 16', { includePrerelease: true });
 | 
			
		||||
 | 
			
		||||
test('core modules', function (t) {
 | 
			
		||||
	t.test('isCore()', function (st) {
 | 
			
		||||
		st.ok(isCore('fs'));
 | 
			
		||||
		st.ok(isCore('net'));
 | 
			
		||||
		st.ok(isCore('http'));
 | 
			
		||||
 | 
			
		||||
		st.ok(!isCore('seq'));
 | 
			
		||||
		st.ok(!isCore('../'));
 | 
			
		||||
 | 
			
		||||
		st.ok(!isCore('toString'));
 | 
			
		||||
 | 
			
		||||
		st.end();
 | 
			
		||||
	});
 | 
			
		||||
 | 
			
		||||
	t.test('core list', function (st) {
 | 
			
		||||
		var cores = keys(data);
 | 
			
		||||
		st.plan(cores.length);
 | 
			
		||||
 | 
			
		||||
		for (var i = 0; i < cores.length; ++i) {
 | 
			
		||||
			var mod = cores[i];
 | 
			
		||||
			var requireFunc = function () { require(mod); }; // eslint-disable-line no-loop-func
 | 
			
		||||
			if (isCore(mod)) {
 | 
			
		||||
				st.doesNotThrow(requireFunc, mod + ' supported; requiring does not throw');
 | 
			
		||||
			} else {
 | 
			
		||||
				st['throws'](requireFunc, mod + ' not supported; requiring throws');
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		st.end();
 | 
			
		||||
	});
 | 
			
		||||
 | 
			
		||||
	t.test('core via repl module', { skip: !data.repl }, function (st) {
 | 
			
		||||
		var libs = require('repl')._builtinLibs; // eslint-disable-line no-underscore-dangle
 | 
			
		||||
		if (!libs) {
 | 
			
		||||
			st.skip('repl._builtinLibs does not exist');
 | 
			
		||||
		} else {
 | 
			
		||||
			for (var i = 0; i < libs.length; ++i) {
 | 
			
		||||
				var mod = libs[i];
 | 
			
		||||
				st.ok(data[mod], mod + ' is a core module');
 | 
			
		||||
				st.doesNotThrow(
 | 
			
		||||
					function () { require(mod); }, // eslint-disable-line no-loop-func
 | 
			
		||||
					'requiring ' + mod + ' does not throw'
 | 
			
		||||
				);
 | 
			
		||||
				if (mod.slice(0, 5) !== 'node:') {
 | 
			
		||||
					if (supportsNodePrefix) {
 | 
			
		||||
						st.doesNotThrow(
 | 
			
		||||
							function () { require('node:' + mod); }, // eslint-disable-line no-loop-func
 | 
			
		||||
							'requiring node:' + mod + ' does not throw'
 | 
			
		||||
						);
 | 
			
		||||
					} else {
 | 
			
		||||
						st['throws'](
 | 
			
		||||
							function () { require('node:' + mod); }, // eslint-disable-line no-loop-func
 | 
			
		||||
							'requiring node:' + mod + ' throws'
 | 
			
		||||
						);
 | 
			
		||||
					}
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		st.end();
 | 
			
		||||
	});
 | 
			
		||||
 | 
			
		||||
	t.test('core via builtinModules list', { skip: !data.module }, function (st) {
 | 
			
		||||
		var Module = require('module');
 | 
			
		||||
		var libs = Module.builtinModules;
 | 
			
		||||
		if (!libs) {
 | 
			
		||||
			st.skip('module.builtinModules does not exist');
 | 
			
		||||
		} else {
 | 
			
		||||
			var excludeList = [
 | 
			
		||||
				'_debug_agent',
 | 
			
		||||
				'v8/tools/tickprocessor-driver',
 | 
			
		||||
				'v8/tools/SourceMap',
 | 
			
		||||
				'v8/tools/tickprocessor',
 | 
			
		||||
				'v8/tools/profile'
 | 
			
		||||
			];
 | 
			
		||||
 | 
			
		||||
			// see https://github.com/nodejs/node/issues/42785
 | 
			
		||||
			if (semver.satisfies(process.version, '>= 18')) {
 | 
			
		||||
				libs = libs.concat('node:test');
 | 
			
		||||
			}
 | 
			
		||||
			if (semver.satisfies(process.version, '^20.12 || >= 21.7')) {
 | 
			
		||||
				libs = libs.concat('node:sea');
 | 
			
		||||
			}
 | 
			
		||||
			if (semver.satisfies(process.version, '>= 23.4')) {
 | 
			
		||||
				libs = libs.concat('node:sqlite');
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			for (var i = 0; i < libs.length; ++i) {
 | 
			
		||||
				var mod = libs[i];
 | 
			
		||||
				if (excludeList.indexOf(mod) === -1) {
 | 
			
		||||
					st.ok(data[mod], mod + ' is a core module');
 | 
			
		||||
 | 
			
		||||
					if (Module.isBuiltin) {
 | 
			
		||||
						st.ok(Module.isBuiltin(mod), 'module.isBuiltin(' + mod + ') is true');
 | 
			
		||||
					}
 | 
			
		||||
 | 
			
		||||
					st.doesNotThrow(
 | 
			
		||||
						function () { require(mod); }, // eslint-disable-line no-loop-func
 | 
			
		||||
						'requiring ' + mod + ' does not throw'
 | 
			
		||||
					);
 | 
			
		||||
 | 
			
		||||
					if (process.getBuiltinModule) {
 | 
			
		||||
						st.equal(
 | 
			
		||||
							process.getBuiltinModule(mod),
 | 
			
		||||
							require(mod),
 | 
			
		||||
							'process.getBuiltinModule(' + mod + ') === require(' + mod + ')'
 | 
			
		||||
						);
 | 
			
		||||
					}
 | 
			
		||||
 | 
			
		||||
					if (mod.slice(0, 5) !== 'node:') {
 | 
			
		||||
						if (supportsNodePrefix) {
 | 
			
		||||
							st.doesNotThrow(
 | 
			
		||||
								function () { require('node:' + mod); }, // eslint-disable-line no-loop-func
 | 
			
		||||
								'requiring node:' + mod + ' does not throw'
 | 
			
		||||
							);
 | 
			
		||||
						} else {
 | 
			
		||||
							st['throws'](
 | 
			
		||||
								function () { require('node:' + mod); }, // eslint-disable-line no-loop-func
 | 
			
		||||
								'requiring node:' + mod + ' throws'
 | 
			
		||||
							);
 | 
			
		||||
						}
 | 
			
		||||
					}
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		st.end();
 | 
			
		||||
	});
 | 
			
		||||
 | 
			
		||||
	t.test('Object.prototype pollution', function (st) {
 | 
			
		||||
		var nonKey = 'not a core module';
 | 
			
		||||
		st.teardown(mockProperty(Object.prototype, 'fs', { value: false }));
 | 
			
		||||
		st.teardown(mockProperty(Object.prototype, 'path', { value: '>= 999999999' }));
 | 
			
		||||
		st.teardown(mockProperty(Object.prototype, 'http', { value: data.http }));
 | 
			
		||||
		st.teardown(mockProperty(Object.prototype, nonKey, { value: true }));
 | 
			
		||||
 | 
			
		||||
		st.equal(isCore('fs'), true, 'fs is a core module even if Object.prototype lies');
 | 
			
		||||
		st.equal(isCore('path'), true, 'path is a core module even if Object.prototype lies');
 | 
			
		||||
		st.equal(isCore('http'), true, 'path is a core module even if Object.prototype matches data');
 | 
			
		||||
		st.equal(isCore(nonKey), false, '"' + nonKey + '" is not a core module even if Object.prototype lies');
 | 
			
		||||
 | 
			
		||||
		st.end();
 | 
			
		||||
	});
 | 
			
		||||
 | 
			
		||||
	t.end();
 | 
			
		||||
});
 | 
			
		||||
		Reference in New Issue
	
	Block a user