@thi.ng/api
Advanced tools
Comparing version 8.11.1 to 8.11.2
# Change Log | ||
- **Last updated**: 2024-04-23T07:02:17Z | ||
- **Last updated**: 2024-05-08T18:24:31Z | ||
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub) | ||
@@ -5,0 +5,0 @@ |
import { EVENT_ALL } from "../api.js"; | ||
import { mixin } from "../mixin.js"; | ||
const inotify_dispatch = (listeners, e) => { | ||
if (!listeners) | ||
return false; | ||
if (!listeners) return false; | ||
for (let i = 0, n = listeners.length, l; i < n; i++) { | ||
@@ -27,4 +26,3 @@ l = listeners[i]; | ||
let listeners; | ||
if (!(listeners = this._listeners)) | ||
return false; | ||
if (!(listeners = this._listeners)) return false; | ||
const l = listeners[id]; | ||
@@ -43,4 +41,3 @@ if (l) { | ||
let listeners; | ||
if (!(listeners = this._listeners)) | ||
return false; | ||
if (!(listeners = this._listeners)) return false; | ||
e.target === void 0 && (e.target = this); | ||
@@ -47,0 +44,0 @@ const res = inotify_dispatch(listeners[e.id], e); |
@@ -12,4 +12,3 @@ import { mixin } from "../mixin.js"; | ||
removeWatch(id) { | ||
if (!this._watches) | ||
return; | ||
if (!this._watches) return; | ||
if (this._watches[id]) { | ||
@@ -22,4 +21,3 @@ delete this._watches[id]; | ||
notifyWatches(oldState, newState) { | ||
if (!this._watches) | ||
return; | ||
if (!this._watches) return; | ||
const w = this._watches; | ||
@@ -26,0 +24,0 @@ for (let id in w) { |
{ | ||
"name": "@thi.ng/api", | ||
"version": "8.11.1", | ||
"version": "8.11.2", | ||
"description": "Common, generic types, interfaces & mixins", | ||
@@ -42,6 +42,6 @@ "type": "module", | ||
"devDependencies": { | ||
"@microsoft/api-extractor": "^7.43.0", | ||
"esbuild": "^0.20.2", | ||
"typedoc": "^0.25.12", | ||
"typescript": "^5.4.3" | ||
"@microsoft/api-extractor": "^7.43.2", | ||
"esbuild": "^0.21.1", | ||
"typedoc": "^0.25.13", | ||
"typescript": "^5.4.5" | ||
}, | ||
@@ -232,3 +232,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "5dd66c18a3862a3af69a5b2f49563f7cbdd960c2\n" | ||
"gitHead": "df34b4a9e650cc7323575356de207d78933bdcf3\n" | ||
} |
@@ -97,4 +97,3 @@ var GLType = /* @__PURE__ */ ((GLType2) => { | ||
const $data = Array.isArray(data) ? data : [...data]; | ||
if (stride === void 0) | ||
stride = $data[0].length; | ||
if (stride === void 0) stride = $data[0].length; | ||
const num = $data.length; | ||
@@ -108,7 +107,5 @@ const res = typedArray(type, num * stride); | ||
const typedArrayType = (x) => { | ||
if (Array.isArray(x)) | ||
return "f64"; | ||
if (Array.isArray(x)) return "f64"; | ||
for (let id in TYPEDARRAY_CTORS) { | ||
if (x instanceof TYPEDARRAY_CTORS[id]) | ||
return id; | ||
if (x instanceof TYPEDARRAY_CTORS[id]) return id; | ||
} | ||
@@ -115,0 +112,0 @@ return "f64"; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
123936
2451