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

single-spa

Package Overview
Dependencies
Maintainers
1
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.0 to 2.1.1

7

docs/single-spa-api.md

@@ -55,2 +55,9 @@ # single-spa API

## ensureJQuerySupport
`ensureJQuerySupport(jQuery)`: Since jquery does some weird things with event listeners, single-spa
has to specifically monkey patch each version of jQuery that you're using. single-spa tries to do
this automatically as much as possible for looking for window.jQuery or window.$, but if you want
to give your version of jQuery to single-spa manually, call ensureJQuerySupport(jQuery). The
jQuery argument is actually optional and will default to window.jQuery.
## setBootstrapMaxTime

@@ -57,0 +64,0 @@ `setBootstrapMaxTime(millis, dieOnTimeout = false)` takes in a number of milliseconds and a boolean dieOnTimeout

3

lib/jquery-support.js

@@ -15,3 +15,4 @@ 'use strict';

function ensureJQuerySupport() {
var jQuery = window.jQuery;
var jQuery = arguments.length <= 0 || arguments[0] === undefined ? window.jQuery : arguments[0];
if (!jQuery) {

@@ -18,0 +19,0 @@ if (window.$ && window.$.fn && window.$.fn.jquery) {

@@ -6,3 +6,3 @@ 'use strict';

});
exports.routingEventsListeningTo = undefined;
exports.ensureJQuerySupport = exports.routingEventsListeningTo = undefined;

@@ -13,2 +13,10 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

var _jquerySupport = require('./jquery-support.js');
Object.defineProperty(exports, 'ensureJQuerySupport', {
enumerable: true,
get: function get() {
return _jquerySupport.ensureJQuerySupport;
}
});
exports.reset = reset;

@@ -29,4 +37,2 @@ exports.setLoader = setLoader;

var _jquerySupport = require('./jquery-support.js');
var window = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : self;

@@ -33,0 +39,0 @@

{
"name": "single-spa",
"version": "2.1.0",
"version": "2.1.1",
"description": "Multiple applications, one page",

@@ -11,3 +11,3 @@ "main": "lib/single-spa.js",

"test": "jasmine",
"build:canopy": "npm run build && rm -rf ../spalpatine/jspm_packages/npm/single-spa@2.1.0 && rsync -av . ../spalpatine/jspm_packages/npm/single-spa@2.1.0 --exclude node_modules --exclude .git --exclude --spec --exclude examples && cd ../spalpatine && npm run build-common-deps && cd ../single-spa"
"build:canopy": "npm run build && rm -rf ../spalpatine/jspm_packages/npm/single-spa@2.1.1 && rsync -av . ../spalpatine/jspm_packages/npm/single-spa@2.1.1 --exclude node_modules --exclude .git --exclude --spec --exclude examples && cd ../spalpatine && npm run build-common-deps && cd ../single-spa"
},

@@ -14,0 +14,0 @@ "repository": "https://github.com/CanopyTax/single-spa",

@@ -7,4 +7,3 @@ import { routingEventsListeningTo } from './single-spa.js';

export function ensureJQuerySupport() {
let jQuery = window.jQuery;
export function ensureJQuerySupport(jQuery = window.jQuery) {
if (!jQuery) {

@@ -11,0 +10,0 @@ if (window.$ && window.$.fn && window.$.fn.jquery) {

@@ -25,2 +25,4 @@ import { handleChildAppError } from './single-spa-child-app-error.js';

export { ensureJQuerySupport } from './jquery-support.js';
export function reset() {

@@ -27,0 +29,0 @@ isPaused = false;

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