Skip to content

Commit e174912

Browse files
authored
Update dependencies (#440)
* chore: update version of the fast-xml-parser * chore: update tough-cookie and @azure/ms-rest-js * chore: update license for the @azure/ms-rest-js
1 parent a6be55a commit e174912

File tree

4 files changed

+35
-71
lines changed

4 files changed

+35
-71
lines changed

.licenses/npm/@azure/ms-rest-js.dep.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.licenses/npm/fast-xml-parser.dep.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/setup/index.js

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51211,7 +51211,9 @@ module.exports = toXml;
5121151211
/***/ }),
5121251212

5121351213
/***/ 6072:
51214-
/***/ ((module) => {
51214+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
51215+
51216+
const util = __nccwpck_require__(8280);
5121551217

5121651218
//TODO: handle comments
5121751219
function readDocType(xmlData, i){
@@ -51355,20 +51357,16 @@ function isNotation(xmlData, i){
5135551357
return false
5135651358
}
5135751359

51358-
//an entity name should not contains special characters that may be used in regex
51359-
//Eg !?\\\/[]$%{}^&*()<>
51360-
const specialChar = "!?\\\/[]$%{}^&*()<>|+";
51361-
5136251360
function validateEntityName(name){
51363-
for (let i = 0; i < specialChar.length; i++) {
51364-
const ch = specialChar[i];
51365-
if(name.indexOf(ch) !== -1) throw new Error(`Invalid character ${ch} in entity name`);
51366-
}
51367-
return name;
51361+
if (util.isName(name))
51362+
return name;
51363+
else
51364+
throw new Error(`Invalid entity name ${name}`);
5136851365
}
5136951366

5137051367
module.exports = readDocType;
5137151368

51369+
5137251370
/***/ }),
5137351371

5137451372
/***/ 6993:

package-lock.json

Lines changed: 25 additions & 59 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)