stfca 1.0.15 → 1.0.17

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/utils.js +16 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stfca",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
4
4
  "description": "Unofficial Facebook Chat API for Node.js with Auto-Update System - Enhanced by ST | Sheikh Tamim",
5
5
  "main": "index.js",
6
6
  "files": [
package/utils.js CHANGED
@@ -2809,6 +2809,19 @@ function getPaths(obj, parentPath = []) {
2809
2809
  return paths;
2810
2810
  }
2811
2811
 
2812
+ function getJazoest() {
2813
+ const time = Date.now().toString();
2814
+ let result = "";
2815
+ for (let i = 0; i < time.length; i++) {
2816
+ result += time.charCodeAt(i);
2817
+ }
2818
+ return result;
2819
+ }
2820
+
2821
+ function getEventTime() {
2822
+ return Date.now();
2823
+ }
2824
+
2812
2825
  function cleanHTML(text) {
2813
2826
  text = text.replace(/(<br>)|(<\/?i>)|(<\/?em>)|(<\/?b>)|(!?~)|(&amp;)|(&#039;)|(&lt;)|(&gt;)|(&quot;)/g, (match) => {
2814
2827
  switch (match) {
@@ -2884,5 +2897,7 @@ module.exports = {
2884
2897
  getAppState,
2885
2898
  getAdminTextMessageType,
2886
2899
  setProxy,
2887
- isDMThread
2900
+ isDMThread,
2901
+ getJazoest,
2902
+ getEventTime
2888
2903
  };