How to use the @babel/runtime/regenerator.wrap 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 vuefront / vuefront / lib / store / store / currency / currency.js View on Github external
_regeneratorRuntime.mark(function _callee(_ref) {
      var commit, dispatch, rootGetters;
      return _regeneratorRuntime.wrap(function (_context) {
        while (1) {
          switch (_context.prev = _context.next) {
            case 0:
              commit = _ref.commit, dispatch = _ref.dispatch, rootGetters = _ref.rootGetters;
              _context.next = 3;
              return dispatch('apollo/query', {
                query: currencyGetGql
              }, {
                root: true
              });

            case 3:
              if (!rootGetters['vuefront/error']) {
                commit('setCurrency', rootGetters['apollo/get'].currency);
              }
github vuefront / vuefront / lib / store / common / vuefront / vuefront.js View on Github external
_regeneratorRuntime.mark(function _callee(_ref) {
      var dispatch, commit;
      return _regeneratorRuntime.wrap(function (_context) {
        while (1) {
          switch (_context.prev = _context.next) {
            case 0:
              dispatch = _ref.dispatch, commit = _ref.commit;

              if (this.$cookies.get('token')) {
                commit('common/customer/setToken', this.$cookies.get('token'), {
                  root: true
                });
              }

              _context.next = 4;
              return Promise.all([dispatch('store/currency/load', {}, {
                root: true
              }), dispatch('common/language/load', {}, {
                root: true
github pubkey / broadcast-channel / dist / es / methods / node.js View on Github external
_regeneratorRuntime.mark(function _callee2(readerUuid) {
        var client;
        return _regeneratorRuntime.wrap(function _callee2$(_context2) {
          while (1) {
            switch (_context2.prev = _context2.next) {
              case 0:
                _context2.prev = 0;

                if (!channelState.closed) {
                  _context2.next = 3;
                  break;
                }

                return _context2.abrupt("return");

              case 3:
                _context2.prev = 3;
                _context2.next = 6;
                return openClientConnection(channelState.channelName, readerUuid);
github pubkey / rxdb / dist / es / plugins / replication-graphql / index.js View on Github external
_regeneratorRuntime.mark(function _callee() {
                var willRetry;
                return _regeneratorRuntime.wrap(function _callee$(_context) {
                  while (1) {
                    switch (_context.prev = _context.next) {
                      case 0:
                        _this2._subjects.active.next(true);

                        _context.next = 3;
                        return _this2._run();

                      case 3:
                        willRetry = _context.sent;

                        _this2._subjects.active.next(false);

                        if (!willRetry && _this2._subjects.initialReplicationComplete['_value'] === false) _this2._subjects.initialReplicationComplete.next(true);
                        _this2._runQueueCount--;
github kintone / kintone-js-sdk / esm / base / module / cursor / RecordCursor.js View on Github external
_regeneratorRuntime.mark(function _callee() {
        var _ref5,
            id,
            next,
            allRecords,
            recordBlockResponse,
            _args = arguments;

        return _regeneratorRuntime.wrap(function _callee$(_context) {
          while (1) {
            switch (_context.prev = _context.next) {
              case 0:
                _ref5 = _args.length > 0 && _args[0] !== undefined ? _args[0] : {}, id = _ref5.id;
                _context.next = 3;
                return this._validateRequiredArgs({
                  id: id
                });

              case 3:
                next = true;
                allRecords = [];

              case 5:
                if (!next) {
                  _context.next = 19;
github pubkey / rxdb / dist / es / plugins / replication-graphql / index.js View on Github external
_regeneratorRuntime.mark(function _callee4() {
      var _this4 = this;

      var latestDocument, latestDocumentData, pullGraphQL, result, data, modified, docIds, docsWithRevisions, newLatestDocument;
      return _regeneratorRuntime.wrap(function _callee4$(_context4) {
        while (1) {
          switch (_context4.prev = _context4.next) {
            case 0:
              if (!this.isStopped()) {
                _context4.next = 2;
                break;
              }

              return _context4.abrupt("return", Promise.resolve(false));

            case 2:
              _context4.next = 4;
              return getLastPullDocument(this.collection, this.endpointHash);

            case 4:
              latestDocument = _context4.sent;
github vuefront / vuefront / lib / store / menu / store / store.js View on Github external
_regeneratorRuntime.mark(function _callee(_ref) {
      var dispatch, commit, rootGetters, categoriesMenu;
      return _regeneratorRuntime.wrap(function (_context) {
        while (1) {
          switch (_context.prev = _context.next) {
            case 0:
              dispatch = _ref.dispatch, commit = _ref.commit, rootGetters = _ref.rootGetters;
              _context.next = 3;
              return dispatch('apollo/query', {
                query: categoryMenuGql,
                variables: {
                  url: '/store/category/_id'
                }
              }, {
                root: true
              });

            case 3:
              if (!rootGetters['vuefront/error']) {
github cube-js / cube.js / packages / cubejs-vue / dist / cubejs-vue.esm.js View on Github external
_regeneratorRuntime.mark(function _callee() {
      var query, queries;
      return _regeneratorRuntime.wrap(function _callee$(_context) {
        while (1) {
          switch (_context.prev = _context.next) {
            case 0:
              query = this.query, queries = this.queries;

              if (!query) {
                _context.next = 4;
                break;
              }

              _context.next = 4;
              return this.load();

            case 4:
              if (!queries) {
                _context.next = 7;
github vuefront / vuefront / lib / store / store / cart / cart.js View on Github external
_regeneratorRuntime.mark(function _callee2(_ref3, _ref4) {
      var commit, dispatch, rootGetters, key, quantity;
      return _regeneratorRuntime.wrap(function (_context2) {
        while (1) {
          switch (_context2.prev = _context2.next) {
            case 0:
              commit = _ref3.commit, dispatch = _ref3.dispatch, rootGetters = _ref3.rootGetters;
              key = _ref4.key, quantity = _ref4.quantity;
              _context2.next = 4;
              return dispatch('apollo/mutate', {
                mutation: updateCartGraphql,
                variables: {
                  key: key,
                  quantity: quantity
                }
              }, {
                root: true
              });
github vuefront / vuefront / lib / store / store / wishlist / wishlist.js View on Github external
_regeneratorRuntime.mark(function _callee2(_ref3, _ref4) {
      var commit, dispatch, rootGetters, id;
      return _regeneratorRuntime.wrap(function (_context2) {
        while (1) {
          switch (_context2.prev = _context2.next) {
            case 0:
              commit = _ref3.commit, dispatch = _ref3.dispatch, rootGetters = _ref3.rootGetters;
              id = _ref4.id;
              _context2.next = 4;
              return dispatch('apollo/mutate', {
                mutation: removeWishlistGraphql,
                variables: {
                  id: id
                }
              }, {
                root: true
              });

            case 4: