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

@contrast/architecture-components

Package Overview
Dependencies
Maintainers
0
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contrast/architecture-components - npm Package Compare versions

Comparing version 1.29.0 to 1.30.0

lib/install/dynamodb.js

5

lib/index.js

@@ -34,5 +34,8 @@ /*

// require('./install/dynamodb')(core);
require('./install/dynamodb')(core);
require('./install/mongodb')(core);
require('./install/mssql')(core);
require('./install/mysql')(core);
require('./install/pg')(core);
require('./install/sqlite3')(core);

@@ -39,0 +42,0 @@ core.architectureComponents.install = function() {

2

lib/install/mysql.js

@@ -34,3 +34,3 @@ /*

depHooks.resolve(
{ name: 'mysql', file: 'lib/Connection.js' },
{ name: 'mysql', version: '<3', file: 'lib/Connection.js' },
(Connection) => {

@@ -37,0 +37,0 @@ patcher.patch(Connection.prototype, 'connect', {

@@ -29,3 +29,3 @@ 'use strict';

core.depHooks.resolve
.withArgs({ name: 'mysql', file: 'lib/Connection.js' })
.withArgs({ name: 'mysql', version: '<3', file: 'lib/Connection.js' })
.yields(ConnectionMock);

@@ -32,0 +32,0 @@

@@ -63,3 +63,3 @@ /*

depHooks.resolve({ name: 'pg', file: 'lib/client.js' }, (Client) =>
depHooks.resolve({ name: 'pg', version: '<9', file: 'lib/client.js' }, (Client) =>
patcher.patch(Client, {

@@ -72,3 +72,3 @@ name: 'pg.Client',

depHooks.resolve({ name: 'pg', file: 'lib/native/client.js' }, (NativeClient) =>
depHooks.resolve({ name: 'pg', version: '<9', file: 'lib/native/client.js' }, (NativeClient) =>
patcher.patch(NativeClient, {

@@ -75,0 +75,0 @@ name: 'pg.native.Client',

@@ -5,2 +5,3 @@ 'use strict';

const { expect } = require('chai');
const sinon = require('sinon');
const { Event } = require('@contrast/common');

@@ -39,7 +40,7 @@ const patcher = require('@contrast/patcher');

[Client] = core.depHooks.resolve
.withArgs({ name: 'pg', file: 'lib/client.js' })
.withArgs(sinon.match({ file: 'lib/client.js' }))
.yield(_Client);
core.depHooks.resolve
.withArgs({ name: 'pg', file: 'lib/native/client.js' })
.withArgs(sinon.match({ file: 'lib/native/client.js' }))
.yield(_Client);

@@ -46,0 +47,0 @@ });

{
"name": "@contrast/architecture-components",
"version": "1.29.0",
"version": "1.30.0",
"description": "Detects external systems being connected to by applications.",

@@ -20,7 +20,7 @@ "license": "SEE LICENSE IN LICENSE",

"dependencies": {
"@contrast/common": "1.26.0",
"@contrast/dep-hooks": "1.10.0",
"@contrast/logger": "1.14.0",
"@contrast/patcher": "1.13.0"
"@contrast/common": "1.27.0",
"@contrast/dep-hooks": "1.11.0",
"@contrast/logger": "1.15.0",
"@contrast/patcher": "1.14.0"
}
}
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