source: frontend/node_modules/@svgr/hast-util-to-babel-ast/lib/all.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 2 weeks ago

Fix frontend appearance

  • Property mode set to 100644
File size: 611 bytes
Line 
1"use strict";
2
3exports.__esModule = true;
4exports.default = void 0;
5
6var _one = _interopRequireDefault(require("./one"));
7
8function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
10/* Transform the children of `parent`. */
11function all(h, parent) {
12 const nodes = parent.children || [];
13 const {
14 length
15 } = nodes;
16 const values = [];
17 let index = -1;
18
19 while (++index < length) {
20 const result = (0, _one.default)(h, nodes[index], parent);
21 values.push(result);
22 }
23
24 return values.filter(node => node);
25}
26
27var _default = all;
28exports.default = _default;
Note: See TracBrowser for help on using the repository browser.