You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@thi.ng/wasm-api-dom

Package Overview
Dependencies
Maintainers
0
Versions
149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thi.ng/wasm-api-dom - npm Package Compare versions

Comparing version

to
1.0.18

8

CHANGELOG.md
# Change Log
- **Last updated**: 2025-01-04T21:07:38Z
- **Last updated**: 2025-01-14T12:23:33Z
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)

@@ -12,2 +12,8 @@

### [1.0.18](https://github.com/thi-ng/umbrella/tree/@thi.ng/wasm-api-dom@1.0.18) (2025-01-14)
#### ♻️ Refactoring
- use optional chaining & nullish coalescing ([c5a0a13](https://github.com/thi-ng/umbrella/commit/c5a0a13))
### [1.0.9](https://github.com/thi-ng/umbrella/tree/@thi.ng/wasm-api-dom@1.0.9) (2024-11-10)

@@ -14,0 +20,0 @@

2

dom.d.ts

@@ -48,3 +48,3 @@ import type { NumOrString } from "@thi.ng/api";

(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
} | NodeListOf<ChildNode> | ((other: Node | null) => boolean) | ((options?: GetRootNodeOptions) => Node) | (<T extends Node>(node: T, child: Node | null) => T) | ((...nodes: (Node | string)[]) => void) | HTMLCollection | ((keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions) => Animation) | ((options?: GetAnimationsOptions) => Animation[]) | null;
} | NodeListOf<ChildNode> | ((other: Node | null) => boolean) | ((options?: GetRootNodeOptions) => Node) | (<T extends Node>(node: T, child: Node | null) => T) | HTMLCollection | ((keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions) => Animation) | ((options?: GetAnimationsOptions) => Animation[]) | ((...nodes: (Node | string)[]) => void) | null;
protected setAttrib(elementID: number, nameAddr: number, value: NumOrString): void | NumOrString;

@@ -51,0 +51,0 @@ protected removeListener(ctx: Window | Element, listenerID: number): void;

@@ -222,9 +222,9 @@ import { adaptDPI } from "@thi.ng/canvas";

preventDefault: () => {
this.currEvent && this.currEvent.preventDefault();
this.currEvent?.preventDefault();
},
stopPropagation: () => {
this.currEvent && this.currEvent.stopPropagation();
this.currEvent?.stopPropagation();
},
stopImmediatePropagation: () => {
this.currEvent && this.currEvent.stopImmediatePropagation();
this.currEvent?.stopImmediatePropagation();
},

@@ -279,3 +279,3 @@ _removeListener: (listenerID) => {

}
if (attribs && attribs.length) {
if (attribs?.length) {
for (let attr of attribs) {

@@ -282,0 +282,0 @@ const name = attr.name.deref();

{
"name": "@thi.ng/wasm-api-dom",
"version": "1.0.17",
"version": "1.0.18",
"description": "Browser DOM bridge API for hybrid TypeScript & WASM (Zig) applications",

@@ -48,10 +48,10 @@ "type": "module",

"@thi.ng/api": "^8.11.16",
"@thi.ng/canvas": "^1.0.1",
"@thi.ng/canvas": "^1.0.2",
"@thi.ng/errors": "^2.5.22",
"@thi.ng/prefixes": "^2.3.33",
"@thi.ng/wasm-api": "^2.3.0"
"@thi.ng/wasm-api": "^2.3.1"
},
"devDependencies": {
"@microsoft/api-extractor": "^7.48.1",
"@thi.ng/wasm-api-bindgen": "^1.1.0",
"@thi.ng/wasm-api-bindgen": "^1.1.1",
"esbuild": "^0.24.2",

@@ -107,3 +107,3 @@ "typedoc": "^0.27.6",

},
"gitHead": "d52592c42d33072925fb531e70e2879fd52b26e6\n"
"gitHead": "6542b842120bef47cc18d45a1b1db68307a7f04b\n"
}

@@ -313,3 +313,3 @@ <!-- This file is generated - DO NOT EDIT! -->

Package sizes (brotli'd, pre-treeshake): ESM: 3.95 KB
Package sizes (brotli'd, pre-treeshake): ESM: 3.94 KB

@@ -316,0 +316,0 @@ ## Dependencies