Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

extract-colors

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

extract-colors - npm Package Compare versions

Comparing version 3.0.0 to 4.0.0

lib/extract-colors.cjs.js

24

package.json
{
"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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc