fast-average-color-node
Advanced tools
Comparing version 2.3.0 to 2.4.0
@@ -9,4 +9,4 @@ "use strict"; | ||
const node_fetch_1 = __importDefault(require("node-fetch")); | ||
const fast_average_color_1 = __importDefault(require("fast-average-color")); | ||
const fac = new fast_average_color_1.default(); | ||
const fast_average_color_1 = require("fast-average-color"); | ||
const fac = new fast_average_color_1.FastAverageColor(); | ||
const MIN_SIZE = 10; | ||
@@ -13,0 +13,0 @@ const MAX_SIZE = 100; |
{ | ||
"name": "fast-average-color-node", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"description": "A simple library that calculates the average color of images in Node.js.", | ||
@@ -13,3 +13,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"fast-average-color": "^7.1.0", | ||
"fast-average-color": "^9.1.1", | ||
"node-fetch": "^2.6.1", | ||
@@ -19,3 +19,3 @@ "sharp": "^0.30.6" | ||
"devDependencies": { | ||
"@types/jest": "^28.1.2", | ||
"@types/jest": "^28.1.3", | ||
"@types/node-fetch": "^2.6.2", | ||
@@ -39,5 +39,6 @@ "@types/sharp": "^0.30.4", | ||
"scripts": { | ||
"test": "jest --config ./jest.config.js .", | ||
"test": "npm run typecheck && jest --config ./jest.config.js .", | ||
"build": "tsc -p tsconfig.json", | ||
"prepare": "npm run build" | ||
"prepare": "npm run build", | ||
"typecheck": "tsc --noEmit" | ||
}, | ||
@@ -44,0 +45,0 @@ "author": { |
import sharp from 'sharp'; | ||
import fetch from 'node-fetch'; | ||
import { default as FastAverageColor, FastAverageColorOptions, FastAverageColorResult } from 'fast-average-color'; | ||
import { FastAverageColor, FastAverageColorOptions, FastAverageColorResult } from 'fast-average-color'; | ||
@@ -5,0 +5,0 @@ const fac = new FastAverageColor(); |
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
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
10841
+ Addedfast-average-color@9.4.0(transitive)
- Removed@types/offscreencanvas@2019.7.3(transitive)
- Removedfast-average-color@7.1.0(transitive)
Updatedfast-average-color@^9.1.1