mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-21 16:21:25 +02:00
Clean up importers
This commit is contained in:
@@ -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]';
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user