melonjs 13.2.1 → 13.3.0

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * melonJS Game Engine - v13.2.1
2
+ * melonJS Game Engine - v13.3.0
3
3
  * http://www.melonjs.org
4
4
  * melonjs is licensed under the MIT License.
5
5
  * http://www.opensource.org/licenses/mit-license
@@ -122,12 +122,20 @@ var indexedObject = fails$6(function () {
122
122
  return classof$2(it) == 'String' ? split(it, '') : $Object$3(it);
123
123
  } : $Object$3;
124
124
 
125
+ // we can't use just `it == null` since of `document.all` special case
126
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
127
+ var isNullOrUndefined$2 = function (it) {
128
+ return it === null || it === undefined;
129
+ };
130
+
131
+ var isNullOrUndefined$1 = isNullOrUndefined$2;
132
+
125
133
  var $TypeError$5 = TypeError;
126
134
 
127
135
  // `RequireObjectCoercible` abstract operation
128
136
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
129
137
  var requireObjectCoercible$3 = function (it) {
130
- if (it == undefined) throw $TypeError$5("Can't call method on " + it);
138
+ if (isNullOrUndefined$1(it)) throw $TypeError$5("Can't call method on " + it);
131
139
  return it;
132
140
  };
133
141
 
@@ -147,7 +155,14 @@ var isCallable$b = function (argument) {
147
155
 
148
156
  var isCallable$a = isCallable$b;
149
157
 
150
- var isObject$5 = function (it) {
158
+ var documentAll = typeof document == 'object' && document.all;
159
+
160
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
161
+ var SPECIAL_DOCUMENT_ALL = typeof documentAll == 'undefined' && documentAll !== undefined;
162
+
163
+ var isObject$5 = SPECIAL_DOCUMENT_ALL ? function (it) {
164
+ return typeof it == 'object' ? it !== null : isCallable$a(it) || it === documentAll;
165
+ } : function (it) {
151
166
  return typeof it == 'object' ? it !== null : isCallable$a(it);
152
167
  };
153
168
 
@@ -204,7 +219,7 @@ var V8_VERSION = engineV8Version;
204
219
  var fails$5 = fails$9;
205
220
 
206
221
  // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
207
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$5(function () {
222
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$5(function () {
208
223
  var symbol = Symbol();
209
224
  // Chrome 38 Symbol has incorrect toString conversion
210
225
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
@@ -215,7 +230,7 @@ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$5(function () {
215
230
 
216
231
  /* eslint-disable es-x/no-symbol -- required for testing */
217
232
 
218
- var NATIVE_SYMBOL$1 = nativeSymbol;
233
+ var NATIVE_SYMBOL$1 = symbolConstructorDetection;
219
234
 
220
235
  var useSymbolAsUid = NATIVE_SYMBOL$1
221
236
  && !Symbol.sham
@@ -257,12 +272,13 @@ var aCallable$1 = function (argument) {
257
272
  };
258
273
 
259
274
  var aCallable = aCallable$1;
275
+ var isNullOrUndefined = isNullOrUndefined$2;
260
276
 
261
277
  // `GetMethod` abstract operation
262
278
  // https://tc39.es/ecma262/#sec-getmethod
263
279
  var getMethod$1 = function (V, P) {
264
280
  var func = V[P];
265
- return func == null ? undefined : aCallable(func);
281
+ return isNullOrUndefined(func) ? undefined : aCallable(func);
266
282
  };
267
283
 
268
284
  var call$2 = functionCall;
@@ -309,10 +325,10 @@ var store$2 = sharedStore;
309
325
  (shared$3.exports = function (key, value) {
310
326
  return store$2[key] || (store$2[key] = value !== undefined ? value : {});
311
327
  })('versions', []).push({
312
- version: '3.24.1',
328
+ version: '3.25.0',
313
329
  mode: 'global',
314
330
  copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
315
- license: 'https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE',
331
+ license: 'https://github.com/zloirock/core-js/blob/v3.25.0/LICENSE',
316
332
  source: 'https://github.com/zloirock/core-js'
317
333
  });
318
334
 
@@ -352,7 +368,7 @@ var global$7 = global$c;
352
368
  var shared$2 = shared$3.exports;
353
369
  var hasOwn$6 = hasOwnProperty_1;
354
370
  var uid$1 = uid$2;
355
- var NATIVE_SYMBOL = nativeSymbol;
371
+ var NATIVE_SYMBOL = symbolConstructorDetection;
356
372
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
357
373
 
358
374
  var WellKnownSymbolsStore = shared$2('wks');
@@ -569,15 +585,14 @@ if (!isCallable$5(store$1.inspectSource)) {
569
585
  };
570
586
  }
571
587
 
572
- var inspectSource$2 = store$1.inspectSource;
588
+ var inspectSource$1 = store$1.inspectSource;
573
589
 
574
590
  var global$5 = global$c;
575
591
  var isCallable$4 = isCallable$b;
576
- var inspectSource$1 = inspectSource$2;
577
592
 
578
593
  var WeakMap$1 = global$5.WeakMap;
579
594
 
580
- var nativeWeakMap = isCallable$4(WeakMap$1) && /native code/.test(inspectSource$1(WeakMap$1));
595
+ var weakMapBasicDetection = isCallable$4(WeakMap$1) && /native code/.test(String(WeakMap$1));
581
596
 
582
597
  var shared$1 = shared$3.exports;
583
598
  var uid = uid$2;
@@ -590,7 +605,7 @@ var sharedKey$1 = function (key) {
590
605
 
591
606
  var hiddenKeys$3 = {};
592
607
 
593
- var NATIVE_WEAK_MAP = nativeWeakMap;
608
+ var NATIVE_WEAK_MAP = weakMapBasicDetection;
594
609
  var global$4 = global$c;
595
610
  var uncurryThis$4 = functionUncurryThis;
596
611
  var isObject = isObject$5;
@@ -624,7 +639,7 @@ if (NATIVE_WEAK_MAP || shared.state) {
624
639
  var wmhas = uncurryThis$4(store.has);
625
640
  var wmset = uncurryThis$4(store.set);
626
641
  set = function (it, metadata) {
627
- if (wmhas(store, it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
642
+ if (wmhas(store, it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
628
643
  metadata.facade = it;
629
644
  wmset(store, it, metadata);
630
645
  return metadata;
@@ -639,7 +654,7 @@ if (NATIVE_WEAK_MAP || shared.state) {
639
654
  var STATE = sharedKey('state');
640
655
  hiddenKeys$2[STATE] = true;
641
656
  set = function (it, metadata) {
642
- if (hasOwn$3(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
657
+ if (hasOwn$3(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
643
658
  metadata.facade = it;
644
659
  createNonEnumerableProperty$1(it, STATE, metadata);
645
660
  return metadata;
@@ -665,7 +680,7 @@ var isCallable$3 = isCallable$b;
665
680
  var hasOwn$2 = hasOwnProperty_1;
666
681
  var DESCRIPTORS = descriptors;
667
682
  var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
668
- var inspectSource = inspectSource$2;
683
+ var inspectSource = inspectSource$1;
669
684
  var InternalStateModule = internalState;
670
685
 
671
686
  var enforceInternalState = InternalStateModule.enforce;
@@ -32879,10 +32894,10 @@ class BasePlugin {
32879
32894
  * this can be overridden by the plugin
32880
32895
  * @public
32881
32896
  * @type {string}
32882
- * @default "13.2.1"
32897
+ * @default "13.3.0"
32883
32898
  * @name plugin.Base#version
32884
32899
  */
32885
- this.version = "13.2.1";
32900
+ this.version = "13.3.0";
32886
32901
  }
32887
32902
  }
32888
32903
 
@@ -37691,7 +37706,7 @@ Renderer.prototype.getScreenContext = function() {
37691
37706
  * @name version
37692
37707
  * @type {string}
37693
37708
  */
37694
- const version = "13.2.1";
37709
+ const version = "13.3.0";
37695
37710
 
37696
37711
 
37697
37712
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "melonjs",
3
- "version": "13.2.1",
3
+ "version": "13.3.0",
4
4
  "description": "melonJS Game Engine",
5
5
  "homepage": "http://www.melonjs.org/",
6
6
  "keywords": [
@@ -52,7 +52,7 @@
52
52
  ],
53
53
  "dependencies": {
54
54
  "@teppeis/multimaps": "^2.0.0",
55
- "core-js": "^3.24.1",
55
+ "core-js": "^3.25.0",
56
56
  "earcut": "2.2.4",
57
57
  "eventemitter3": "^4.0.7",
58
58
  "howler": "2.2.3"
@@ -65,9 +65,9 @@
65
65
  "@rollup/plugin-node-resolve": "^13.3.0",
66
66
  "@rollup/plugin-replace": "^4.0.0",
67
67
  "@types/offscreencanvas": "^2019.7.0",
68
- "@webdoc/cli": "^2.0.0",
68
+ "@webdoc/cli": "^2.1.2",
69
69
  "del-cli": "^5.0.0",
70
- "eslint": "^8.22.0",
70
+ "eslint": "^8.23.0",
71
71
  "jasmine-core": "^4.3.0",
72
72
  "karma": "^6.4.0",
73
73
  "karma-chrome-launcher": "^3.1.1",
@@ -78,8 +78,8 @@
78
78
  "rollup": "^2.78.1",
79
79
  "rollup-plugin-bundle-size": "^1.0.3",
80
80
  "rollup-plugin-string": "^3.0.0",
81
- "terser": "^5.14.2",
82
- "typescript": "^4.7.4"
81
+ "terser": "^5.15.0",
82
+ "typescript": "^4.8.2"
83
83
  },
84
84
  "scripts": {
85
85
  "build": "npm run lint && rollup -c --silent",