@hexonet/semantic-release-whmcs 5.0.69 → 5.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.
Files changed (37) hide show
  1. package/HISTORY.md +28 -0
  2. package/extensions/I-Still-Dont-Care-About-Cookies/LICENSE +14 -0
  3. package/extensions/I-Still-Dont-Care-About-Cookies/_locales/en/messages.json +160 -0
  4. package/extensions/I-Still-Dont-Care-About-Cookies/_metadata/generated_indexed_rulesets/_ruleset1 +0 -0
  5. package/extensions/I-Still-Dont-Care-About-Cookies/data/background.html +2 -0
  6. package/extensions/I-Still-Dont-Care-About-Cookies/data/background.js +681 -0
  7. package/extensions/I-Still-Dont-Care-About-Cookies/data/css/common.css +14306 -0
  8. package/extensions/I-Still-Dont-Care-About-Cookies/data/hotreload.js +43 -0
  9. package/extensions/I-Still-Dont-Care-About-Cookies/data/js/0_defaultClickHandler.js +590 -0
  10. package/extensions/I-Still-Dont-Care-About-Cookies/data/js/2_sessionStorageHandler.js +30 -0
  11. package/extensions/I-Still-Dont-Care-About-Cookies/data/js/3_localStorageHandler.js +243 -0
  12. package/extensions/I-Still-Dont-Care-About-Cookies/data/js/5_clickHandler.js +8523 -0
  13. package/extensions/I-Still-Dont-Care-About-Cookies/data/js/6_cookieHandler.js +764 -0
  14. package/extensions/I-Still-Dont-Care-About-Cookies/data/js/8_googleHandler.js +105 -0
  15. package/extensions/I-Still-Dont-Care-About-Cookies/data/js/embedsHandler.js +107 -0
  16. package/extensions/I-Still-Dont-Care-About-Cookies/data/menu/index.html +79 -0
  17. package/extensions/I-Still-Dont-Care-About-Cookies/data/menu/script.js +161 -0
  18. package/extensions/I-Still-Dont-Care-About-Cookies/data/menu/spinner.svg +12 -0
  19. package/extensions/I-Still-Dont-Care-About-Cookies/data/menu/style.css +68 -0
  20. package/extensions/I-Still-Dont-Care-About-Cookies/data/options.html +42 -0
  21. package/extensions/I-Still-Dont-Care-About-Cookies/data/options.js +63 -0
  22. package/extensions/I-Still-Dont-Care-About-Cookies/data/rules.js +20684 -0
  23. package/extensions/I-Still-Dont-Care-About-Cookies/icons/128.png +0 -0
  24. package/extensions/I-Still-Dont-Care-About-Cookies/icons/16.png +0 -0
  25. package/extensions/I-Still-Dont-Care-About-Cookies/icons/32.png +0 -0
  26. package/extensions/I-Still-Dont-Care-About-Cookies/icons/48.png +0 -0
  27. package/extensions/I-Still-Dont-Care-About-Cookies/manifest.json +47 -0
  28. package/extensions/I-Still-Dont-Care-About-Cookies/manifest_v2.json +46 -0
  29. package/extensions/I-Still-Dont-Care-About-Cookies/rules.json +19539 -0
  30. package/lib/delete-marketplace-version.js +82 -31
  31. package/lib/publish.js +52 -43
  32. package/lib/puppet-utils.js +145 -0
  33. package/lib/puppet.js +68 -41
  34. package/lib/resolve-config.js +1 -0
  35. package/lib/set-compatible-versions.js +26 -10
  36. package/package.json +6 -6
  37. package/whmcs.js +7 -5
@@ -0,0 +1,243 @@
1
+ /* Local storage handler */
2
+ /* Use this handler if it's possible to remove the warning using the local storage and can't be handeld using css */
3
+
4
+ function getItem(hostname) {
5
+ switch (hostname) {
6
+ case "ants.gouv.fr":
7
+ return { strict: true, key: "cookieConsent", value: "true" };
8
+ case "eqmac.app":
9
+ return {
10
+ strict: false,
11
+ key: "EQM_PRIVACY_CONSENT_CHOSEN",
12
+ value: "true",
13
+ };
14
+ case "figuya.com":
15
+ return { strict: false, key: "cookie-dialog", value: "closed" };
16
+ case "scoodleplay.be":
17
+ return { strict: false, key: "scoodleAllowCookies", value: "true" };
18
+ case "lifesum.com":
19
+ return { strict: false, key: "accepted-cookies", value: "[]" };
20
+ case "programmitv.it":
21
+ return { strict: false, key: "privacy_choices_made", value: "OK" };
22
+ case "nexus.gg":
23
+ return { strict: true, key: "cookie-notice:accepted", value: "true" };
24
+ case "streamelements.com":
25
+ return {
26
+ strict: true,
27
+ key: "StreamElements.gdprNoticeAccepted",
28
+ value: "true",
29
+ };
30
+
31
+ case "phoenix.de":
32
+ return {
33
+ strict: false,
34
+ key: "user_anonymous_profile",
35
+ value:
36
+ '{"config":{"tracking":false,"userprofile":false,"youtube":false,"twitter":false,"facebook":false,"iframe":false,"video":{"useSubtitles":false,"useAudioDescription":false}},"votings":[],"msgflash":[],"history":[]}',
37
+ };
38
+
39
+ case "klarna.com":
40
+ return [
41
+ {
42
+ strict: true,
43
+ key: "safe-storage/v1/tracking-consent/trackingConsentAnalyticsKey",
44
+ value: "KEEP_ALWAYS;;false",
45
+ },
46
+ {
47
+ strict: true,
48
+ key: "safe-storage/v1/tracking-consent/trackingConsentMarketingKey",
49
+ value: "KEEP_ALWAYS;;false",
50
+ },
51
+ ];
52
+
53
+ case "volkskrant.nl":
54
+ case "dg.nl":
55
+ case "demorgen.be":
56
+ case "trouw.nl":
57
+ case "ad.nl":
58
+ case "parool.nl":
59
+ case "ed.nl":
60
+ case "bndestem.nl":
61
+ case "weser-kurier.de":
62
+ return [
63
+ { strict: false, key: "vl_disable_tracking", value: "true" },
64
+ { strict: false, key: "vl_disable_usecookie", value: "necessary" },
65
+ ];
66
+ case "blaetterkatalog.welt.de":
67
+ return {
68
+ strict: true,
69
+ key: "DM_prefs",
70
+ value:
71
+ '{"cookie_hint":true,"accept_cookies":false,"_childs":[],"_type":1}',
72
+ };
73
+
74
+ case "yellow.systems":
75
+ return { strict: false, key: "isCookiesNotificationHidden", value: true };
76
+ case "schlauer-shop24.de":
77
+ return { strict: false, key: "Shop4CookieConsentAdv", value: false };
78
+ case "gbnews.uk":
79
+ return {
80
+ strict: false,
81
+ key: "mol.ads.cmp.tcf.cache",
82
+ value:
83
+ '{"getTCData":{"cmpId":27,"cmpVersion":3,"gdprApplies":true,"tcfPolicyVersion":2,"eventStatus":"tcloaded","cmpStatus":"loaded","tcString":"CPgwfhMPgwfljAbADCENBwCgAAAAAAAAAAwIAAAQUgFgA4AM-AwQBuIDcwG-AOxAdsA7kB3gEFAAg0CYAKwAXABDADIAGWANkAfgBAACCgEYAKWAU8Aq8BaAFpANYAbwA6oB8gEOgIqAReAkQBNgCdgFIgLkAYEAwkBh4DGAGTgM5AZ4Az4ByQDlAHWAPwEQHwArACGAGQAMsAbIA_ACAAEYAKWAU8Aq4BrADqgHyAQ6Ai8BIgCbAE7AKRAXIAwIBhIDDwGTgM5AZ8A5IBygDrAH4AAA.f_gAAagAAAAA","isServiceSpecific":true,"useNonStandardStacks":false,"purposeOneTreatment":false,"publisherCC":"GB","addtlConsent":"1~","repromptVersion":1,"outOfBand":{"allowedVendors":{},"disclosedVendors":{}},"purpose":{"consents":{},"legitimateInterests":{}},"vendor":{"consents":{},"legitimateInterests":{}},"specialFeatureOptins":{},"publisher":{"consents":{},"customPurpose":{"consents":{},"legitimateInterests":{}},"restrictions":{"3":{}}}},"getStoredRepromptVersion":1,"getValidTCData":{"cmpId":27,"cmpVersion":3,"gdprApplies":true,"tcfPolicyVersion":2,"eventStatus":"tcloaded","cmpStatus":"loaded","listenerId":2,"tcString":"CPgwfhMPgwfljAbADCENBwCgAAAAAAAAAAwIAAAQUgFgA4AM-AwQBuIDcwG-AOxAdsA7kB3gEFAAg0CYAKwAXABDADIAGWANkAfgBAACCgEYAKWAU8Aq8BaAFpANYAbwA6oB8gEOgIqAReAkQBNgCdgFIgLkAYEAwkBh4DGAGTgM5AZ4Az4ByQDlAHWAPwEQHwArACGAGQAMsAbIA_ACAAEYAKWAU8Aq4BrADqgHyAQ6Ai8BIgCbAE7AKRAXIAwIBhIDDwGTgM5AZ8A5IBygDrAH4AAA.f_gAAagAAAAA","isServiceSpecific":true,"useNonStandardStacks":false,"purposeOneTreatment":false,"publisherCC":"GB","addtlConsent":"1~","repromptVersion":1,"outOfBand":{"allowedVendors":{},"disclosedVendors":{}},"purpose":{"consents":{},"legitimateInterests":{}},"vendor":{"consents":{},"legitimateInterests":{}},"specialFeatureOptins":{},"publisher":{"consents":{},"customPurpose":{"consents":{},"legitimateInterests":{}},"restrictions":{"3":{},"4":{}}}}}',
84
+ };
85
+ case "palmangels.com":
86
+ return { strict: false, key: "SHOW_COOKIE_BANNER", value: "no" };
87
+ case "parfimo.ro":
88
+ return [
89
+ { strict: false, key: "consent_is_set", value: "true" },
90
+ {
91
+ strict: false,
92
+ key: "consent_personalization_storage",
93
+ value: "denied",
94
+ },
95
+ { strict: false, key: "consent_analytics_storage", value: "denied" },
96
+ { strict: false, key: "consent_ad_storage", value: "denied" },
97
+ ];
98
+ case "hardware.info":
99
+ return {
100
+ strict: false,
101
+ key: "consentData",
102
+ value:
103
+ '{"relevantAds":{"version":1,"approved":false},"youtube":{"version":1,"approved":false}}',
104
+ };
105
+ case "coquedetelephone.fr":
106
+ return {
107
+ strict: false,
108
+ key: "mage_consent",
109
+ value: '{"data":{"functional":true,"marketing":false}}',
110
+ };
111
+ case "zugportal.de":
112
+ return {
113
+ strict: false,
114
+ key: "consent-settings",
115
+ value:
116
+ '{"version":1,"permissionStatusEssentials":false,"permissionStatusAnalytics":false,"lastUpdated":"2022-11-01T00:00:00.000Z"}',
117
+ };
118
+ case "geotastic.net":
119
+ return {
120
+ strict: false,
121
+ key: "privacy-policy-accepted",
122
+ value: "true",
123
+ };
124
+ case "bionic-reading.com":
125
+ return {
126
+ strict: false,
127
+ key: "accept_all_cookies",
128
+ value: "false",
129
+ };
130
+ case "nightcafe.studio":
131
+ return {
132
+ strict: false,
133
+ key: "acceptsNonCriticalCookies",
134
+ value: "accepted",
135
+ };
136
+ case "defence24.pl":
137
+ case "cyberdefence24.pl":
138
+ case "energetyka24.com":
139
+ case "space24.pl":
140
+ case "defence24.com":
141
+ case "infosecurity24.pl":
142
+ return {
143
+ strict: false,
144
+ key: "privacy2022",
145
+ value:
146
+ '{"required":true,"performance":false,"functional":false,"marketing":false,"analytics":false}',
147
+ };
148
+ case "modivo.lt":
149
+ case "modivo.pl":
150
+ case "modivo.it":
151
+ case "modivo.ro":
152
+ case "modivo.sk":
153
+ case "modivo.hu":
154
+ case "modivo.bg":
155
+ case "modivo.gr":
156
+ case "modivo.de":
157
+ case "modivo.fr":
158
+ case "modivo.it":
159
+ case "modivo.hr":
160
+ case "modivo.cz":
161
+ case "modivo.ua":
162
+ case "modivo.lv":
163
+ case "modivo.si":
164
+ case "modivo.at":
165
+ return [
166
+ {
167
+ strict: false,
168
+ key: "__MODIVO__hide_modal_consents",
169
+ value: '{"expires":1875041510390,"data":true}',
170
+ },
171
+ {
172
+ strict: false,
173
+ key: "__MODIVO__consents_accepted",
174
+ value: "true",
175
+ },
176
+ {
177
+ strict: false,
178
+ key: "__MODIVO__items_consents_codes",
179
+ value:
180
+ '["category_advertisement","category_analysis_and_research","category_location","category_processes","category_service_configuration","Zowie","Synerise","Double Take","Wirtualna Polska Media","Onet","Playlink","INIS sp z o.o.","Tradedoubler","Google Ads","Snowdog","Ringier Axel Springer Polska","Facebook","Verizon Media","Microsoft Corporation","Criteo GmbH","RTB House","TikTok","Hotjar"]',
181
+ },
182
+ ];
183
+ case "vicampo.de":
184
+ return {
185
+ strict: false,
186
+ key: "temp-cookiefirst-consent",
187
+ value:
188
+ '{"necessary":false,"performance":false,"functional":false,"advertising":false,"timestamp":0}',
189
+ };
190
+ case "data-driven-forms.org":
191
+ return {
192
+ strict: false,
193
+ key: "data-driven-forms-cookie-consent",
194
+ value: "neccessary",
195
+ };
196
+ case "reservations.hotel-spider.com":
197
+ return {
198
+ strict: false,
199
+ key: "SB4.Cookies",
200
+ value: "true",
201
+ };
202
+ case "buki.org.pl":
203
+ return {
204
+ strict: false,
205
+ key: "cookiesInfo",
206
+ value: "1",
207
+ };
208
+ case "freemap.sk":
209
+ return {
210
+ strict: false,
211
+ key: "store",
212
+ value: '{"main":{"cookieConsentResult":false}}',
213
+ };
214
+ }
215
+
216
+ const parts = hostname.split(".");
217
+
218
+ if (parts.length > 2) {
219
+ parts.shift();
220
+ return getItem(parts.join("."));
221
+ }
222
+
223
+ return false;
224
+ }
225
+
226
+ const hostname = document.location.hostname.replace(/^w{2,3}\d*\./i, "");
227
+ let counter = 0;
228
+ const items = getItem(hostname);
229
+
230
+ if (items) {
231
+ (items instanceof Array ? items : [items]).forEach(function (item) {
232
+ const value = localStorage.getItem(item.key);
233
+
234
+ if (value == null || (item.strict && value != item.value)) {
235
+ localStorage.setItem(item.key, item.value);
236
+ counter++;
237
+ }
238
+ });
239
+
240
+ if (counter > 0) {
241
+ document.location.reload();
242
+ }
243
+ }