qtools-functional-library 2.0.0 → 2.0.1
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
CHANGED
|
@@ -27,6 +27,8 @@ console.log(one); //produces '[object Object]'
|
|
|
27
27
|
qtPassThrough <u>no longer</u> *always* returns the inbound 'this'. If the supplied function
|
|
28
28
|
returns a value, that is passed on. This way, any ad hoc function can affect the result chain.
|
|
29
29
|
|
|
30
|
+
Version 2.0.1 9/23/24 - removed deep clone in favor of spread operator (which didn't exist when this was written). Should have no effect on functionality.
|
|
31
|
+
|
|
30
32
|
EG,
|
|
31
33
|
|
|
32
34
|
```
|
|
@@ -8,7 +8,7 @@ var moduleFunction = function(args = {}) {
|
|
|
8
8
|
|
|
9
9
|
const baseReplacementFunction = (replaceObject, template, options) => {
|
|
10
10
|
const { transformations = {}, leaveUnmatchedTagsIntact = true } = options;
|
|
11
|
-
replaceObject = replaceObject
|
|
11
|
+
replaceObject = {...replaceObject,...transformations};
|
|
12
12
|
|
|
13
13
|
const tmp = template.match(/<!.*?!>/g);
|
|
14
14
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qtools-functional-library",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Useful additions to JS prototypes to facilliate chainable, functional (mostly) style. Also make life more convenient.\"",
|
|
5
5
|
"main": "qtools-functional-library.js",
|
|
6
6
|
"scripts": {
|