@kitware/vtk.js 25.8.6 → 25.8.7

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,4 +1,3 @@
1
- import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
2
1
  import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
3
2
  import _createClass from '@babel/runtime/helpers/createClass';
4
3
  import _get from '@babel/runtime/helpers/get';
@@ -11,6 +10,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
11
10
 
12
11
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
13
12
 
13
+ /* eslint-disable prefer-rest-params */
14
14
  var ClassHierarchy = /*#__PURE__*/function (_Array) {
15
15
  _inherits(ClassHierarchy, _Array);
16
16
 
@@ -25,18 +25,18 @@ var ClassHierarchy = /*#__PURE__*/function (_Array) {
25
25
  _createClass(ClassHierarchy, [{
26
26
  key: "push",
27
27
  value: function push() {
28
- var _this = this,
29
- _get2;
28
+ var _get2;
30
29
 
31
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
32
- args[_key] = arguments[_key];
30
+ // using a for loop because a filter would trigger the garbage collector
31
+ var newArgs = [];
32
+
33
+ for (var i = 0; i < arguments.length; i++) {
34
+ if (!this.includes(arguments[i])) {
35
+ newArgs.push(arguments[i]);
36
+ }
33
37
  }
34
38
 
35
- // no perf issue since args.length should be small
36
- var newArgs = args.filter(function (arg) {
37
- return !_this.includes(arg);
38
- });
39
- return (_get2 = _get(_getPrototypeOf(ClassHierarchy.prototype), "push", this)).call.apply(_get2, [this].concat(_toConsumableArray(newArgs)));
39
+ return (_get2 = _get(_getPrototypeOf(ClassHierarchy.prototype), "push", this)).call.apply(_get2, [this].concat(newArgs));
40
40
  }
41
41
  }]);
42
42
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitware/vtk.js",
3
- "version": "25.8.6",
3
+ "version": "25.8.7",
4
4
  "description": "Visualization Toolkit for the Web",
5
5
  "keywords": [
6
6
  "3d",