@contrast/protect 1.75.1 → 1.75.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -158,7 +158,12 @@ module.exports = function(core) {
158
158
  }
159
159
 
160
160
  instr.install = function() {
161
- depHooks.resolve({ name: 'mongodb', version: '<7' }, (mongodb, version) => {
161
+ depHooks.resolve({ name: 'mongodb', version: '<7' }, (mongodb, meta) => {
162
+ if (!mongodb.Collection || !mongodb.Db) {
163
+ meta.rerun();
164
+ return;
165
+ }
166
+ const { version } = meta;
162
167
  patchCollection(mongodb, version);
163
168
  patchDatabase(mongodb, version);
164
169
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/protect",
3
- "version": "1.75.1",
3
+ "version": "1.75.2",
4
4
  "description": "Contrast service providing framework-agnostic Protect support",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "author": "Contrast Security <nodejs@contrastsecurity.com> (https://www.contrastsecurity.com)",