1 line
15 KiB
Plaintext
1 line
15 KiB
Plaintext
{"_id":"impound","_rev":"6-6ccbee62fb07ad362dcbdeb2757b7b0c","name":"impound","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.0":{"name":"impound","version":"0.0.0","author":{"name":"Daniel Roe","email":"daniel@roe.dev"},"_id":"impound@0.0.0","maintainers":[{"name":"danielroe","email":"daniel@roe.dev"}],"dist":{"shasum":"3074d5b9a8cdcfa7b2866f5d81fea311cb537caa","tarball":"https://registry.npmjs.org/impound/-/impound-0.0.0.tgz","fileCount":2,"integrity":"sha512-b/eCkEzj7dkxsFEnLrUD4nQhBdmaLYBUoWnq57fFtaP16EElLyBVzKGdajmhsW1Q3LZv9IaYZRJH/EJJYpSdWA==","signatures":[{"sig":"MEUCIQCQ+eNTFBBrhgkVxqFN5NO+xzc6Zr72xwmdVA0FurTWfQIgVsMrG5QWRDJpf5dm358vBRchKNPIkg+Juq8XUQFdFFs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":117},"gitHead":"cb59b5e298d844c713a1cb70e22dfe2cc9051265","_npmUser":{"name":"danielroe","email":"daniel@roe.dev"},"_npmVersion":"10.7.0","directories":{},"_nodeVersion":"18.20.4","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/impound_0.0.0_1724952591789_0.6865342915458501","host":"s3://npm-registry-packages"}},"0.1.0":{"name":"impound","version":"0.1.0","license":"MIT","_id":"impound@0.1.0","maintainers":[{"name":"danielroe","email":"daniel@roe.dev"}],"homepage":"https://github.com/unjs/impound#readme","bugs":{"url":"https://github.com/unjs/impound/issues"},"dist":{"shasum":"3f6ff0597fd138f8f2676cc63862bbd005db413a","tarball":"https://registry.npmjs.org/impound/-/impound-0.1.0.tgz","fileCount":5,"integrity":"sha512-F9nJgOsDc3tysjN74edE0vGPEQrU7DAje6g5nNAL5Jc9Tv4JW3mH7XMGne+EaadTniDXLeUrVR21opkNfWO1zQ==","signatures":[{"sig":"MEQCIDgSWIwM4/34SQ5VZKH7OFx4a7FBFuqQR9I1HUW1ygVbAiBG2NlijhM+pEblH/VfokKE6OKjG2xT/lm36WrUKST/VQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6453},"main":"./dist/index.js","type":"module","_from":"file:impound-0.1.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":"./dist/index.js"},"scripts":{"dev":"vitest dev","lint":"eslint . --fix","test":"pnpm test:unit && pnpm test:types","build":"unbuild","release":"bumpp && pnpm publish","test:unit":"vitest","test:types":"tsc --noEmit"},"_npmUser":{"name":"danielroe","email":"daniel@roe.dev"},"_resolved":"/private/var/folders/48/0bsggqvn049_nfcq7msw2njw0000gn/T/91818f6c1a8ffbeb49c8b4b6d87e18f4/impound-0.1.0.tgz","_integrity":"sha512-F9nJgOsDc3tysjN74edE0vGPEQrU7DAje6g5nNAL5Jc9Tv4JW3mH7XMGne+EaadTniDXLeUrVR21opkNfWO1zQ==","repository":{"url":"git+https://github.com/unjs/impound.git","type":"git"},"_npmVersion":"10.2.3","description":"Builder-agnostic plugin to allow restricting import patterns in certain parts of your code-base.","directories":{},"lint-staged":{"*.{js,ts,mjs,cjs,json,.*rc}":["pnpm eslint --fix"]},"resolutions":{"impound":"link:."},"sideEffects":false,"_nodeVersion":"20.10.0","dependencies":{"mlly":"^1.7.1","pathe":"^1.1.2","unenv":"^1.10.0","unplugin":"^1.12.2","@rollup/pluginutils":"^5.1.0"},"_hasShrinkwrap":false,"devDependencies":{"vite":"latest","bumpp":"latest","eslint":"latest","rollup":"^4.21.1","vitest":"latest","unbuild":"latest","typescript":"latest","lint-staged":"latest","simple-git-hooks":"latest","@vitest/coverage-v8":"latest","@antfu/eslint-config":"latest"},"simple-git-hooks":{"pre-commit":"npx lint-staged"},"_npmOperationalInternal":{"tmp":"tmp/impound_0.1.0_1724958809231_0.49735427986372294","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"impound","version":"0.2.0","license":"MIT","_id":"impound@0.2.0","maintainers":[{"name":"danielroe","email":"daniel@roe.dev"}],"homepage":"https://github.com/unjs/impound#readme","bugs":{"url":"https://github.com/unjs/impound/issues"},"dist":{"shasum":"d24d6dd8330f380e8e71c254e8b29d3a2c4fe520","tarball":"https://registry.npmjs.org/impound/-/impound-0.2.0.tgz","fileCount":5,"integrity":"sha512-gXgeSyp9Hf7qG2/PLKmywHXyQf2xFrw+mJGpoj9DsAB9L7/MIKn+DeEx98UryWXdmbv8wUUPdcQof6qXnZoCGg==","signatures":[{"sig":"MEUCIGK47pAZ/ckgCkh5lP4UesRMR/47mSAfOYp2B3zM2UOGAiEA+g8dEq32v6LUcdubRSWwCGuRBVZQxKD+DU9xhcSAFY4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6529},"main":"./dist/index.js","type":"module","_from":"file:impound-0.2.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":"./dist/index.js"},"scripts":{"dev":"vitest dev","lint":"eslint . --fix","test":"pnpm test:unit && pnpm test:types","build":"unbuild","release":"bumpp && pnpm publish","test:unit":"vitest","test:types":"tsc --noEmit"},"_npmUser":{"name":"danielroe","email":"daniel@roe.dev"},"_resolved":"/private/var/folders/48/0bsggqvn049_nfcq7msw2njw0000gn/T/91b57bf20b334f49eae400846d8fb811/impound-0.2.0.tgz","_integrity":"sha512-gXgeSyp9Hf7qG2/PLKmywHXyQf2xFrw+mJGpoj9DsAB9L7/MIKn+DeEx98UryWXdmbv8wUUPdcQof6qXnZoCGg==","repository":{"url":"git+https://github.com/unjs/impound.git","type":"git"},"_npmVersion":"10.2.3","description":"Builder-agnostic plugin to allow restricting import patterns in certain parts of your code-base.","directories":{},"lint-staged":{"*.{js,ts,mjs,cjs,json,.*rc}":["npx eslint --fix"]},"resolutions":{"impound":"link:."},"sideEffects":false,"_nodeVersion":"20.10.0","dependencies":{"mlly":"^1.7.2","pathe":"^1.1.2","unenv":"^1.10.0","unplugin":"^1.14.1","@rollup/pluginutils":"^5.1.2"},"_hasShrinkwrap":false,"devDependencies":{"vite":"5.4.8","bumpp":"9.7.1","eslint":"9.12.0","rollup":"4.24.0","vitest":"2.1.2","unbuild":"2.0.0","typescript":"5.6.3","@types/node":"22.7.5","lint-staged":"15.2.10","simple-git-hooks":"2.11.1","@vitest/coverage-v8":"2.1.2","@antfu/eslint-config":"3.7.3"},"simple-git-hooks":{"pre-commit":"npx lint-staged"},"_npmOperationalInternal":{"tmp":"tmp/impound_0.2.0_1728570160404_0.034113103802166256","host":"s3://npm-registry-packages"}},"0.2.1":{"name":"impound","version":"0.2.1","license":"MIT","_id":"impound@0.2.1","maintainers":[{"name":"danielroe","email":"daniel@roe.dev"}],"homepage":"https://github.com/unjs/impound#readme","bugs":{"url":"https://github.com/unjs/impound/issues"},"dist":{"shasum":"1a6d3beb0f03a5b76c51ca5e19bc732968110587","tarball":"https://registry.npmjs.org/impound/-/impound-0.2.1.tgz","fileCount":5,"integrity":"sha512-V+8yPoV8sT3VYNY8A8F/lfox+QShWdb4enaG3ou/k7d5gY20lVwaE6M2O4zI6Z3XGEWSEEh3e+W3G7qfJeYfKA==","signatures":[{"sig":"MEUCIQCpfL8iJZLPHZut+MhmSXLxLB+pQKXiW/6mZ+JFM7AqmwIgHCo0mbkwz/lLJ3nP9TYLy0FnxNwIUw+kQWPQk2ffbnU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6527},"main":"./dist/index.js","type":"module","_from":"file:impound-0.2.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":"./dist/index.js"},"scripts":{"dev":"vitest dev","lint":"eslint . --fix","test":"pnpm test:unit && pnpm test:types","build":"unbuild","release":"bumpp && pnpm publish","test:unit":"vitest","test:types":"tsc --noEmit"},"_npmUser":{"name":"danielroe","email":"daniel@roe.dev"},"_resolved":"/private/var/folders/48/0bsggqvn049_nfcq7msw2njw0000gn/T/5481ce465509d492e925471ef78c90ff/impound-0.2.1.tgz","_integrity":"sha512-V+8yPoV8sT3VYNY8A8F/lfox+QShWdb4enaG3ou/k7d5gY20lVwaE6M2O4zI6Z3XGEWSEEh3e+W3G7qfJeYfKA==","repository":{"url":"git+https://github.com/unjs/impound.git","type":"git"},"_npmVersion":"10.9.0","description":"Builder-agnostic plugin to allow restricting import patterns in certain parts of your code-base.","directories":{},"lint-staged":{"*.{js,ts,mjs,cjs,json,.*rc}":["npx eslint --fix"]},"resolutions":{"impound":"link:."},"sideEffects":false,"_nodeVersion":"22.12.0","dependencies":{"mlly":"^1.7.4","pathe":"^2.0.3","unenv":"^2.0.0-rc.12","unplugin":"^2.2.0","@rollup/pluginutils":"^5.1.4"},"_hasShrinkwrap":false,"devDependencies":{"vite":"6.2.1","bumpp":"10.0.3","eslint":"9.22.0","rollup":"4.35.0","vitest":"3.0.8","unbuild":"3.5.0","typescript":"5.8.2","@types/node":"22.13.10","lint-staged":"15.4.3","simple-git-hooks":"2.11.1","@vitest/coverage-v8":"3.0.8","@antfu/eslint-config":"4.8.1"},"simple-git-hooks":{"pre-commit":"npx lint-staged"},"_npmOperationalInternal":{"tmp":"tmp/impound_0.2.1_1741427709658_0.02458653058764715","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"impound","version":"0.2.2","license":"MIT","_id":"impound@0.2.2","maintainers":[{"name":"danielroe","email":"daniel@roe.dev"}],"homepage":"https://github.com/unjs/impound#readme","bugs":{"url":"https://github.com/unjs/impound/issues"},"dist":{"shasum":"29a1040ee2742ec02a593f07204928611518715f","tarball":"https://registry.npmjs.org/impound/-/impound-0.2.2.tgz","fileCount":5,"integrity":"sha512-9CNg+Ly8QjH4FwCUoE9nl1zeqY1NPK1s1P6Btp4L8lJxn8oZLN/0p6RZhitnyEL0BnVWrcVPfbs0Q3x+O/ucHg==","signatures":[{"sig":"MEUCIQDmx1P9F0LCkSMEwSzESErniAstBgjbx+BxPs9uo+oIngIgEtpgq3iImRH4I2fftSzHCO01ZN1JglACm8f8AwsHHRk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6534},"main":"./dist/index.js","type":"module","_from":"file:impound-0.2.2.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":"./dist/index.js"},"scripts":{"dev":"vitest dev","lint":"eslint . --fix","test":"pnpm test:unit && pnpm test:types","build":"unbuild","release":"bumpp && pnpm publish","test:unit":"vitest","test:types":"tsc --noEmit"},"_npmUser":{"name":"danielroe","email":"daniel@roe.dev"},"_resolved":"/private/var/folders/48/0bsggqvn049_nfcq7msw2njw0000gn/T/aaa9fcbd811b70cae4fb02147e087df9/impound-0.2.2.tgz","_integrity":"sha512-9CNg+Ly8QjH4FwCUoE9nl1zeqY1NPK1s1P6Btp4L8lJxn8oZLN/0p6RZhitnyEL0BnVWrcVPfbs0Q3x+O/ucHg==","repository":{"url":"git+https://github.com/unjs/impound.git","type":"git"},"_npmVersion":"10.9.0","description":"Builder-agnostic plugin to allow restricting import patterns in certain parts of your code-base.","directories":{},"lint-staged":{"*.{js,ts,mjs,cjs,json,.*rc}":["npx eslint --fix"]},"resolutions":{"impound":"link:."},"sideEffects":false,"_nodeVersion":"22.12.0","dependencies":{"mlly":"^1.7.4","pathe":"^2.0.3","unplugin":"^2.2.0","mocked-exports":"^0.1.0","@rollup/pluginutils":"^5.1.4"},"_hasShrinkwrap":false,"devDependencies":{"vite":"6.2.1","bumpp":"10.0.3","eslint":"9.22.0","rollup":"4.35.0","vitest":"3.0.8","unbuild":"3.5.0","typescript":"5.8.2","@types/node":"22.13.10","lint-staged":"15.4.3","simple-git-hooks":"2.11.1","@vitest/coverage-v8":"3.0.8","@antfu/eslint-config":"4.8.1"},"simple-git-hooks":{"pre-commit":"npx lint-staged"},"_npmOperationalInternal":{"tmp":"tmp/impound_0.2.2_1741534738754_0.6589843255418477","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"impound","type":"module","version":"1.0.0","description":"Builder-agnostic plugin to allow restricting import patterns in certain parts of your code-base.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/unjs/impound.git"},"sideEffects":false,"exports":{".":"./dist/index.js"},"main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","dependencies":{"exsolve":"^1.0.5","mocked-exports":"^0.1.1","pathe":"^2.0.3","unplugin":"^2.3.2","unplugin-utils":"^0.2.4"},"devDependencies":{"@antfu/eslint-config":"4.12.0","@types/node":"22.14.1","@vitest/coverage-v8":"3.1.2","bumpp":"10.1.0","eslint":"9.25.0","lint-staged":"15.5.1","rollup":"4.40.0","simple-git-hooks":"2.12.1","typescript":"5.8.3","unbuild":"3.5.0","vite":"6.3.2","vitest":"3.1.2"},"resolutions":{"impound":"link:."},"simple-git-hooks":{"pre-commit":"npx lint-staged"},"lint-staged":{"*.{js,ts,mjs,cjs,json,.*rc}":["npx eslint --fix"]},"scripts":{"build":"unbuild","dev":"vitest dev","lint":"eslint . --fix","release":"bumpp && pnpm publish","test":"pnpm test:unit && pnpm test:types","test:unit":"vitest","test:types":"tsc --noEmit"},"_id":"impound@1.0.0","bugs":{"url":"https://github.com/unjs/impound/issues"},"homepage":"https://github.com/unjs/impound#readme","_integrity":"sha512-8lAJ+1Arw2sMaZ9HE2ZmL5zOcMnt18s6+7Xqgq2aUVy4P1nlzAyPtzCDxsk51KVFwHEEdc6OWvUyqwHwhRYaug==","_resolved":"/private/var/folders/6z/46zhtr8n22zg8nh3bp7cq7c40000gn/T/a9f8615f82e72d3ade3e938043bbe8ff/impound-1.0.0.tgz","_from":"file:impound-1.0.0.tgz","_nodeVersion":"20.18.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-8lAJ+1Arw2sMaZ9HE2ZmL5zOcMnt18s6+7Xqgq2aUVy4P1nlzAyPtzCDxsk51KVFwHEEdc6OWvUyqwHwhRYaug==","shasum":"42a011b33ddcce550c801210eb36b24a691ac941","tarball":"https://registry.npmjs.org/impound/-/impound-1.0.0.tgz","fileCount":5,"unpackedSize":7134,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDa5kjdI1UjR/6EoxLCJyCqoCEtgLDpa8OfE/Dssi6r+AIhAOkWpUFuY5/iJuLOrZk9kfa5WJs7sp3GNlvoJ1RjchLF"}]},"_npmUser":{"name":"danielroe","email":"daniel@roe.dev"},"directories":{},"maintainers":[{"name":"danielroe","email":"daniel@roe.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/impound_1.0.0_1745249011024_0.5677922461447618"},"_hasShrinkwrap":false}},"time":{"created":"2024-08-29T17:29:51.620Z","modified":"2025-04-21T15:23:31.413Z","0.0.0":"2024-08-29T17:29:51.917Z","0.1.0":"2024-08-29T19:13:29.407Z","0.2.0":"2024-10-10T14:22:40.614Z","0.2.1":"2025-03-08T09:55:09.848Z","0.2.2":"2025-03-09T15:38:58.919Z","1.0.0":"2025-04-21T15:23:31.225Z"},"bugs":{"url":"https://github.com/unjs/impound/issues"},"license":"MIT","homepage":"https://github.com/unjs/impound#readme","repository":{"type":"git","url":"git+https://github.com/unjs/impound.git"},"description":"Builder-agnostic plugin to allow restricting import patterns in certain parts of your code-base.","maintainers":[{"name":"danielroe","email":"daniel@roe.dev"}],"readme":"# impound\n\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![Github Actions][github-actions-src]][github-actions-href]\n[![Codecov][codecov-src]][codecov-href]\n\n> Build plugin to restrict import patterns in certain parts of your code-base.\n\nThis package is an [unplugin](https://unplugin.unjs.io/) which provides support for a wide range of bundlers.\n\n## Usage\n\nInstall package:\n\n```sh\n# npm\nnpm install impound\n```\n\n```js\n// rollup.config.js\nimport { dirname } from 'node:path'\nimport { fileURLToPath } from 'node:url'\nimport { ImpoundPlugin } from 'impound'\n\nexport default {\n plugins: [\n ImpoundPlugin.rollup({\n cwd: dirname(fileURLToPath(import.meta.url)),\n include: [/src\\/*/],\n patterns: [\n [/^node:.*/], // disallows all node imports\n ['@nuxt/kit', 'Importing from @nuxt kit is not allowed in your src/ directory'] // custom error message\n ]\n }),\n ],\n}\n```\n\n## 💻 Development\n\n- Clone this repository\n- Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable`\n- Install dependencies using `pnpm install`\n- Run interactive tests using `pnpm dev`\n\n## License\n\nMade with ❤️\n\nPublished under [MIT License](./LICENCE).\n\n<!-- Badges -->\n\n[npm-version-src]: https://img.shields.io/npm/v/impound?style=flat-square\n[npm-version-href]: https://npmjs.com/package/impound\n[npm-downloads-src]: https://img.shields.io/npm/dm/impound?style=flat-square\n[npm-downloads-href]: https://npm.chart.dev/impound\n[github-actions-src]: https://img.shields.io/github/actions/workflow/status/unjs/impound/ci.yml?branch=main&style=flat-square\n[github-actions-href]: https://github.com/unjs/impound/actions?query=workflow%3Aci\n[codecov-src]: https://img.shields.io/codecov/c/gh/unjs/impound/main?style=flat-square\n[codecov-href]: https://codecov.io/gh/unjs/impound\n","readmeFilename":"README.md"} |