@hot-updater/azure 1.2.0-rc.59 → 1.2.0-rc.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8488,7 +8488,7 @@ const createKvAdapter = ({ store, tablePrefix = "" }) => {
8488
8488
  };
8489
8489
  //#endregion
8490
8490
  //#region ../../packages/server/dist/version.mjs
8491
- const HOT_UPDATER_SERVER_VERSION = "1.2.0-rc.59";
8491
+ const HOT_UPDATER_SERVER_VERSION = "1.2.0-rc.60";
8492
8492
  //#endregion
8493
8493
  //#region ../../packages/server/dist/handlerVersionRoutes.mjs
8494
8494
  const createVersionRouteHandlers = (plugins = []) => {
@@ -12373,7 +12373,7 @@ const createRequestHandler = ({ api, clientPolicy, privateResponses = false, rou
12373
12373
  try {
12374
12374
  authenticated = await clientPolicy.authenticate(request);
12375
12375
  } catch (error) {
12376
- console.error("Hot Updater client authentication failed:", error);
12376
+ console.error("Hot Updater client authentication error:", error);
12377
12377
  return errorResponse("Service unavailable", 503);
12378
12378
  }
12379
12379
  if (!authenticated) return errorResponse("Unauthorized", 401);
@@ -21197,7 +21197,7 @@ const criticalProperties = [
21197
21197
  "prototype"
21198
21198
  ];
21199
21199
  //#endregion
21200
- //#region ../../node_modules/.pnpm/fast-xml-parser@5.8.0/node_modules/fast-xml-parser/src/validator.js
21200
+ //#region ../../node_modules/.pnpm/fast-xml-parser@5.7.2/node_modules/fast-xml-parser/src/validator.js
21201
21201
  const defaultOptions$2 = {
21202
21202
  allowBooleanAttributes: false,
21203
21203
  unpairedTags: []
@@ -22729,7 +22729,7 @@ var EntityDecoder = class {
22729
22729
  }
22730
22730
  };
22731
22731
  //#endregion
22732
- //#region ../../node_modules/.pnpm/fast-xml-parser@5.8.0/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js
22732
+ //#region ../../node_modules/.pnpm/fast-xml-parser@5.7.2/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js
22733
22733
  const defaultOnDangerousProperty = (name) => {
22734
22734
  if (DANGEROUS_PROPERTY_NAMES.includes(name)) return "__" + name;
22735
22735
  return name;
@@ -22844,7 +22844,7 @@ const buildOptions = function(options) {
22844
22844
  return built;
22845
22845
  };
22846
22846
  //#endregion
22847
- //#region ../../node_modules/.pnpm/fast-xml-parser@5.8.0/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js
22847
+ //#region ../../node_modules/.pnpm/fast-xml-parser@5.7.2/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js
22848
22848
  let METADATA_SYMBOL$1;
22849
22849
  if (typeof Symbol !== "function") METADATA_SYMBOL$1 = "@@xmlMetadata";
22850
22850
  else METADATA_SYMBOL$1 = Symbol("XML Node Metadata");
@@ -22872,35 +22872,11 @@ var XmlNode = class {
22872
22872
  }
22873
22873
  };
22874
22874
  //#endregion
22875
- //#region ../../node_modules/.pnpm/xml-naming@0.1.0/node_modules/xml-naming/src/index.js
22876
- const nameStartChar10 = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�";
22877
- const nameChar10 = nameStartChar10 + "\\-\\.\\d" + "·" + "̀-ͯ" + "‿-⁀";
22878
- const nameStartChar11 = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿";
22879
- const nameChar11 = nameStartChar11 + "\\-\\.\\d" + "·" + "̀-ͯ" + "҇" + "‿-⁀";
22880
- const buildRegexes = (startChar, char, flags = "") => {
22881
- const ncNamePat = `[${startChar.replace(":", "")}][${char.replace(":", "")}]*`;
22882
- return {
22883
- name: new RegExp(`^[${startChar}][${char}]*$`, flags),
22884
- ncName: new RegExp(`^${ncNamePat}$`, flags),
22885
- qName: new RegExp(`^${ncNamePat}(?::${ncNamePat})?$`, flags),
22886
- nmToken: new RegExp(`^[${char}]+$`, flags),
22887
- nmTokens: new RegExp(`^[${char}]+(?:\\s+[${char}]+)*$`, flags)
22888
- };
22889
- };
22890
- const regexes10 = buildRegexes(nameStartChar10, nameChar10);
22891
- const regexes11 = buildRegexes(nameStartChar11, nameChar11, "u");
22892
- const getRegexes = (xmlVersion = "1.0") => xmlVersion === "1.1" ? regexes11 : regexes10;
22893
- const qName = (str, { xmlVersion = "1.0" } = {}) => getRegexes(xmlVersion).qName.test(str);
22894
- //#endregion
22895
- //#region ../../node_modules/.pnpm/fast-xml-parser@5.8.0/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js
22875
+ //#region ../../node_modules/.pnpm/fast-xml-parser@5.7.2/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js
22896
22876
  var DocTypeReader = class {
22897
- constructor(options, xmlVersion) {
22877
+ constructor(options) {
22898
22878
  this.suppressValidationErr = !options;
22899
22879
  this.options = options;
22900
- this.xmlVersion = xmlVersion || 1;
22901
- }
22902
- setXmlVersion(xmlVersion = 1) {
22903
- this.xmlVersion = xmlVersion;
22904
22880
  }
22905
22881
  readDocType(xmlData, i) {
22906
22882
  const entities = Object.create(null);
@@ -22955,7 +22931,7 @@ var DocTypeReader = class {
22955
22931
  const startIndex = i;
22956
22932
  while (i < xmlData.length && !/\s/.test(xmlData[i]) && xmlData[i] !== "\"" && xmlData[i] !== "'") i++;
22957
22933
  let entityName = xmlData.substring(startIndex, i);
22958
- validateEntityName(entityName, { xmlVersion: this.xmlVersion });
22934
+ validateEntityName(entityName);
22959
22935
  i = skipWhitespace(xmlData, i);
22960
22936
  if (!this.suppressValidationErr) {
22961
22937
  if (xmlData.substring(i, i + 6).toUpperCase() === "SYSTEM") throw new Error("External entities are not supported");
@@ -22976,7 +22952,7 @@ var DocTypeReader = class {
22976
22952
  const startIndex = i;
22977
22953
  while (i < xmlData.length && !/\s/.test(xmlData[i])) i++;
22978
22954
  let notationName = xmlData.substring(startIndex, i);
22979
- !this.suppressValidationErr && validateEntityName(notationName, { xmlVersion: this.xmlVersion });
22955
+ !this.suppressValidationErr && validateEntityName(notationName);
22980
22956
  i = skipWhitespace(xmlData, i);
22981
22957
  const identifierType = xmlData.substring(i, i + 6).toUpperCase();
22982
22958
  if (!this.suppressValidationErr && identifierType !== "SYSTEM" && identifierType !== "PUBLIC") throw new Error(`Expected SYSTEM or PUBLIC, found "${identifierType}"`);
@@ -23016,7 +22992,7 @@ var DocTypeReader = class {
23016
22992
  const startIndex = i;
23017
22993
  while (i < xmlData.length && !/\s/.test(xmlData[i])) i++;
23018
22994
  let elementName = xmlData.substring(startIndex, i);
23019
- if (!this.suppressValidationErr && !qName(elementName, { xmlVersion: this.xmlVersion })) throw new Error(`Invalid element name: "${elementName}"`);
22995
+ if (!this.suppressValidationErr && !isName(elementName)) throw new Error(`Invalid element name: "${elementName}"`);
23020
22996
  i = skipWhitespace(xmlData, i);
23021
22997
  let contentModel = "";
23022
22998
  if (xmlData[i] === "E" && hasSeq(xmlData, "MPTY", i)) i += 4;
@@ -23039,12 +23015,12 @@ var DocTypeReader = class {
23039
23015
  let startIndex = i;
23040
23016
  while (i < xmlData.length && !/\s/.test(xmlData[i])) i++;
23041
23017
  let elementName = xmlData.substring(startIndex, i);
23042
- validateEntityName(elementName, { xmlVersion: this.xmlVersion });
23018
+ validateEntityName(elementName);
23043
23019
  i = skipWhitespace(xmlData, i);
23044
23020
  startIndex = i;
23045
23021
  while (i < xmlData.length && !/\s/.test(xmlData[i])) i++;
23046
23022
  let attributeName = xmlData.substring(startIndex, i);
23047
- if (!validateEntityName(attributeName, { xmlVersion: this.xmlVersion })) throw new Error(`Invalid attribute name: "${attributeName}"`);
23023
+ if (!validateEntityName(attributeName)) throw new Error(`Invalid attribute name: "${attributeName}"`);
23048
23024
  i = skipWhitespace(xmlData, i);
23049
23025
  let attributeType = "";
23050
23026
  if (xmlData.substring(i, i + 8).toUpperCase() === "NOTATION") {
@@ -23059,7 +23035,7 @@ var DocTypeReader = class {
23059
23035
  while (i < xmlData.length && xmlData[i] !== "|" && xmlData[i] !== ")") i++;
23060
23036
  let notation = xmlData.substring(startIndex, i);
23061
23037
  notation = notation.trim();
23062
- if (!validateEntityName(notation, { xmlVersion: this.xmlVersion })) throw new Error(`Invalid notation name: "${notation}"`);
23038
+ if (!validateEntityName(notation)) throw new Error(`Invalid notation name: "${notation}"`);
23063
23039
  allowedNotations.push(notation);
23064
23040
  if (xmlData[i] === "|") {
23065
23041
  i++;
@@ -23110,8 +23086,8 @@ function hasSeq(data, seq, i) {
23110
23086
  for (let j = 0; j < seq.length; j++) if (seq[j] !== data[i + j + 1]) return false;
23111
23087
  return true;
23112
23088
  }
23113
- function validateEntityName(name, xmlVersion) {
23114
- if (qName(name, { xmlVersion })) return name;
23089
+ function validateEntityName(name) {
23090
+ if (isName(name)) return name;
23115
23091
  else throw new Error(`Invalid entity name ${name}`);
23116
23092
  }
23117
23093
  //#endregion
@@ -23376,7 +23352,7 @@ function handleInfinity(str, num, options) {
23376
23352
  }
23377
23353
  }
23378
23354
  //#endregion
23379
- //#region ../../node_modules/.pnpm/fast-xml-parser@5.8.0/node_modules/fast-xml-parser/src/ignoreAttributes.js
23355
+ //#region ../../node_modules/.pnpm/fast-xml-parser@5.7.2/node_modules/fast-xml-parser/src/ignoreAttributes.js
23380
23356
  function getIgnoreAttributesFn$1(ignoreAttributes) {
23381
23357
  if (typeof ignoreAttributes === "function") return ignoreAttributes;
23382
23358
  if (Array.isArray(ignoreAttributes)) return (attrName) => {
@@ -23781,7 +23757,7 @@ var Matcher = class {
23781
23757
  }
23782
23758
  };
23783
23759
  //#endregion
23784
- //#region ../../node_modules/.pnpm/fast-xml-parser@5.8.0/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
23760
+ //#region ../../node_modules/.pnpm/fast-xml-parser@5.7.2/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
23785
23761
  function extractRawAttributes(prefixedAttrs, options) {
23786
23762
  if (!prefixedAttrs) return {};
23787
23763
  const attrs = options.attributesGroupName ? prefixedAttrs[options.attributesGroupName] : prefixedAttrs;
@@ -23975,7 +23951,6 @@ const parseXml = function(xmlData) {
23975
23951
  if (attsMap) {
23976
23952
  const ver = attsMap[this.options.attributeNamePrefix + "version"];
23977
23953
  this.entityDecoder.setXmlVersion(Number(ver) || 1);
23978
- docTypeReader.setXmlVersion(Number(ver) || 1);
23979
23954
  }
23980
23955
  if (options.ignoreDeclaration && tagData.tagName === "?xml" || options.ignorePiTags) {} else {
23981
23956
  const childNode = new XmlNode(tagData.tagName);
@@ -24219,7 +24194,7 @@ function readStopNodeData(xmlData, tagName, i) {
24219
24194
  else if (c1 === 33 && xmlData.charCodeAt(i + 2) === 45 && xmlData.charCodeAt(i + 3) === 45) i = findClosingIndex(xmlData, "-->", i + 3, "StopNode is not closed.");
24220
24195
  else if (c1 === 33 && xmlData.charCodeAt(i + 2) === 91) i = findClosingIndex(xmlData, "]]>", i, "StopNode is not closed.") - 2;
24221
24196
  else {
24222
- const tagData = readTagExp(xmlData, i, false);
24197
+ const tagData = readTagExp(xmlData, i, ">");
24223
24198
  if (tagData) {
24224
24199
  if ((tagData && tagData.tagName) === tagName && tagData.tagExp[tagData.tagExp.length - 1] !== "/") openTagCount++;
24225
24200
  i = tagData.closeIndex;
@@ -24254,7 +24229,7 @@ function sanitizeName(name, options) {
24254
24229
  return name;
24255
24230
  }
24256
24231
  //#endregion
24257
- //#region ../../node_modules/.pnpm/fast-xml-parser@5.8.0/node_modules/fast-xml-parser/src/xmlparser/node2json.js
24232
+ //#region ../../node_modules/.pnpm/fast-xml-parser@5.7.2/node_modules/fast-xml-parser/src/xmlparser/node2json.js
24258
24233
  const METADATA_SYMBOL = XmlNode.getMetaDataSymbol();
24259
24234
  function stripAttributePrefix(attrs, prefix) {
24260
24235
  if (!attrs || typeof attrs !== "object") return {};
@@ -24286,7 +24261,6 @@ function compress(arr, options, matcher, readonlyMatcher) {
24286
24261
  else if (tagObj[property]) {
24287
24262
  let val = compress(tagObj[property], options, matcher, readonlyMatcher);
24288
24263
  const isLeaf = isLeafTag(val, options);
24289
- if (Object.keys(val).length === 0 && options.alwaysCreateTextNode) val[options.textNodeName] = "";
24290
24264
  if (tagObj[":@"]) assignAttributes(val, tagObj[":@"], readonlyMatcher, options);
24291
24265
  else if (Object.keys(val).length === 1 && val[options.textNodeName] !== void 0 && !options.alwaysCreateTextNode) val = val[options.textNodeName];
24292
24266
  else if (Object.keys(val).length === 0) {
@@ -24338,7 +24312,7 @@ function isLeafTag(obj, options) {
24338
24312
  return false;
24339
24313
  }
24340
24314
  //#endregion
24341
- //#region ../../node_modules/.pnpm/fast-xml-parser@5.8.0/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
24315
+ //#region ../../node_modules/.pnpm/fast-xml-parser@5.7.2/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
24342
24316
  var XMLParser = class {
24343
24317
  constructor(options) {
24344
24318
  this.externalEntities = {};
@@ -24379,6 +24353,26 @@ function escapeAttribute(val) {
24379
24353
  return String(val).replace(/"/g, "&quot;").replace(/'/g, "&apos;");
24380
24354
  }
24381
24355
  //#endregion
24356
+ //#region ../../node_modules/.pnpm/xml-naming@0.1.0/node_modules/xml-naming/src/index.js
24357
+ const nameStartChar10 = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�";
24358
+ const nameChar10 = nameStartChar10 + "\\-\\.\\d" + "·" + "̀-ͯ" + "‿-⁀";
24359
+ const nameStartChar11 = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿";
24360
+ const nameChar11 = nameStartChar11 + "\\-\\.\\d" + "·" + "̀-ͯ" + "҇" + "‿-⁀";
24361
+ const buildRegexes = (startChar, char, flags = "") => {
24362
+ const ncNamePat = `[${startChar.replace(":", "")}][${char.replace(":", "")}]*`;
24363
+ return {
24364
+ name: new RegExp(`^[${startChar}][${char}]*$`, flags),
24365
+ ncName: new RegExp(`^${ncNamePat}$`, flags),
24366
+ qName: new RegExp(`^${ncNamePat}(?::${ncNamePat})?$`, flags),
24367
+ nmToken: new RegExp(`^[${char}]+$`, flags),
24368
+ nmTokens: new RegExp(`^[${char}]+(?:\\s+[${char}]+)*$`, flags)
24369
+ };
24370
+ };
24371
+ const regexes10 = buildRegexes(nameStartChar10, nameChar10);
24372
+ const regexes11 = buildRegexes(nameStartChar11, nameChar11, "u");
24373
+ const getRegexes = (xmlVersion = "1.0") => xmlVersion === "1.1" ? regexes11 : regexes10;
24374
+ const qName = (str, { xmlVersion = "1.0" } = {}) => getRegexes(xmlVersion).qName.test(str);
24375
+ //#endregion
24382
24376
  //#region ../../node_modules/.pnpm/fast-xml-builder@1.2.0/node_modules/fast-xml-builder/src/orderedJs2Xml.js
24383
24377
  const EOL$1 = "\n";
24384
24378
  function detectXmlVersionFromArray(jArray, options) {
@@ -24936,10 +24930,10 @@ function isAttribute(name) {
24936
24930
  else return false;
24937
24931
  }
24938
24932
  //#endregion
24939
- //#region ../../node_modules/.pnpm/fast-xml-parser@5.8.0/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js
24933
+ //#region ../../node_modules/.pnpm/fast-xml-parser@5.7.2/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js
24940
24934
  var json2xml_default = Builder$3;
24941
24935
  //#endregion
24942
- //#region ../../node_modules/.pnpm/fast-xml-parser@5.8.0/node_modules/fast-xml-parser/src/fxp.js
24936
+ //#region ../../node_modules/.pnpm/fast-xml-parser@5.7.2/node_modules/fast-xml-parser/src/fxp.js
24943
24937
  const XMLValidator = { validate };
24944
24938
  //#endregion
24945
24939
  //#region ../../node_modules/.pnpm/@azure+core-xml@1.6.0/node_modules/@azure/core-xml/dist/esm/xml.js
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hot-updater/azure",
3
3
  "type": "module",
4
- "version": "1.2.0-rc.59",
4
+ "version": "1.2.0-rc.60",
5
5
  "description": "React Native OTA solution for self-hosted",
6
6
  "engines": {
7
7
  "node": "^22.23.4 || ^24.22.1 || >=26.12.1"
@@ -44,10 +44,10 @@
44
44
  "@azure/identity": "4.14.0",
45
45
  "@azure/keyvault-secrets": "4.11.2",
46
46
  "@azure/storage-blob": "12.34.0",
47
- "@hot-updater/cli-tools": "1.2.0-rc.59",
48
- "@hot-updater/plugin-core": "1.2.0-rc.59",
49
- "@hot-updater/protocol": "1.2.0-rc.59",
50
- "@hot-updater/server": "1.2.0-rc.59"
47
+ "@hot-updater/protocol": "1.2.0-rc.60",
48
+ "@hot-updater/plugin-core": "1.2.0-rc.60",
49
+ "@hot-updater/server": "1.2.0-rc.60",
50
+ "@hot-updater/cli-tools": "1.2.0-rc.60"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@azure/functions": "4.16.5",
@@ -55,7 +55,7 @@
55
55
  "execa": "9.5.2",
56
56
  "jszip": "^3.10.1",
57
57
  "vitest": "4.1.4",
58
- "@hot-updater/test-utils": "1.2.0-rc.59"
58
+ "@hot-updater/test-utils": "1.2.0-rc.60"
59
59
  },
60
60
  "scripts": {
61
61
  "build": "tsdown",