@node-minify/crass
Advanced tools
Comparing version 9.0.1 to 10.0.0-next.0
@@ -15,1 +15,2 @@ import { MinifierOptions } from '@node-minify/types'; | ||
export { minifyCrass as default }; | ||
export = minifyCrass |
@@ -1,28 +0,4 @@ | ||
"use strict"; | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __copyProps = (to, from, except, desc) => { | ||
if (from && typeof from === "object" || typeof from === "function") { | ||
for (let key of __getOwnPropNames(from)) | ||
if (!__hasOwnProp.call(to, key) && key !== except) | ||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); | ||
} | ||
return to; | ||
}; | ||
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, | ||
mod | ||
)); | ||
// src/index.ts | ||
var import_utils = require("@node-minify/utils"); | ||
var import_crass = __toESM(require("crass")); | ||
import { utils } from "@node-minify/utils"; | ||
import crass from "crass"; | ||
var minifyCrass = ({ | ||
@@ -34,5 +10,5 @@ settings, | ||
}) => { | ||
const contentMinified = import_crass.default.parse(content).optimize().toString(); | ||
const contentMinified = crass.parse(content).optimize().toString(); | ||
if (settings && !settings.content && settings.output) { | ||
settings.output && import_utils.utils.writeFile({ | ||
settings.output && utils.writeFile({ | ||
file: settings.output, | ||
@@ -49,3 +25,6 @@ content: contentMinified, | ||
minifyCrass.default = minifyCrass; | ||
module.exports = minifyCrass; | ||
var src_default = minifyCrass; | ||
export { | ||
src_default as default | ||
}; | ||
/*! | ||
@@ -56,2 +35,1 @@ * node-minify | ||
*/ | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@node-minify/crass", | ||
"version": "9.0.1", | ||
"version": "10.0.0-next.0", | ||
"description": "crass plugin for @node-minify", | ||
@@ -12,6 +12,7 @@ "keywords": [ | ||
"author": "Rodolphe Stoclin <srodolphe@gmail.com>", | ||
"homepage": "https://github.com/srod/node-minify/tree/master/packages/crass#readme", | ||
"homepage": "https://github.com/srod/node-minify/tree/main/packages/crass#readme", | ||
"license": "MIT", | ||
"type": "module", | ||
"engines": { | ||
"node": ">=18.0.0" | ||
"node": ">=22.0.0" | ||
}, | ||
@@ -22,10 +23,8 @@ "directories": { | ||
}, | ||
"main": "./dist/index.js", | ||
"module": "./dist/index.mjs", | ||
"types": "./dist/index.d.ts", | ||
"main": "./dist/index.cjs", | ||
"exports": { | ||
"./package.json": "./package.json", | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.js" | ||
"import": "./dist/index.js", | ||
"default": "./dist/index.cjs" | ||
} | ||
@@ -46,17 +45,19 @@ }, | ||
}, | ||
"dependencies": { | ||
"crass": "0.12.3", | ||
"@node-minify/utils": "9.0.1" | ||
}, | ||
"devDependencies": { | ||
"@node-minify/types": "9.0.0" | ||
}, | ||
"scripts": { | ||
"clean": "pnpm dlx rimraf dist", | ||
"build": "pnpm clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap", | ||
"build": "tsup src/index.ts --format cjs,esm --dts --clean && bunx fix-tsup-cjs", | ||
"check-exports": "attw --pack .", | ||
"format:check": "biome check .", | ||
"lint": "biome lint .", | ||
"prepublishOnly": "bun run build", | ||
"test": "vitest run", | ||
"test:ci": "vitest run --coverage", | ||
"test:watch": "vitest" | ||
}, | ||
"dependencies": { | ||
"@node-minify/utils": "workspace:*", | ||
"crass": "0.12.3" | ||
}, | ||
"devDependencies": { | ||
"@node-minify/types": "workspace:*" | ||
} | ||
} | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
111
Yes
7624
7
1
- Removed@node-minify/utils@9.0.1(transitive)
- Removedduplexer@0.1.2(transitive)
- Removedgzip-size@6.0.0(transitive)