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

slack-block-builder

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

slack-block-builder - npm Package Compare versions

Comparing version 1.4.0 to 1.5.0

4

CHANGELOG.md
# Change Log
## v1.5.0 – 2020-07-12
* Now all falsy values passed into appending methods are filtered before validation, not just `undefined`, making it easier to work with conditions.
## v1.4.0 – 2020-07-01

@@ -4,0 +8,0 @@

2

package.json
{
"name": "slack-block-builder",
"version": "1.4.0",
"version": "1.5.0",
"description": "Maintainable code for interactive Slack messages, modals and home tabs. A must-have for the Slack Block Kit framework.",

@@ -5,0 +5,0 @@ "author": {

@@ -34,3 +34,3 @@ const { ValidationHelper } = require('../helpers');

append(value, prop) {
const prunedValue = value.filter((item) => typeof item !== 'undefined');
const prunedValue = value.filter(Boolean);

@@ -41,4 +41,4 @@ if (prunedValue.length > 0) {

this.props[prop] = typeof this.props[prop] === 'undefined'
? value
: this.props[prop].concat(value);
? prunedValue
: this.props[prop].concat(prunedValue);
}

@@ -45,0 +45,0 @@

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