fca-project-orion 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 Ivan Cotacte
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Ivan Cotacte
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fca-project-orion",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -25,67 +25,6 @@ var AntiText = "Your criminal activity was detected while attempting to send an
25
25
  var Location_Stack;
26
26
 
27
27
  module.exports = function (defaultFuncs, api, ctx) {
28
-
29
- let customfont = {
30
- a: "𝖺",
31
- b: "𝖻",
32
- c: "𝖼",
33
- d: "𝖽",
34
- e: "𝖾",
35
- f: "𝖿",
36
- g: "𝗀",
37
- h: "𝗁",
38
- i: "𝗂",
39
- j: "𝗃",
40
- k: "𝗄",
41
- l: "𝗅",
42
- m: "𝗆",
43
- n: "𝗇",
44
- o: "𝗈",
45
- p: "𝗉",
46
- q: "𝗊",
47
- r: "𝗋",
48
- s: "𝗌",
49
- t: "𝗍",
50
- u: "𝗎",
51
- v: "𝗏",
52
- w: "𝗐",
53
- x: "𝗑",
54
- y: "𝗒",
55
- z: "𝗓",
56
- A: "𝖠",
57
- B: "𝖡",
58
- C: "𝖢",
59
- D: "𝖣",
60
- E: "𝖤",
61
- F: "𝖥",
62
- G: "𝖦",
63
- H: "𝖧",
64
- I: "𝖨",
65
- J: "𝖩",
66
- K: "𝖪",
67
- L: "𝖫",
68
- M: "𝖬",
69
- N: "𝖭",
70
- O: "𝖮",
71
- P: "𝖯",
72
- Q: "𝖰",
73
- R: "𝖱",
74
- S: "𝖲",
75
- T: "𝖳",
76
- U: "𝖴",
77
- V: "𝖵",
78
- W: "𝖶",
79
- X: "𝖷",
80
- Y: "𝖸",
81
- Z: "𝖹",
82
- };
83
- function customfont1(inputString) {
84
- const replacedString = inputString.replace(/[A-Za-z]/g, (char) => {
85
- return customfont[char] || char;
86
- });
87
- return replacedString;
88
- }
89
28
  function uploadAttachment(attachments, callback) {
90
29
  var uploads = [];
91
30
 
@@ -407,7 +346,7 @@ module.exports = function (defaultFuncs, api, ctx) {
407
346
  is_spoof_warning: false,
408
347
  source: "source:chat:web",
409
348
  "source_tags[0]": "source:chat",
410
- body: msg.body ? customfont1(msg.body.toString()) : "",
349
+ body: msg.body ? msg.body.toString().replace("\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f\ufe0f",' ') : "",
411
350
  html_body: false,
412
351
  ui_push_phase: "V3",
413
352
  status: "0",
@@ -437,4 +376,4 @@ module.exports = function (defaultFuncs, api, ctx) {
437
376
 
438
377
  return returnPromise;
439
378
  };
440
- };
379
+ };