@startinblox/core 0.19.0-beta.10 → 0.19.0-beta.11

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
@@ -10993,6 +10993,8 @@ class CustomGetter {
10993
10993
  return;
10994
10994
  try {
10995
10995
  let isUrl = new URL(path);
10996
+ if (!isUrl.protocol.startsWith("http"))
10997
+ throw new Error("Not a valid HTTP url");
10996
10998
  if (isUrl) {
10997
10999
  let value = this.resource[this.getExpandedPredicate(path)];
10998
11000
  return value ? value : void 0;