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

@saltcorn/markup

Package Overview
Dependencies
Maintainers
1
Versions
401
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@saltcorn/markup - npm Package Compare versions

Comparing version 0.2.1-alpha.0 to 0.2.1

41

layout_utils.js

@@ -169,2 +169,41 @@ const {

module.exports = { navbar, alert, logit, navbarSolidOnScroll, breadcrumbs };
const headersInHead = (headers) =>
headers
.filter((h) => h.css)
.map((h) => `<link href="${h.css}" rel="stylesheet">`)
.join("") +
headers
.filter((h) => h.style)
.map((h) => `<style>${h.style}</style>`)
.join("") +
headers
.filter((h) => h.headerTag)
.map((h) => h.headerTag)
.join("");
const headersInBody = (headers) =>
headers
.filter((h) => h.script)
.map(
(h) =>
`<script src="${h.script}" ${
h.integrity
? `integrity="${h.integrity}" crossorigin="anonymous"`
: ""
}></script>`
)
.join("") +
headers
.filter((h) => h.scriptBody)
.map((h) => `<script>${h.scriptBody}</script>`)
.join("");
module.exports = {
navbar,
alert,
logit,
navbarSolidOnScroll,
breadcrumbs,
headersInHead,
headersInBody,
};

4

package.json
{
"name": "@saltcorn/markup",
"version": "0.2.1-alpha.0",
"version": "0.2.1",
"description": "Markup for Saltcorn, open-source no-code platform",

@@ -27,3 +27,3 @@ "homepage": "https://saltcorn.com",

},
"gitHead": "0b9f7470e0c42789b3d6d579d3f49cf4e336003e"
"gitHead": "635c3b3918130b48a7f817b8e3a2635a931ea5b0"
}
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