@asymmetrik/fhir-qb-mongo
Advanced tools
Comparing version 0.10.3 to 0.10.4
@@ -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" | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
112642
15
2198
2