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

single-spa

Package Overview
Dependencies
Maintainers
2
Versions
139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

single-spa - npm Package Compare versions

Comparing version 2.1.2 to 2.1.3

32

lib/single-spa.js

@@ -251,10 +251,6 @@ 'use strict';

var anchorElement = document.createElement('a');
anchorElement.setAttribute('href', url);
var href = window.location.href;
// MS Edge does not put an `origin` property on anchor elements :(
var anchorOrigin = anchorElement.origin || anchorElement.protocol + "//" + anchorElement.hostname + (anchorElement.port ? ':' + anchorElement.port : '');
if (window.location.origin + window.location.pathname === anchorOrigin + anchorElement.pathname) {
window.location.hash = anchorElement.hash;
if (url.indexOf('#') > -1 && href.substring(0, href.indexOf('#')) === url.substring(0, url.indexOf('#'))) {
window.location.hash = url.substring(url.indexOf('#'));
} else {

@@ -531,13 +527,13 @@ window.history.pushState(null, null, url);

} else if (!errored) {
(function () {
var numWarnings = shouldError;
var numMillis = numWarnings * warningPeriod;
console.warn(description + ' did not resolve or reject within ' + numMillis + ' milliseconds');
if (numMillis + warningPeriod < timeoutConfig.millis) {
setTimeout(function () {
return maybeTimingOut(numWarnings + 1);
}, warningPeriod);
}
})();
}
(function () {
var numWarnings = shouldError;
var numMillis = numWarnings * warningPeriod;
console.warn(description + ' did not resolve or reject within ' + numMillis + ' milliseconds');
if (numMillis + warningPeriod < timeoutConfig.millis) {
setTimeout(function () {
return maybeTimingOut(numWarnings + 1);
}, warningPeriod);
}
})();
}
}

@@ -544,0 +540,0 @@ }

{
"name": "single-spa",
"version": "2.1.2",
"version": "2.1.3",
"description": "Multiple applications, one page",

@@ -5,0 +5,0 @@ "main": "lib/single-spa.js",

@@ -207,10 +207,6 @@ import { handleChildAppError } from './single-spa-child-app-error.js';

const anchorElement= document.createElement('a');
anchorElement.setAttribute('href', url);
const href = window.location.href;
// MS Edge does not put an `origin` property on anchor elements :(
const anchorOrigin = anchorElement.origin || anchorElement.protocol + "//" + anchorElement.hostname + (anchorElement.port ? ':' + anchorElement.port : '');
if (window.location.origin + window.location.pathname === anchorOrigin + anchorElement.pathname) {
window.location.hash = anchorElement.hash;
if (url.indexOf('#') > -1 && href.substring(0, href.indexOf('#')) === url.substring(0, url.indexOf('#'))) {
window.location.hash = url.substring(url.indexOf('#'));
} else {

@@ -217,0 +213,0 @@ window.history.pushState(null, null, url);

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