How to use the @babel/runtime/helpers/getPrototypeOf function in @babel/runtime

To help you get started, we’ve selected a few @babel/runtime examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github kintone / kintone-js-sdk / esm / browser / module / connection / Connection.js View on Github external
value: function request(methodName, restAPIName, body) {
      if (window && window.kintone && !this.kintoneAuth) {
        // use kintone.api
        return kintone.api(_get(_getPrototypeOf(Connection.prototype), "getURL", this).call(this, restAPIName), String(methodName).toUpperCase(), body).then(function (response) {
          return response;
        }).catch(function (err) {
          throw new kintoneBaseJSSDK.KintoneAPIException(err.message, err);
        });
      }

      return this._requestByAxios(methodName, restAPIName, body);
    }
    /**
github cube-js / cube.js / packages / cubejs-react / dist / cubejs-react.esm.js View on Github external
function QueryBuilder(props) {
    var _this;

    _classCallCheck(this, QueryBuilder);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(QueryBuilder).call(this, props));
    _this.state = _objectSpread({
      query: props.query,
      chartType: 'line'
    }, props.vizState);
    return _this;
  }
github kintone / kintone-js-sdk / esm / browser / module / app / App.js View on Github external
function App() {
    var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
        conn = _ref.connection;

    _classCallCheck(this, App);

    var connection = conn;

    if (!connection) {
      connection = new Connection();
    }

    return _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, {
      connection: connection
    }));
  }
github kintone / kintone-js-sdk / esm / browser / module / record / Record.js View on Github external
function Record() {
    var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
        conn = _ref.connection;

    _classCallCheck(this, Record);

    var connection = conn;

    if (!connection) {
      connection = new Connection();
    }

    return _possibleConstructorReturn(this, _getPrototypeOf(Record).call(this, {
      connection: connection
    }));
  }
github kintone / kintone-js-sdk / esm / base / model / record / record / UpdateRecordStatusRequest.js View on Github external
value: function toJSON() {
      var data = _get(_getPrototypeOf(UpdateRecordStatusRequest.prototype), "toJSON", this).call(this);

      data.app = this.appID;
      return data;
    }
    /**
github kintone / kintone-js-sdk / esm / base / model / record / record / UpdateRecordStatusRequest.js View on Github external
function UpdateRecordStatusRequest(appID, recordID, actionName, assigneeID, revisionID) {
    var _this;

    _classCallCheck(this, UpdateRecordStatusRequest);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(UpdateRecordStatusRequest).call(this, recordID, actionName, assigneeID, revisionID));
    _this.appID = appID;
    return _this;
  }
  /**
github cube-js / cube.js / packages / cubejs-react / dist / cubejs-react.esm.js View on Github external
function QueryRenderer(props) {
    var _this;

    _classCallCheck(this, QueryRenderer);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(QueryRenderer).call(this, props));
    _this.state = {};
    _this.mutexObj = {};
    return _this;
  }
github kintone / kintone-js-sdk / esm / base / exception / KintoneAPIException.js View on Github external
function KintoneAPIException() {
    var _getPrototypeOf2;

    var _this;

    var message = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
    var errors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};

    _classCallCheck(this, KintoneAPIException);

    for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
      args[_key - 2] = arguments[_key];
    }

    _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(KintoneAPIException)).call.apply(_getPrototypeOf2, [this, message].concat(args)));

    if (Error.captureStackTrace) {
      Error.captureStackTrace(_assertThisInitialized(_this), KintoneAPIException);
    }

    var errorResponse;
    _this.originError = errors;

    if (!errors.hasOwnProperty('response') || !errors.response) {
      errorResponse = new KintoneErrorResponseModel(0, null, errors.message, errors);
    } else {
      var dataResponse = errors.response.data;
      var errorToCreate;

      if (Buffer.isBuffer(dataResponse)) {
        errorToCreate = dataResponse.toString();
github kintone / kintone-js-sdk / esm / browser / module / connection / Connection.js View on Github external
function Connection() {
    var _this;

    var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
        auth = _ref.auth,
        guestSpaceID = _ref.guestSpaceID;

    _classCallCheck(this, Connection);

    if (auth instanceof kintoneBaseJSSDK.Auth) {
      var domain = window.location.host;
      _this = _possibleConstructorReturn(this, _getPrototypeOf(Connection).call(this, {
        domain: domain,
        auth: auth,
        guestSpaceID: guestSpaceID
      }));
      _this.kintoneAuth = auth;
    } else {
      var _domain = window.location.host;
      var basicAuth = new kintoneBaseJSSDK.Auth();
      _this = _possibleConstructorReturn(this, _getPrototypeOf(Connection).call(this, {
        domain: _domain,
        auth: basicAuth,
        guestSpaceID: guestSpaceID
      }));
      _this.kintoneAuth = undefined;
    }
github kintone / kintone-js-sdk / esm / base / model / record / record / UpdateRecordRequest.js View on Github external
function UpdateRecordRequest(appID) {
    var _this;

    _classCallCheck(this, UpdateRecordRequest);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(UpdateRecordRequest).call(this));
    _this.app = appID;
    return _this;
  }
  /**