puvox-library 1.0.49 → 1.0.50
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/library_standard.js +1 -0
- package/package.json +1 -1
package/library_standard.js
CHANGED
@@ -2911,6 +2911,7 @@ const puvox_library =
|
|
2911
2911
|
}
|
2912
2912
|
},
|
2913
2913
|
helper_write(groupName, content, storageType){
|
2914
|
+
content = puvox_library.isString (content) ? content : (puvox_library.isArray(content) || puvox_library.isObject(content) ? JSON.stringify(content) : content);
|
2914
2915
|
const appName = puvox_library.getAppName();
|
2915
2916
|
if (storageType === 'file'){
|
2916
2917
|
const filepath = puvox_library.file.tempDir() + appName + '_' + groupName + '.json';
|