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

vanilla-ui-router

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vanilla-ui-router - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

5

core/templates.js
import {loadTemplate} from './dataProvider';
export const renderTemplates = (routeConfiguration, domEntryPoint) => {
export const renderTemplates = (routeConfiguration, domEntryPoint, successCallback) => {
if (!routeConfiguration) {

@@ -10,2 +10,3 @@ return;

domEntryPoint.innerHTML = routeConfiguration.templateString;
successCallback();
}

@@ -16,2 +17,3 @@

domEntryPoint.innerHTML = templateString;
successCallback();
});

@@ -23,3 +25,4 @@ }

domEntryPoint.innerHTML = templateScript.text;
successCallback();
}
};

9

index.js

@@ -69,7 +69,8 @@ import {

renderTemplates(routeHandler, domEntryPoint);
renderTemplates(routeHandler, domEntryPoint, () => {
if (typeof routeHandler.routeHandler === 'function') {
routeHandler.routeHandler(domEntryPoint, routeParams);
}
});
if (typeof routeHandler.routeHandler === 'function') {
routeHandler.routeHandler(domEntryPoint, routeParams);
}
}

@@ -76,0 +77,0 @@ };

{
"name": "vanilla-ui-router",
"version": "1.1.1",
"version": "1.1.2",
"description": "Simple vanilla JavaScript router",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/micromata/vanilla-ui-router",

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