Comparing version 4.4.2 to 4.5.0
@@ -132,4 +132,4 @@ 'use strict'; | ||
* | ||
* If the value to set is of type {@link Lazy}, its value method is called with the previous | ||
* property values for each object to compute the new values to be set. | ||
* If the value to set is of type {@link Lazy}, its value method is called with the property key | ||
* and previous value for each object to compute the new value to be set. | ||
* | ||
@@ -145,3 +145,3 @@ * | ||
* | ||
* set(actions, new Lazy(x => x * 2)); | ||
* set(actions, new Lazy((key, val) => val * 2)); | ||
* console.log(obj1); // { a: 40, b: 2, c: 40} | ||
@@ -162,3 +162,3 @@ * console.log(obj2); // { a: 1, b: 40, c: 3} | ||
if (value instanceof Lazy) | ||
object[key] = value.value(object[key]); | ||
object[key] = value.value(key, object[key]); | ||
else | ||
@@ -165,0 +165,0 @@ object[key] = value; |
@@ -130,4 +130,4 @@ /** | ||
* | ||
* If the value to set is of type {@link Lazy}, its value method is called with the previous | ||
* property values for each object to compute the new values to be set. | ||
* If the value to set is of type {@link Lazy}, its value method is called with the property key | ||
* and previous value for each object to compute the new value to be set. | ||
* | ||
@@ -143,3 +143,3 @@ * | ||
* | ||
* set(actions, new Lazy(x => x * 2)); | ||
* set(actions, new Lazy((key, val) => val * 2)); | ||
* console.log(obj1); // { a: 40, b: 2, c: 40} | ||
@@ -160,3 +160,3 @@ * console.log(obj2); // { a: 1, b: 40, c: 3} | ||
if (value instanceof Lazy) | ||
object[key] = value.value(object[key]); | ||
object[key] = value.value(key, object[key]); | ||
else | ||
@@ -163,0 +163,0 @@ object[key] = value; |
{ | ||
"name": "deleight", | ||
"version": "4.4.2", | ||
"version": "4.5.0", | ||
"description": "A group of 10 libraries for writing accessible and joyfully interactive web applications with traditional HTML, CSS and JavaScript.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -29,3 +29,3 @@ # Deleight | ||
Apption is a simple and pragmatic library for composing clean, efficient and succinct frontend applications. It exports several primitives for performing common actions in a typical web application. Further details can be found within its repository at https://github.com/mksunny1/apption. It consolidates some of the most useful patterns discovered from developing and using earlier libraries and from writing a lot of JavaScript code. | ||
Apption is a simple and pragmatic library for composing clean, efficient and succinct frontend applications. It exports several primitives for performing common actions in a typical web application. Further details can be found within its repository at https://github.com/mksunny1/apption. It consolidates some of the most useful patterns from developing and using earlier libraries and from writing a lot of JavaScript code. | ||
@@ -32,0 +32,0 @@ ```js |
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
373243