Clean up importers

This commit is contained in:
Gregory Schier
2023-11-10 11:39:17 -08:00
parent 004fef6729
commit 6e5d5fcb95
4 changed files with 20 additions and 32 deletions

View File

@@ -5,7 +5,7 @@ function u(r) {
} catch {
return;
}
if (t(e) && e.yaakSchema === 1) return e.resources;
if (t(e) && e.yaakSchema === 1) return { resources: e.resources };
}
function t(r) {
return Object.prototype.toString.call(r) === '[object Object]';

View File

@@ -12,7 +12,7 @@ export function pluginHookImport(contents) {
if (parsed.yaakSchema !== 1) return undefined;
return parsed.resources; // Should already be in the correct format
return { resources: parsed.resources }; // Should already be in the correct format
}
export function isJSObject(obj) {