Socket
Socket
Sign inDemoInstall

@asymmetrik/fhir-qb-mongo

Package Overview
Dependencies
4
Maintainers
8
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.10.3 to 0.10.4

coverage/coverage-final.json

6

index.js

@@ -211,5 +211,7 @@ let supportedSearchTransformations = {

// Check that the necessary implementation parameters were passed through
let {archivedParamPath} = implementationParameters;
let { archivedParamPath } = implementationParameters;
if (!archivedParamPath) {
throw new Error('Missing required implementation parameter \'archivedParamPath\'');
throw new Error(
"Missing required implementation parameter 'archivedParamPath'",
);
}

@@ -216,0 +218,0 @@

@@ -218,3 +218,3 @@ const mongoQB = require('./index');

searchResultTransformations: {},
implementationParameters: {archivedParamPath: 'meta._isArchived'},
implementationParameters: { archivedParamPath: 'meta._isArchived' },
includeArchived: false,

@@ -258,3 +258,3 @@ pageNumber: 1,

searchResultTransformations: {},
implementationParameters: {archivedParamPath: 'meta._isArchived'},
implementationParameters: { archivedParamPath: 'meta._isArchived' },
includeArchived: false,

@@ -289,3 +289,3 @@ pageNumber: 1,

searchResultTransformations: {},
implementationParameters: {archivedParamPath: 'meta._isArchived'},
implementationParameters: { archivedParamPath: 'meta._isArchived' },
includeArchived: false,

@@ -320,3 +320,3 @@ pageNumber: 1,

searchResultTransformations: {},
implementationParameters: {archivedParamPath: 'meta._isArchived'},
implementationParameters: { archivedParamPath: 'meta._isArchived' },
includeArchived: false,

@@ -353,3 +353,3 @@ pageNumber: 1,

searchResultTransformations: { _count: 3 },
implementationParameters: {archivedParamPath: 'meta._isArchived'},
implementationParameters: { archivedParamPath: 'meta._isArchived' },
includeArchived: false,

@@ -395,3 +395,3 @@ pageNumber: 1,

searchResultTransformations: {},
implementationParameters: {archivedParamPath: 'meta._isArchived'},
implementationParameters: { archivedParamPath: 'meta._isArchived' },
includeArchived: false,

@@ -418,3 +418,5 @@ pageNumber: 1,

}
expect(error.message).toContain('Missing required implementation parameter \'archivedParamPath\'');
expect(error.message).toContain(
"Missing required implementation parameter 'archivedParamPath'",
);
});

@@ -425,3 +427,3 @@ test('Should return input query as is if we are not filtering out archived results', () => {

$facet: {
data: [{ $skip: 0 }, {$limit: 10}],
data: [{ $skip: 0 }, { $limit: 10 }],
metadata: [

@@ -433,3 +435,3 @@ {

$addFields: {
numberOfPages: {$ceil: {$divide:['$total',10]}},
numberOfPages: { $ceil: { $divide: ['$total', 10] } },
},

@@ -450,6 +452,6 @@ },

searchResultTransformations: {},
implementationParameters: {archivedParamPath: 'meta._isArchived'},
implementationParameters: { archivedParamPath: 'meta._isArchived' },
includeArchived: true,
pageNumber: 1,
resultsPerPage: 10
resultsPerPage: 10,
});

@@ -456,0 +458,0 @@ expect(observedResult).toEqual(expectedResult);

{
"name": "@asymmetrik/fhir-qb-mongo",
"version": "0.10.3",
"version": "0.10.4",
"description": "FHIR query builder for Mongo DB",

@@ -35,3 +35,3 @@ "main": "index.js",

},
"gitHead": "0f6aeb28427f9a5574a5a6bbe0ead0cdf0ad8af8"
"gitHead": "acfd4381764a96c77ba5a5d27c2239059d476267"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc