@opra/common 0.23.1 → 0.23.2

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/browser.js CHANGED
@@ -104,7 +104,6 @@ function getStackFileName(position = 1) {
104
104
  __name(getStackFileName, "getStackFileName");
105
105
 
106
106
  // ../../build/common/esm/helpers/is-url-string.js
107
- import { URL } from "url";
108
107
  var URL_PATTERN = /^(https?:\/\/.)[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/i;
109
108
  function isUrlString(url) {
110
109
  return URL_PATTERN.test(url);
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isAbsoluteUrl = exports.isUrlString = void 0;
4
- const url_1 = require("url");
5
4
  const URL_PATTERN = /^(https?:\/\/.)[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/i;
6
5
  function isUrlString(url) {
7
6
  return URL_PATTERN.test(url);
@@ -9,6 +8,6 @@ function isUrlString(url) {
9
8
  exports.isUrlString = isUrlString;
10
9
  const isAbsoluteUrl = (urlString) => {
11
10
  return !urlString.includes('://') &&
12
- (new url_1.URL(urlString, 'http://tempuri.org/')).host !== 'tempuri.org';
11
+ (new URL(urlString, 'http://tempuri.org/')).host !== 'tempuri.org';
13
12
  };
14
13
  exports.isAbsoluteUrl = isAbsoluteUrl;
@@ -1,4 +1,3 @@
1
- import { URL } from 'url';
2
1
  const URL_PATTERN = /^(https?:\/\/.)[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/i;
3
2
  export function isUrlString(url) {
4
3
  return URL_PATTERN.test(url);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opra/common",
3
- "version": "0.23.1",
3
+ "version": "0.23.2",
4
4
  "description": "Opra common package",
5
5
  "author": "Panates",
6
6
  "license": "MIT",