nav tabs on admin dashboard
This commit is contained in:
46
node_modules/regenerator-transform/lib/util.js
generated
vendored
46
node_modules/regenerator-transform/lib/util.js
generated
vendored
@@ -1,30 +1,50 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.wrapWithTypes = wrapWithTypes;
|
||||
exports.getTypes = getTypes;
|
||||
exports.runtimeProperty = runtimeProperty;
|
||||
exports.isReference = isReference;
|
||||
exports.replaceWithOrRemove = replaceWithOrRemove;
|
||||
|
||||
var _babelTypes = require("babel-types");
|
||||
/**
|
||||
* Copyright (c) 2014-present, Facebook, Inc.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
var currentTypes = null;
|
||||
|
||||
var t = _interopRequireWildcard(_babelTypes);
|
||||
function wrapWithTypes(types, fn) {
|
||||
return function () {
|
||||
var oldTypes = currentTypes;
|
||||
currentTypes = types;
|
||||
|
||||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
|
||||
try {
|
||||
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
||||
args[_key] = arguments[_key];
|
||||
}
|
||||
|
||||
return fn.apply(this, args);
|
||||
} finally {
|
||||
currentTypes = oldTypes;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function getTypes() {
|
||||
return currentTypes;
|
||||
}
|
||||
|
||||
function runtimeProperty(name) {
|
||||
var t = getTypes();
|
||||
return t.memberExpression(t.identifier("regeneratorRuntime"), t.identifier(name), false);
|
||||
} /**
|
||||
* Copyright (c) 2014, Facebook, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This source code is licensed under the BSD-style license found in the
|
||||
* https://raw.github.com/facebook/regenerator/master/LICENSE file. An
|
||||
* additional grant of patent rights can be found in the PATENTS file in
|
||||
* the same directory.
|
||||
*/
|
||||
}
|
||||
|
||||
function isReference(path) {
|
||||
return path.isReferenced() || path.parentPath.isAssignmentExpression({ left: path.node });
|
||||
return path.isReferenced() || path.parentPath.isAssignmentExpression({
|
||||
left: path.node
|
||||
});
|
||||
}
|
||||
|
||||
function replaceWithOrRemove(path, replacement) {
|
||||
|
||||
Reference in New Issue
Block a user