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

image-raub

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

image-raub - npm Package Compare versions

Comparing version 3.3.1 to 4.1.0

8

core.js

@@ -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

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