Comparing version 5.5.0 to 5.5.1
@@ -80,47 +80,54 @@ #!/usr/bin/env node | ||
let tty = require$$0__default.default; | ||
let isColorSupported = !("NO_COLOR" in process.env || process.argv.includes("--no-color")) && ("FORCE_COLOR" in process.env || process.argv.includes("--color") || process.platform === "win32" || tty.isatty(1) && process.env.TERM !== "dumb" || "CI" in process.env); | ||
let formatter = (open, close, replace = open)=>(input)=>{ | ||
let string = "" + input; | ||
let index = string.indexOf(close, open.length); | ||
return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close; | ||
}; | ||
let replaceClose = (string, close, replace, index)=>{ | ||
let start = string.substring(0, index) + replace; | ||
let end = string.substring(index + close.length); | ||
let nextIndex = end.indexOf(close); | ||
return ~nextIndex ? start + replaceClose(end, close, replace, nextIndex) : start + end; | ||
}; | ||
let createColors = (enabled = isColorSupported)=>({ | ||
isColorSupported: enabled, | ||
reset: enabled ? (s)=>`\x1b[0m${s}\x1b[0m` : String, | ||
bold: enabled ? formatter("\x1b[1m", "\x1b[22m", "\x1b[22m\x1b[1m") : String, | ||
dim: enabled ? formatter("\x1b[2m", "\x1b[22m", "\x1b[22m\x1b[2m") : String, | ||
italic: enabled ? formatter("\x1b[3m", "\x1b[23m") : String, | ||
underline: enabled ? formatter("\x1b[4m", "\x1b[24m") : String, | ||
inverse: enabled ? formatter("\x1b[7m", "\x1b[27m") : String, | ||
hidden: enabled ? formatter("\x1b[8m", "\x1b[28m") : String, | ||
strikethrough: enabled ? formatter("\x1b[9m", "\x1b[29m") : String, | ||
black: enabled ? formatter("\x1b[30m", "\x1b[39m") : String, | ||
red: enabled ? formatter("\x1b[31m", "\x1b[39m") : String, | ||
green: enabled ? formatter("\x1b[32m", "\x1b[39m") : String, | ||
yellow: enabled ? formatter("\x1b[33m", "\x1b[39m") : String, | ||
blue: enabled ? formatter("\x1b[34m", "\x1b[39m") : String, | ||
magenta: enabled ? formatter("\x1b[35m", "\x1b[39m") : String, | ||
cyan: enabled ? formatter("\x1b[36m", "\x1b[39m") : String, | ||
white: enabled ? formatter("\x1b[37m", "\x1b[39m") : String, | ||
gray: enabled ? formatter("\x1b[90m", "\x1b[39m") : String, | ||
bgBlack: enabled ? formatter("\x1b[40m", "\x1b[49m") : String, | ||
bgRed: enabled ? formatter("\x1b[41m", "\x1b[49m") : String, | ||
bgGreen: enabled ? formatter("\x1b[42m", "\x1b[49m") : String, | ||
bgYellow: enabled ? formatter("\x1b[43m", "\x1b[49m") : String, | ||
bgBlue: enabled ? formatter("\x1b[44m", "\x1b[49m") : String, | ||
bgMagenta: enabled ? formatter("\x1b[45m", "\x1b[49m") : String, | ||
bgCyan: enabled ? formatter("\x1b[46m", "\x1b[49m") : String, | ||
bgWhite: enabled ? formatter("\x1b[47m", "\x1b[49m") : String | ||
}); | ||
picocolors.exports = createColors(); | ||
picocolors.exports.createColors = createColors; | ||
var hasRequiredPicocolors; | ||
var picocolorsExports = picocolors.exports; | ||
function requirePicocolors () { | ||
if (hasRequiredPicocolors) return picocolors.exports; | ||
hasRequiredPicocolors = 1; | ||
let tty = require$$0__default.default; | ||
let isColorSupported = !("NO_COLOR" in process.env || process.argv.includes("--no-color")) && ("FORCE_COLOR" in process.env || process.argv.includes("--color") || process.platform === "win32" || tty.isatty(1) && process.env.TERM !== "dumb" || "CI" in process.env); | ||
let formatter = (open, close, replace = open)=>(input)=>{ | ||
let string = "" + input; | ||
let index = string.indexOf(close, open.length); | ||
return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close; | ||
}; | ||
let replaceClose = (string, close, replace, index)=>{ | ||
let start = string.substring(0, index) + replace; | ||
let end = string.substring(index + close.length); | ||
let nextIndex = end.indexOf(close); | ||
return ~nextIndex ? start + replaceClose(end, close, replace, nextIndex) : start + end; | ||
}; | ||
let createColors = (enabled = isColorSupported)=>({ | ||
isColorSupported: enabled, | ||
reset: enabled ? (s)=>`\x1b[0m${s}\x1b[0m` : String, | ||
bold: enabled ? formatter("\x1b[1m", "\x1b[22m", "\x1b[22m\x1b[1m") : String, | ||
dim: enabled ? formatter("\x1b[2m", "\x1b[22m", "\x1b[22m\x1b[2m") : String, | ||
italic: enabled ? formatter("\x1b[3m", "\x1b[23m") : String, | ||
underline: enabled ? formatter("\x1b[4m", "\x1b[24m") : String, | ||
inverse: enabled ? formatter("\x1b[7m", "\x1b[27m") : String, | ||
hidden: enabled ? formatter("\x1b[8m", "\x1b[28m") : String, | ||
strikethrough: enabled ? formatter("\x1b[9m", "\x1b[29m") : String, | ||
black: enabled ? formatter("\x1b[30m", "\x1b[39m") : String, | ||
red: enabled ? formatter("\x1b[31m", "\x1b[39m") : String, | ||
green: enabled ? formatter("\x1b[32m", "\x1b[39m") : String, | ||
yellow: enabled ? formatter("\x1b[33m", "\x1b[39m") : String, | ||
blue: enabled ? formatter("\x1b[34m", "\x1b[39m") : String, | ||
magenta: enabled ? formatter("\x1b[35m", "\x1b[39m") : String, | ||
cyan: enabled ? formatter("\x1b[36m", "\x1b[39m") : String, | ||
white: enabled ? formatter("\x1b[37m", "\x1b[39m") : String, | ||
gray: enabled ? formatter("\x1b[90m", "\x1b[39m") : String, | ||
bgBlack: enabled ? formatter("\x1b[40m", "\x1b[49m") : String, | ||
bgRed: enabled ? formatter("\x1b[41m", "\x1b[49m") : String, | ||
bgGreen: enabled ? formatter("\x1b[42m", "\x1b[49m") : String, | ||
bgYellow: enabled ? formatter("\x1b[43m", "\x1b[49m") : String, | ||
bgBlue: enabled ? formatter("\x1b[44m", "\x1b[49m") : String, | ||
bgMagenta: enabled ? formatter("\x1b[45m", "\x1b[49m") : String, | ||
bgCyan: enabled ? formatter("\x1b[46m", "\x1b[49m") : String, | ||
bgWhite: enabled ? formatter("\x1b[47m", "\x1b[49m") : String | ||
}); | ||
picocolors.exports = createColors(); | ||
picocolors.exports.createColors = createColors; | ||
return picocolors.exports; | ||
} | ||
var picocolorsExports = /*@__PURE__*/ requirePicocolors(); | ||
var pc = /*@__PURE__*/getDefaultExportFromCjs(picocolorsExports); | ||
@@ -521,3 +528,3 @@ | ||
var version = "5.5.0"; | ||
var version = "5.5.1"; | ||
@@ -524,0 +531,0 @@ function relativify(path) { |
{ | ||
"name": "bunchee", | ||
"version": "5.5.0", | ||
"version": "5.5.1", | ||
"description": "zero config bundler for js/ts/jsx libraries", | ||
@@ -39,6 +39,6 @@ "bin": "./dist/bin/cli.js", | ||
"dependencies": { | ||
"@rollup/plugin-commonjs": "^26.0.1", | ||
"@rollup/plugin-commonjs": "^28.0.0", | ||
"@rollup/plugin-json": "^6.1.0", | ||
"@rollup/plugin-node-resolve": "^15.2.3", | ||
"@rollup/plugin-replace": "^5.0.7", | ||
"@rollup/plugin-replace": "^6.0.1", | ||
"@rollup/plugin-wasm": "^6.2.2", | ||
@@ -53,7 +53,7 @@ "@rollup/pluginutils": "^5.1.0", | ||
"pretty-bytes": "^5.6.0", | ||
"rollup": "^4.19.2", | ||
"rollup": "^4.24.0", | ||
"rollup-plugin-dts": "^6.1.1", | ||
"rollup-plugin-swc3": "^0.11.1", | ||
"rollup-preserve-directives": "^1.1.1", | ||
"tslib": "^2.6.2" | ||
"rollup-preserve-directives": "^1.1.2", | ||
"tslib": "^2.7.0" | ||
}, | ||
@@ -87,3 +87,3 @@ "peerDependencies": { | ||
"react": "^18.2.0", | ||
"typescript": "^5.5.2" | ||
"typescript": "^5.6.2" | ||
}, | ||
@@ -90,0 +90,0 @@ "lint-staged": { |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
141932
3057
+ Added@rollup/plugin-commonjs@28.0.1(transitive)
+ Added@rollup/plugin-replace@6.0.1(transitive)
+ Addedfdir@6.4.2(transitive)
- Removed@isaacs/cliui@8.0.2(transitive)
- Removed@pkgjs/parseargs@0.11.0(transitive)
- Removed@rollup/plugin-commonjs@26.0.3(transitive)
- Removed@rollup/plugin-replace@5.0.7(transitive)
- Removedansi-regex@5.0.1(transitive)
- Removedansi-styles@4.3.06.2.1(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@2.0.1(transitive)
- Removedcolor-convert@2.0.1(transitive)
- Removedcolor-name@1.1.4(transitive)
- Removedcross-spawn@7.0.3(transitive)
- Removedeastasianwidth@0.2.0(transitive)
- Removedemoji-regex@8.0.09.2.2(transitive)
- Removedforeground-child@3.3.0(transitive)
- Removedglob@10.4.5(transitive)
- Removedis-fullwidth-code-point@3.0.0(transitive)
- Removedisexe@2.0.0(transitive)
- Removedjackspeak@3.4.3(transitive)
- Removedlru-cache@10.4.3(transitive)
- Removedminimatch@9.0.5(transitive)
- Removedminipass@7.1.2(transitive)
- Removedpackage-json-from-dist@1.0.1(transitive)
- Removedpath-key@3.1.1(transitive)
- Removedpath-scurry@1.11.1(transitive)
- Removedshebang-command@2.0.0(transitive)
- Removedshebang-regex@3.0.0(transitive)
- Removedstring-width@4.2.35.1.2(transitive)
- Removedstrip-ansi@6.0.1(transitive)
- Removedwhich@2.0.2(transitive)
- Removedwrap-ansi@7.0.08.1.0(transitive)
Updatedrollup@^4.24.0
Updatedtslib@^2.7.0