mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-26 03:11:12 +01:00
14 lines
290 B
JavaScript
14 lines
290 B
JavaScript
function u(r) {
|
|
let e;
|
|
try {
|
|
e = JSON.parse(r);
|
|
} catch {
|
|
return;
|
|
}
|
|
if (t(e) && e.yaakSchema === 1) return { resources: e.resources };
|
|
}
|
|
function t(r) {
|
|
return Object.prototype.toString.call(r) === '[object Object]';
|
|
}
|
|
export { t as isJSObject, u as pluginHookImport };
|