image-raub
Advanced tools
Comparing version 3.3.1 to 4.1.0
@@ -8,7 +8,7 @@ 'use strict'; | ||
const { bin } = require('addon-tools-raub'); | ||
console.log('dd', process.env.PATH); | ||
console.log('dd2', __dirname); | ||
const core = require(`./${bin}/image`); | ||
const { getBin } = require('addon-tools-raub'); | ||
module.exports = core; | ||
const core = require(`./${getBin()}/image`);module.exports = core; |
'use strict'; | ||
const install = require('addon-tools-raub/install'); | ||
const { install } = require('addon-tools-raub'); | ||
const prefix = 'https://github.com/node-3d/image-raub/releases/download'; | ||
const tag = '3.3.0'; | ||
const tag = '4.1.0'; | ||
install(`${prefix}/${tag}`); |
@@ -6,3 +6,3 @@ 'use strict'; | ||
const download = require('addon-tools-raub/download'); | ||
const { download } = require('addon-tools-raub'); | ||
@@ -23,3 +23,3 @@ const { Image } = require('../core'); | ||
this.on('error', err => { | ||
this.on('error', (err) => { | ||
this._data = null; | ||
@@ -117,4 +117,4 @@ this._error = err; | ||
download(this._src).then( | ||
data => this._load(data), | ||
err => this.emit('error', err) | ||
(data) => this._load(data), | ||
(err) => this.emit('error', err) | ||
); | ||
@@ -121,0 +121,0 @@ return; |
{ | ||
"author": "Luis Blanco <luisblanco1337@gmail.com>", | ||
"name": "image-raub", | ||
"version": "3.3.1", | ||
"version": "4.1.0", | ||
"description": "Native Image loader for Node.js", | ||
@@ -26,4 +26,4 @@ "license": "MIT", | ||
"engines": { | ||
"node": ">=16.17.0", | ||
"npm": ">=8.15.0" | ||
"node": ">=18.16.0", | ||
"npm": ">=9.5.1" | ||
}, | ||
@@ -33,22 +33,8 @@ "scripts": { | ||
"eslint": "eslint .", | ||
"build": "cd src && node-gyp rebuild && cd ..", | ||
"test": "jest --coverage=false --watch", | ||
"test-ci": "jest --coverage=false --verbose", | ||
"test-coverage": "rm -rf doc/jest && jest --coverage --silent" | ||
"build-all": "cd src && node-gyp rebuild -j max --silent && node -e \"require('addon-tools-raub').cpbin('image')\" && cd ..", | ||
"build-only": "cd src && node-gyp build -j max --silent && node -e \"require('addon-tools-raub').cpbin('image')\" && cd ..", | ||
"test": "jest --coverage=false --watch --config=conf/jest.json", | ||
"test-ci": "jest --ci --runInBand --coverage=false --forceExit --detectOpenHandles --config=conf/jest.json", | ||
"test-coverage": "rm -rf doc/jest && jest --coverage --silent --config=conf/jest.json" | ||
}, | ||
"jest": { | ||
"globalSetup": "<rootDir>/test/setup.js", | ||
"testEnvironment": "node", | ||
"testMatch": [ | ||
"**/*.test.js" | ||
], | ||
"coverageDirectory": "doc/jest", | ||
"coverageReporters": [ | ||
"lcov" | ||
], | ||
"collectCoverageFrom": [ | ||
"**/*.js", | ||
"!**/*.test.js" | ||
] | ||
}, | ||
"repository": { | ||
@@ -59,15 +45,14 @@ "type": "git", | ||
"dependencies": { | ||
"addon-tools-raub": "^6.0.2", | ||
"deps-freeimage-raub": "^3.1.1", | ||
"segfault-raub": "^1.3.2", | ||
"adm-zip": "^0.5.9" | ||
"addon-tools-raub": "^7.2.0", | ||
"deps-freeimage-raub": "^4.1.0", | ||
"segfault-raub": "^2.1.0" | ||
}, | ||
"devDependencies": { | ||
"eslint-plugin-jest": "^27.1.6", | ||
"eslint-plugin-jest": "^27.2.1", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint": "^8.28.0", | ||
"jest": "^29.3.1", | ||
"node-addon-api": "^5.0.0", | ||
"typescript": "^4.9.3" | ||
"eslint": "^8.40.0", | ||
"jest": "^29.5.0", | ||
"node-addon-api": "^6.1.0", | ||
"typescript": "^5.0.4" | ||
} | ||
} |
@@ -5,3 +5,3 @@ # Image for Node.js | ||
[![NPM](https://nodei.co/npm/image-raub.png?compact=true)](https://www.npmjs.com/package/image-raub) | ||
[![NPM](https://badge.fury.io/js/image-raub.svg)](https://badge.fury.io/js/image-raub) | ||
[![CodeFactor](https://www.codefactor.io/repository/github/node-3d/image-raub/badge)](https://www.codefactor.io/repository/github/node-3d/image-raub) | ||
@@ -8,0 +8,0 @@ |
Sorry, the diff of this file is not supported yet
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
12737
3
257
3
+ Addedaddon-tools-raub@7.4.08.0.0(transitive)
+ Addeddeps-freeimage-raub@4.1.1(transitive)
+ Addedsegfault-raub@2.3.0(transitive)
- Removedadm-zip@^0.5.9
- Removedaddon-tools-raub@6.3.0(transitive)
- Removedadm-zip@0.5.16(transitive)
- Removeddeps-freeimage-raub@3.1.1(transitive)
- Removedsegfault-raub@1.3.2(transitive)
Updatedaddon-tools-raub@^7.2.0
Updateddeps-freeimage-raub@^4.1.0
Updatedsegfault-raub@^2.1.0