File tree 4 files changed +19
-13
lines changed
4 files changed +19
-13
lines changed Original file line number Diff line number Diff line change 1
1
import { Injectable } from '@angular/core' ;
2
2
3
- import { sha256 } from './js-sha256' ;
3
+ import { factory } from './js-sha256' ;
4
+
5
+ const sha256 = factory ( ) ;
4
6
5
7
/**
6
8
* Abstraction for crypto algorithms
Original file line number Diff line number Diff line change 8
8
*/
9
9
/*jslint bitwise: true */
10
10
11
+
12
+ function factory ( ) {
13
+
11
14
12
15
var ERROR = 'input is invalid type' ;
13
16
var WINDOW = typeof window === 'object' ;
502
505
exports . sha224 = createMethod ( true ) ;
503
506
exports . sha256 . hmac = createHmacMethod ( ) ;
504
507
exports . sha224 . hmac = createHmacMethod ( true ) ;
505
-
506
- export { exports as sha256 } ;
508
+
509
+ return exports ;
510
+ }
511
+
512
+ export { factory } ;
Original file line number Diff line number Diff line change 1
- # This file is currently used by autoprefixer to adjust CSS to support the below specified browsers
2
- # For additional information regarding the format and rule options, please see:
3
- # https://github.com/browserslist/browserslist#queries
4
- # For IE 9-11 support, please uncomment the last line of the file and adjust as needed
5
- > 0.5%
6
- last 2 versions
1
+ last 1 Chrome version
2
+ last 1 Firefox version
3
+ last 2 Edge major versions
4
+ last 2 Safari major versions
5
+ last 2 iOS major versions
7
6
Firefox ESR
8
- not dead
9
- # IE 9-11
7
+ not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.
Original file line number Diff line number Diff line change 10
10
"experimentalDecorators" : true ,
11
11
"downlevelIteration" : true ,
12
12
"module" : " esnext" ,
13
- "target" : " es5 " ,
13
+ "target" : " es2017 " ,
14
14
"typeRoots" : [" node_modules/@types" ],
15
15
"lib" : [" es2017" , " dom" ],
16
16
"paths" : {
23
23
}
24
24
},
25
25
"angularCompilerOptions" : {
26
- "enableIvy" : false
26
+ "enableIvy" : true
27
27
}
28
28
}
You can’t perform that action at this time.
0 commit comments