Hacky Yaak import complete!

This commit is contained in:
Gregory Schier
2023-11-09 19:40:31 -08:00
parent b535722acd
commit 4b89b95738
15 changed files with 246 additions and 197 deletions

View File

@@ -0,0 +1,13 @@
function u(r) {
let e;
try {
e = JSON.parse(r);
} catch {
return;
}
if (t(e) && e.yaakSchema === 1) return e.resources;
}
function t(r) {
return Object.prototype.toString.call(r) === '[object Object]';
}
export { t as isJSObject, u as pluginHookImport };