@discue/mongodb-resource-client
Advanced tools
Comparing version 0.38.0 to 0.38.1
@@ -269,10 +269,7 @@ 'use strict' | ||
if (result.length === 0) { | ||
return result | ||
return {} | ||
} | ||
const children = result.at(0).children | ||
let resourcePaths = result.at(0).resource_paths | ||
if (!children || children.length === 0) { | ||
return [] | ||
} | ||
const children = result.at(0).children ?? [] | ||
const resourcePaths = result.at(0).resource_paths ?? [] | ||
@@ -279,0 +276,0 @@ return { children, resourcePaths } |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "0.38.0", | ||
"version": "0.38.1", | ||
"description": "Simple wrapper around mongodb client allowing easier managing of resources", | ||
@@ -60,10 +60,8 @@ "main": "lib/index", | ||
"@types/mocha": "^10.0.6", | ||
"@types/node": "^20.12.7", | ||
"@types/node": "^20.14.2", | ||
"chai": "4", | ||
"documentation": "^14.0.3", | ||
"eslint": "^9.1.1", | ||
"eslint": "^9.5.0", | ||
"mocha": "^10.4.0", | ||
"mongodb": "^6.5.0", | ||
"mongodb-memory-server": "^9.2.0", | ||
"nodemon": "^3.1.0", | ||
"mongodb": "^6.7.0", | ||
"standard-version": "^9.5.0", | ||
@@ -70,0 +68,0 @@ "typescript": "^5.4.5" |
<p align="center"> | ||
<a href="https://www.discue.io/" target="_blank" rel="noopener noreferrer"><img width="128" src="https://www.discue.io/icons-fire-no-badge-square/web/icon-192.png" alt="Vue logo"> | ||
<a href="https://www.discue.io/" target="_blank" rel="noopener noreferrer"><img width="128" src="https://www.discue.io/icons-fire-no-badge-square/web/icon-192.png" alt="discue.io logo"> | ||
</a> | ||
@@ -18,3 +18,3 @@ </p> | ||
[![contributions - welcome](https://img.shields.io/badge/contributions-welcome-blue)](/CONTRIBUTING.md "Go to contributions doc") | ||
[![Made with Node.js](https://img.shields.io/badge/Node.js->=12-blue?logo=node.js&logoColor=white)](https://nodejs.org "Go to Node.js homepage") | ||
[![Made with Node.js](https://img.shields.io/badge/Node.js->=20-blue?logo=node.js&logoColor=white)](https://nodejs.org "Go to Node.js homepage") | ||
@@ -21,0 +21,0 @@ </div> |
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
11
136369
3461