From fc87c009806dcc98867f6b58efe29b042aa01dee Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 18 May 2026 23:10:59 +0800 Subject: node: update --- node_modules/regenerator-transform/lib/util.js | 49 -------------------------- 1 file changed, 49 deletions(-) delete mode 100644 node_modules/regenerator-transform/lib/util.js (limited to 'node_modules/regenerator-transform/lib/util.js') diff --git a/node_modules/regenerator-transform/lib/util.js b/node_modules/regenerator-transform/lib/util.js deleted file mode 100644 index 535cbed4..00000000 --- a/node_modules/regenerator-transform/lib/util.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; - -exports.__esModule = true; -exports.getTypes = getTypes; -exports.isReference = isReference; -exports.replaceWithOrRemove = replaceWithOrRemove; -exports.runtimeProperty = runtimeProperty; -exports.wrapWithTypes = wrapWithTypes; -/** - * 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; -function wrapWithTypes(types, fn) { - return function () { - var oldTypes = currentTypes; - currentTypes = types; - 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); -} -function isReference(path) { - return path.isReferenced() || path.parentPath.isAssignmentExpression({ - left: path.node - }); -} -function replaceWithOrRemove(path, replacement) { - if (replacement) { - path.replaceWith(replacement); - } else { - path.remove(); - } -} \ No newline at end of file -- cgit v1.2.3