@needle-tools/three 0.146.7 → 0.146.8

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.
@@ -15,8 +15,9 @@ import {
15
15
  } from 'three';
16
16
  import * as fflate from '../libs/fflate.module.js';
17
17
 
18
- function makeNameSafe(str){
19
- return str.replace(/[^a-zA-Z0-9_]/g, '');
18
+ function makeNameSafe(str) {
19
+ // prepend "_" to fix cases where the name is just a number
20
+ return "_" + str.replace(/[^a-zA-Z0-9_]/g, '');
20
21
  }
21
22
 
22
23
  class USDZDocument {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@needle-tools/three",
3
- "version": "0.146.7",
3
+ "version": "0.146.8",
4
4
  "description": "JavaScript 3D library",
5
5
  "type": "module",
6
6
  "main": "./build/three.js",