gatsby-plugin-feed
Advanced tools
Comparing version 1.3.2 to 1.3.3
"use strict"; | ||
var _getIterator2 = require("babel-runtime/core-js/get-iterator"); | ||
var _getIterator3 = _interopRequireDefault(_getIterator2); | ||
var _regenerator = require("babel-runtime/regenerator"); | ||
var _regenerator2 = _interopRequireDefault(_regenerator); | ||
var _objectWithoutProperties2 = require("babel-runtime/helpers/objectWithoutProperties"); | ||
@@ -15,6 +7,2 @@ | ||
var _promise = require("babel-runtime/core-js/promise"); | ||
var _promise2 = _interopRequireDefault(_promise); | ||
var _asyncToGenerator2 = require("babel-runtime/helpers/asyncToGenerator"); | ||
@@ -62,8 +50,8 @@ | ||
exports.onPostBuild = function () { | ||
var _ref2 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee(_ref3, pluginOptions) { | ||
var graphql = _ref3.graphql; | ||
var _ref3 = (0, _asyncToGenerator3.default)(regeneratorRuntime.mark(function _callee(_ref2, pluginOptions) { | ||
var graphql = _ref2.graphql; | ||
var options, _loop, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, f; | ||
var options, _loop, _iterator, _isArray, _i, _ref4, f; | ||
return _regenerator2.default.wrap(function _callee$(_context2) { | ||
return regeneratorRuntime.wrap(function _callee$(_context2) { | ||
while (1) { | ||
@@ -92,6 +80,6 @@ switch (_context2.prev = _context2.next) { | ||
case 6: | ||
_loop = _regenerator2.default.mark(function _loop(f) { | ||
_loop = regeneratorRuntime.mark(function _loop(f) { | ||
var _options$f, setup, locals, feed, serializer, items; | ||
return _regenerator2.default.wrap(function _loop$(_context) { | ||
return regeneratorRuntime.wrap(function _loop$(_context) { | ||
while (1) { | ||
@@ -137,60 +125,47 @@ switch (_context.prev = _context.next) { | ||
}); | ||
_iteratorNormalCompletion = true; | ||
_didIteratorError = false; | ||
_iteratorError = undefined; | ||
_context2.prev = 10; | ||
_iterator = (0, _getIterator3.default)(options.feeds); | ||
_iterator = options.feeds, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator](); | ||
case 12: | ||
if (_iteratorNormalCompletion = (_step = _iterator.next()).done) { | ||
_context2.next = 18; | ||
case 8: | ||
if (!_isArray) { | ||
_context2.next = 14; | ||
break; | ||
} | ||
f = _step.value; | ||
return _context2.delegateYield(_loop(f), "t0", 15); | ||
if (!(_i >= _iterator.length)) { | ||
_context2.next = 11; | ||
break; | ||
} | ||
case 15: | ||
_iteratorNormalCompletion = true; | ||
_context2.next = 12; | ||
break; | ||
return _context2.abrupt("break", 22); | ||
case 18: | ||
_context2.next = 24; | ||
case 11: | ||
_ref4 = _iterator[_i++]; | ||
_context2.next = 18; | ||
break; | ||
case 20: | ||
_context2.prev = 20; | ||
_context2.t1 = _context2["catch"](10); | ||
_didIteratorError = true; | ||
_iteratorError = _context2.t1; | ||
case 14: | ||
_i = _iterator.next(); | ||
case 24: | ||
_context2.prev = 24; | ||
_context2.prev = 25; | ||
if (!_iteratorNormalCompletion && _iterator.return) { | ||
_iterator.return(); | ||
if (!_i.done) { | ||
_context2.next = 17; | ||
break; | ||
} | ||
case 27: | ||
_context2.prev = 27; | ||
return _context2.abrupt("break", 22); | ||
if (!_didIteratorError) { | ||
_context2.next = 30; | ||
break; | ||
} | ||
case 17: | ||
_ref4 = _i.value; | ||
throw _iteratorError; | ||
case 18: | ||
f = _ref4; | ||
return _context2.delegateYield(_loop(f), "t0", 20); | ||
case 30: | ||
return _context2.finish(27); | ||
case 20: | ||
_context2.next = 8; | ||
break; | ||
case 31: | ||
return _context2.finish(24); | ||
case 22: | ||
return _context2.abrupt("return", Promise.resolve()); | ||
case 32: | ||
return _context2.abrupt("return", _promise2.default.resolve()); | ||
case 33: | ||
case 23: | ||
case "end": | ||
@@ -200,8 +175,8 @@ return _context2.stop(); | ||
} | ||
}, _callee, undefined, [[10, 20, 24, 32], [25,, 27, 31]]); | ||
}, _callee, undefined); | ||
})); | ||
return function (_x, _x2) { | ||
return _ref2.apply(this, arguments); | ||
return _ref3.apply(this, arguments); | ||
}; | ||
}(); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
exports.defaultOptions = exports.runQuery = exports.writeFile = undefined; | ||
@@ -7,0 +5,0 @@ |
{ | ||
"name": "gatsby-plugin-feed", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"description": "Creates an RSS feed for your Gatsby site.", | ||
"main": "index.js", | ||
"scripts": { | ||
"build": "babel src --out-dir .", | ||
"watch": "babel -w src --out-dir ." | ||
"build": "babel src --out-dir . --ignore __tests__", | ||
"watch": "babel -w src --out-dir . --ignore __tests__" | ||
}, | ||
@@ -10,0 +10,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11984
195