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

jimpex

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jimpex - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json

@@ -5,3 +5,3 @@ {

"homepage": "https://homer0.github.io/jimpex/",
"version": "1.0.1",
"version": "1.0.2",
"repository": "homer0/jimpex",

@@ -8,0 +8,0 @@ "author": "Leonardo Apiwan (@homer0) <me@homer0.com>",

@@ -220,3 +220,3 @@ const Jimple = require('jimple');

if (expressOptions.trustProxy) {
this.express.set('trust proxy');
this.express.enable('trust proxy');
}

@@ -223,0 +223,0 @@

@@ -102,4 +102,4 @@ const JimpleMock = require('/tests/mocks/jimple.mock');

});
expect(expressMock.mocks.set).toHaveBeenCalledTimes(1);
expect(expressMock.mocks.set).toHaveBeenCalledWith('trust proxy');
expect(expressMock.mocks.enable).toHaveBeenCalledTimes(1);
expect(expressMock.mocks.enable).toHaveBeenCalledWith('trust proxy');
expect(expressMock.mocks.disable).toHaveBeenCalledTimes(1);

@@ -218,3 +218,3 @@ expect(expressMock.mocks.disable).toHaveBeenCalledWith('x-powered-by');

// Then
expect(expressMock.mocks.set).toHaveBeenCalledTimes(0);
expect(expressMock.mocks.enable).toHaveBeenCalledTimes(0);
});

@@ -221,0 +221,0 @@

const mocks = {
set: jest.fn(),
enable: jest.fn(),
disable: jest.fn(),

@@ -4,0 +5,0 @@ use: jest.fn(),

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