@jscad/io-utils 2.0.28 → 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 +16 -0
- package/LICENSE +1 -1
- package/ensureString.js +9 -0
- package/index.js +2 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
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/io-utils@2.0.29...@jscad/io-utils@2.0.30) (2024-12-29)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @jscad/io-utils
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [2.0.29](https://github.com/jscad/OpenJSCAD.org/compare/@jscad/io-utils@2.0.28...@jscad/io-utils@2.0.29) (2024-11-10)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @jscad/io-utils
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [2.0.28](https://github.com/jscad/OpenJSCAD.org/compare/@jscad/io-utils@2.0.27...@jscad/io-utils@2.0.28) (2024-10-06)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @jscad/io-utils
|
package/LICENSE
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
The MIT License (MIT)
|
|
3
3
|
|
|
4
|
-
Copyright (c) 2017-
|
|
4
|
+
Copyright (c) 2017-2024 JSCAD Organization
|
|
5
5
|
|
|
6
6
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
7
|
of this software and associated documentation files (the "Software"), to deal
|
package/ensureString.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const ensureString = (stringOrArrayBuffer, defaultBinaryEncoding = 'utf-8') => {
|
|
2
|
+
if (typeof (stringOrArrayBuffer) === 'string') {
|
|
3
|
+
return stringOrArrayBuffer
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
return new TextDecoder(defaultBinaryEncoding).decode(new Uint8Array(stringOrArrayBuffer))
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
module.exports = ensureString
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jscad/io-utils",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.30",
|
|
4
4
|
"description": "Utilities for JSCAD IO Packages",
|
|
5
5
|
"homepage": "https://openjscad.xyz/",
|
|
6
6
|
"repository": "https://github.com/jscad/OpenJSCAD.org",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
],
|
|
34
34
|
"license": "MIT",
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@jscad/modeling": "2.12.
|
|
36
|
+
"@jscad/modeling": "2.12.5",
|
|
37
37
|
"ava": "3.15.0",
|
|
38
38
|
"nyc": "15.1.0"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "d8010c4f1d70685404a510d604f8b6d5c362f93a"
|
|
41
41
|
}
|