New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@d-fischer/bundt

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@d-fischer/bundt - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

8

index.js

@@ -122,3 +122,3 @@ #!/usr/bin/env node

let CJS = imports(ESM)
.replace(/(^|\s|;)export default/, '$1module.exports =')
.replace(/(^|\s|;)export default/, '$1var __defaultExport =')
.replace(/(^|\s|;)export (const|function|class|let|var) (.+?)(?=(\(|\s|\=))/gi, (_, x, type, name) => {

@@ -128,5 +128,9 @@ return keys.push(name) && `${x}${type} ${name}`;

.replace(/(^|\s|;)export \{(.+?)}(?=(;|\s|$))/, (_, x, names) => {
return keys.push(...(names.split(',').map(name => name.trim()))) && x;
return keys.push(...(names.split(',').map(name => name.trim()))) && '';
});
if (isDefault) {
CJS += `\nmodule.exports = __defaultExport;\nmodule.exports.default = __defaultExport;`
}
if (keys.length > 0) {

@@ -133,0 +137,0 @@ keys.sort().forEach(key => {

{
"name": "@d-fischer/bundt",
"version": "1.0.2",
"version": "1.0.3",
"repository": "d-fischer/bundt",

@@ -5,0 +5,0 @@ "description": "A simple bundler for your delcious modules~!",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc