quasar-ui-danx 0.4.14 → 0.4.15
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/dist/danx.es.js +3 -3
- package/dist/danx.es.js.map +1 -1
- package/dist/danx.umd.js +3 -3
- package/dist/danx.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/helpers/formats.ts +1 -1
- package/src/helpers/objectStore.ts +2 -2
package/package.json
CHANGED
package/src/helpers/formats.ts
CHANGED
@@ -375,7 +375,7 @@ export function fMarkdownCode(type: string, string: string | object): string {
|
|
375
375
|
if (typeof string === "object" || isJSON(string)) {
|
376
376
|
switch (type) {
|
377
377
|
case "yaml":
|
378
|
-
string = stringifyYAML(string);
|
378
|
+
string = stringifyYAML(typeof string === "string" ? JSON.parse(string) : string);
|
379
379
|
break;
|
380
380
|
case "ts":
|
381
381
|
string = "";
|
@@ -9,8 +9,8 @@ const store = new Map<string, any>();
|
|
9
9
|
* Returns the stored object that should be used instead of the passed object as the returned object is shared across the system
|
10
10
|
*/
|
11
11
|
export function storeObject<T extends TypedObject>(newObject: T): ShallowReactive<T> {
|
12
|
-
const id = newObject
|
13
|
-
const type = newObject
|
12
|
+
const id = newObject?.id || newObject?.name;
|
13
|
+
const type = newObject?.__type;
|
14
14
|
if (!id || !type) return shallowReactive(newObject);
|
15
15
|
|
16
16
|
if (!newObject.__id) {
|