@speckle/objectloader 2.11.3 → 2.12.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.
- package/package.json +2 -2
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@speckle/objectloader",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.12.0",
|
|
4
4
|
"description": "Simple API helper to stream in objects from the Speckle Server.",
|
|
5
5
|
"main": "dist/objectloader.js",
|
|
6
6
|
"module": "dist/objectloader.esm.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"license": "Apache-2.0",
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@babel/core": "^7.17.9",
|
|
34
|
-
"@speckle/shared": "^2.
|
|
34
|
+
"@speckle/shared": "^2.12.0",
|
|
35
35
|
"core-js": "^3.21.1",
|
|
36
36
|
"regenerator-runtime": "^0.13.7"
|
|
37
37
|
},
|
package/src/index.js
CHANGED
|
@@ -173,7 +173,7 @@ export default class ObjectLoader {
|
|
|
173
173
|
if (Array.isArray(obj) && obj.length !== 0) {
|
|
174
174
|
const arr = []
|
|
175
175
|
for (const element of obj) {
|
|
176
|
-
if(!element) continue
|
|
176
|
+
if (!element) continue
|
|
177
177
|
if (typeof element !== 'object' && !this.options.fullyTraverseArrays) return obj
|
|
178
178
|
|
|
179
179
|
// Dereference element if needed
|