@vertigis/arcgis-extensions 39.0.1 → 39.1.0
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/docs/html/classes/data_FeatureStream.FeatureStream.html +1 -1
- package/docs/html/classes/utilities_asyncIterable.AsyncQueue.html +1 -1
- package/docs/html/functions/utilities_watch.watchEach.html +4 -4
- package/docs/html/variables/version.version.html +1 -1
- package/package.json +1 -1
- package/utilities/watch.d.ts +3 -2
- package/utilities/watch.js +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -188,7 +188,7 @@ raised.</li>
|
|
|
188
188
|
<div class="tsd-comment tsd-typography"><p>Provides AsyncIterable functionality.</p>
|
|
189
189
|
</div>
|
|
190
190
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">AsyncIterator</span><span class="tsd-signature-symbol"><</span><a href="data_Feature.Feature.html" class="tsd-signature-type" data-tsd-kind="Class">Feature</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
191
|
-
<p>Implementation of AsyncIterable.__@asyncIterator@
|
|
191
|
+
<p>Implementation of AsyncIterable.__@asyncIterator@4104</p></aside></li></ul></section>
|
|
192
192
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-protected"><a id="_getSerializableProperties" class="tsd-anchor"></a>
|
|
193
193
|
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagProtected">Protected</code> <span>_get<wbr/>Serializable<wbr/>Properties</span><a href="#_getSerializableProperties" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
194
194
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-protected">
|
|
@@ -88,7 +88,7 @@ completely independently of one another.</p>
|
|
|
88
88
|
<div class="tsd-comment tsd-typography"><p>An iterator that returns the items in the queue.</p>
|
|
89
89
|
</div>
|
|
90
90
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">AsyncIterator</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
91
|
-
<p>Implementation of AsyncIterable.__@asyncIterator@
|
|
91
|
+
<p>Implementation of AsyncIterable.__@asyncIterator@4104</p></aside></li></ul></section>
|
|
92
92
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="add" class="tsd-anchor"></a>
|
|
93
93
|
<h3 class="tsd-anchor-link"><span>add</span><a href="#add" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
94
94
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
<h1>Function watchEach</h1></div>
|
|
19
19
|
<section class="tsd-panel">
|
|
20
20
|
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-module">
|
|
21
|
-
<li class="tsd-signature tsd-anchor-link" id="watchEach">watch<wbr/>Each<span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">U</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">(</span>collection<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Collection</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">></span>, path<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span>, callback<span class="tsd-signature-symbol">: </span><a href="../types/support_esri.WatchCallback.html" class="tsd-signature-type" data-tsd-kind="Type alias">WatchCallback</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">U</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">></span>, sync<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">IHandle</span><a href="#watchEach" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none" id="icon-anchor-a"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" id="icon-anchor-b"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" id="icon-anchor-c"></path></svg></a></li>
|
|
21
|
+
<li class="tsd-signature tsd-anchor-link" id="watchEach">watch<wbr/>Each<span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">U</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">(</span>collection<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Collection</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol"> | </span><a href="../classes/utilities_ObservableMap.ObservableMap.html" class="tsd-signature-type" data-tsd-kind="Class">ObservableMap</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">></span>, path<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span>, callback<span class="tsd-signature-symbol">: </span><a href="../types/support_esri.WatchCallback.html" class="tsd-signature-type" data-tsd-kind="Type alias">WatchCallback</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">U</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">></span>, sync<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">IHandle</span><a href="#watchEach" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none" id="icon-anchor-a"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" id="icon-anchor-b"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" id="icon-anchor-c"></path></svg></a></li>
|
|
22
22
|
<li class="tsd-description">
|
|
23
23
|
<div class="tsd-comment tsd-typography"><p>Watches a property on each item in a collection.</p>
|
|
24
24
|
</div>
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
34
34
|
<ul class="tsd-parameter-list">
|
|
35
35
|
<li>
|
|
36
|
-
<h5>collection: <span class="tsd-signature-type">Collection</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">></span></h5>
|
|
36
|
+
<h5>collection: <span class="tsd-signature-type">Collection</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol"> | </span><a href="../classes/utilities_ObservableMap.ObservableMap.html" class="tsd-signature-type" data-tsd-kind="Class">ObservableMap</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">></span></h5>
|
|
37
37
|
<div class="tsd-comment tsd-typography"><p>The collection of items to watch.</p>
|
|
38
38
|
</div></li>
|
|
39
39
|
<li>
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
<code>false</code>.</p>
|
|
52
52
|
</div></li></ul></div>
|
|
53
53
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">IHandle</span></h4></li>
|
|
54
|
-
<li class="tsd-signature tsd-anchor-link" id="watchEach-1">watch<wbr/>Each<span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">U</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">(</span>collection<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Collection</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">></span>, getValue<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span>item<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">U</span><span class="tsd-signature-symbol">)</span>, callback<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span>newValue<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">U</span>, oldValue<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">U</span>, item<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span>, sync<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">IHandle</span><a href="#watchEach-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
54
|
+
<li class="tsd-signature tsd-anchor-link" id="watchEach-1">watch<wbr/>Each<span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">U</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">(</span>collection<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Collection</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol"> | </span><a href="../classes/utilities_ObservableMap.ObservableMap.html" class="tsd-signature-type" data-tsd-kind="Class">ObservableMap</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">></span>, getValue<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span>item<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">U</span><span class="tsd-signature-symbol">)</span>, callback<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span>newValue<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">U</span>, oldValue<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">U</span>, item<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span>, sync<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">IHandle</span><a href="#watchEach-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
55
55
|
<li class="tsd-description">
|
|
56
56
|
<div class="tsd-comment tsd-typography"><p>Watches a property on each item in a collection.</p>
|
|
57
57
|
</div>
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
67
67
|
<ul class="tsd-parameter-list">
|
|
68
68
|
<li>
|
|
69
|
-
<h5>collection: <span class="tsd-signature-type">Collection</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">></span></h5>
|
|
69
|
+
<h5>collection: <span class="tsd-signature-type">Collection</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol"> | </span><a href="../classes/utilities_ObservableMap.ObservableMap.html" class="tsd-signature-type" data-tsd-kind="Class">ObservableMap</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">></span></h5>
|
|
70
70
|
<div class="tsd-comment tsd-typography"><p>The collection of items to watch.</p>
|
|
71
71
|
</div></li>
|
|
72
72
|
<li>
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
<li><a href="../modules/version.html">version</a></li>
|
|
17
17
|
<li><a href="version.version.html">version</a></li></ul>
|
|
18
18
|
<h1>Variable version<code class="tsd-tag ts-flagConst">Const</code> </h1></div>
|
|
19
|
-
<div class="tsd-signature">version<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"39.0
|
|
19
|
+
<div class="tsd-signature">version<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"39.1.0"</span><span class="tsd-signature-symbol"> = "39.1.0"</span></div>
|
|
20
20
|
<div class="tsd-comment tsd-typography"><p>The current version of the Geocortex ArcGIS Extensions API.</p>
|
|
21
21
|
</div></div>
|
|
22
22
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
package/package.json
CHANGED
package/utilities/watch.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import Collection from "@arcgis/core/core/Collection";
|
|
2
2
|
import type Evented from "@arcgis/core/core/Evented";
|
|
3
3
|
import type { AccessorLike, ChangeEventCallback, EventHandler, WatchCallback } from "../support/esri.js";
|
|
4
|
+
import type { ObservableMap } from "./ObservableMap.js";
|
|
4
5
|
export type { WatchCallback } from "../support/esri.js";
|
|
5
6
|
/**
|
|
6
7
|
* Listens for an event on each item in a collection.
|
|
@@ -20,7 +21,7 @@ export declare function onEach<T extends Evented>(collection: Collection<T>, eve
|
|
|
20
21
|
* @param sync Whether to invoke the callback synchronously. The default is
|
|
21
22
|
* `false`.
|
|
22
23
|
*/
|
|
23
|
-
export declare function watchEach<T extends AccessorLike, U = unknown>(collection: Collection<T>, path: string | string[], callback: WatchCallback<U, T>, sync?: boolean): IHandle;
|
|
24
|
+
export declare function watchEach<T extends AccessorLike, U = unknown>(collection: Collection<T> | ObservableMap<unknown, T>, path: string | string[], callback: WatchCallback<U, T>, sync?: boolean): IHandle;
|
|
24
25
|
/**
|
|
25
26
|
* Watches a property on each item in a collection.
|
|
26
27
|
*
|
|
@@ -32,7 +33,7 @@ export declare function watchEach<T extends AccessorLike, U = unknown>(collectio
|
|
|
32
33
|
* @param sync Whether to invoke the callback synchronously. The default is
|
|
33
34
|
* `false`.
|
|
34
35
|
*/
|
|
35
|
-
export declare function watchEach<T extends AccessorLike, U = unknown>(collection: Collection<T>, getValue: (item: T) => U, callback: (newValue: U, oldValue: U, item: T) => void, sync?: boolean): IHandle;
|
|
36
|
+
export declare function watchEach<T extends AccessorLike, U = unknown>(collection: Collection<T> | ObservableMap<unknown, T>, getValue: (item: T) => U, callback: (newValue: U, oldValue: U, item: T) => void, sync?: boolean): IHandle;
|
|
36
37
|
/**
|
|
37
38
|
* Watches a property on each item in a collection property.
|
|
38
39
|
*
|
package/utilities/watch.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"@arcgis/core/core/Collection";import*as e from"@arcgis/core/core/reactiveUtils";import{checkArg as t}from"./checkArg.js";export function onEach(o,e,
|
|
1
|
+
import o from"@arcgis/core/core/Collection";import*as e from"@arcgis/core/core/reactiveUtils";import{checkArg as t}from"./checkArg.js";export function onEach(o,e,r){t("collection",o).isNotMissing(),t("eventType",e).isNotMissing().isNotEmpty(),t("callback",r).isNotMissing();const n=new Map;for(const t of o.toArray())n.set(t,t.on(e,r));const s=o.on("change",(o=>{for(const t of o.added)n.set(t,t.on(e,r));for(const e of o.removed){const o=n.get(e);o&&o.remove(),n.delete(e)}}));return{remove:()=>{s.remove(),n.forEach((o=>o.remove()))}}}export function watchEach(o,...r){let n;if(t("collection",o).isNotMissing(),"function"==typeof r[0]){const[o,s,i=!1]=r;t("getValue",o).isNotMissing(),t("callback",s).isNotMissing(),n=t=>e.watch((()=>o(t)),((o,e)=>s(o,e,t)),{sync:i})}else{const[o,e,s=!1]=r;t("path",o).isNotMissing().isNotEmpty(),t("callback",e).isNotMissing(),n=t=>t.watch(o,e,s)}const s=new Map;for(const e of"function"==typeof o.toArray?o.toArray():[...o.values()])s.set(e,n(e));const i=o.on("change",(o=>{for(const e of o.added){const o=Array.isArray(e)?e[1]:e;s.set(o,n(o))}for(const e of o.removed){const o=Array.isArray(e)?e[1]:e,t=s.get(o);t&&t.remove(),s.delete(o)}}));return{remove:()=>{i.remove(),s.forEach((o=>o.remove()))}}}export function watchCollectionPropertyEach(o,e,r,n,s=!1){t("obj",o).isNotMissing(),t("collectionProperty",e).isNotMissing().isNotEmpty(),t("path",r).isNotMissing().isNotEmpty(),t("callback",n).isNotMissing();const i=new Map,c=o.get(e);if(c)for(const o of c.toArray())i.set(o,o.watch(r,n,s));const a=onCollectionPropertyChange(o,e,(o=>{for(const e of o.added)i.set(e,e.watch(r,n,s));for(const e of o.removed){const o=i.get(e);o&&o.remove(),i.delete(e)}}),s);return{remove:()=>{a.remove(),i.forEach((o=>o.remove()))}}}export function onCollectionPropertyChange(e,r,n,s=!1){let i;t("obj",e).isNotMissing(),t("property",r).isNotMissing().isNotEmpty(),t("callback",n).isNotMissing();const c=e.get(r);c&&(i=c.on("change",n));const a=e.watch(r,((e,t)=>{i&&(i.remove(),i=void 0),e&&(i=e.on("change",n));const r=e??new o,s=t??new o,c=r,a=r.filter((o=>s.includes(o))),l=s.filter((o=>r.includes(o))),f={added:r.filter((o=>!s.includes(o))).toArray(),removed:s.filter((o=>!r.includes(o))).toArray(),moved:a.filter(((o,e)=>l.indexOf(o)!==e)).toArray(),target:c};(f.added.length||f.removed.length||f.moved.length)&&n(f)}),s);return{remove:()=>{i&&i.remove(),a.remove()}}}export function onOnce(o,e,t){const r=o.on(e,(o=>{t(o),r.remove()}));return r}
|
package/version.d.ts
CHANGED
package/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version="39.0
|
|
1
|
+
export const version="39.1.0";
|