@contrast/architecture-components
Advanced tools
Comparing version 1.29.0 to 1.30.0
@@ -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() { |
@@ -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" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27084
12
732
+ Added@contrast/common@1.27.0(transitive)
+ Added@contrast/config@1.37.0(transitive)
+ Added@contrast/dep-hooks@1.11.0(transitive)
+ Added@contrast/logger@1.15.0(transitive)
+ Added@contrast/patcher@1.14.0(transitive)
- Removed@contrast/common@1.26.0(transitive)
- Removed@contrast/config@1.36.0(transitive)
- Removed@contrast/dep-hooks@1.10.0(transitive)
- Removed@contrast/logger@1.14.0(transitive)
- Removed@contrast/patcher@1.13.0(transitive)
Updated@contrast/common@1.27.0
Updated@contrast/dep-hooks@1.11.0
Updated@contrast/logger@1.15.0
Updated@contrast/patcher@1.14.0