intelliwaketssveltekitv25 0.1.178 → 0.1.179

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.
@@ -188,8 +188,11 @@
188
188
  })))
189
189
 
190
190
  function setSelected(selIDs: (string | number)[] | undefined, poss: T[]) {
191
- if (selIDs && (selIDs.length !== selected.length || !selected.every(sel => !!selIDs?.some(selID => selID === idValue(sel))))) {
192
- selected = poss.filter(po => !!selIDs?.some(selID => selID == idValue(po)))
191
+ if (selIDs) {
192
+ const newSelected = poss.filter(po => !!selIDs?.some(selID => selID == idValue(po)))
193
+ if (!DeepEqual(selected, newSelected)) {
194
+ selected = poss.filter(po => !!selIDs?.some(selID => selID == idValue(po)))
195
+ }
193
196
  }
194
197
  }
195
198
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelliwaketssveltekitv25",
3
- "version": "0.1.178",
3
+ "version": "0.1.179",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./dist/index.d.ts",