Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"_id":"supports-preserve-symlinks-flag","_rev":"1-8d7a0b792ab19d51365d64228ea32493","name":"supports-preserve-symlinks-flag","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"supports-preserve-symlinks-flag","version":"1.0.0","description":"Determine if the current node version supports the `--preserve-symlinks` flag.","main":"./index.js","browser":"./browser.js","exports":{".":[{"browser":"./browser.js","default":"./index.js"},"./index.js"],"./package.json":"./package.json"},"sideEffects":false,"scripts":{"prepublishOnly":"safe-publish-latest","prepublish":"not-in-publish || npm run prepublishOnly","lint":"eslint --ext=js,mjs .","pretest":"npm run lint","tests-only":"nyc tape 'test/**/*.js'","test":"npm run tests-only","posttest":"aud --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/node-supports-preserve-symlinks-flag.git"},"keywords":["node","flag","symlink","symlinks","preserve-symlinks"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"license":"MIT","bugs":{"url":"https://github.com/inspect-js/node-supports-preserve-symlinks-flag/issues"},"homepage":"https://github.com/inspect-js/node-supports-preserve-symlinks-flag#readme","devDependencies":{"@ljharb/eslint-config":"^20.1.0","aud":"^1.1.5","auto-changelog":"^2.3.0","eslint":"^8.6.0","nyc":"^10.3.2","safe-publish-latest":"^2.0.0","semver":"^6.3.0","tape":"^5.4.0"},"engines":{"node":">= 0.4"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"gitHead":"1f7cac19c0c298cf40b3f2f3c735477ad579ac61","_id":"supports-preserve-symlinks-flag@1.0.0","_nodeVersion":"17.3.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==","shasum":"6eda4bd344a3c94aea376d4cc31bc77311039e09","tarball":"https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz","fileCount":10,"unpackedSize":9178,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh0qRQCRA9TVsSAnZWagAAUXIP/RXFkdQS9EixIbL8N6/o\nwfOcVOd8kQCgEIH9PvXuhRXWq+pZmN4tGOJgXBu9mMLsvulJX2hVIzpQ+5+n\nXfroKni4cPeS7DUNc/YIzRBvwsdPaRRPF4wEdwYJleZ/uFI6rtKjVkf3AN38\nj0ofY+IWG2uIh4zr4/xZFszH3x1Fx19tBILBjUmlJoXPVt2zZ7RuGeK0s3vu\n0TY4fMD8F1TNR/Jv2x1BL6vwcBHeU0p01XrhcnGbBGuVcwLi4T6SKgm18Q3a\ndg4B/iQhG4BoD9KQ+WCO79p9ocssmsePckOE4jwGwnGQJA7KOOaUX0w76Bab\nGtpSFZ6jGOcSQtn35YSjbMlBZap83/11FZh5KkJztkwRr3nP1f5/uvFTLmWk\nbWt7bORpfgmp9ylG8Fw9+4ZRdyRQuPZI7veGobxsF4ha2xm7IwfD9nxfZSh/\nB2UzZzRJzepmR3BKaYkz87GCGj9XYQYw2YkQnPfv0apB2IigRV06h6GF8Z2U\nnuDM45iClRLh9opVxtYqUkwM+R5ny0HdV52clVJ5WOl3uptryNtCSxmWxhLR\njO5L/cKoy9FVvI3hkPoF597iBeqoVuy/2UfTmCfwooTH122lhtia3WrL5LWs\nMXRgqM87fmgT9n4C6jBmPt4YGrr4BnTM42jPszcaT1Cgt3BqKHfGjkBfm3cC\nudxD\r\n=G5s6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCbGjRqHlhKnzCCIXQzWYR/EZTAkHcYVGSMuGr2wODv9QIgBmYVLR82wlbK4vF/fPOx4NG1EYvG/pwN6NlOp1nWVkI="}]},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/supports-preserve-symlinks-flag_1.0.0_1641194576474_0.27878743076587753"},"_hasShrinkwrap":false}},"time":{"created":"2022-01-03T07:22:56.474Z","1.0.0":"2022-01-03T07:22:56.640Z","modified":"2022-05-19T01:59:54.715Z"},"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"description":"Determine if the current node version supports the `--preserve-symlinks` flag.","homepage":"https://github.com/inspect-js/node-supports-preserve-symlinks-flag#readme","keywords":["node","flag","symlink","symlinks","preserve-symlinks"],"repository":{"type":"git","url":"git+https://github.com/inspect-js/node-supports-preserve-symlinks-flag.git"},"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"bugs":{"url":"https://github.com/inspect-js/node-supports-preserve-symlinks-flag/issues"},"license":"MIT","readme":"# node-supports-preserve-symlinks-flag <sup>[![Version Badge][npm-version-svg]][package-url]</sup>\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-url]\n[![dependency status][deps-svg]][deps-url]\n[![dev dependency status][dev-deps-svg]][dev-deps-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][npm-badge-png]][package-url]\n\nDetermine if the current node version supports the `--preserve-symlinks` flag.\n\n## Example\n\n```js\nvar supportsPreserveSymlinks = require('node-supports-preserve-symlinks-flag');\nvar assert = require('assert');\n\nassert.equal(supportsPreserveSymlinks, null); // in a browser\nassert.equal(supportsPreserveSymlinks, false); // in node < v6.2\nassert.equal(supportsPreserveSymlinks, true); // in node v6.2+\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.org/package/node-supports-preserve-symlinks-flag\n[npm-version-svg]: https://versionbadg.es/inspect-js/node-supports-preserve-symlinks-flag.svg\n[deps-svg]: https://david-dm.org/inspect-js/node-supports-preserve-symlinks-flag.svg\n[deps-url]: https://david-dm.org/inspect-js/node-supports-preserve-symlinks-flag\n[dev-deps-svg]: https://david-dm.org/inspect-js/node-supports-preserve-symlinks-flag/dev-status.svg\n[dev-deps-url]: https://david-dm.org/inspect-js/node-supports-preserve-symlinks-flag#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/node-supports-preserve-symlinks-flag.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/node-supports-preserve-symlinks-flag.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/node-supports-preserve-symlinks-flag.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=node-supports-preserve-symlinks-flag\n[codecov-image]: https://codecov.io/gh/inspect-js/node-supports-preserve-symlinks-flag/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/inspect-js/node-supports-preserve-symlinks-flag/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/node-supports-preserve-symlinks-flag\n[actions-url]: https://github.com/inspect-js/node-supports-preserve-symlinks-flag/actions\n","readmeFilename":"README.md"}
Binary file not shown.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"_id":"mimic-function","_rev":"1-84b4ebaa26ffb8377848e72bbf3a6701","name":"mimic-function","dist-tags":{"latest":"5.0.1"},"versions":{"5.0.0":{"name":"mimic-function","version":"5.0.0","description":"Make a function mimic another one","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/mimic-function.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"xo && ava && tsd"},"keywords":["function","mimic","imitate","rename","copy","inherit","properties","name","func","fn","set","infer","change"],"devDependencies":{"ava":"^5.3.1","tsd":"^0.29.0","xo":"^0.56.0"},"types":"./index.d.ts","gitHead":"7748ad022edb602feb1d6ab1920c1097e63785c5","bugs":{"url":"https://github.com/sindresorhus/mimic-function/issues"},"homepage":"https://github.com/sindresorhus/mimic-function#readme","_id":"mimic-function@5.0.0","_nodeVersion":"20.9.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-RBfQ+9X9DpXdEoK7Bu+KeEU6vFhumEIiXKWECPzRBmDserEq4uR2b/VCm0LwpMSosoq2k+Zuxj/GzOr0Fn6h/g==","shasum":"6cb5a922d17923ee58cf2f7d904f3eb350e0c87a","tarball":"https://registry.npmjs.org/mimic-function/-/mimic-function-5.0.0.tgz","fileCount":5,"unpackedSize":7961,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICRzsiPwJ43fqQ9JNLz2GxPNSU6Oa0poknBSRtP9uJOYAiEA3jxHV1klDU00BI4Sfptv0Jd46z6MRKAAfujPLRZo6TY="}]},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mimic-function_5.0.0_1699213989270_0.19737321168271826"},"_hasShrinkwrap":false},"5.0.1":{"name":"mimic-function","version":"5.0.1","description":"Make a function mimic another one","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/mimic-function.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"xo && ava && tsd"},"keywords":["function","mimic","imitate","rename","copy","inherit","properties","name","func","fn","set","infer","change"],"devDependencies":{"ava":"^5.3.1","tsd":"^0.29.0","xo":"^0.56.0"},"types":"./index.d.ts","gitHead":"e451d0af761bed2cde0b9bc252dc6a2dfeb35844","bugs":{"url":"https://github.com/sindresorhus/mimic-function/issues"},"homepage":"https://github.com/sindresorhus/mimic-function#readme","_id":"mimic-function@5.0.1","_nodeVersion":"20.11.1","_npmVersion":"9.2.0","dist":{"integrity":"sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==","shasum":"acbe2b3349f99b9deaca7fb70e48b83e94e67076","tarball":"https://registry.npmjs.org/mimic-function/-/mimic-function-5.0.1.tgz","fileCount":5,"unpackedSize":8096,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDqi2cYXNmieqqlagx5nZGl3Dscqv7WuVspDts/6JSGvwIgbdoOPPFR/AMDNG74GZ5pK6dJm9dYlxhDheknUMvAuRo="}]},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mimic-function_5.0.1_1710405462144_0.5510414973189222"},"_hasShrinkwrap":false}},"time":{"created":"2023-11-05T19:53:09.269Z","5.0.0":"2023-11-05T19:53:09.458Z","modified":"2024-03-14T08:37:42.724Z","5.0.1":"2024-03-14T08:37:42.297Z"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"description":"Make a function mimic another one","homepage":"https://github.com/sindresorhus/mimic-function#readme","keywords":["function","mimic","imitate","rename","copy","inherit","properties","name","func","fn","set","infer","change"],"repository":{"type":"git","url":"git+https://github.com/sindresorhus/mimic-function.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"bugs":{"url":"https://github.com/sindresorhus/mimic-function/issues"},"license":"MIT","readme":"<picture>\n\t<source media=\"(prefers-color-scheme: dark)\" srcset=\"media/logo_dark.svg\">\n\t<img alt=\"mimic-function logo\" src=\"media/logo.svg\" width=\"400\">\n</picture>\n<br>\n\n> Make a function mimic another one\n\nUseful when you wrap a function in another function and you would like to preserve the original name and other properties.\n\n## Install\n\n```sh\nnpm install mimic-function\n```\n\n## Usage\n\n```js\nimport mimicFunction from 'mimic-function';\n\nfunction foo() {}\nfoo.unicorn = '🦄';\n\nfunction wrapper() {\n\treturn foo();\n}\n\nconsole.log(wrapper.name);\n//=> 'wrapper'\n\nmimicFunction(wrapper, foo);\n\nconsole.log(wrapper.name);\n//=> 'foo'\n\nconsole.log(wrapper.unicorn);\n//=> '🦄'\n\nconsole.log(String(wrapper));\n//=> '/* Wrapped with wrapper() */\\nfunction foo() {}'\n```\n\n## API\n\n### mimicFunction(to, from, options?)\n\nModifies the `to` function to mimic the `from` function. Returns the `to` function.\n\n`name`, `displayName`, and any other properties of `from` are copied. The `length` property is not copied. Prototype, class, and inherited properties are copied.\n\n`to.toString()` will return the same as `from.toString()` but prepended with a `Wrapped with to()` comment.\n\n#### to\n\nType: `Function`\n\nMimicking function.\n\n#### from\n\nType: `Function`\n\nFunction to mimic.\n\n#### options\n\nType: `object`\n\n##### ignoreNonConfigurable\n\nType: `boolean`\\\nDefault: `false`\n\nSkip modifying [non-configurable properties](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptor#Description) instead of throwing an error.\n\n## Related\n\n- [rename-fn](https://github.com/sindresorhus/rename-fn) - Rename a function\n- [keep-func-props](https://github.com/ehmicky/keep-func-props) - Wrap a function without changing its name and other properties\n","readmeFilename":"readme.md"}
Binary file not shown.
Binary file not shown.
Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Loading