New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

single-spa-vue

Package Overview
Dependencies
Maintainers
2
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

single-spa-vue - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

13

lib/single-spa-vue.js

@@ -69,3 +69,4 @@ (function (global, factory) {

mount: mount.bind(null, opts, mountedInstances),
unmount: unmount.bind(null, opts, mountedInstances)
unmount: unmount.bind(null, opts, mountedInstances),
update: update.bind(null, opts, mountedInstances)
};

@@ -96,2 +97,12 @@ }

function update(opts, mountedInstances, props) {
return new Promise(function (resolve) {
var data = _extends({}, opts.appOptions.data || {}, props);
for (var prop in data) {
mountedInstances.instance[prop] = data[prop];
}
resolve();
});
}
function unmount(opts, mountedInstances) {

@@ -98,0 +109,0 @@ return Promise.resolve().then(function () {

2

package.json
{
"name": "single-spa-vue",
"version": "1.1.0",
"version": "1.2.0",
"description": "a single-spa plugin for vue.js applications",

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

@@ -33,2 +33,3 @@ const defaultOpts = {

unmount: unmount.bind(null, opts, mountedInstances),
update: update.bind(null, opts, mountedInstances),
};

@@ -66,2 +67,15 @@ }

function update(opts, mountedInstances, props) {
return new Promise(resolve => {
const data = {
...(opts.appOptions.data || {}),
...props,
};
for (let prop in data) {
mountedInstances.instance[prop] = data[prop];
}
resolve();
})
}
function unmount(opts, mountedInstances) {

@@ -68,0 +82,0 @@ return Promise

Sorry, the diff of this file is not supported yet

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