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

@vibrant/quantizer

Package Overview
Dependencies
Maintainers
0
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vibrant/quantizer - npm Package Compare versions

Comparing version 3.2.1-alpha.1 to 4.0.0-alpha.1

dist/cjs/index.cjs

40

package.json
{
"name": "@vibrant/quantizer",
"version": "3.2.1-alpha.1",
"version": "4.0.0-alpha.1",
"description": "Helper and typings for writing a vibrant quantizer",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"build": "vite build"
},
"main": "lib/index.js",
"types": "lib/index.d.ts",
"type": "module",
"types": "dist/esm/index.d.ts",
"main": "dist/cjs/index.cjs",
"module": "dist/esm/index.js",
"exports": {
".": {
"import": {
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"types": "./dist/cjs/index.d.cts",
"default": "./dist/cjs/index.cjs"
}
},
"./package.json": "./package.json"
},
"sideEffects": false,
"files": [
"dist",
"src"
],
"author": {

@@ -20,8 +40,10 @@ "name": "akfish",

"dependencies": {
"@vibrant/color": "^3.2.1-alpha.1",
"@vibrant/image": "^3.2.1-alpha.1",
"@vibrant/types": "^3.2.1-alpha.1"
"@vibrant/color": "^4.0.0-alpha.1",
"@vibrant/image": "^4.0.0-alpha.1",
"@vibrant/types": "^4.0.0-alpha.1"
},
"devDependencies": {
"typescript": "^3.7.2"
"@tanstack/config": "^0.14.2",
"typescript": "^4.5.2",
"vite": "^6.0.3"
},

@@ -31,3 +53,3 @@ "publishConfig": {

},
"gitHead": "e667d4c12e1de66e251d451710b093e9cb4630c2"
"gitHead": "968ad565c625279b5d3e2baf3e5da7f764551ade"
}

@@ -1,10 +0,10 @@

import { Pixels } from '@vibrant/image'
import { Resolvable } from '@vibrant/types'
import { Swatch } from '@vibrant/color'
import { Pixels } from "@vibrant/image";
import { Resolvable } from "@vibrant/types";
import { Swatch } from "@vibrant/color";
export interface QuantizerOptions {
colorCount: number
colorCount: number;
}
export interface Quantizer {
(pixels: Pixels, opts: QuantizerOptions): Resolvable<Array<Swatch>>
(pixels: Pixels, opts: QuantizerOptions): Resolvable<Array<Swatch>>;
}
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