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

@docusaurus/utils

Package Overview
Dependencies
Maintainers
4
Versions
1839
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@docusaurus/utils - npm Package Compare versions

Comparing version 2.0.0-alpha.48 to 2.0.0-alpha.49

4

lib/index.js

@@ -218,4 +218,4 @@ "use strict";

str = parts.shift() + (parts.length > 0 ? '?' : '') + parts.join('&');
// Dedupe forward slashes.
str = str.replace(/^\/+/, '/');
// Dedupe forward slashes in the entire path, avoiding protocol slashes.
str = str.replace(/([^:]\/)\/+/g, '$1');
return str;

@@ -222,0 +222,0 @@ }

{
"name": "@docusaurus/utils",
"version": "2.0.0-alpha.48",
"version": "2.0.0-alpha.49",
"description": "Node utility functions for Docusaurus packages",

@@ -23,3 +23,3 @@ "main": "./lib/index.js",

},
"gitHead": "38bb8c4ced52b5979c5e88b7e073dca09d29112a"
"gitHead": "409f169379379468c5039e4b7fb7ca83100ad6bb"
}

@@ -254,2 +254,6 @@ /**

{
input: ['/test/', '/', 'ro', 'doc1'],
output: '/test/ro/doc1',
},
{
input: ['', '/', 'ko', 'hello'],

@@ -256,0 +260,0 @@ output: '/ko/hello',

@@ -256,4 +256,4 @@ /**

// Dedupe forward slashes.
str = str.replace(/^\/+/, '/');
// Dedupe forward slashes in the entire path, avoiding protocol slashes.
str = str.replace(/([^:]\/)\/+/g, '$1');

@@ -260,0 +260,0 @@ return str;

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