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

@jsenv/url-meta

Package Overview
Dependencies
Maintainers
2
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jsenv/url-meta - npm Package Compare versions

Comparing version 5.1.1 to 5.2.0

13

dist/commonjs/main.js

@@ -194,5 +194,12 @@ 'use strict';

// pass because trailing slash matches remaining
return pass({
patternIndex: patternIndex + 1,
index: string.length
if (remainingString[0] === "/") {
return pass({
patternIndex: patternIndex + 1,
index: string.length
});
}
return fail({
patternIndex: patternIndex,
index: index
});

@@ -199,0 +206,0 @@ } // fast path trailing '**'

{
"name": "@jsenv/url-meta",
"version": "5.1.1",
"version": "5.2.0",
"description": "Associate data to urls using patterns.",

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

@@ -68,5 +68,12 @@ // https://git-scm.com/docs/gitignore

// pass because trailing slash matches remaining
return pass({
patternIndex: patternIndex + 1,
index: string.length,
if (remainingString[0] === "/") {
return pass({
patternIndex: patternIndex + 1,
index: string.length,
})
}
return fail({
patternIndex,
index,
})

@@ -73,0 +80,0 @@ }

Sorry, the diff of this file is not supported yet

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