perfectionist-plugins 2.4.5 → 2.4.6

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/package.json CHANGED
@@ -1,40 +1,40 @@
1
- {
2
- "name": "perfectionist-plugins",
3
- "version": "2.4.5",
4
- "description": "Small plugins that fix the annoying parts of League of Legends champ select. Built for Pengu Loader.",
5
- "type": "module",
6
- "main": "perfectionist-utils.js",
7
- "exports": {
8
- ".": "./perfectionist-utils.js",
9
- "./perfectionist-utils.js": "./perfectionist-utils.js",
10
- "./ban-blocker.js": "./ban-blocker.js",
11
- "./hide-unowned-skins.js": "./hide-unowned-skins.js",
12
- "./unlock-profile-skins.js": "./unlock-profile-skins.js",
13
- "./auto-claimer.js": "./auto-claimer.js",
14
- "./auto-read.js": "./auto-read.js",
15
- "./better-client.js": "./better-client.js",
16
- "./dodge-helper.js": "./dodge-helper.js",
17
- "./auto-accept.js": "./auto-accept.js"
18
- },
19
- "files": [
20
- "perfectionist-utils.js",
21
- "ban-blocker.js",
22
- "hide-unowned-skins.js",
23
- "unlock-profile-skins.js",
24
- "auto-claimer.js",
25
- "auto-read.js",
26
- "better-client.js",
27
- "dodge-helper.js",
28
- "auto-accept.js"
29
- ],
30
- "repository": {
31
- "type": "git",
32
- "url": "git+https://github.com/SrKing-9812/Perfectionist-Plugins.git"
33
- },
34
- "keywords": [
35
- "pengu-loader",
36
- "league-of-legends",
37
- "plugin"
38
- ],
39
- "author": "Sr. King"
40
- }
1
+ {
2
+ "name": "perfectionist-plugins",
3
+ "version": "2.4.6",
4
+ "description": "Small plugins that fix the annoying parts of League of Legends champ select. Built for Pengu Loader.",
5
+ "type": "module",
6
+ "main": "perfectionist-utils.js",
7
+ "exports": {
8
+ ".": "./perfectionist-utils.js",
9
+ "./perfectionist-utils.js": "./perfectionist-utils.js",
10
+ "./ban-blocker.js": "./ban-blocker.js",
11
+ "./hide-unowned-skins.js": "./hide-unowned-skins.js",
12
+ "./unlock-profile-skins.js": "./unlock-profile-skins.js",
13
+ "./auto-claimer.js": "./auto-claimer.js",
14
+ "./auto-read.js": "./auto-read.js",
15
+ "./better-client.js": "./better-client.js",
16
+ "./dodge-helper.js": "./dodge-helper.js",
17
+ "./auto-accept.js": "./auto-accept.js"
18
+ },
19
+ "files": [
20
+ "perfectionist-utils.js",
21
+ "ban-blocker.js",
22
+ "hide-unowned-skins.js",
23
+ "unlock-profile-skins.js",
24
+ "auto-claimer.js",
25
+ "auto-read.js",
26
+ "better-client.js",
27
+ "dodge-helper.js",
28
+ "auto-accept.js"
29
+ ],
30
+ "repository": {
31
+ "type": "git",
32
+ "url": "git+https://github.com/SrKing-9812/Perfectionist-Plugins.git"
33
+ },
34
+ "keywords": [
35
+ "pengu-loader",
36
+ "league-of-legends",
37
+ "plugin"
38
+ ],
39
+ "author": "Sr. King"
40
+ }
@@ -51,15 +51,15 @@ const BUNDLED_MODULES = [
51
51
  id: "auto-accept",
52
52
  file: "auto-accept.js",
53
53
  name: "Auto Accept",
54
- version: "1.1.2",
55
- description: "Accepts the match for you when the ready check pops up. Add an optional delay, and switch it on or off from the lobby footer.",
54
+ version: "1.1.3",
55
+ description: "Accepts the match for you when the ready check pops up.",
56
56
  },
57
57
  {
58
58
  id: "dodge-helper",
59
59
  file: "dodge-helper.js",
60
60
  name: "Dodge Helper",
61
- version: "1.4.2",
62
- description: "Adds a button to leave champ select: DODGE in ranked Solo/Duo and Flex, with the estimated LP you will lose, and QUIT in every other mode.",
61
+ version: "1.4.3",
62
+ description: "Adds a DODGE/QUIT button to champ select, showing the LP and queue penalty for the next dodge.",
63
63
  },
64
64
  {
65
65
  id: "auto-claimer",
@@ -348,11 +348,11 @@ function findOption(entry, key) {
348
348
  return null;
349
349
  }
350
350
 
351
- function getOption(id, key) {
351
+ function getOption(id, key, fallback = false) {
352
352
  const entry = registry.get(id);
353
- const fallback = findOption(entry, key)?.default;
353
+ const fallbackValue = findOption(entry, key)?.default ?? fallback;
354
354
  const stored = state.options?.[id]?.[key];
355
- return stored === undefined ? Boolean(fallback) : Boolean(stored);
355
+ return stored === undefined ? Boolean(fallbackValue) : Boolean(stored);
356
356
  }
357
357
 
358
358
  function setOption(id, key, value, refresh = true) {