agentfootprint 3.1.1 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import * as nodeModule from 'node:module';
|
|
2
|
+
let cachedRequire;
|
|
3
3
|
export function lazyRequire(specifier) {
|
|
4
|
-
return
|
|
4
|
+
return (cachedRequire ??= nodeModule.createRequire(import.meta.url))(specifier);
|
|
5
5
|
}
|
package/package.json
CHANGED