Skip to content

Commit

Permalink
Fix mapNativeEmojis by importing node-emoji, support sending toned re…
Browse files Browse the repository at this point in the history
…action (#3)

* Fix mapNativeEmojis by importing node-emoji

* Support sending toned reaction, remove emoji-list
  • Loading branch information
rnons authored Aug 15, 2021
1 parent 8ff1e28 commit f0da89a
Show file tree
Hide file tree
Showing 8 changed files with 2,010 additions and 8,700 deletions.
3 changes: 3 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
testMatch: ['**/?(*.)+(spec|test).js?(x)'],
}
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,30 @@
"scripts": {
"postinstall": "yarn tsc || true",
"build": "yarn tsc",
"lint": "eslint src --ext ts,tsx,js,jsx --cache"
"lint": "eslint src --ext ts,tsx,js,jsx --cache",
"test": "jest"
},
"husky": {
"hooks": {
"pre-commit": "true || yarn lint --fix"
}
},
"dependencies": {
"@textshq/platform-sdk": "link:../platform-sdk",
"@slack/logger": "^3.0.0",
"@slack/rtm-api": "^6.0.0",
"@slack/web-api": "^6.3.0",
"@textshq/platform-sdk": "link:../platform-sdk",
"bluebird": "^3.7.2",
"lodash": "^4.17.21",
"node-emoji": "^1.11.0",
"tough-cookie": "^4.0.0"
},
"devDependencies": {
"@textshq/eslint-config": "https://github.com/TextsHQ/eslint-config",
"@types/jest": "^27.0.1",
"eslint": "^7.32.0",
"husky": "^4.3.0",
"jest": "^27.0.6",
"typescript": "^4.3.5"
}
}
1 change: 0 additions & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export const EMOTE_REGEX = /:([+A-Za-z0-9_]+):/g
export const BOLD_REGEX = /\*[^\s]([+A-Za-z0-9_ ]+[^\s])\*/g
export const MENTION_REGEX = /<@([A-Za-z0-9_]+)>/g
export const SLACK_THREAD_REGEX = /<#([A-Za-z0-9_]+)\|([A-Za-z0-9_]+)>/g
Expand Down
Loading

0 comments on commit f0da89a

Please sign in to comment.