File tree Expand file tree Collapse file tree 4 files changed +26
-13
lines changed Expand file tree Collapse file tree 4 files changed +26
-13
lines changed Original file line number Diff line number Diff line change @@ -83,11 +83,13 @@ module.exports = function(grunt) {
83
83
'LICENSE' ,
84
84
'libs/underscore/underscore-min.js' ,
85
85
'libs/underscore/underscore-min.map' ,
86
- 'libs/cryptojslib/rollups/md5.js' ,
87
- 'libs/cryptojslib/components/lib-typedarrays-min.js' ,
88
- 'libs/cryptojslib/components/enc-base64-min.js' ,
86
+ 'libs/crypto-js/crypto-js.js' ,
87
+ 'libs/crypto-js/md5.js' ,
88
+ 'libs/crypto-js/lib-typedarrays.js' ,
89
+ 'libs/crypto-js/enc-base64.js' ,
89
90
'libs/atomic/dist/atomic.min.js' ,
90
- 'libs/q/q.js'
91
+ 'libs/q/q.js' ,
92
+ 'libs/base-64/base64.js'
91
93
]
92
94
} ]
93
95
}
Original file line number Diff line number Diff line change 294
294
state . blocks . push ( {
295
295
index : index ,
296
296
blockId : blockId ,
297
- blockIdBase64 : btoa ( blockId ) ,
297
+ blockIdBase64 : base64 . encode ( blockId ) ,
298
298
pointer : pointer ,
299
299
size : ( end - pointer ) ,
300
300
end : end ,
437
437
} ;
438
438
439
439
addLib ( 'underscore/underscore-min.js' ) ;
440
- addLib ( 'cryptojslib/rollups/md5.js' ) ;
441
- addLib ( 'cryptojslib/components/lib-typedarrays-min.js' ) ;
442
- addLib ( 'cryptojslib/components/enc-base64-min.js' ) ;
440
+ addLib ( 'crypto-js/crypto-js.js' ) ;
441
+ addLib ( 'crypto-js/md5.js' ) ;
442
+ addLib ( 'crypto-js/lib-typedarrays.js' ) ;
443
+ addLib ( 'crypto-js/enc-base64.js' ) ;
443
444
addLib ( 'atomic/dist/atomic.min.js' ) ;
444
445
addLib ( 'q/q.js' ) ;
446
+ addLib ( 'base-64/base64.js' ) ;
445
447
}
446
448
447
449
function notifyReady ( ) {
448
450
self . postMessage ( { type : 'ready' } ) ;
449
451
}
450
452
453
+ function doUpload ( ) {
454
+ try {
455
+ upload ( ) ;
456
+ } catch ( err ) {
457
+ $log . error ( err ) ;
458
+ }
459
+ }
460
+
451
461
self . onmessage = function ( e ) {
452
462
453
463
switch ( e . data . type ) {
465
475
notifyReady ( ) ;
466
476
break ;
467
477
case 'upload' :
468
- upload ( ) ;
478
+ doUpload ( ) ;
469
479
break ;
470
480
case 'cancel' :
471
481
state . cancelled = true ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " angular-azure-blob" ,
3
- "version" : " 0.0.6 " ,
3
+ "version" : " 0.0.7 " ,
4
4
"dependencies" : {
5
5
"angular" : " latest" ,
6
6
"underscore" : " latest" ,
7
- "cryptojslib " : " latest" ,
7
+ "crypto-js " : " latest" ,
8
8
"q" : " 1.0.1" ,
9
- "atomic" :
" [email protected] :sjdweb/atomic.git"
9
+ "atomic" :
" [email protected] :sjdweb/atomic.git" ,
10
+ "base-64" : " latest"
10
11
},
11
12
"devDependencies" : {
12
13
"angular-mocks" : " latest"
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " angular-azure-blob" ,
3
- "version" : " 0.0.6 " ,
3
+ "version" : " 0.0.7 " ,
4
4
"description" : " Angular Azure blob upload helper" ,
5
5
"scripts" : {
6
6
"test" : " echo \" Error: no test specified\" && exit 1"
You can’t perform that action at this time.
0 commit comments