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

piral-blazor

Package Overview
Dependencies
Maintainers
1
Versions
805
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

piral-blazor - npm Package Compare versions

Comparing version 1.3.0-beta.6062 to 1.3.0-beta.6065

10

esm/interop.js

@@ -111,3 +111,3 @@ import { __rest } from "tslib";

}
function sanatize(props) {
function sanitize(props) {
// children is a complex thing and will (in general) not be serializable

@@ -128,6 +128,6 @@ // hence we need to make the JSObjectReference

export function createElement(moduleName, props) {
return window.DotNet.invokeMethodAsync(coreLib, 'CreateElement', moduleName, sanatize(props));
return window.DotNet.invokeMethodAsync(coreLib, 'CreateElement', moduleName, sanitize(props));
}
export function updateElement(referenceId, props) {
return window.DotNet.invokeMethodAsync(coreLib, 'UpdateElement', referenceId, sanatize(props));
return window.DotNet.invokeMethodAsync(coreLib, 'UpdateElement', referenceId, sanitize(props));
}

@@ -138,6 +138,6 @@ export function destroyElement(referenceId) {

export function activate(moduleName, props) {
return window.DotNet.invokeMethodAsync(coreLib, 'Activate', moduleName, sanatize(props));
return window.DotNet.invokeMethodAsync(coreLib, 'Activate', moduleName, sanitize(props));
}
export function reactivate(moduleName, referenceId, props) {
return window.DotNet.invokeMethodAsync(coreLib, 'Reactivate', moduleName, referenceId, sanatize(props)).catch(() => {
return window.DotNet.invokeMethodAsync(coreLib, 'Reactivate', moduleName, referenceId, sanitize(props)).catch(() => {
// Apparently an older version of Piral.Blazor, which does not support this

@@ -144,0 +144,0 @@ // discard this error silently (in the future we may print warnings here)

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

}
function sanatize(props) {
function sanitize(props) {
// children is a complex thing and will (in general) not be serializable

@@ -133,7 +133,7 @@ // hence we need to make the JSObjectReference

function createElement(moduleName, props) {
return window.DotNet.invokeMethodAsync(coreLib, 'CreateElement', moduleName, sanatize(props));
return window.DotNet.invokeMethodAsync(coreLib, 'CreateElement', moduleName, sanitize(props));
}
exports.createElement = createElement;
function updateElement(referenceId, props) {
return window.DotNet.invokeMethodAsync(coreLib, 'UpdateElement', referenceId, sanatize(props));
return window.DotNet.invokeMethodAsync(coreLib, 'UpdateElement', referenceId, sanitize(props));
}

@@ -146,7 +146,7 @@ exports.updateElement = updateElement;

function activate(moduleName, props) {
return window.DotNet.invokeMethodAsync(coreLib, 'Activate', moduleName, sanatize(props));
return window.DotNet.invokeMethodAsync(coreLib, 'Activate', moduleName, sanitize(props));
}
exports.activate = activate;
function reactivate(moduleName, referenceId, props) {
return window.DotNet.invokeMethodAsync(coreLib, 'Reactivate', moduleName, referenceId, sanatize(props)).catch(() => {
return window.DotNet.invokeMethodAsync(coreLib, 'Reactivate', moduleName, referenceId, sanitize(props)).catch(() => {
// Apparently an older version of Piral.Blazor, which does not support this

@@ -153,0 +153,0 @@ // discard this error silently (in the future we may print warnings here)

{
"name": "piral-blazor",
"version": "1.3.0-beta.6062",
"version": "1.3.0-beta.6065",
"description": "Plugin for integrating Blazor components in Piral.",

@@ -70,5 +70,5 @@ "keywords": [

"devDependencies": {
"piral-core": "1.3.0-beta.6062"
"piral-core": "1.3.0-beta.6065"
},
"gitHead": "fd85d207ac66537155c352389af84117afbbae10"
"gitHead": "ea6dd40ac290211f17e7b615e02714bceff2a02b"
}

@@ -141,3 +141,3 @@ import { PiletApi } from 'piral-core';

function sanatize(props: any) {
function sanitize(props: any) {
// children is a complex thing and will (in general) not be serializable

@@ -165,7 +165,7 @@ // hence we need to make the JSObjectReference

export function createElement(moduleName: string, props: any): Promise<string> {
return window.DotNet.invokeMethodAsync(coreLib, 'CreateElement', moduleName, sanatize(props));
return window.DotNet.invokeMethodAsync(coreLib, 'CreateElement', moduleName, sanitize(props));
}
export function updateElement(referenceId: string, props: any): Promise<string> {
return window.DotNet.invokeMethodAsync(coreLib, 'UpdateElement', referenceId, sanatize(props));
return window.DotNet.invokeMethodAsync(coreLib, 'UpdateElement', referenceId, sanitize(props));
}

@@ -178,7 +178,7 @@

export function activate(moduleName: string, props: any): Promise<string> {
return window.DotNet.invokeMethodAsync(coreLib, 'Activate', moduleName, sanatize(props));
return window.DotNet.invokeMethodAsync(coreLib, 'Activate', moduleName, sanitize(props));
}
export function reactivate(moduleName: string, referenceId: string, props: any): Promise<void> {
return window.DotNet.invokeMethodAsync(coreLib, 'Reactivate', moduleName, referenceId, sanatize(props)).catch(() => {
return window.DotNet.invokeMethodAsync(coreLib, 'Reactivate', moduleName, referenceId, sanitize(props)).catch(() => {
// Apparently an older version of Piral.Blazor, which does not support this

@@ -185,0 +185,0 @@ // discard this error silently (in the future we may print warnings here)

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