@jarenjs/validate 0.8.2 → 0.8.3

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.
package/dist/index.js CHANGED
@@ -1360,15 +1360,15 @@ function compileSchemaObject(schemaObj, jsonSchema) {
1360
1360
  };
1361
1361
  }
1362
1362
 
1363
- // ../strings/src/punycode.js
1363
+ // ../core/src/text/punycode.js
1364
1364
  var base = 36;
1365
1365
  var tMin = 1;
1366
1366
  var baseMinusTMin = base - tMin;
1367
1367
  var stringFromCharCode = String.fromCharCode;
1368
1368
 
1369
- // ../strings/src/index.js
1369
+ // ../core/src/text/index.js
1370
1370
  var CONST_REGEXP_HTML_IDENTIFIER = /^[A-Za-z]+[\w\-\:\.]{0,30}$/;
1371
- function isStringHtmlIdentifier(str) {
1371
+ function isValidHtmlIdentifier(str) {
1372
1372
  return (
1373
1373
  /* str != null && */
1374
1374
  CONST_REGEXP_HTML_IDENTIFIER.test(str)
@@ -1408,7 +1408,7 @@ function createJsonPointer(refUri, baseUri, opts = new JsonPointerOptions()) {
1408
1408
  const [uri, fragment] = url.href.split("#");
1409
1409
  const [leftUri, search] = uri.split("?");
1410
1410
  if (!isStringWhiteSpace(fragment)) {
1411
- if (opts.anchorsAllowed == true && isStringHtmlIdentifier(fragment)) {
1411
+ if (opts.anchorsAllowed == true && isValidHtmlIdentifier(fragment)) {
1412
1412
  return opts.anchorsGlobal == true ? new JsonPointer(`#${fragment}`, search, `${leftUri}#`, fragment) : new JsonPointer(`${leftUri}#${fragment}`, search, `${leftUri}#`, fragment);
1413
1413
  } else if (fragment.startsWith("/")) {
1414
1414
  return new JsonPointer(`${leftUri}#${fragment}`, search, `${leftUri}#`, fragment);