@gjsify/dom-exception 0.62.0 → 0.63.1-next.235
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/esm/index.js +1 -1
- package/lib/types/index.d.ts +13 -1
- package/package.json +5 -4
package/lib/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./_virtual/_rolldown/runtime.js";const e={IndexSizeError:1,HierarchyRequestError:3,WrongDocumentError:4,InvalidCharacterError:5,NoModificationAllowedError:7,NotFoundError:8,NotSupportedError:9,InUseAttributeError:10,InvalidStateError:11,SyntaxError:12,InvalidModificationError:13,NamespaceError:14,InvalidAccessError:15,TypeMismatchError:17,SecurityError:18,NetworkError:19,AbortError:20,URLMismatchError:21,QuotaExceededError:22,TimeoutError:23,InvalidNodeTypeError:24,DataCloneError:25};var _DOMExceptionPolyfill=class extends Error{code;constructor(t,n){super(t),this.name=n||`Error`,this.code=Object.hasOwn(e,this.name)?e[this.name]:0}};const t=globalThis.DOMException
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";const e={IndexSizeError:1,HierarchyRequestError:3,WrongDocumentError:4,InvalidCharacterError:5,NoModificationAllowedError:7,NotFoundError:8,NotSupportedError:9,InUseAttributeError:10,InvalidStateError:11,SyntaxError:12,InvalidModificationError:13,NamespaceError:14,InvalidAccessError:15,TypeMismatchError:17,SecurityError:18,NetworkError:19,AbortError:20,URLMismatchError:21,QuotaExceededError:22,TimeoutError:23,InvalidNodeTypeError:24,DataCloneError:25};var _DOMExceptionPolyfill=class extends Error{code;constructor(t,n){super(t),this.name=n||`Error`,this.code=Object.hasOwn(e,this.name)?e[this.name]:0}};const t=globalThis.DOMException??_DOMExceptionPolyfill;export{t as DOMException,t as default};
|
package/lib/types/index.d.ts
CHANGED
|
@@ -3,5 +3,17 @@
|
|
|
3
3
|
* Native is available in Node.js 17+ and modern browsers.
|
|
4
4
|
* On GJS, the polyfill is used.
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
type DOMExceptionShape = Error & {
|
|
7
|
+
readonly code: number;
|
|
8
|
+
};
|
|
9
|
+
export type DOMException = typeof globalThis extends {
|
|
10
|
+
DOMException: {
|
|
11
|
+
prototype: infer T;
|
|
12
|
+
};
|
|
13
|
+
} ? T : DOMExceptionShape;
|
|
14
|
+
export interface DOMExceptionConstructor {
|
|
15
|
+
new (message?: string, name?: string): DOMException;
|
|
16
|
+
readonly prototype: DOMException;
|
|
17
|
+
}
|
|
18
|
+
export declare const DOMException: DOMExceptionConstructor;
|
|
7
19
|
export default DOMException;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/dom-exception",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.63.1-next.235",
|
|
4
4
|
"description": "DOMException polyfill for GJS (WebIDL standard)",
|
|
5
5
|
"module": "lib/esm/index.js",
|
|
6
6
|
"types": "lib/types/index.d.ts",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"polyfill"
|
|
46
46
|
],
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@gjsify/cli": "
|
|
49
|
-
"@gjsify/unit": "
|
|
48
|
+
"@gjsify/cli": "0.63.1-next.235",
|
|
49
|
+
"@gjsify/unit": "0.63.1-next.235",
|
|
50
50
|
"@types/node": "^25.9.2",
|
|
51
51
|
"typescript": "^6.0.3"
|
|
52
52
|
},
|
|
@@ -68,5 +68,6 @@
|
|
|
68
68
|
"bugs": {
|
|
69
69
|
"url": "https://github.com/gjsify/gjsify/issues"
|
|
70
70
|
},
|
|
71
|
-
"homepage": "https://github.com/gjsify/gjsify/tree/main/packages/web/dom-exception#readme"
|
|
71
|
+
"homepage": "https://github.com/gjsify/gjsify/tree/main/packages/web/dom-exception#readme",
|
|
72
|
+
"gitHead": "9d2cca56170a0215b3e0792e98421ed1f83e7f72"
|
|
72
73
|
}
|