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

gitbook-plugin-lightbox

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitbook-plugin-lightbox - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

12

dist/index.js
"use strict";
var _jquery = _interopRequireDefault(require("jquery"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var randomstring = require("randomstring");

@@ -29,8 +25,8 @@

page: function page(_page) {
var content = (0, _jquery.default)(_page.content);
content.find('img').each(function (index, img) {
var target = (0, _jquery.default)(img);
var $ = cheerio.load(_page.content);
$('img').each(function (index, img) {
var target = $(img);
target.replaceWith(generateLightBoxHTML(target.attr('src'), target.attr('alt')));
});
_page.content = content.html();
_page.content = $.html();
return _page;

@@ -37,0 +33,0 @@ }

{
"name": "gitbook-plugin-lightbox",
"version": "1.0.5",
"version": "1.0.6",
"description": " A gitbook plugin to show image by lightbox.",

@@ -19,4 +19,3 @@ "main": "dist/index.js",

"dependencies": {
"jquery": "^3.3.1",
"lightbox2": "~2.10.0",
"cheerio": "^1.0.0-rc.2",
"randomstring": "~1.1.5"

@@ -34,3 +33,5 @@ },

"eslint-plugin-promise": "^4.0.1",
"eslint-plugin-standard": "^4.0.0"
"eslint-plugin-standard": "^4.0.0",
"jquery": "^3.3.1",
"lightbox2": "~2.10.0"
},

@@ -37,0 +38,0 @@ "scripts": {

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