"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.setStorage = void 0;
var _dataSources = require("@mirai/data-sources");
var _Core = require("../../../Core.constants");
const storage = new _dataSources.Storage({
  adapter: _dataSources.LocalAdapter
});
const setStorage = (value, id) => {
  if (!value || typeof value !== 'object' || Array.isArray(value)) return;
  storage.set("".concat(_Core.FINDER_STORAGE_KEY, ":").concat(id), value);
  return storage.get("".concat(_Core.FINDER_STORAGE_KEY, ":").concat(id));
};
exports.setStorage = setStorage;
//# sourceMappingURL=setStorage.js.map