@pnp/core-commonjs
Advanced tools
Comparing version 3.0.0-v3nightly.20210926 to 3.0.0-v3nightly.20210927
@@ -35,9 +35,9 @@ "use strict"; | ||
for (let i = 0; i < keys.length; i++) { | ||
const key = keys[i]; | ||
const on = this.on[key]; | ||
if (behavior === "replace") { | ||
this.on[keys[i]].clear(); | ||
on.clear(); | ||
} | ||
const momentObservers = clonedSource[keys[i]]; | ||
momentObservers.forEach(v => { | ||
this.on[keys[i]](v); | ||
}); | ||
const momentObservers = clonedSource[key]; | ||
momentObservers.forEach(v => on(v)); | ||
} | ||
@@ -44,0 +44,0 @@ return this; |
@@ -7,3 +7,2 @@ "use strict"; | ||
// - you don't need error handling here because that is handled in emit within the timeline | ||
// - implement first as an example Promise.all(...obs) | ||
// - explain why we have just these - it is what we needed. | ||
@@ -10,0 +9,0 @@ /** |
{ | ||
"name": "@pnp/core-commonjs", | ||
"version": "3.0.0-v3nightly.20210926", | ||
"version": "3.0.0-v3nightly.20210927", | ||
"description": "pnp - provides shared functionality across all pnp libraries", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -35,3 +35,3 @@ export declare type DateAddInterval = "year" | "quarter" | "month" | "week" | "day" | "hour" | "minute" | "second"; | ||
* | ||
* @param cf The thing to test for functionness | ||
* @param f The thing to test for functionness | ||
*/ | ||
@@ -38,0 +38,0 @@ export declare function isFunc(f: any): boolean; |
@@ -94,3 +94,3 @@ "use strict"; | ||
* | ||
* @param cf The thing to test for functionness | ||
* @param f The thing to test for functionness | ||
*/ | ||
@@ -97,0 +97,0 @@ function isFunc(f) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
79862
1310