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

@contrast/require-hook

Package Overview
Dependencies
Maintainers
8
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contrast/require-hook - npm Package Compare versions

Comparing version 4.1.1 to 4.1.2

5

lib/export-handler-registry.js

@@ -90,3 +90,6 @@ // @ts-check

for (const descriptor of registered) {
if (!semver.satisfies(metadata.version, descriptor.version)) {
const satisfies = semver.satisfies(metadata.version, descriptor.version, {
includePrerelease: true,
});
if (!satisfies) {
this.logger?.trace('skipping handlers since package %s@%s does not satisfy semver range %s', metadata.name, metadata.version, descriptor.version);

@@ -93,0 +96,0 @@ continue;

28

package.json
{
"name": "@contrast/require-hook",
"version": "4.1.1",
"version": "4.1.2",
"description": "Post hooks for Module.prototype.require",

@@ -31,16 +31,16 @@ "license": "MIT",

"devDependencies": {
"@contrast/eslint-config": "^3.0.1",
"@contrast/eslint-config": "^3.2.0",
"@ls-lint/ls-lint": "^2.1.0",
"@tsconfig/node14": "^14.1.0",
"@types/chai": "^4.3.6",
"@types/express": "^4.17.17",
"@types/mocha": "^10.0.1",
"@types/node": "^14.18.58",
"@types/parent-package-json": "^2.0.2",
"@types/semver": "^7.5.1",
"@types/sinon": "^10.0.16",
"@types/sinon-chai": "^3.2.9",
"chai": "^4.3.8",
"express": "*",
"express-4.17.0": "npm:express@4.17.0",
"@types/express": "^4.17.18",
"@types/mocha": "^10.0.2",
"@types/node": "^14.18.63",
"@types/parent-package-json": "^2.0.3",
"@types/semver": "^7.5.3",
"@types/sinon": "^10.0.18",
"@types/sinon-chai": "^3.2.10",
"chai": "^4.3.10",
"express": "^4.18.2",
"express-4.17.3": "npm:express@4.17.3",
"express-4.18.2": "npm:express@4.18.2",

@@ -51,4 +51,4 @@ "husky": "^8.0.3",

"nyc": "^15.1.0",
"pino": "^8.15.0",
"sinon": "^15.2.0",
"pino": "^8.15.6",
"sinon": "^16.1.0",
"sinon-chai": "^3.7.0",

@@ -55,0 +55,0 @@ "typescript": "^5.2.2"

Sorry, the diff of this file is not supported yet

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