{"_id":"import-inspector","_rev":"5-4de59238d326b3891340992edb80c64f","name":"import-inspector","description":"Wrap dynamic imports with metadata about the import","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"import-inspector","version":"1.0.0","description":"Wrap dynamic imports with information about the import itself","main":"index.js","repository":{"type":"git","url":"git+https://github.com/thejameskyle/import-inspector.git"},"author":{"name":"James Kyle","email":"me@thejameskyle.com"},"license":"MIT","devDependencies":{"flow-bin":"^0.48.0"},"gitHead":"39006eee52cffeb52c62480796cebc21bfb8979a","bugs":{"url":"https://github.com/thejameskyle/import-inspector/issues"},"homepage":"https://github.com/thejameskyle/import-inspector#readme","_id":"import-inspector@1.0.0","scripts":{},"_shasum":"e40a0f86c8dffc9cacfc76fb6e47e999c99128bc","_from":".","_npmVersion":"4.2.0","_nodeVersion":"8.0.0","_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"dist":{"shasum":"e40a0f86c8dffc9cacfc76fb6e47e999c99128bc","tarball":"https://registry.npmjs.org/import-inspector/-/import-inspector-1.0.0.tgz","integrity":"sha512-0FF7hmJQ9Z7KxrZsyKHzBLC0cNNl+5kHCQHDwtqhIL2opEXRgIrZTzFaQDNBaNzusSNFH2DhXn9efgvNjaGu0Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC5cQOfC+Uikg0XwFiXs7SvDNShJFLpPc7kD0gRXQrK9gIgM7jcVjcp6ktUo9Hl/PLyj0aOPStS4v8Tjs1fSfaZVQQ="}]},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/import-inspector-1.0.0.tgz_1497463045205_0.5775984211359173"}},"1.0.1":{"name":"import-inspector","version":"1.0.1","description":"Wrap dynamic imports with information about the import itself","main":"index.js","repository":{"type":"git","url":"git+https://github.com/thejameskyle/import-inspector.git"},"author":{"name":"James Kyle","email":"me@thejameskyle.com"},"license":"MIT","files":[],"devDependencies":{"flow-bin":"^0.48.0"},"gitHead":"001c206864e749ae424d54eaa1c783e0a204ed9f","bugs":{"url":"https://github.com/thejameskyle/import-inspector/issues"},"homepage":"https://github.com/thejameskyle/import-inspector#readme","_id":"import-inspector@1.0.1","scripts":{},"_shasum":"d7c451355053119f184c95655002eb170d5b97e8","_from":".","_npmVersion":"4.2.0","_nodeVersion":"8.0.0","_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"dist":{"shasum":"d7c451355053119f184c95655002eb170d5b97e8","tarball":"https://registry.npmjs.org/import-inspector/-/import-inspector-1.0.1.tgz","integrity":"sha512-TNgmYrQI4qbYxM5DqAhHUKBpAXGG+K+Gge8u8Ga4RK080I7BSfARUfVuCxhnYxZHjSOvt6Rdnsz2m5PrTACc+g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQRvEaD2V2WWqifufCAY6XSe/w6o7RWnPljnAq4QmOLQIhAPtqaA0omo3B+rCV/Ks3C29mhHSMUnGMFdX4meM6OMck"}]},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/import-inspector-1.0.1.tgz_1497463289495_0.12858183938078582"}},"1.1.0":{"name":"import-inspector","version":"1.1.0","description":"Wrap dynamic imports with information about the import itself","main":"index.js","repository":{"type":"git","url":"git+https://github.com/thejameskyle/import-inspector.git"},"author":{"name":"James Kyle","email":"me@thejameskyle.com"},"license":"MIT","files":[],"devDependencies":{"flow-bin":"^0.48.0"},"gitHead":"f325287a82810b6df2ccaadbd9e3eb4ca4f5bcd7","bugs":{"url":"https://github.com/thejameskyle/import-inspector/issues"},"homepage":"https://github.com/thejameskyle/import-inspector#readme","_id":"import-inspector@1.1.0","scripts":{},"_shasum":"9054d23050a9d0bb9ba12c300fffb509597ac371","_from":".","_npmVersion":"4.2.0","_nodeVersion":"8.0.0","_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"dist":{"shasum":"9054d23050a9d0bb9ba12c300fffb509597ac371","tarball":"https://registry.npmjs.org/import-inspector/-/import-inspector-1.1.0.tgz","integrity":"sha512-23oZG3CZZpH59yTxIo9Xtbsb5tzbPGfgeSw7lrTw3nhvTX6XcA8nhtVEs8UQ/Gvhp9jFz63eZG0z21NQh/F16w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICYMPhTnbDa2cJkeooUbvuTiGLKYw9x16YOGze290lyCAiEA6jRP6T/piZ5Q9DGd61bOsRL/2fM8VrSl9c8qMG6OS2k="}]},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/import-inspector-1.1.0.tgz_1497465864982_0.5565817581955343"}},"2.0.0":{"name":"import-inspector","version":"2.0.0","description":"Wrap dynamic imports with metadata about the import","main":"index.js","repository":{"type":"git","url":"git+https://github.com/thejameskyle/import-inspector.git"},"author":{"name":"James Kyle","email":"me@thejameskyle.com"},"license":"MIT","files":[],"devDependencies":{"flow-bin":"^0.48.0"},"gitHead":"abf5b02eb883f2fc14168f1cef646d64ed615a44","bugs":{"url":"https://github.com/thejameskyle/import-inspector/issues"},"homepage":"https://github.com/thejameskyle/import-inspector#readme","_id":"import-inspector@2.0.0","scripts":{},"_shasum":"ce75fdb6a277d2800effe097e2295bc8690b2923","_from":".","_npmVersion":"4.2.0","_nodeVersion":"8.0.0","_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"dist":{"shasum":"ce75fdb6a277d2800effe097e2295bc8690b2923","tarball":"https://registry.npmjs.org/import-inspector/-/import-inspector-2.0.0.tgz","integrity":"sha512-BDhU4vTy9Ko+MthMU1TwaSmEcMsHYczjyi2VqWUMVzsSzWG2CKFsoRmgF1+JB4JvvwTbygnjldU1AMCDqFMp/A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD9UgFde9OpIite4FFaIvROkohZuc3vnCZVTWDlhZIZlAIhAJOwGSqij5VxZljjGc+sEINFjzkqDwqJQkhAc/Ly6MvA"}]},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/import-inspector-2.0.0.tgz_1497474029178_0.42879775585606694"}}},"readme":"# import-inspector\n\n> Wrap dynamic imports with metadata about the import\n\n```js\nimport {inspect, report} from 'import-inspector';\n\nconst stopInspecting = inspect(metadata => {\n  console.log(metadata);\n});\n\nreport(import('./other-module'), { whatever: 42 });\n// log: { whatever: 42 }\n\nstopInspecting();\n```\n\n## API\n\n#### `inspect(callback)`\n\nAdd a callback to be called whenever the `report()` function is called.\nReceives `metadata` from `report()`.\n\nReturns a function `stopInspecting()` that will stop the `callback` from being\ncalled again.\n\n#### `report(promise, metadata)`\n\nWrap an import promise with some metadata to report.\n","maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"time":{"modified":"2022-06-19T00:53:56.813Z","created":"2017-06-14T17:57:25.289Z","1.0.0":"2017-06-14T17:57:25.289Z","1.0.1":"2017-06-14T18:01:29.601Z","1.1.0":"2017-06-14T18:44:25.057Z","2.0.0":"2017-06-14T21:00:29.264Z"},"homepage":"https://github.com/thejameskyle/import-inspector#readme","repository":{"type":"git","url":"git+https://github.com/thejameskyle/import-inspector.git"},"author":{"name":"James Kyle","email":"me@thejameskyle.com"},"bugs":{"url":"https://github.com/thejameskyle/import-inspector/issues"},"license":"MIT","readmeFilename":"README.md"}