File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed
Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 7070 "test:build" : " tsc" ,
7171 "test:mocha" : " mocha" ,
7272 "test" : " run-s test:*" ,
73+ "tsc" : " tsc --noEmit" ,
7374 "coverage" : " run-s coverage:clean test:build coverage:nyc:*" ,
7475 "coverage:clean" : " rimraf coverage" ,
7576 "coverage:nyc:test" : " nyc mocha" ,
Original file line number Diff line number Diff line change 11export function getCrypto < T = any > ( ) : T {
2- return global . DWA_BROWSER ? global . window . crypto : require ( "./crypto/node" ) . getCrypto ( ) ;
3- }
4-
5- export function generateRandomBytes ( ) {
6- return global . DWA_BROWSER ? getCrypto ( ) . getRandomValues ( new Uint8Array ( 1 ) ) : getCrypto ( ) . randomBytes ( 1 ) ;
2+ return global . DWA_BROWSER ? ( global . window . crypto as T ) : require ( "./crypto/node" ) . getCrypto ( ) ;
73}
Original file line number Diff line number Diff line change 11import type * as Core from "../types" ;
2- import { generateRandomBytes , getCrypto } from "../helpers/Crypto" ;
2+ import { getCrypto } from "../helpers/Crypto" ;
33import { isUuid , extractUuid , parsePagingCookie } from "../helpers/Regex" ;
44
55declare var GetGlobalContext : any ;
You can’t perform that action at this time.
0 commit comments