Socket
Socket
Sign inDemoInstall

bunchee

Package Overview
Dependencies
Maintainers
1
Versions
144
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bunchee - npm Package Compare versions

Comparing version 4.4.5 to 4.4.6

12

dist/bin/cli.js

@@ -484,9 +484,9 @@ #!/usr/bin/env node

} else {
// Validate CJS package
if (main && path__default.default.extname(main) === '.mjs') {
state.badMainExtension = true;
}
// Validate CJS package
if (exports) {
if (typeof exports === 'string') {
if (!hasCjsExtension(exports)) {
if (path__default.default.extname(exports) === '.mjs') {
state.badMainExport = true;

@@ -527,3 +527,7 @@ }

if (state.badMainExport) {
logger.warn('Cannot export `exports` field with .cjs extension in ESM package, only .mjs and .js extensions are allowed');
if (isESM) {
logger.warn('Cannot export `exports` field with .cjs extension in ESM package, only .mjs and .js extensions are allowed');
} else {
logger.warn('Cannot export `exports` field with .mjs extension in CJS package, only .js and .cjs extensions are allowed');
}
}

@@ -559,3 +563,3 @@ if (state.invalidExportsFieldType) {

var version = "4.4.5";
var version = "4.4.6";

@@ -562,0 +566,0 @@ function relativify(path) {

{
"name": "bunchee",
"version": "4.4.5",
"version": "4.4.6",
"description": "zero config bundler for js/ts/jsx libraries",

@@ -5,0 +5,0 @@ "bin": "./dist/bin/cli.js",

Sorry, the diff of this file is too big to display

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