update electron to v43
This commit is contained in:
parent
68ac0beedf
commit
fb6c8b6ee9
5385 changed files with 513060 additions and 123058 deletions
14
electron/node_modules/builder-util-runtime/out/xml.js
generated
vendored
14
electron/node_modules/builder-util-runtime/out/xml.js
generated
vendored
|
|
@ -1,8 +1,9 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.parseXml = exports.XElement = void 0;
|
||||
exports.XElement = void 0;
|
||||
exports.parseXml = parseXml;
|
||||
const sax = require("sax");
|
||||
const index_1 = require("./index");
|
||||
const error_1 = require("./error");
|
||||
class XElement {
|
||||
constructor(name) {
|
||||
this.name = name;
|
||||
|
|
@ -11,16 +12,16 @@ class XElement {
|
|||
this.isCData = false;
|
||||
this.elements = null;
|
||||
if (!name) {
|
||||
throw index_1.newError("Element name cannot be empty", "ERR_XML_ELEMENT_NAME_EMPTY");
|
||||
throw (0, error_1.newError)("Element name cannot be empty", "ERR_XML_ELEMENT_NAME_EMPTY");
|
||||
}
|
||||
if (!isValidName(name)) {
|
||||
throw index_1.newError(`Invalid element name: ${name}`, "ERR_XML_ELEMENT_INVALID_NAME");
|
||||
throw (0, error_1.newError)(`Invalid element name: ${name}`, "ERR_XML_ELEMENT_INVALID_NAME");
|
||||
}
|
||||
}
|
||||
attribute(name) {
|
||||
const result = this.attributes === null ? null : this.attributes[name];
|
||||
if (result == null) {
|
||||
throw index_1.newError(`No attribute "${name}"`, "ERR_XML_MISSED_ATTRIBUTE");
|
||||
throw (0, error_1.newError)(`No attribute "${name}"`, "ERR_XML_MISSED_ATTRIBUTE");
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
@ -32,7 +33,7 @@ class XElement {
|
|||
element(name, ignoreCase = false, errorIfMissed = null) {
|
||||
const result = this.elementOrNull(name, ignoreCase);
|
||||
if (result === null) {
|
||||
throw index_1.newError(errorIfMissed || `No element "${name}"`, "ERR_XML_MISSED_ELEMENT");
|
||||
throw (0, error_1.newError)(errorIfMissed || `No element "${name}"`, "ERR_XML_MISSED_ELEMENT");
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
@ -105,5 +106,4 @@ function parseXml(data) {
|
|||
parser.write(data);
|
||||
return rootElement;
|
||||
}
|
||||
exports.parseXml = parseXml;
|
||||
//# sourceMappingURL=xml.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue