Sha256: e87288d2c6c0161bce34d19843fdf13f55d7e1b7feb1eb328b1b21515c892265
Contents?: true
Size: 925 Bytes
Versions: 1
Compression:
Stored size: 925 Bytes
Contents
"use strict"; var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; result["default"] = mod; return result; }; Object.defineProperty(exports, "__esModule", { value: true }); const t = __importStar(require("@babel/types")); function default_1() { return { name: '@resugar/codemod-objects-concise', visitor: { ObjectProperty(path) { const { node } = path; if (!t.isFunctionExpression(node.value) || node.value.id) { return; } path.replaceWith(t.objectMethod('method', node.key, node.value.params, node.value.body, node.computed)); } } }; } exports.default = default_1; //# sourceMappingURL=index.js.map
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wice_grid-7.1.0 | node_modules/@resugar/codemod-objects-concise/src/index.js |