Socket
Socket
Sign inDemoInstall

@docusaurus/utils-common

Package Overview
Dependencies
Maintainers
4
Versions
1410
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@docusaurus/utils-common - npm Package Compare versions

Comparing version 3.4.0 to 3.5.0

9

lib/applyTrailingSlash.js

@@ -9,3 +9,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.removeTrailingSlash = exports.addLeadingSlash = exports.addTrailingSlash = void 0;
exports.addTrailingSlash = addTrailingSlash;
exports.default = applyTrailingSlash;
exports.addLeadingSlash = addLeadingSlash;
exports.removeTrailingSlash = removeTrailingSlash;
const stringUtils_1 = require("./stringUtils");

@@ -15,3 +18,2 @@ function addTrailingSlash(str) {

}
exports.addTrailingSlash = addTrailingSlash;
// Trailing slash handling depends in some site configuration options

@@ -43,3 +45,2 @@ function applyTrailingSlash(path, options) {

}
exports.default = applyTrailingSlash;
/** Appends a leading slash to `str`, if one doesn't exist. */

@@ -49,3 +50,2 @@ function addLeadingSlash(str) {

}
exports.addLeadingSlash = addLeadingSlash;
/** Removes the trailing slash from `str`. */

@@ -55,3 +55,2 @@ function removeTrailingSlash(str) {

}
exports.removeTrailingSlash = removeTrailingSlash;
//# sourceMappingURL=applyTrailingSlash.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getErrorCausalChain = void 0;
exports.getErrorCausalChain = getErrorCausalChain;
function getErrorCausalChain(error) {

@@ -10,3 +10,2 @@ if (error.cause) {

}
exports.getErrorCausalChain = getErrorCausalChain;
//# sourceMappingURL=errorUtils.js.map

@@ -8,7 +8,5 @@ "use strict";

*/
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getErrorCausalChain = exports.removePrefix = exports.addSuffix = exports.removeSuffix = exports.addPrefix = exports.removeTrailingSlash = exports.addLeadingSlash = exports.addTrailingSlash = exports.applyTrailingSlash = exports.blogPostContainerID = void 0;
const tslib_1 = require("tslib");
// __ prefix allows search crawlers (Algolia/DocSearch) to ignore anchors

@@ -18,3 +16,3 @@ // https://github.com/facebook/docusaurus/issues/8883#issuecomment-1516328368

var applyTrailingSlash_1 = require("./applyTrailingSlash");
Object.defineProperty(exports, "applyTrailingSlash", { enumerable: true, get: function () { return __importDefault(applyTrailingSlash_1).default; } });
Object.defineProperty(exports, "applyTrailingSlash", { enumerable: true, get: function () { return tslib_1.__importDefault(applyTrailingSlash_1).default; } });
Object.defineProperty(exports, "addTrailingSlash", { enumerable: true, get: function () { return applyTrailingSlash_1.addTrailingSlash; } });

@@ -21,0 +19,0 @@ Object.defineProperty(exports, "addLeadingSlash", { enumerable: true, get: function () { return applyTrailingSlash_1.addLeadingSlash; } });

@@ -9,3 +9,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.removePrefix = exports.addSuffix = exports.removeSuffix = exports.addPrefix = void 0;
exports.addPrefix = addPrefix;
exports.removeSuffix = removeSuffix;
exports.addSuffix = addSuffix;
exports.removePrefix = removePrefix;
/** Adds a given string prefix to `str`. */

@@ -15,3 +18,2 @@ function addPrefix(str, prefix) {

}
exports.addPrefix = addPrefix;
/** Removes a given string suffix from `str`. */

@@ -25,3 +27,2 @@ function removeSuffix(str, suffix) {

}
exports.removeSuffix = removeSuffix;
/** Adds a given string suffix to `str`. */

@@ -31,3 +32,2 @@ function addSuffix(str, suffix) {

}
exports.addSuffix = addSuffix;
/** Removes a given string prefix from `str`. */

@@ -37,3 +37,2 @@ function removePrefix(str, prefix) {

}
exports.removePrefix = removePrefix;
//# sourceMappingURL=stringUtils.js.map
{
"name": "@docusaurus/utils-common",
"version": "3.4.0",
"version": "3.5.0",
"description": "Common (Node/Browser) utility functions for Docusaurus packages.",

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

},
"gitHead": "49e9a2143274a8dd795659b417b470bc42abbd6e"
"gitHead": "cb5829f3c34b26d798b869e38ee25073488140bd"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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