@woosh/meep-engine 2.33.11 → 2.33.12

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.
@@ -61,9 +61,11 @@ function codeToURL(code) {
61
61
  const js_mime = 'application/javascript';
62
62
 
63
63
  let blob;
64
- try {
64
+
65
+ if (Blob !== undefined) {
65
66
  blob = new Blob([code], { type: js_mime });
66
- } catch (e) { // Backwards-compatibility
67
+ } else if (window !== undefined) {
68
+ // Backwards-compatibility
67
69
  const BlobBuilder = window.BlobBuilder = window.BlobBuilder || window.WebKitBlobBuilder || window.MozBlobBuilder;
68
70
  if (BlobBuilder !== undefined) {
69
71
  blob = new BlobBuilder();
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.11",
7
+ "version": "2.33.12",
8
8
  "dependencies": {
9
9
  "fast-levenshtein": "2.0.6",
10
10
  "opentype.js": "1.3.3",