mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
58 lines
1.3 KiB
JavaScript
58 lines
1.3 KiB
JavaScript
var unsupportedIterableToArray = require("./unsupportedIterableToArray");
|
|
|
|
function _createForOfIteratorHelper(o) {
|
|
if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
|
|
if (Array.isArray(o) || (o = unsupportedIterableToArray(o))) {
|
|
var i = 0;
|
|
|
|
var F = function F() {};
|
|
|
|
return {
|
|
s: F,
|
|
n: function n() {
|
|
if (i >= o.length) return {
|
|
done: true
|
|
};
|
|
return {
|
|
done: false,
|
|
value: o[i++]
|
|
};
|
|
},
|
|
e: function e(_e) {
|
|
throw _e;
|
|
},
|
|
f: F
|
|
};
|
|
}
|
|
|
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
}
|
|
|
|
var it,
|
|
normalCompletion = true,
|
|
didErr = false,
|
|
err;
|
|
return {
|
|
s: function s() {
|
|
it = o[Symbol.iterator]();
|
|
},
|
|
n: function n() {
|
|
var step = it.next();
|
|
normalCompletion = step.done;
|
|
return step;
|
|
},
|
|
e: function e(_e2) {
|
|
didErr = true;
|
|
err = _e2;
|
|
},
|
|
f: function f() {
|
|
try {
|
|
if (!normalCompletion && it["return"] != null) it["return"]();
|
|
} finally {
|
|
if (didErr) throw err;
|
|
}
|
|
}
|
|
};
|
|
}
|
|
|
|
module.exports = _createForOfIteratorHelper; |