Urara-Blog/node_modules/.pnpm-store/v3/files/70/3c32ca172a7d3c8f9ba3174a04790720e0217becff7fee39c2989d9d9bda7da15a2dbf6d9edf6776e5b4c2730560f57b15098ee84e1e605177d2dbb2ae8b80
2022-08-14 01:14:53 +08:00

24 lines
597 B
Text

'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
const icon_index = require('../icon/index.cjs');
function expandIconSet(data) {
const icons = Object.keys(data.icons);
Object.keys(icon_index.iconDefaults).forEach((prop) => {
if (typeof data[prop] !== typeof icon_index.iconDefaults[prop]) {
return;
}
const value = data[prop];
icons.forEach((name) => {
const item = data.icons[name];
if (item[prop] === void 0) {
item[prop] = value;
}
});
delete data[prop];
});
}
exports.expandIconSet = expandIconSet;