x_ite-sog-parser 1.0.2 → 1.0.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/README.md CHANGED
@@ -13,10 +13,10 @@ Include the script after X_ITE:
13
13
 
14
14
  ```html
15
15
  <script defer src="https://cdn.jsdelivr.net/npm/x_ite@VERSION/dist/x_ite.min.js"></script>
16
- <script defer src="https://cdn.jsdelivr.net/npm/x_ite-sog-parser@1.0.2/dist/x_ite-sog-parser-2.min.js"></script>
16
+ <script defer src="https://cdn.jsdelivr.net/npm/x_ite-sog-parser@1.0.4/dist/x_ite-sog-parser-2.min.js"></script>
17
17
  <!-- or as ES module -->
18
18
  <script type="module" src="https://cdn.jsdelivr.net/npm/x_ite@VERSION/dist/x_ite.min.mjs"></script>
19
- <script type="module" src="https://cdn.jsdelivr.net/npm/x_ite-sog-parser@1.0.2/dist/x_ite-sog-parser-2.min.js"></script>
19
+ <script type="module" src="https://cdn.jsdelivr.net/npm/x_ite-sog-parser@1.0.4/dist/x_ite-sog-parser-2.min.js"></script>
20
20
  ```
21
21
 
22
22
  Now you can load 3DGS SOG files:
@@ -1,3 +1,4 @@
1
+ /******/ (() => { // webpackBootstrap
1
2
 
2
3
  ;// ./node_modules/fflate/esm/browser.js
3
4
  // DEFLATE is a complex format; to read this code, you should probably check the RFC first:
@@ -2722,6 +2723,9 @@ class SOGParser extends X3D .X3DParser
2722
2723
 
2723
2724
  isValid ()
2724
2725
  {
2726
+ if (this .buffer .byteLength < 4)
2727
+ return false;
2728
+
2725
2729
  // Check magic.
2726
2730
 
2727
2731
  const dataView = new DataView (this .buffer);
@@ -3146,3 +3150,5 @@ class SOGParser extends X3D .X3DParser
3146
3150
 
3147
3151
  X3D .GoldenGate .addParsers (SOGParser);
3148
3152
 
3153
+ /******/ })()
3154
+ ;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x_ite-sog-parser",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "3DGS SOG File Format Parser for X_ITE",
5
5
  "main": "dist/x_ite-sog-parser-2.js",
6
6
  "module": "dist/x_ite-sog-parser-2.js",