You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@salesforcedevs/sfdocs-image-transformer

Package Overview
Dependencies
Maintainers
0
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@salesforcedevs/sfdocs-image-transformer - npm Package Compare versions

Comparing version

to
1.0.5-fix-alpha

4

dist/image-cdn-mapper.d.ts

@@ -8,2 +8,6 @@ import { VFile } from 'vfile';

};
/** Function to check if the provided imagePath is a local path or not
* If the URL start with https:// or www. or /, then this function returns
* false (meaning, these path are treated as external URL's)
*/
export declare function isInternalPath(imagePath: string): boolean;

@@ -10,0 +14,0 @@ /**

7

dist/image-cdn-mapper.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.updateImagePath = exports.isInternalPath = void 0;
// Function to check if the provided imagePath is a local path or not
/** Function to check if the provided imagePath is a local path or not
* If the URL start with https:// or www. or /, then this function returns
* false (meaning, these path are treated as external URL's)
*/
function isInternalPath(imagePath) {
return imagePath && !(imagePath.match(/^(https?:\/\/|www\.).*/));
return imagePath && !(imagePath.match(/^(https?:\/\/|www\.|\/).*/));
}

@@ -8,0 +11,0 @@ exports.isInternalPath = isInternalPath;

{
"version": "1.0.5-alpha",
"version": "1.0.5-fix-alpha",
"name": "@salesforcedevs/sfdocs-image-transformer",

@@ -4,0 +4,0 @@ "description": "Salesforce Docs markdown plugin for image transormation",

@@ -11,5 +11,8 @@ import { VFile } from 'vfile';

// Function to check if the provided imagePath is a local path or not
/** Function to check if the provided imagePath is a local path or not
* If the URL start with https:// or www. or /, then this function returns
* false (meaning, these path are treated as external URL's)
*/
export function isInternalPath(imagePath: string): boolean {
return imagePath && !(imagePath.match(/^(https?:\/\/|www\.).*/));
return imagePath && !(imagePath.match(/^(https?:\/\/|www\.|\/).*/));
}

@@ -16,0 +19,0 @@

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