"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));

var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));

var _os = _interopRequireDefault(require("os"));

var DevicesManager = {
  getOS: function () {
    var _getOS = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
      return _regenerator["default"].wrap(function _callee$(_context) {
        while (1) {
          switch (_context.prev = _context.next) {
            case 0:
              return _context.abrupt("return", {
                platform: _os["default"].platform(),
                release: _os["default"].release(),
                type: _os["default"].type(),
                arch: _os["default"].arch()
              });

            case 1:
            case "end":
              return _context.stop();
          }
        }
      }, _callee);
    }));

    function getOS() {
      return _getOS.apply(this, arguments);
    }

    return getOS;
  }()
};
var _default = DevicesManager;
exports["default"] = _default;
//# sourceMappingURL=index.js.map