globe.gl 2.32.3 → 2.32.4

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/dist/globe.gl.mjs CHANGED
@@ -7,21 +7,15 @@ import Kapsule from 'kapsule';
7
7
  import * as TWEEN from '@tweenjs/tween.js';
8
8
 
9
9
  function styleInject(css, ref) {
10
- if (ref === void 0) ref = {};
11
- var insertAt = ref.insertAt;
12
- if (!css || typeof document === 'undefined') {
10
+ ref = {};
11
+ ref.insertAt;
12
+ if (typeof document === 'undefined') {
13
13
  return;
14
14
  }
15
15
  var head = document.head || document.getElementsByTagName('head')[0];
16
16
  var style = document.createElement('style');
17
17
  style.type = 'text/css';
18
- if (insertAt === 'top') {
19
- if (head.firstChild) {
20
- head.insertBefore(style, head.firstChild);
21
- } else {
22
- head.appendChild(style);
23
- }
24
- } else {
18
+ {
25
19
  head.appendChild(style);
26
20
  }
27
21
  if (style.styleSheet) {
@@ -59,11 +53,11 @@ function _toPrimitive(t, r) {
59
53
  if ("object" != typeof t || !t) return t;
60
54
  var e = t[Symbol.toPrimitive];
61
55
  if (void 0 !== e) {
62
- var i = e.call(t, r || "default");
56
+ var i = e.call(t, r );
63
57
  if ("object" != typeof i) return i;
64
58
  throw new TypeError("@@toPrimitive must return a primitive value.");
65
59
  }
66
- return ("string" === r ? String : Number)(t);
60
+ return (String )(t);
67
61
  }
68
62
  function _toPropertyKey(t) {
69
63
  var i = _toPrimitive(t, "string");
@@ -128,7 +122,7 @@ function _unsupportedIterableToArray(o, minLen) {
128
122
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
129
123
  }
130
124
  function _arrayLikeToArray(arr, len) {
131
- if (len == null || len > arr.length) len = arr.length;
125
+ len = arr.length;
132
126
  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
133
127
  return arr2;
134
128
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "globe.gl",
3
- "version": "2.32.3",
3
+ "version": "2.32.4",
4
4
  "description": "UI component for Globe Data Visualization using ThreeJS/WebGL",
5
5
  "type": "module",
6
6
  "unpkg": "dist/globe.gl.min.js",
@@ -56,18 +56,18 @@
56
56
  "three-render-objects": "^1.29"
57
57
  },
58
58
  "devDependencies": {
59
- "@babel/core": "^7.24.3",
60
- "@babel/preset-env": "^7.24.3",
59
+ "@babel/core": "^7.24.4",
60
+ "@babel/preset-env": "^7.24.4",
61
61
  "@rollup/plugin-babel": "^6.0.4",
62
62
  "@rollup/plugin-commonjs": "^25.0.7",
63
63
  "@rollup/plugin-node-resolve": "^15.2.3",
64
64
  "@rollup/plugin-terser": "^0.4.4",
65
65
  "postcss": "^8.4.38",
66
66
  "rimraf": "^5.0.5",
67
- "rollup": "^4.13.1",
67
+ "rollup": "^4.16.1",
68
68
  "rollup-plugin-dts": "^6.1.0",
69
69
  "rollup-plugin-postcss": "^4.0.2",
70
- "typescript": "^5.4.3"
70
+ "typescript": "^5.4.5"
71
71
  },
72
72
  "engines": {
73
73
  "node": ">=12"