@woosh/meep-engine 2.33.21 → 2.33.22

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.
Files changed (2) hide show
  1. package/core/assert.js +3 -1
  2. package/package.json +1 -1
package/core/assert.js CHANGED
@@ -332,7 +332,9 @@ assert.notNull = function (value, name = "value") {
332
332
  * @param {string} name
333
333
  */
334
334
  assert.notNaN = function (value, name = "value") {
335
- assert.ok(!Number.isNaN(value), `${name} must be a valid number, instead was NaN`);
335
+ if (Number.isNaN(value)) {
336
+ throw new Error(`${name} must be a valid number, instead was NaN`);
337
+ }
336
338
  };
337
339
 
338
340
  /**
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "productName": "Meep",
5
5
  "description": "production-ready JavaScript game engine based on Entity Component System Architecture",
6
6
  "author": "Alexander Goldring",
7
- "version": "2.33.21",
7
+ "version": "2.33.22",
8
8
  "dependencies": {
9
9
  "fast-levenshtein": "2.0.6",
10
10
  "opentype.js": "1.3.3",