@anoki/fse-ui
Version:
FSE UI components library
27 lines (26 loc) • 722 B
JavaScript
var t, r;
function h() {
if (r) return t;
r = 1;
class e {
constructor(s, i = {}) {
if (this.type = "warning", this.text = s, i.node && i.node.source) {
let n = i.node.rangeBy(i);
this.line = n.start.line, this.column = n.start.column, this.endLine = n.end.line, this.endColumn = n.end.column;
}
for (let n in i) this[n] = i[n];
}
toString() {
return this.node ? this.node.error(this.text, {
index: this.index,
plugin: this.plugin,
word: this.word
}).message : this.plugin ? this.plugin + ": " + this.text : this.text;
}
}
return t = e, e.default = e, t;
}
export {
h as __require
};
//# sourceMappingURL=index.es702.js.map