@jscad/json-deserializer 2.0.29 → 2.0.30

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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.0.30](https://github.com/jscad/OpenJSCAD.org/compare/@jscad/json-deserializer@2.0.29...@jscad/json-deserializer@2.0.30) (2024-11-10)
7
+
8
+ **Note:** Version bump only for package @jscad/json-deserializer
9
+
10
+
11
+
12
+
13
+
6
14
  ## [2.0.29](https://github.com/jscad/OpenJSCAD.org/compare/@jscad/json-deserializer@2.0.28...@jscad/json-deserializer@2.0.29) (2024-10-06)
7
15
 
8
16
  **Note:** Version bump only for package @jscad/json-deserializer
package/index.js CHANGED
@@ -21,6 +21,7 @@ All code released under MIT license
21
21
  */
22
22
 
23
23
  const { flatten, toArray } = require('@jscad/array-utils')
24
+ const { ensureString } = require('@jscad/io-utils')
24
25
 
25
26
  const version = require('./package.json').version
26
27
 
@@ -45,6 +46,7 @@ const deserialize = (options, input) => {
45
46
  options = Object.assign({}, defaults, options)
46
47
 
47
48
  // convert the JSON notation into anonymous object(s)
49
+ input = ensureString(input)
48
50
  let objects = JSON.parse(input)
49
51
 
50
52
  // cleanup the objects
@@ -69,7 +71,7 @@ const translate = (options, objects) => {
69
71
  : ''
70
72
 
71
73
  script +=
72
- `
74
+ `
73
75
  const { geometries } = require('@jscad/modeling')
74
76
 
75
77
  const main = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jscad/json-deserializer",
3
- "version": "2.0.29",
3
+ "version": "2.0.30",
4
4
  "description": "JSON Deserializer for JSCAD",
5
5
  "homepage": "https://openjscad.xyz/",
6
6
  "repository": "https://github.com/jscad/OpenJSCAD.org",
@@ -28,12 +28,13 @@
28
28
  ],
29
29
  "license": "MIT",
30
30
  "dependencies": {
31
- "@jscad/array-utils": "2.1.4"
31
+ "@jscad/array-utils": "2.1.4",
32
+ "@jscad/io-utils": "2.0.29"
32
33
  },
33
34
  "devDependencies": {
34
- "@jscad/modeling": "2.12.3",
35
+ "@jscad/modeling": "2.12.4",
35
36
  "ava": "3.15.0",
36
37
  "nyc": "15.1.0"
37
38
  },
38
- "gitHead": "4627312c2337120447a607ff3ac3da10056ce132"
39
+ "gitHead": "ce4978ee40c30803cba05d1c96ba8b6aaf3abc61"
39
40
  }