fromMathspp2 weeks agoTIL 143 - Resolve a lazy import manuallyUsing lazy import, one can inspect the attributes and methods of a lazy import by calling dir on the globals dictionary. This reveals a list of dunder methods and the resolve method.Python
Node JSfromZero Day Initiative1 month agoZero Day Initiative - Node.js Trust Falls: Dangerous Module Resolution on WindowsNode.js module resolution can lead to security vulnerabilities if malicious packages are placed in the root node_modules directory.