"use strict";Object.defineProperty(exports, "__esModule", { value: true });exports.createStorage = void 0;var os = _interopRequireWildcard(require("os"));
var path = _interopRequireWildcard(require("path"));

var mkdirp = _interopRequireWildcard(require("mkdirp"));

var _nodejs = require("./nodejs");function _interopRequireWildcard(obj) {if (obj && obj.__esModule) {return obj;} else {var newObj = {};if (obj != null) {for (var key in obj) {if (Object.prototype.hasOwnProperty.call(obj, key)) {var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {};if (desc.get || desc.set) {Object.defineProperty(newObj, key, desc);} else {newObj[key] = obj[key];}}}}newObj.default = obj;return newObj;}}


















const createStorage = async () => {
  const appDir = path.join(os.homedir(), '.actual-code');
  mkdirp.sync(appDir);
  return new _nodejs.NodeJsStorage(appDir);
};exports.createStorage = createStorage;