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

@lrnwebcomponents/micro-frontend-registry

Package Overview
Dependencies
Maintainers
4
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lrnwebcomponents/micro-frontend-registry - npm Package Compare versions

Comparing version 7.0.15 to 7.0.16

11

lib/microServices.js

@@ -380,2 +380,13 @@ import { MicroFrontendRegistry } from "../micro-frontend-registry.js";

// views
MicroFrontendRegistry.add({
endpoint: "/api/apps/haxcms/views",
name: "@haxcms/views",
title: "Views, but for HAX",
description: "Views criteria for slicing and remixing HAX site data",
params: {
site: "location of the HAXcms site",
},
});
// termsInPage

@@ -382,0 +393,0 @@ MicroFrontendRegistry.add({

38

micro-frontend-registry.stories.js
import { html } from "lit-html";
import { withKnobs, text, boolean } from "@open-wc/demoing-storybook";
import { StorybookUtilities } from "@lrnwebcomponents/storybook-utilities/storybook-utilities.js";
import "./micro-frontend-registry.js";
import { MicroFrontendRegistry } from "./micro-frontend-registry.js";
import "./demo/mf-htmlmd-example.js";

@@ -10,3 +10,3 @@ import "./demo/docx-example.js";

export default {
title: "Developer|Micro-frontend: Core services",
title: "Microservices|Core services",
component: "micro-frontend-registry",

@@ -97,2 +97,36 @@ decorators: [withKnobs],

export const secureFeedback = () => {
return getRenderString(html`
<textarea id="data" cols="80" rows="20">Data to encrypt</textarea>
<div>
<p>
Anything you put in the above will be encrypted and you will be sent to
a URL which includes the encrypted message in the URL which can be sent
around securely. The messages don't go away as it's just hashed data. It
assumes HTML but works with text as well.
</p>
<button id="securefeedbackbtn">Encrypt data</button>
</div>
`);
};
setTimeout(() => {
if (document.querySelector("#securefeedbackbtn")) {
document
.querySelector("#securefeedbackbtn")
.addEventListener("click", async (e) => {
const response = await MicroFrontendRegistry.call("@core/crypto", {
op: "hash",
data: document.querySelector("#data").value,
});
if (response.status == 200 && response.data) {
window.open(
`https://secure-feedback.vercel.app/?message=${response.data}`,
"_blank"
);
}
});
}
}, 1000);
// via https://stackoverflow.com/questions/70657298/render-lit-lit-html-templateresult-as-string

@@ -99,0 +133,0 @@ const getRenderString = (data) => {

6

package.json

@@ -23,3 +23,3 @@ {

},
"version": "7.0.15",
"version": "7.0.16",
"description": "A singleton for registration and managing access to leverage microservices for web components",

@@ -48,3 +48,3 @@ "repository": {

"devDependencies": {
"@lrnwebcomponents/deduping-fix": "^7.0.4",
"@lrnwebcomponents/deduping-fix": "^7.0.16",
"@open-wc/testing": "3.2.0",

@@ -66,3 +66,3 @@ "@polymer/iron-component-page": "github:PolymerElements/iron-component-page",

],
"gitHead": "c7826d219bb3282c7d1f7c2cfd9fceb7e238298d"
"gitHead": "3f01a081c0e9953e959deffdbcba9a7dca1eeb65"
}
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