🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@node-minify/clean-css

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@node-minify/clean-css - npm Package Compare versions

Comparing version

to
8.0.3-beta.0

./dist/index.js

2

dist/index.d.ts

@@ -10,3 +10,3 @@ import { MinifierOptions } from '@node-minify/types';

declare const minifyCleanCSS: {
({ settings, content, callback, index }: MinifierOptions): any;
({ settings, content, callback, index }: MinifierOptions): string | void;
default: any;

@@ -13,0 +13,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,

@@ -32,5 +36,5 @@ mod

const contentMinified = _cleanCSS.styles;
if (_cleanCSS.sourceMap && settings && settings.options && settings.options._sourceMap) {
if (_cleanCSS.sourceMap && settings && settings.options && typeof settings.options._sourceMap === "object") {
import_utils.utils.writeFile({
file: settings.options._sourceMap !== true && settings.options._sourceMap.url ? settings.options._sourceMap.url : null,
file: settings.options._sourceMap.url ? settings.options._sourceMap.url : "",
content: _cleanCSS.sourceMap.toString(),

@@ -40,4 +44,4 @@ index

}
if (settings && !settings.content) {
import_utils.utils.writeFile({ file: settings.output, content: contentMinified, index });
if (settings && !settings.content && settings.output) {
settings.output && import_utils.utils.writeFile({ file: settings.output, content: contentMinified, index });
}

@@ -44,0 +48,0 @@ if (callback) {

{
"name": "@node-minify/clean-css",
"version": "8.0.2-beta.0",
"version": "8.0.3-beta.0",
"description": "clean-css plugin for @node-minify",

@@ -15,3 +15,3 @@ "keywords": [

"engines": {
"node": ">=14.0.0"
"node": ">=16.0.0"
},

@@ -45,14 +45,14 @@ "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",
"clean-css": "5.3.1"
"@node-minify/utils": "8.0.3-beta.0",
"clean-css": "5.3.2"
},
"devDependencies": {
"@node-minify/types": "8.0.2-beta.0",
"@node-minify/types": "8.0.3-beta.0",
"@types/clean-css": "^4.2.6"
},
"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