Socket
Socket
Sign inDemoInstall

@contrast/protect

Package Overview
Dependencies
Maintainers
16
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contrast/protect - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

7

lib/error-handlers/install/koa2.js
'use strict';
const SecurityException = require('../../security-exception');
const { PATCH_TYPES } = require('@contrast/scopes/lib/constants');
const { patchType } = require('../constants');
module.exports = function(core) {

@@ -21,3 +22,3 @@ const {

name: 'Koa.Application',
patchType: PATCH_TYPES.FRAMEWORK,
patchType,
pre(data) {

@@ -27,3 +28,3 @@ const [ctx] = data.args;

name: 'koa.ctx.onerror',
patchType: PATCH_TYPES.FRAMEWORK,
patchType,
around(org, data) {

@@ -30,0 +31,0 @@ const [err] = data.args;

{
"name": "@contrast/protect",
"version": "1.1.0",
"version": "1.1.1",
"description": "Contrast service providing framework-agnostic Protect support",

@@ -5,0 +5,0 @@ "license": "SEE LICENSE IN LICENSE",

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