REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 4.31 KB
Close
//home/byroehnu/easepay.easetack.com/node_modules/@babel/helper-create-class-features-plugin/lib/misc.js
Text
Base64
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.extractComputedKeys = extractComputedKeys; exports.injectInitialization = injectInitialization; exports.memoiseComputedKey = memoiseComputedKey; var _core = require("@babel/core"); var _traverse = require("@babel/traverse"); const findBareSupers = _traverse.visitors.environmentVisitor({ Super(path) { const { node, parentPath } = path; if (parentPath.isCallExpression({ callee: node })) { this.push(parentPath); } } }); const referenceVisitor = { "TSTypeAnnotation|TypeAnnotation"(path) { path.skip(); }, ReferencedIdentifier(path, { scope }) { if (scope.hasOwnBinding(path.node.name)) { scope.rename(path.node.name); path.skip(); } } }; function handleClassTDZ(path, state) { if (state.classBinding && state.classBinding === path.scope.getBinding(path.node.name)) { const classNameTDZError = state.file.addHelper("classNameTDZError"); const throwNode = _core.types.callExpression(classNameTDZError, [_core.types.stringLiteral(path.node.name)]); path.replaceWith(_core.types.sequenceExpression([throwNode, path.node])); path.skip(); } } const classFieldDefinitionEvaluationTDZVisitor = { ReferencedIdentifier: handleClassTDZ, "TSTypeAnnotation|TypeAnnotation"(path) { path.skip(); } }; function injectInitialization(path, constructor, nodes, renamer, lastReturnsThis) { if (!nodes.length) return; const isDerived = !!path.node.superClass; if (!constructor) { const newConstructor = _core.types.classMethod("constructor", _core.types.identifier("constructor"), [], _core.types.blockStatement([])); if (isDerived) { newConstructor.params = [_core.types.restElement(_core.types.identifier("args"))]; newConstructor.body.body.push(_core.template.statement.ast`super(...args)`); } [constructor] = path.get("body").unshiftContainer("body", newConstructor); } if (renamer) { renamer(referenceVisitor, { scope: constructor.scope }); } if (isDerived) { const bareSupers = []; constructor.traverse(findBareSupers, bareSupers); let isFirst = true; for (const bareSuper of bareSupers) { if (isFirst) { isFirst = false; } else { nodes = nodes.map(n => _core.types.cloneNode(n)); } if (!bareSuper.parentPath.isExpressionStatement()) { const allNodes = [bareSuper.node, ...nodes.map(n => _core.types.toExpression(n))]; if (!lastReturnsThis) allNodes.push(_core.types.thisExpression()); bareSuper.replaceWith(_core.types.sequenceExpression(allNodes)); } else { bareSuper.insertAfter(nodes); } } } else { constructor.get("body").unshiftContainer("body", nodes); } } function memoiseComputedKey(keyNode, scope, hint) { const isUidReference = _core.types.isIdentifier(keyNode) && scope.hasUid(keyNode.name); if (isUidReference) { return; } const isMemoiseAssignment = _core.types.isAssignmentExpression(keyNode, { operator: "=" }) && _core.types.isIdentifier(keyNode.left) && scope.hasUid(keyNode.left.name); if (isMemoiseAssignment) { return _core.types.cloneNode(keyNode); } else { const ident = _core.types.identifier(hint); scope.push({ id: ident, kind: "let" }); return _core.types.assignmentExpression("=", _core.types.cloneNode(ident), keyNode); } } function extractComputedKeys(path, computedPaths, file) { const { scope } = path; const declarations = []; const state = { classBinding: path.node.id && scope.getBinding(path.node.id.name), file }; for (const computedPath of computedPaths) { const computedKey = computedPath.get("key"); if (computedKey.isReferencedIdentifier()) { handleClassTDZ(computedKey, state); } else { computedKey.traverse(classFieldDefinitionEvaluationTDZVisitor, state); } const computedNode = computedPath.node; if (!computedKey.isConstantExpression()) { const assignment = memoiseComputedKey(computedKey.node, scope, scope.generateUidBasedOnNode(computedKey.node)); if (assignment) { declarations.push(_core.types.expressionStatement(assignment)); computedNode.key = _core.types.cloneNode(assignment.left); } } } return declarations; } //# sourceMappingURL=misc.js.map
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 15
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
.htaccess
127 B
lr--r--r--
2026-03-14 01:49:06
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
decorators-2018-09.js
4.64 KB
lrw-r--r--
2026-02-28 00:26:54
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
decorators-2018-09.js.map
12.71 KB
lrw-r--r--
2026-02-28 00:27:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
decorators.js
54.87 KB
lrw-r--r--
2026-02-28 00:27:24
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
decorators.js.map
142.16 KB
lrw-r--r--
2026-02-28 00:27:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
features.js
6.80 KB
lrw-r--r--
2026-02-28 00:27:58
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
features.js.map
15.91 KB
lrw-r--r--
2026-02-28 00:28:02
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
fields.js
39.68 KB
lrw-r--r--
2026-02-28 00:28:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
fields.js.map
99.44 KB
lrw-r--r--
2026-02-28 00:28:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.js
10.14 KB
lrw-r--r--
2026-02-28 00:28:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.js.map
23.24 KB
lrw-r--r--
2026-02-28 00:28:26
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
misc.js
4.31 KB
lrw-r--r--
2026-02-28 00:28:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
misc.js.map
11.83 KB
lrw-r--r--
2026-02-28 00:28:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
typescript.js
701 B
lrw-r--r--
2026-02-28 00:28:30
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
typescript.js.map
1.21 KB
lrw-r--r--
2026-02-28 00:28:32
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).