@sv443-network/userutils 10.0.0 → 10.0.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @sv443-network/userutils
2
2
 
3
+ ## 10.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 4af7d99: Removed global merged interface.
8
+
3
9
  ## 10.0.0
4
10
 
5
11
  ### Major Changes
@@ -850,8 +850,8 @@ function interceptEvent(eventObject, eventName, predicate = () => true) {
850
850
  if (typeof window.GM === "object" && ((_a = GM == null ? void 0 : GM.info) == null ? void 0 : _a.scriptHandler) && GM.info.scriptHandler === "FireMonkey" && (eventObject === window || eventObject === getUnsafeWindow()))
851
851
  throw new PlatformError("Intercepting window events is not supported on FireMonkey due to the isolated context the userscript is forced to run in.");
852
852
  if ("stackTraceLimit" in Error) {
853
- Error.stackTraceLimit = Math.max(Error.stackTraceLimit, 100);
854
- if (isNaN(Error.stackTraceLimit))
853
+ Error.stackTraceLimit = Math.max(Number(Error.stackTraceLimit), 100);
854
+ if (isNaN(Number(Error.stackTraceLimit)))
855
855
  Error.stackTraceLimit = 100;
856
856
  }
857
857
  (function(original) {
@@ -791,8 +791,8 @@ function interceptEvent(eventObject, eventName, predicate = () => true) {
791
791
  if (typeof window.GM === "object" && ((_a = GM == null ? void 0 : GM.info) == null ? void 0 : _a.scriptHandler) && GM.info.scriptHandler === "FireMonkey" && (eventObject === window || eventObject === getUnsafeWindow()))
792
792
  throw new PlatformError("Intercepting window events is not supported on FireMonkey due to the isolated context the userscript is forced to run in.");
793
793
  if ("stackTraceLimit" in Error) {
794
- Error.stackTraceLimit = Math.max(Error.stackTraceLimit, 100);
795
- if (isNaN(Error.stackTraceLimit))
794
+ Error.stackTraceLimit = Math.max(Number(Error.stackTraceLimit), 100);
795
+ if (isNaN(Number(Error.stackTraceLimit)))
796
796
  Error.stackTraceLimit = 100;
797
797
  }
798
798
  (function(original) {
@@ -998,8 +998,8 @@ function interceptEvent(eventObject, eventName, predicate = () => true) {
998
998
  if (typeof window.GM === "object" && ((_a = GM == null ? void 0 : GM.info) == null ? void 0 : _a.scriptHandler) && GM.info.scriptHandler === "FireMonkey" && (eventObject === window || eventObject === getUnsafeWindow()))
999
999
  throw new PlatformError("Intercepting window events is not supported on FireMonkey due to the isolated context the userscript is forced to run in.");
1000
1000
  if ("stackTraceLimit" in Error) {
1001
- Error.stackTraceLimit = Math.max(Error.stackTraceLimit, 100);
1002
- if (isNaN(Error.stackTraceLimit))
1001
+ Error.stackTraceLimit = Math.max(Number(Error.stackTraceLimit), 100);
1002
+ if (isNaN(Number(Error.stackTraceLimit)))
1003
1003
  Error.stackTraceLimit = 100;
1004
1004
  }
1005
1005
  (function(original) {
package/dist/lib/dom.d.ts CHANGED
@@ -32,12 +32,6 @@ export declare function preloadImages(srcUrls: string[], rejects?: boolean): Pro
32
32
  * @param additionalProps Additional properties to set on the anchor element (only applies when `GM.openInTab` is not available)
33
33
  */
34
34
  export declare function openInNewTab(href: string, background?: boolean, additionalProps?: Partial<HTMLAnchorElement>): void;
35
- /** Add stackTraceLimit to ErrorConstructor */
36
- declare global {
37
- interface ErrorConstructor {
38
- stackTraceLimit: number;
39
- }
40
- }
41
35
  /**
42
36
  * Intercepts the specified event on the passed object and prevents it from being called if the called {@linkcode predicate} function returns a truthy value.
43
37
  * If no predicate is specified, all events will be discarded.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sv443-network/userutils",
3
3
  "libName": "UserUtils",
4
- "version": "10.0.0",
4
+ "version": "10.0.1",
5
5
  "description": "General purpose DOM/GreaseMonkey library that allows you to register listeners for when CSS selectors exist, intercept events, create persistent & synchronous data stores, modify the DOM more easily and much more",
6
6
  "main": "dist/UserUtils.mjs",
7
7
  "module": "dist/UserUtils.mjs",