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.1.0 to 1.2.0

4

CHANGELOG.md
# Change Log
## v1.2.0 – 2020-06-26
* Parameter `ts` for the `Message` surface object is now supported.
## v1.1.0 – 2020-06-17

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

2

package.json
{
"name": "slack-block-builder",
"version": "1.1.0",
"version": "1.2.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": {

@@ -294,2 +294,4 @@ <p align="center">

[JSX-Slack](https://github.com/speee/jsx-slack) – Awesome way to create Slack Block Kit UIs using JSX.
## :fire: &nbsp; Acknowledgements

@@ -296,0 +298,0 @@

@@ -14,2 +14,3 @@ const { Surface } = require('./base');

this.as_user = params.asUser;
this.ts = params.ts;
this.thread_ts = params.threadTs;

@@ -31,2 +32,3 @@ this.replace_original = params.replaceOriginal;

this.props.text = params.text;
this.props.ts = params.ts;
this.props.threadTs = params.threadTs;

@@ -92,2 +94,15 @@ this.props.postAt = params.postAt;

/**
* Used to update a message. Sets the timestamp of the message to update.
*
* {@link https://api.slack.com/messaging/composing|View in Slack API Documentation}
*
* @param {timestamp} timestamp The timestamp of message to be replied to
* @return {this} The instance on which the method is called
*/
ts(timestamp) {
return this.set(timestamp, props.ts);
}
/**
* Sets the message to be replace the original message from which the interaction was received

@@ -94,0 +109,0 @@ *

@@ -55,2 +55,3 @@ module.exports = {

asUser: 'as_user',
ts: 'ts',
threadTs: 'thread_ts',

@@ -57,0 +58,0 @@ replaceOriginal: 'replace_original',

@@ -64,2 +64,3 @@ module.exports = {

inChannel: 'inChannel',
ts: 'ts',
};

@@ -59,2 +59,3 @@ const types = require('./type-validators');

asUser: types.isBool,
ts: types.isTimestamp,
threadTs: types.isTimestamp,

@@ -61,0 +62,0 @@ replaceOriginal: types.isBool,

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