Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@availity/resolve-url

Package Overview
Dependencies
Maintainers
14
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@availity/resolve-url - npm Package Compare versions

Comparing version 1.1.8 to 1.1.10

16

CHANGELOG.md

@@ -6,2 +6,18 @@ # Change Log

## [1.1.10](https://github.com/Availity/sdk-js/compare/@availity/resolve-url@1.1.8...@availity/resolve-url@1.1.10) (2020-02-13)
**Note:** Version bump only for package @availity/resolve-url
## [1.1.9](https://github.com/Availity/sdk-js/compare/@availity/resolve-url@1.1.8...@availity/resolve-url@1.1.9) (2020-02-13)
**Note:** Version bump only for package @availity/resolve-url
## [1.1.8](https://github.com/Availity/sdk-js/compare/@availity/resolve-url@1.1.5...@availity/resolve-url@1.1.8) (2020-02-13)

@@ -8,0 +24,0 @@

34

lib/index.js

@@ -1,5 +0,29 @@

import resolveUrl from './resolve-url';
import isAbsoluteUrl from './is-absolute-url';
import { resolve as relativeToAbsolute } from './relative-to-absolute';
export default resolveUrl;
export { isAbsoluteUrl, relativeToAbsolute };
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "isAbsoluteUrl", {
enumerable: true,
get: function get() {
return _isAbsoluteUrl["default"];
}
});
Object.defineProperty(exports, "relativeToAbsolute", {
enumerable: true,
get: function get() {
return _relativeToAbsolute.resolve;
}
});
exports["default"] = void 0;
var _resolveUrl = _interopRequireDefault(require("./resolve-url"));
var _isAbsoluteUrl = _interopRequireDefault(require("./is-absolute-url"));
var _relativeToAbsolute = require("./relative-to-absolute");
var _default = _resolveUrl["default"];
exports["default"] = _default;

@@ -0,1 +1,8 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
// Borrowed from https://github.com/sindresorhus/is-absolute-url to make IE11 compatible

@@ -10,2 +17,3 @@ var isAbsoluteUrl = function isAbsoluteUrl(url) {

export default isAbsoluteUrl;
var _default = isAbsoluteUrl;
exports["default"] = _default;

@@ -0,1 +1,10 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.removeDotSegments = removeDotSegments;
exports.removeDotSegmentsOfPath = removeDotSegmentsOfPath;
exports.resolve = resolve;
// Borrowed from https://github.com/rubensworks/relative-to-absolute-iri.js but refactored to work with IE11.

@@ -13,3 +22,3 @@ function isCharacterAllowedAfterRelativePathSegment(character) {

export function removeDotSegments(path) {
function removeDotSegments(path) {
// Prepare a buffer with segments between each '/.

@@ -102,3 +111,4 @@ // Each segment represents an array of characters.

export function removeDotSegmentsOfPath(iri, colonPosition) {
function removeDotSegmentsOfPath(iri, colonPosition) {
// Determine where we should start looking for the first '/' that indicates the start of the path

@@ -136,3 +146,4 @@ var searchOffset = colonPosition + 1;

export function resolve(relativeIRI, baseIRI) {
function resolve(relativeIRI, baseIRI) {
baseIRI = baseIRI || '';

@@ -139,0 +150,0 @@ var baseFragmentPos = baseIRI.indexOf('#'); // Ignore any fragments in the base IRI

28

lib/resolve-url.js

@@ -1,4 +0,20 @@

import isAbsoluteUrl from './is-absolute-url';
import { resolve } from './relative-to-absolute';
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "isAbsoluteUrl", {
enumerable: true,
get: function get() {
return _isAbsoluteUrl["default"];
}
});
exports["default"] = void 0;
var _isAbsoluteUrl = _interopRequireDefault(require("./is-absolute-url"));
var _relativeToAbsolute = require("./relative-to-absolute");
var resolveUrl = function resolveUrl(_ref) {

@@ -9,3 +25,3 @@ var _ref$relative = _ref.relative,

if (isAbsoluteUrl(relative)) {
if ((0, _isAbsoluteUrl["default"])(relative)) {
return relative;

@@ -19,6 +35,6 @@ }

return resolve(relative, base);
return (0, _relativeToAbsolute.resolve)(relative, base);
};
export { isAbsoluteUrl };
export default resolveUrl;
var _default = resolveUrl;
exports["default"] = _default;
{
"name": "@availity/resolve-url",
"version": "1.1.8",
"version": "1.1.10",
"description": "Resolve absolute url from relative urls",

@@ -17,3 +17,3 @@ "main": "lib/index.js",

},
"gitHead": "88c0e7b48de05f599a97ad3547f8b96c63e2004e"
"gitHead": "4581108f28112d852510b7cbb2bce04f46733a7d"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc