mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-21 05:19:42 +08:00
44 lines
1.3 KiB
JavaScript
44 lines
1.3 KiB
JavaScript
"use strict";
|
|
|
|
var _regenerator = require("babel-runtime/regenerator");
|
|
|
|
var _regenerator2 = _interopRequireDefault(_regenerator);
|
|
|
|
var _asyncToGenerator2 = require("babel-runtime/helpers/asyncToGenerator");
|
|
|
|
var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2);
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
|
|
module.exports = function () {
|
|
var _ref = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee(ctx, next) {
|
|
var path;
|
|
return _regenerator2.default.wrap(function _callee$(_context) {
|
|
while (1) {
|
|
switch (_context.prev = _context.next) {
|
|
case 0:
|
|
path = ctx.path;
|
|
|
|
console.log(path);
|
|
console.log(ctx.hostname);
|
|
|
|
if (!next) {
|
|
_context.next = 6;
|
|
break;
|
|
}
|
|
|
|
_context.next = 6;
|
|
return next();
|
|
|
|
case 6:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}
|
|
}, _callee, undefined);
|
|
}));
|
|
|
|
return function (_x, _x2) {
|
|
return _ref.apply(this, arguments);
|
|
};
|
|
}(); |