Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bunchee

Package Overview
Dependencies
Maintainers
1
Versions
147
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 2.1.4 to 2.1.5

18

dist/cli.js

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

var version = "2.1.4";
var version = "2.1.5";

@@ -212,3 +212,3 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {

_run = _asyncToGenerator(function(args) {
var source, format, watch, minify, sourcemap, target, runtime, dts, cwd, file, cliArgs, _tmp, entry, bundle, timeStart, timeEnd, err, duration;
var source, format, watch, minify, sourcemap, target, runtime, dts, cwd, file, cliArgs, entry, bundle, timeStart, timeEnd, err, duration;
return __generator(this, function(_state) {

@@ -220,4 +220,14 @@ switch(_state.label){

file = args.file ? path__default["default"].resolve(cwd, args.file) : undefined;
_tmp = {};
cliArgs = (_tmp.dts = dts, _tmp.file = file, _tmp.format = format, _tmp.cwd = cwd, _tmp.target = target, _tmp.runtime = runtime, _tmp.external = args.external || [], _tmp.watch = !!watch, _tmp.minify = !!minify, _tmp.sourcemap = sourcemap === false ? false : true, _tmp);
cliArgs = {
dts: dts,
file: file,
format: format,
cwd: cwd,
target: target,
runtime: runtime,
external: args.external || [],
watch: !!watch,
minify: !!minify,
sourcemap: sourcemap === false ? false : true
};
if (args.version) {

@@ -224,0 +234,0 @@ return [

@@ -10,3 +10,3 @@ Object.defineProperty(exports, '__esModule', { value: true });

var json = require('@rollup/plugin-json');
var nodeResolve = require('@rollup/plugin-node-resolve');
var pluginNodeResolve = require('@rollup/plugin-node-resolve');
var module$1 = require('module');

@@ -21,3 +21,2 @@

var json__default = /*#__PURE__*/_interopDefaultLegacy(json);
var nodeResolve__default = /*#__PURE__*/_interopDefaultLegacy(nodeResolve);

@@ -260,5 +259,5 @@ var rootDir = process.cwd();

})
}),
})
] : [
nodeResolve__default["default"]({
pluginNodeResolve.nodeResolve({
preferBuiltins: runtime === "node",

@@ -296,3 +295,3 @@ extensions: [

inlineSourcesContent: false
}),
})
]).filter(isNotNull);

@@ -395,3 +394,3 @@ return {

useTypescript: useTypescript
}), pkg, typescriptOptions),
}), pkg, typescriptOptions)
];

@@ -416,3 +415,3 @@ } else {

useTypescript: useTypescript
}), pkg, typescriptOptions),
}), pkg, typescriptOptions)
];

@@ -484,2 +483,20 @@ }

}
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
if (it) return (it = it.call(o)).next.bind(it);
if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
if (it) o = it;
var i = 0;
return function() {
if (i >= o.length) return {
done: true
};
return {
done: false,
value: o[i++]
};
};
}
throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
var __generator = undefined && undefined.__generator || function(thisArg, body) {

@@ -599,4 +616,4 @@ var f, y, t, g, _ = {

];
for(var _i = 0; _i < exts.length; _i++){
var ext = exts[_i];
for(var _iterator = _createForOfIteratorHelperLoose(exts), _step; !(_step = _iterator()).done;){
var ext = _step.value;
// ignore package.json

@@ -617,3 +634,3 @@ if (exportPath.endsWith("package.json")) return;

_bundle = _asyncToGenerator(function(entryPath, _param) {
var cwd, options, pkg, packageExports, _tmp, isSingleEntry, hasMultiEntries, bundleOrWatch, hasSpecifiedEntryFile, err, hasTypings, _tmp1, assetsJobs, typesJobs, rollupConfig;
var cwd, options, pkg, packageExports, isSingleEntry, hasMultiEntries, bundleOrWatch, hasSpecifiedEntryFile, err, hasTypings, assetsJobs, typesJobs, rollupConfig;
function buildEntryConfig(packageExports, dtsOnly) {

@@ -652,4 +669,3 @@ var configs = Object.keys(packageExports).map(function(entryExport) {

pkg = getPackageMeta(config.rootDir);
_tmp = {};
packageExports = pkg.exports || _tmp;
packageExports = pkg.exports || {};
isSingleEntry = typeof packageExports === "string";

@@ -686,4 +702,3 @@ hasMultiEntries = packageExports && !isSingleEntry && Object.keys(packageExports).length > 0;

}
_tmp1 = {};
hasTypings = !!getTypings(pkg) || typeof packageExports === "object" && Array.from(Object.values(packageExports || _tmp1)).some(function(condition) {
hasTypings = !!getTypings(pkg) || typeof packageExports === "object" && Array.from(Object.values(packageExports || {})).some(function(condition) {
return condition.hasOwnProperty("types");

@@ -754,3 +769,3 @@ });

}
}),
})
];

@@ -757,0 +772,0 @@ var watcher = rollup.watch(watchOptions);

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

@@ -43,7 +43,7 @@ "bin": {

"@rollup/plugin-json": "4.1.0",
"@rollup/plugin-node-resolve": "13.3.0",
"@swc/core": "^1.3.0",
"@rollup/plugin-node-resolve": "14.1.0",
"@swc/core": "^1.3.5",
"arg": "5.0.0",
"rollup": "2.74.1",
"rollup-plugin-dts": "4.2.2",
"rollup": "2.79.1",
"rollup-plugin-dts": "4.2.3",
"rollup-plugin-preserve-shebang": "1.0.1",

@@ -50,0 +50,0 @@ "rollup-plugin-swc3": "0.6.0",

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