{"_id":"@activepieces/import-fresh-webpack","_rev":"4-c9a1e7dd079308fb886bf0da3cf25626","name":"@activepieces/import-fresh-webpack","dist-tags":{"latest":"3.3.0"},"versions":{"3.3.0":{"name":"@activepieces/import-fresh-webpack","version":"3.3.0","keywords":["require","cache","uncache","uncached","module","fresh","bypass"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"@activepieces/import-fresh-webpack@3.3.0","homepage":"https://github.com/sindresorhus/import-fresh#readme","bugs":{"url":"https://github.com/sindresorhus/import-fresh/issues"},"dist":{"shasum":"790cd9c0b112b03e02511577f2e85bc291788bc7","tarball":"https://registry.npmjs.org/@activepieces/import-fresh-webpack/-/import-fresh-webpack-3.3.0.tgz","fileCount":5,"integrity":"sha512-lSNLON5thmhQfBt1Fw57wkux4MkMF+7GJszq8NaT+fsz2jKtWLIp156bOYgjGK/6y4AAp23RvXAlv4sPxmF3ow==","signatures":[{"sig":"MEUCIQDIxyanmqaiayZhO4/N7BE33rczX1ewo60moSZE8hVC2AIgLS7WKXhq3D22Qx2QwXTtFUsYuSqbEvavmwkUoy1k8Vw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4920},"types":"./index.d.ts","engines":{"node":">=18"},"exports":{"types":"./index.d.ts","default":"./index.js"},"funding":"https://github.com/sponsors/sindresorhus","gitHead":"e72c75a5bc780b97063730fc1770716ff2c2a7e6","scripts":{"test":"xo && ava && tsd","heapdump":"node heapdump.js"},"_npmUser":{"name":"abuaboud","email":"code@activepieces.com"},"repository":{"url":"git+https://github.com/sindresorhus/import-fresh.git","type":"git"},"_npmVersion":"10.5.2","description":"Import a module while bypassing the cache with webpack patch","directories":{},"sideEffects":false,"_nodeVersion":"20.13.1","dependencies":{"resolve-from":"^5.0.0","parent-module":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"xo":"^0.23.0","ava":"^1.0.1","tsd":"^0.31.0","heapdump":"^0.3.12"},"_npmOperationalInternal":{"tmp":"tmp/import-fresh-webpack_3.3.0_1719418121613_0.2630938032174839","host":"s3://npm-registry-packages"}}},"time":{"created":"2024-06-26T16:08:41.507Z","modified":"2026-08-20T15:35:07.044Z","3.3.0":"2024-06-26T16:08:41.784Z"},"bugs":{"url":"https://github.com/sindresorhus/import-fresh/issues"},"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","homepage":"https://github.com/sindresorhus/import-fresh#readme","keywords":["require","cache","uncache","uncached","module","fresh","bypass"],"repository":{"url":"git+https://github.com/sindresorhus/import-fresh.git","type":"git"},"description":"Import a module while bypassing the cache with webpack patch","maintainers":[{"email":"code@activepieces.com","name":"abuaboud"},{"email":"apps@activepieces.com","name":"activepieces-bot"},{"email":"abdulyki+npm123@activepieces.com","name":"abdul_activepiecer3"}],"readme":"# import-fresh\n\n> Import a module while bypassing the [cache](https://nodejs.org/api/modules.html#modules_caching)\n\nUseful for testing purposes when you need to freshly import a module.\n\n## ESM\n\nFor ESM, you can use this snippet:\n\n```js\nconst importFresh = moduleName => import(`${moduleName}?${Date.now()}`);\n\nconst {default: foo} = await importFresh('foo');\n```\n\n**This snippet causes a memory leak, so only use it for short-lived tests.**\n\n## Install\n\n```\n$ npm install import-fresh\n```\n\n## Usage\n\n```js\n// foo.js\nlet i = 0;\nmodule.exports = () => ++i;\n```\n\n```js\nconst importFresh = require('import-fresh');\n\nrequire('./foo')();\n//=> 1\n\nrequire('./foo')();\n//=> 2\n\nimportFresh('./foo')();\n//=> 1\n\nimportFresh('./foo')();\n//=> 1\n```\n\n## Related\n\n- [clear-module](https://github.com/sindresorhus/clear-module) - Clear a module from the import cache\n- [import-from](https://github.com/sindresorhus/import-from) - Import a module from a given path\n- [import-cwd](https://github.com/sindresorhus/import-cwd) - Import a module from the current working directory\n- [import-lazy](https://github.com/sindresorhus/import-lazy) - Import modules lazily\n","readmeFilename":"readme.md"}