@existdb/node-exist
Advanced tools
+10
-4
@@ -46,7 +46,13 @@ /** | ||
| function applyEachWith (module, client) { | ||
| const methods = {} | ||
| for (const method in module) { | ||
| methods[method] = applyWith(module[method], client) | ||
| const applied = {} | ||
| for (const property in module) { | ||
| const value = module[property] | ||
| // leave non-functions untouched | ||
| if (typeof value !== 'function') { | ||
| applied[property] = value | ||
| continue | ||
| } | ||
| applied[property] = applyWith(value, client) | ||
| } | ||
| return methods | ||
| return applied | ||
| } | ||
@@ -53,0 +59,0 @@ |
+1
-1
@@ -54,3 +54,3 @@ { | ||
| }, | ||
| "version": "5.0.0" | ||
| "version": "5.0.1" | ||
| } |
+2
-2
@@ -23,3 +23,3 @@ # node-exist | ||
| __NOTE:__ If you are looking for a command line client have a look at [xst](https://github.com/line-o/xst) | ||
| __NOTE:__ If you are looking for a command line client have a look at [xst](https://github.com/eXist-db/xst) | ||
@@ -500,3 +500,3 @@ ## Use | ||
| __NOTE:__ Have a look at [xst](https://github.com/line-o/xst) for a CLI client built with node-exist. | ||
| __NOTE:__ Have a look at [xst](https://github.com/eXist-db/xst) for a CLI client built with node-exist. | ||
@@ -503,0 +503,0 @@ ## Test |
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
34088
0.48%474
1.28%