New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@contentpilot/read-more

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contentpilot/read-more - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

8

index.js

@@ -5,3 +5,3 @@ /**

*
* @version 1.0.0
* @version 1.0.1
*

@@ -69,3 +69,3 @@ * @package Read More

var $showMoreBtn = $(this).find('button.read-more');
var $showMoreBtn = $(this).parent().find('button.read-more');
var $showLessBtn = $('<button type="button" class="read-more '+settings.lessCSS+'">'+settings.lessLabel+'</button>');

@@ -78,3 +78,3 @@

$showLessBtn.appendTo($(this).find('.read-more-content').last());
$showLessBtn.appendTo($(this).find('.read-more-content').last());

@@ -85,3 +85,3 @@ $showMoreBtn.on('click', function(e) {

$showMoreBtn.hide();
$('.read-more-content').fadeIn('slow');
$showMoreBtn.parent().find('.read-more-content').fadeIn('slow');
});

@@ -88,0 +88,0 @@ }

{
"name": "@contentpilot/read-more",
"version": "1.0.0",
"version": "1.0.1",
"description": "Find and convet the WordPress <!--more--> read more tag to toggle all content below",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -15,2 +15,10 @@ # Content Pilot Read More

`$('.entry-content').cpReadMore();`
`$('.entry-content').cpReadMore();`
# Changelog
= 1.0.1 =
* Add nesting to find just the parent button to target individual button
= 1.0.0 =
* Initial release
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