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

eleventy-plugin-cloudcannon

Package Overview
Dependencies
Maintainers
0
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eleventy-plugin-cloudcannon - npm Package Compare versions

Comparing version 1.2.1-0 to 1.2.1-1

2

package.json
{
"name": "eleventy-plugin-cloudcannon",
"version": "1.2.1-0",
"version": "1.2.1-1",
"description": "Eleventy plugin to create CloudCannon editor details",

@@ -5,0 +5,0 @@ "main": ".eleventy.js",

@@ -8,2 +8,6 @@ function normalisePath(path) {

function removeLeadingAndTrailingSlashes(path) {
return path.replace(/^\/+|\/+$/g, '');
}
function stripTopPath(path, topPath) {

@@ -19,3 +23,3 @@ const normalisedTop = normalisePath(topPath);

function getSourcePath(inputPath, source) {
return stripTopPath(normalisePath(inputPath), source).replace(/^\/+/, '');
return stripTopPath(normalisePath(inputPath), removeLeadingAndTrailingSlashes(source)).replace(/^\/+/, '');
}

@@ -22,0 +26,0 @@

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