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

simple-boot-front

Package Overview
Dependencies
Maintainers
1
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-boot-front - npm Package Compare versions

Comparing version 1.0.106 to 1.0.107

2

package.json
{
"name": "simple-boot-front",
"version": "1.0.106",
"version": "1.0.107",
"main": "SimpleApplication.js",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -165,3 +165,3 @@ "use strict";

var component = (0, Component_1.getComponent)(targetObj);
var styles = RawSet_1.RawSet.styleTransformLocal((_a = component === null || component === void 0 ? void 0 : component.styles) !== null && _a !== void 0 ? _a : [], id);
var styles = RawSet_1.RawSet.generateStyleTransform((_a = component === null || component === void 0 ? void 0 : component.styles) !== null && _a !== void 0 ? _a : [], id);
var template = ((_b = component === null || component === void 0 ? void 0 : component.template) !== null && _b !== void 0 ? _b : '');

@@ -207,9 +207,10 @@ return styles + template;

SimpleBootFront.prototype.writeRootRouter = function () {
var _a, _b, _c;
var routerAtomic = new SimAtomic_1.SimAtomic(this.rootRouter, this.getSimstanceManager());
var target = this.option.window.document.querySelector(this.option.selector);
if (target && routerAtomic.value) {
var component = routerAtomic.getConfig(Component_1.ComponentMetadataKey);
var styles = ((_b = (_a = component === null || component === void 0 ? void 0 : component.styles) === null || _a === void 0 ? void 0 : _a.map(function (it) { return "<style>".concat(it, "</style>"); })) !== null && _b !== void 0 ? _b : []).join(' ');
target.innerHTML = "".concat(styles, " ").concat((_c = component === null || component === void 0 ? void 0 : component.template) !== null && _c !== void 0 ? _c : '');
var id = 'root-router';
var startEndPoint = RawSet_1.RawSet.createStartEndPoint(id, RawSet_1.RawSetType.TARGET_ELEMENT, this.domRenderConfig);
target.appendChild(startEndPoint.start);
target.insertAdjacentHTML('beforeend', this.getComponentInnerHtml(this.rootRouter, id));
target.appendChild(startEndPoint.end);
}

@@ -216,0 +217,0 @@ return routerAtomic;

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