Compare commits
	
		
			1 Commits
		
	
	
		
			gmail-inte
			...
			decode-htm
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | bb945e1bb8 | 
| @@ -46,6 +46,7 @@ | ||||
|     "graphql-shield": "^7.5.0", | ||||
|     "graphql-tools": "^8.2.0", | ||||
|     "handlebars": "^4.7.7", | ||||
|     "he": "^1.2.0", | ||||
|     "http-errors": "~1.6.3", | ||||
|     "http-proxy-agent": "^7.0.0", | ||||
|     "https-proxy-agent": "^7.0.1", | ||||
|   | ||||
| @@ -2,6 +2,7 @@ import defineAction from '../../../../helpers/define-action.js'; | ||||
|  | ||||
| import base64ToString from './transformers/base64-to-string.js'; | ||||
| import capitalize from './transformers/capitalize.js'; | ||||
| import decodeHtmlEntities from './transformers/decode-html-entities.js'; | ||||
| import extractEmailAddress from './transformers/extract-email-address.js'; | ||||
| import extractNumber from './transformers/extract-number.js'; | ||||
| import htmlToMarkdown from './transformers/html-to-markdown.js'; | ||||
| @@ -16,6 +17,7 @@ import useDefaultValue from './transformers/use-default-value.js'; | ||||
| const transformers = { | ||||
|   base64ToString, | ||||
|   capitalize, | ||||
|   decodeHtmlEntities, | ||||
|   extractEmailAddress, | ||||
|   extractNumber, | ||||
|   htmlToMarkdown, | ||||
| @@ -43,6 +45,7 @@ export default defineAction({ | ||||
|       options: [ | ||||
|         { label: 'Base64 to String', value: 'base64ToString' }, | ||||
|         { label: 'Capitalize', value: 'capitalize' }, | ||||
|         { label: 'Decode HTML Entities', value: 'decodeHtmlEntities' }, | ||||
|         { label: 'Convert HTML to Markdown', value: 'htmlToMarkdown' }, | ||||
|         { label: 'Convert Markdown to HTML', value: 'markdownToHtml' }, | ||||
|         { label: 'Extract Email Address', value: 'extractEmailAddress' }, | ||||
|   | ||||
| @@ -0,0 +1,8 @@ | ||||
| import he from 'he'; | ||||
|  | ||||
| const decodeHtmlEntities = ($) => { | ||||
|   const input = $.step.parameters.input; | ||||
|   return he.decode(input); | ||||
| }; | ||||
|  | ||||
| export default decodeHtmlEntities; | ||||
| @@ -1,5 +1,6 @@ | ||||
| import base64ToString from './text/base64-to-string.js'; | ||||
| import capitalize from './text/capitalize.js'; | ||||
| import decodeHtmlEntities from './text/decode-html-entities.js'; | ||||
| import extractEmailAddress from './text/extract-email-address.js'; | ||||
| import extractNumber from './text/extract-number.js'; | ||||
| import htmlToMarkdown from './text/html-to-markdown.js'; | ||||
| @@ -19,6 +20,7 @@ import formatDateTime from './date-time/format-date-time.js'; | ||||
| const options = { | ||||
|   base64ToString, | ||||
|   capitalize, | ||||
|   decodeHtmlEntities, | ||||
|   extractEmailAddress, | ||||
|   extractNumber, | ||||
|   htmlToMarkdown, | ||||
|   | ||||
| @@ -0,0 +1,12 @@ | ||||
| const decodeHtmlEntities = [ | ||||
|   { | ||||
|     label: 'Input', | ||||
|     key: 'input', | ||||
|     type: 'string', | ||||
|     required: true, | ||||
|     description: 'Text that will be decoded.', | ||||
|     variables: true, | ||||
|   }, | ||||
| ]; | ||||
|  | ||||
| export default decodeHtmlEntities; | ||||
| @@ -8973,11 +8973,16 @@ has@^1.0.3: | ||||
|   dependencies: | ||||
|     function-bind "^1.1.1" | ||||
|  | ||||
| he@1.2.0, he@^1.2.0: | ||||
| he@1.2.0: | ||||
|   version "1.2.0" | ||||
|   resolved "https://registry.npmjs.org/he/-/he-1.2.0.tgz" | ||||
|   integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw== | ||||
|  | ||||
| he@^1.2.0: | ||||
|   version "1.2.0" | ||||
|   resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f" | ||||
|   integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw== | ||||
|  | ||||
| hexoid@^1.0.0: | ||||
|   version "1.0.0" | ||||
|   resolved "https://registry.yarnpkg.com/hexoid/-/hexoid-1.0.0.tgz#ad10c6573fb907de23d9ec63a711267d9dc9bc18" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user