@node-minify/core
Advanced tools
Comparing version 8.0.2-beta.0 to 8.0.3-beta.0
@@ -17,2 +17,6 @@ "use strict"; | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( | ||
// If the importer is in node compatibility mode or this is not an ESM | ||
// file that has been converted to a CommonJS file using a Babel- | ||
// compatible transform (i.e. "__esModule" has not been set), then set | ||
// "default" to the CommonJS "module.exports" for node compatibility. | ||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, | ||
@@ -24,3 +28,3 @@ mod | ||
var import_path = __toESM(require("path")); | ||
var import_globby = __toESM(require("globby")); | ||
var import_globby = require("globby"); | ||
var import_utils = require("@node-minify/utils"); | ||
@@ -49,3 +53,3 @@ var defaultSettings = { | ||
var checkOutput = (input, output, publicFolder, replaceInPlace) => { | ||
let reg = new RegExp("\\$1"); | ||
const reg = new RegExp("\\$1"); | ||
if (reg.test(output)) { | ||
@@ -76,3 +80,3 @@ if (Array.isArray(input)) { | ||
var wildcardsArray = (input, publicFolder) => { | ||
let output = {}; | ||
const output = {}; | ||
let isWildcardsPresent = false; | ||
@@ -87,3 +91,3 @@ output.input = input; | ||
if (isWildcardsPresent) { | ||
output.input = import_globby.default.sync(inputWithPublicFolder); | ||
output.input = (0, import_globby.globbySync)(inputWithPublicFolder); | ||
} | ||
@@ -101,3 +105,3 @@ for (let i = 0; i < output.input.length; i++) { | ||
if (input.indexOf("*") > -1) { | ||
output = import_globby.default.sync((publicFolder || "") + input); | ||
output = (0, import_globby.globbySync)((publicFolder || "") + input); | ||
} | ||
@@ -107,3 +111,3 @@ return output; | ||
var setPublicFolder = (input, publicFolder) => { | ||
let output = {}; | ||
const output = {}; | ||
if (typeof publicFolder !== "string") { | ||
@@ -213,3 +217,3 @@ return output; | ||
if (settings.callback) { | ||
settings.callback(null, minified); | ||
settings.callback(null, typeof minified === "string" ? minified : ""); | ||
} | ||
@@ -216,0 +220,0 @@ resolve(minified); |
{ | ||
"name": "@node-minify/core", | ||
"version": "8.0.2-beta.0", | ||
"version": "8.0.3-beta.0", | ||
"description": "core of @node-minify", | ||
@@ -14,3 +14,3 @@ "keywords": [ | ||
"engines": { | ||
"node": ">=14.0.0" | ||
"node": ">=16.0.0" | ||
}, | ||
@@ -44,15 +44,15 @@ "directories": { | ||
"clean": "pnpm dlx rimraf dist", | ||
"build": "npm run clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap", | ||
"prepublishOnly": "npm run build" | ||
"build": "pnpm clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap", | ||
"prepublishOnly": "pnpm build" | ||
}, | ||
"dependencies": { | ||
"@node-minify/utils": "8.0.2-beta.0", | ||
"globby": "11.1.0", | ||
"@node-minify/utils": "8.0.3-beta.0", | ||
"globby": "13.1.3", | ||
"mkdirp": "1.0.4" | ||
}, | ||
"devDependencies": { | ||
"@node-minify/types": "8.0.2-beta.0", | ||
"@node-minify/types": "8.0.3-beta.0", | ||
"@types/mkdirp": "^1.0.2" | ||
}, | ||
"gitHead": "bd2fe186257749fcb9bf7a9ff1ce61fb922c4ade" | ||
"gitHead": "f79e146eed24ca117756cf029eb5005631f12892" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
56407
9
675
3
+ Added@node-minify/utils@8.0.3-beta.0(transitive)
+ Addedglobby@13.1.3(transitive)
+ Addedslash@4.0.0(transitive)
- Removed@node-minify/utils@8.0.2-beta.0(transitive)
- Removedarray-union@2.1.0(transitive)
- Removedglobby@11.1.0(transitive)
- Removedslash@3.0.0(transitive)
Updatedglobby@13.1.3