qtools-library-dot-d 1.0.9 → 1.0.10
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.
- package/README.md +1 -0
- package/package.json +1 -1
- package/qtools-library-dot-d.js +4 -11
package/README.md
CHANGED
|
@@ -229,6 +229,7 @@ This pattern is used extensively in the qtools ecosystem for building scalable,
|
|
|
229
229
|
|
|
230
230
|
## HISTORY
|
|
231
231
|
|
|
232
|
+
v1.10 - there was a reason I did not return the exception list. Undone.
|
|
232
233
|
v1.09 - fixed broken error handling when library file path is bad; added demonstration application
|
|
233
234
|
v1.08 - updated README (several times)
|
|
234
235
|
v1.05 - cleaned up toString() report, returns exception list (or err if callback) if needed, added qtools-functional-library
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qtools-library-dot-d",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"description": "Scan a directory for JS modules that can execute and addMe() that attaches it to some form of name/value list, eg, a Map() with functions as values or an xPressJS route/endpoint list.",
|
|
5
5
|
"main": "qtools-library-dot-d.js",
|
|
6
6
|
"scripts": {
|
package/qtools-library-dot-d.js
CHANGED
|
@@ -14,7 +14,7 @@ const qt = require('qtools-functional-library');
|
|
|
14
14
|
//START OF moduleFunction() ============================================================
|
|
15
15
|
const moduleFunction =
|
|
16
16
|
({ moduleName } = {}) =>
|
|
17
|
-
({ libraryName='libraryDotD' }) => {
|
|
17
|
+
({ libraryName = 'libraryDotD' }) => {
|
|
18
18
|
// ======================================================================================
|
|
19
19
|
// SETTERS
|
|
20
20
|
|
|
@@ -207,17 +207,10 @@ const moduleFunction =
|
|
|
207
207
|
// INIT AND EXECUTE THE PIPELINE
|
|
208
208
|
|
|
209
209
|
if (typeof callback == 'function') {
|
|
210
|
-
|
|
211
|
-
callback(exceptionList);
|
|
212
|
-
} else {
|
|
213
|
-
callback();
|
|
214
|
-
}
|
|
210
|
+
callback();
|
|
215
211
|
} else {
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
} else {
|
|
219
|
-
return;
|
|
220
|
-
}}
|
|
212
|
+
return;
|
|
213
|
+
}
|
|
221
214
|
};
|
|
222
215
|
|
|
223
216
|
const externalElements = {
|