@danielgindi/selectbox 1.0.77 → 1.0.78

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/lib/DropList.js CHANGED
@@ -624,7 +624,7 @@ class DropList {
624
624
 
625
625
  // Look for the proper item
626
626
  let itemIndex = this.itemIndexByValue(value);
627
- if (itemIndex < -1) return this;
627
+ if (itemIndex === -1) return this;
628
628
 
629
629
  let item = this.itemAtIndex(itemIndex);
630
630
  item[ItemSymbol] = newItem;
@@ -673,7 +673,7 @@ class DropList {
673
673
 
674
674
  // Look for the proper item
675
675
  let itemIndex = this.itemIndexByValueOrLabel(value, label);
676
- if (itemIndex < -1) return this;
676
+ if (itemIndex === -1) return this;
677
677
 
678
678
  let spliced = p.items.splice(itemIndex, 1);
679
679
  if (spliced[0]._group) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danielgindi/selectbox",
3
- "version": "1.0.77",
3
+ "version": "1.0.78",
4
4
  "description": "A collection of dom utilities. So you can work natively with the dom without dom frameworks.",
5
5
  "main": "dist/lib.cjs.min.js",
6
6
  "module": "lib/index.js",
@@ -31,26 +31,26 @@
31
31
  "homepage": "https://github.com/danielgindi/selectbox#readme",
32
32
  "license": "MIT",
33
33
  "devDependencies": {
34
- "@babel/core": "^7.20.2",
34
+ "@babel/core": "^7.20.12",
35
35
  "@babel/preset-env": "^7.20.2",
36
- "@babel/runtime": "^7.20.1",
37
- "@rollup/plugin-babel": "^6.0.2",
38
- "@rollup/plugin-commonjs": "^23.0.2",
36
+ "@babel/runtime": "^7.20.13",
37
+ "@rollup/plugin-babel": "^6.0.3",
38
+ "@rollup/plugin-commonjs": "^24.0.1",
39
39
  "@rollup/plugin-node-resolve": "^15.0.1",
40
- "core-js": "^3.26.0",
41
- "eslint": "^8.27.0",
40
+ "@rollup/plugin-terser": "^0.4.0",
41
+ "core-js": "^3.28.0",
42
+ "eslint": "^8.34.0",
42
43
  "eslint-formatter-codeframe": "^7.32.1",
43
- "eslint-plugin-vue": "^9.7.0",
44
- "fs-extra": "^10.1.0",
45
- "husky": "^8.0.1",
44
+ "eslint-plugin-vue": "^9.9.0",
45
+ "fs-extra": "^11.1.0",
46
+ "husky": "^8.0.3",
46
47
  "pinst": "^3.0.0",
47
- "rollup": "^3.2.5",
48
- "rollup-plugin-terser": "^7.0.2",
49
- "sass": "^1.56.0"
48
+ "rollup": "^3.15.0",
49
+ "sass": "^1.58.1"
50
50
  },
51
51
  "dependencies": {
52
52
  "@danielgindi/dom-utils": "^1.0.8",
53
- "@danielgindi/virtual-list-helper": "^1.0.7",
53
+ "@danielgindi/virtual-list-helper": "^1.0.9",
54
54
  "fast-deep-equal": "^3.1.3",
55
55
  "keycode-js": "^3.1.0",
56
56
  "mitt": "^3.0.0"