extract-colors
Advanced tools
Comparing version 3.0.0 to 4.0.0
{ | ||
"name": "extract-colors", | ||
"version": "3.0.0", | ||
"version": "4.0.0", | ||
"description": "Extract color palettes from images", | ||
"main": "lib/extract-colors.node.cjs.js", | ||
"browser": "lib/extract-colors.browser.umd.js", | ||
"types": "lib/extract-colors.browser.umd.d.ts", | ||
"exports": { | ||
"node": { | ||
"import": "./lib/extract-colors.node.es.js", | ||
"require": "./lib/extract-colors.node.cjs.js" | ||
}, | ||
"browser": { | ||
"import": "./lib/extract-colors.browser.es.js", | ||
"require": "./lib/extract-colors.browser.umd.js" | ||
} | ||
}, | ||
"main": "lib/extract-colors.cjs.js", | ||
"module": "lib/extract-colors.es.js", | ||
"types": "lib/extract-colors.d.ts", | ||
"scripts": { | ||
"prebuild": "rm -rf ./lib", | ||
"build": "vite build --config conf/vite.config.browser.ts && vite build --config conf/vite.config.node.ts && tsc --project conf/tsconfig.browser.type.json && tsc --project conf/tsconfig.node.type.json", | ||
"postbuild": "cp lib/extractColors.browser.d.ts lib/extract-colors.browser.es.d.ts && mv lib/extractColors.browser.d.ts lib/extract-colors.browser.umd.d.ts && cp lib/extractColors.node.d.ts lib/extract-colors.node.es.d.ts && mv lib/extractColors.node.d.ts lib/extract-colors.node.cjs.d.ts", | ||
"build": "vite build --config conf/vite.config.ts && tsc --project conf/tsconfig.type.json", | ||
"postbuild": "mv lib/extractColors.d.ts lib/extract-colors.d.ts", | ||
"lint": "eslint src --fix", | ||
@@ -27,3 +17,3 @@ "pretest": "npm run build", | ||
"coverage": "vitest run --coverage --config conf/vite.config.test.ts", | ||
"loop": "for file in lib/*/*/*.js; do terser $file --compress --mangle --mangle-props --source-map includeSources --output $file; done" | ||
"loop": "for file in lib/*.js; do terser $file --compress --mangle --mangle-props --source-map includeSources --output $file; done" | ||
}, | ||
@@ -30,0 +20,0 @@ "repository": { |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
1
126469
19
634
1