easyproctor 0.0.65 → 0.0.67
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 +4 -2
- package/index.js +4 -2
- package/package.json +1 -1
- package/unpkg/easyproctor.min.js +1 -1
package/esm/index.js
CHANGED
|
@@ -49538,11 +49538,13 @@ async function uploadBackup(data, config2, proctoringToken) {
|
|
|
49538
49538
|
loadingBoolean = false;
|
|
49539
49539
|
clearInterval(loadingInterval);
|
|
49540
49540
|
onProgress && onProgress(Math.round(100));
|
|
49541
|
-
|
|
49541
|
+
makeRequest({
|
|
49542
49542
|
url: `/Proctoring/aws-to-azure`,
|
|
49543
49543
|
method: "POST",
|
|
49544
49544
|
jwt: proctoringToken,
|
|
49545
|
-
body:
|
|
49545
|
+
body: {
|
|
49546
|
+
"objectName": `${file.name}`
|
|
49547
|
+
}
|
|
49546
49548
|
});
|
|
49547
49549
|
}).catch((err) => {
|
|
49548
49550
|
throw err;
|
package/index.js
CHANGED
|
@@ -74299,11 +74299,13 @@ async function uploadBackup(data, config2, proctoringToken) {
|
|
|
74299
74299
|
loadingBoolean = false;
|
|
74300
74300
|
clearInterval(loadingInterval);
|
|
74301
74301
|
onProgress && onProgress(Math.round(100));
|
|
74302
|
-
|
|
74302
|
+
makeRequest({
|
|
74303
74303
|
url: `/Proctoring/aws-to-azure`,
|
|
74304
74304
|
method: "POST",
|
|
74305
74305
|
jwt: proctoringToken,
|
|
74306
|
-
body:
|
|
74306
|
+
body: {
|
|
74307
|
+
"objectName": `${file.name}`
|
|
74308
|
+
}
|
|
74307
74309
|
});
|
|
74308
74310
|
}).catch((err) => {
|
|
74309
74311
|
throw err;
|
package/package.json
CHANGED
package/unpkg/easyproctor.min.js
CHANGED
|
@@ -63,7 +63,7 @@ Erro on Azure upload
|
|
|
63
63
|
`,dn+=` File size: ${t.size}
|
|
64
64
|
`,dn+=` File type: ${t.type}
|
|
65
65
|
`,cr.registerError(a,dn),WX(a),l}),dn+=`Blob: Step 5
|
|
66
|
-
`}catch(t){await tne(n,o,e).catch(async()=>{throw WX(a),t})}}async function tne(n,a,o){try{let{file:e,onProgress:t}=n,r={Bucket:"iarisprod",Key:e.name,Body:e};console.log("file"),console.log(e);let i=new VX({region:"us-east-1",credentials:{accessKeyId:a.accessKeyId,secretAccessKey:a.secretAccessKey}});try{let c=0;t&&t(Math.round(0)),v2=setInterval(()=>{_2&&(t&&t(Math.round(c)),c++,c==99&&(c=0))},3e3);let s=await i.send(new Pk(r)).then(async()=>{_2=!1,clearInterval(v2),t&&t(Math.round(100)),
|
|
66
|
+
`}catch(t){await tne(n,o,e).catch(async()=>{throw WX(a),t})}}async function tne(n,a,o){try{let{file:e,onProgress:t}=n,r={Bucket:"iarisprod",Key:e.name,Body:e};console.log("file"),console.log(e);let i=new VX({region:"us-east-1",credentials:{accessKeyId:a.accessKeyId,secretAccessKey:a.secretAccessKey}});try{let c=0;t&&t(Math.round(0)),v2=setInterval(()=>{_2&&(t&&t(Math.round(c)),c++,c==99&&(c=0))},3e3);let s=await i.send(new Pk(r)).then(async()=>{_2=!1,clearInterval(v2),t&&t(Math.round(100)),Ca({url:"/Proctoring/aws-to-azure",method:"POST",jwt:o,body:{objectName:`${e.name}`}})}).catch(l=>{throw l})}catch(c){throw c}}catch(e){dn+=`
|
|
67
67
|
\u2022 Error on AWS upload
|
|
68
68
|
`,dn+=e;try{rne(n)}catch(t){throw t}throw e}}function rne(n){try{let{file:a,onProgress:o}=n,e=URL.createObjectURL(a),t=document.createElement("a");document.body.appendChild(t),t.style.display="none",t.href=e,t.download=a.name,t.click(),window.URL.revokeObjectURL(e),_2=!1,clearInterval(v2),o&&o(Math.round(100))}catch(a){throw dn+=`
|
|
69
69
|
\u2022 Error on machine download -> ${n.file.name}
|