@woosh/meep-engine 2.39.34 → 2.39.35
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/core/bvh2/binary/IndexedBinaryBVH.js +8 -0
- package/core/events/signal/Signal.js +2 -2
- package/core/events/signal/SignalHandler.js +1 -1
- package/core/function/FunctionCompiler.js +1 -1
- package/core/land/reactive/compileReactiveExpression.js +1 -1
- package/core/land/reactive/compiler/ReactiveCompiler.js +1 -1
- package/engine/ecs/EntityComponentDataset.js +2 -2
- package/engine/graphics/geometry/buffered/query/GeometrySpatialQueryAccelerator.js +1 -1
- package/package.json +1 -1
|
@@ -182,7 +182,7 @@ export class Signal {
|
|
|
182
182
|
* @returns {boolean} true if a handler was removed, false otherwise
|
|
183
183
|
*/
|
|
184
184
|
remove(h, thisArg) {
|
|
185
|
-
assert.
|
|
185
|
+
assert.isFunction(h, "handler");
|
|
186
186
|
|
|
187
187
|
if (thisArg === undefined) {
|
|
188
188
|
return removeHandlerByHandler(this, h);
|
|
@@ -707,7 +707,7 @@ function removeHandlerByHandlerAndContext(signal, h, ctx) {
|
|
|
707
707
|
}
|
|
708
708
|
|
|
709
709
|
function dispatchCallback(f, context, args) {
|
|
710
|
-
assert.
|
|
710
|
+
assert.isFunction(f, 'f');
|
|
711
711
|
|
|
712
712
|
try {
|
|
713
713
|
f.apply(context, args)
|
|
@@ -8,7 +8,7 @@ import { ReactivePegParser } from "./pegjs/ReactivePegParser.js";
|
|
|
8
8
|
* @returns {ReactiveExpression}
|
|
9
9
|
*/
|
|
10
10
|
export function compileReactiveExpression(code) {
|
|
11
|
-
assert.
|
|
11
|
+
assert.isString(code, 'code');
|
|
12
12
|
|
|
13
13
|
const parseTree = ReactivePegParser.INSTANCE.parse(code);
|
|
14
14
|
|
|
@@ -320,7 +320,7 @@ class CompilingVisitor extends AbstractParseTreeVisitor {
|
|
|
320
320
|
* @returns {ReactiveExpression}
|
|
321
321
|
*/
|
|
322
322
|
export function compileReactiveExpression(code) {
|
|
323
|
-
assert.
|
|
323
|
+
assert.isString(code, 'code');
|
|
324
324
|
|
|
325
325
|
const chars = new ANTLRInputStream(code);
|
|
326
326
|
|
|
@@ -1473,8 +1473,8 @@ export class EntityComponentDataset {
|
|
|
1473
1473
|
addEntityEventListener(entity, eventName, listener, thisArg) {
|
|
1474
1474
|
|
|
1475
1475
|
if (!ENV_PRODUCTION) {
|
|
1476
|
-
assert.
|
|
1477
|
-
assert.
|
|
1476
|
+
assert.isString(eventName, "eventName");
|
|
1477
|
+
assert.isFunction(listener, "listener");
|
|
1478
1478
|
}
|
|
1479
1479
|
|
|
1480
1480
|
if (!this.entityExists(entity)) {
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"productName": "Meep",
|
|
6
6
|
"description": "production-ready JavaScript game engine based on Entity Component System Architecture",
|
|
7
7
|
"author": "Alexander Goldring",
|
|
8
|
-
"version": "2.39.
|
|
8
|
+
"version": "2.39.35",
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"gl-matrix": "3.4.3",
|
|
11
11
|
"fast-levenshtein": "2.0.6",
|