From 6cf1a82f6444a960e61b5c1b690f2c661620931f Mon Sep 17 00:00:00 2001 From: Taylor Downs Date: Thu, 30 Sep 2021 17:07:52 +0000 Subject: [PATCH] add removeEmojis from common, bump common --- ast.json | 43 +++++++++++++++++++++++++++++++++++++++++++ lib/Adaptor.js | 18 ++++++++++++------ package-lock.json | 26 +++++++++++--------------- package.json | 2 +- src/Adaptor.js | 3 ++- 5 files changed, 69 insertions(+), 23 deletions(-) diff --git a/ast.json b/ast.json index 1c42d0f..35d3851 100644 --- a/ast.json +++ b/ast.json @@ -1555,6 +1555,49 @@ }, "valid": true }, + { + "name": "removeEmojis", + "params": [ + "text" + ], + "docs": { + "description": "Removes emojis from a string of text", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "example", + "description": "removeEmojis('Dove🕊️⭐ 29')" + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "param", + "description": "String that needs to be cleaned", + "type": { + "type": "NameExpression", + "name": "string" + }, + "name": "text" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "string" + } + } + ] + }, + "valid": true + }, { "name": "map", "params": [ diff --git a/lib/Adaptor.js b/lib/Adaptor.js index 98c9bf2..4c4c767 100644 --- a/lib/Adaptor.js +++ b/lib/Adaptor.js @@ -12,12 +12,6 @@ Object.defineProperty(exports, "alterState", { return _languageCommon.alterState; } }); -Object.defineProperty(exports, "fn", { - enumerable: true, - get: function () { - return _languageCommon.fn; - } -}); Object.defineProperty(exports, "arrayToString", { enumerable: true, get: function () { @@ -66,6 +60,12 @@ Object.defineProperty(exports, "fields", { return _languageCommon.fields; } }); +Object.defineProperty(exports, "fn", { + enumerable: true, + get: function () { + return _languageCommon.fn; + } +}); Object.defineProperty(exports, "http", { enumerable: true, get: function () { @@ -114,6 +114,12 @@ Object.defineProperty(exports, "referencePath", { return _languageCommon.referencePath; } }); +Object.defineProperty(exports, "removeEmojis", { + enumerable: true, + get: function () { + return _languageCommon.removeEmojis; + } +}); Object.defineProperty(exports, "source", { enumerable: true, get: function () { diff --git a/package-lock.json b/package-lock.json index a377efb..1b566e4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1174,37 +1174,33 @@ } }, "@openfn/language-common": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@openfn/language-common/-/language-common-1.4.1.tgz", - "integrity": "sha512-d1Lr3fqVdHRw+A5SZR1FXPgF2lb100Xiv/HFHsEZkRXheR58HxIh8YZT4j0mOFNCZUqw+1JK6LRHDb56JuyIrw==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@openfn/language-common/-/language-common-1.6.0.tgz", + "integrity": "sha512-igENgJETMfiOX/zlqWkuiDwAxOKduA86S/pl+2ff2HBcAvC/2wG3w50whoeTuMLx5/5hcfhZ8EsbG+U69on8XA==", "requires": { - "axios": "^0.21.1", + "axios": "^0.21.4", "jsonpath-plus": "^4.0.0", "lodash": "^4.17.19" }, "dependencies": { "axios": { - "version": "0.21.1", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.1.tgz", - "integrity": "sha512-dKQiRHxGD9PPRIUNIWvZhPTPpl1rf/OxTYKsqKUDjBwYylTvV7SjSHJb9ratfyzM6wCdLCOYLzs73qpg5c4iGA==", + "version": "0.21.4", + "bundled": true, "requires": { - "follow-redirects": "^1.10.0" + "follow-redirects": "^1.14.0" } }, "follow-redirects": { - "version": "1.13.1", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.13.1.tgz", - "integrity": "sha512-SSG5xmZh1mkPGyKzjZP8zLjltIfpW32Y5QpdNJyjcfGxK3qo3NDDkZOZSFiGn1A6SclQxY9GzEwAHQ3dmYRWpg==" + "version": "1.14.3", + "bundled": true }, "jsonpath-plus": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-4.0.0.tgz", - "integrity": "sha512-e0Jtg4KAzDJKKwzbLaUtinCn0RZseWBVRTRGihSpvFlM3wTR7ExSp+PTdeTsDrLNJUe7L7JYJe8mblHX5SCT6A==" + "bundled": true }, "lodash": { "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + "bundled": true } } }, diff --git a/package.json b/package.json index d49753c..a9ab54b 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "ast.json" ], "dependencies": { - "@openfn/language-common": "1.4.1", + "@openfn/language-common": "1.6.0", "axios": "^0.21.1", "jsforce": "^1.10.0", "JSONPath": "^0.10.0", diff --git a/src/Adaptor.js b/src/Adaptor.js index a841291..299089a 100644 --- a/src/Adaptor.js +++ b/src/Adaptor.js @@ -572,7 +572,6 @@ exports.axios = axios; export { alterState, - fn, arrayToString, beta, combine, @@ -581,6 +580,7 @@ export { each, field, fields, + fn, http, humanProper, index, @@ -589,6 +589,7 @@ export { map, merge, referencePath, + removeEmojis, source, sourceValue, toArray,