diff --git a/package-lock.json b/package-lock.json index d4aca91..57200d9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "dependencies": { "@kant2002/jszip": "2.7.1", "elementtree": "^0.1.7", - "image-size": "^0.3.5" + "image-size": "^1.0.2" }, "devDependencies": { "@types/jest": "^27.4.0", @@ -2012,14 +2012,17 @@ } }, "node_modules/image-size": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/image-size/-/image-size-0.3.5.tgz", - "integrity": "sha1-gyQOqy+1sAsEqrjHSwRx6cunrYw=", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/image-size/-/image-size-1.0.2.tgz", + "integrity": "sha512-xfOoWjceHntRb3qFCrh5ZFORYH8XCdYpASltMhZ/Q0KZiOwjdE/Yl2QCiWdwD+lygV5bMCvauzgu5PxBX/Yerg==", + "dependencies": { + "queue": "6.0.2" + }, "bin": { - "image-size": "bin/image-size" + "image-size": "bin/image-size.js" }, "engines": { - "node": ">=0.10.0" + "node": ">=14.0.0" } }, "node_modules/import-local": { @@ -2063,8 +2066,7 @@ "node_modules/inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, "node_modules/is-arrayish": { "version": "0.2.1", @@ -3386,6 +3388,14 @@ "node": ">=6" } }, + "node_modules/queue": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/queue/-/queue-6.0.2.tgz", + "integrity": "sha512-iHZWu+q3IdFZFX36ro/lKBkSvfkztY5Y7HMiPlOUjhupPcG2JMfst2KKEpu5XndviX/3UhFbRngUPNKtgvtZiA==", + "dependencies": { + "inherits": "~2.0.3" + } + }, "node_modules/react-is": { "version": "17.0.2", "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", diff --git a/package.json b/package.json index 0acbcb0..f4e38da 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "dependencies": { "@kant2002/jszip": "2.7.1", "elementtree": "^0.1.7", - "image-size": "^0.3.5" + "image-size": "^1.0.2" }, "devDependencies": { "@types/jest": "^27.4.0", diff --git a/src/index.js b/src/index.js index 001cf9a..312bfe6 100755 --- a/src/index.js +++ b/src/index.js @@ -4,7 +4,7 @@ /// var path = require('path'), - sizeOf = require('image-size'), + sizeOf = require('image-size').imageSize, fs = require('fs'), etree = require('elementtree'), zip = require("@kant2002/jszip");