easyproctor 0.0.62 → 0.0.63
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/esm/index.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/unpkg/easyproctor.min.js +1 -1
- package/unpkg/easyproctor.min.js.map +0 -7
package/esm/index.js
CHANGED
|
@@ -49489,7 +49489,7 @@ async function uploadBackup(data, config2) {
|
|
|
49489
49489
|
const s3Client = new S3Client({
|
|
49490
49490
|
region: "us-east-1",
|
|
49491
49491
|
credentials: {
|
|
49492
|
-
accessKeyId:
|
|
49492
|
+
accessKeyId: "here",
|
|
49493
49493
|
secretAccessKey: config2.secretAccessKey
|
|
49494
49494
|
}
|
|
49495
49495
|
});
|
package/index.js
CHANGED
|
@@ -74250,7 +74250,7 @@ async function uploadBackup(data, config2) {
|
|
|
74250
74250
|
const s3Client = new import_client_s32.S3Client({
|
|
74251
74251
|
region: "us-east-1",
|
|
74252
74252
|
credentials: {
|
|
74253
|
-
accessKeyId:
|
|
74253
|
+
accessKeyId: "here",
|
|
74254
74254
|
secretAccessKey: config2.secretAccessKey
|
|
74255
74255
|
}
|
|
74256
74256
|
});
|
package/package.json
CHANGED
package/unpkg/easyproctor.min.js
CHANGED
|
@@ -63,7 +63,7 @@ Erro on Azure upload
|
|
|
63
63
|
`,dn+=` File size: ${e.size}
|
|
64
64
|
`,dn+=` File type: ${e.type}
|
|
65
65
|
`,cr.registerError(a,dn),KX(a),s}),dn+=`Blob: Step 5
|
|
66
|
-
`}catch(e){await ene(n,o).catch(async()=>{throw KX(a),e})}}async function ene(n,a){try{console.log("DENTRO DO CATCH");let{file:o,onProgress:e}=n,t={Bucket:"iarisprod",Key:o.name,Body:o},r=new UX({region:"us-east-1",credentials:{accessKeyId:
|
|
66
|
+
`}catch(e){await ene(n,o).catch(async()=>{throw KX(a),e})}}async function ene(n,a){try{console.log("DENTRO DO CATCH");let{file:o,onProgress:e}=n,t={Bucket:"iarisprod",Key:o.name,Body:o},r=new UX({region:"us-east-1",credentials:{accessKeyId:"here",secretAccessKey:a.secretAccessKey}});try{let i=!0,c=0;e&&e(Math.round(0)),VX=setInterval(()=>{i&&(e&&e(Math.round(c)),c++,c==99&&(c=0))},3e3);let s=await r.send(new wk(t)).then(()=>{i=!1,clearInterval(VX),e&&e(Math.round(100))}).catch(l=>{throw l})}catch(i){throw i}}catch(o){dn+=`
|
|
67
67
|
\u2022 Error on AWS upload
|
|
68
68
|
`,dn+=o;try{tne(n.file)}catch(e){throw e}throw o}}function tne(n){try{let a=URL.createObjectURL(n),o=document.createElement("a");document.body.appendChild(o),o.style.display="none",o.href=a,o.download=n.name,o.click(),window.URL.revokeObjectURL(a)}catch(a){throw dn+=`
|
|
69
69
|
\u2022 Error on machine download -> ${n.name}
|