Skip to content

Commit

Permalink
Updates for 0.3.4
Browse files Browse the repository at this point in the history
- Cleaned up and simplified crypto utils and consolidated symbols.
- `completeAuthorizationRequestIfPossible()` now returns a `Promise<void>` so clients
  can determine if the check for authorization is complete.
  • Loading branch information
tikurahul committed Apr 8, 2018
1 parent 166f8e2 commit ce2904e
Show file tree
Hide file tree
Showing 17 changed files with 58 additions and 82 deletions.
2 changes: 1 addition & 1 deletion built/authorization_request_handler.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export declare abstract class AuthorizationRequestHandler {
/**
* Completes the authorization request if necessary & when possible.
*/
completeAuthorizationRequestIfPossible(): void;
completeAuthorizationRequestIfPossible(): Promise<void>;
/**
* Sets the default Authorization Service notifier.
*/
Expand Down
4 changes: 2 additions & 2 deletions built/authorization_request_handler.js

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions built/crypto_utils.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
export declare function bufferToString(buffer: Uint8Array): string;
export interface RandomGenerator {
(sizeInBytes?: number): string;
}
export declare type RandomGenerator = (sizeInBytes?: number) => string;
export declare const cryptoGenerateRandom: RandomGenerator;
2 changes: 1 addition & 1 deletion built/crypto_utils.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions built/node_support/crypto_utils.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
import * as cryptoUtils from '../crypto_utils';
export interface RandomGenerator extends cryptoUtils.RandomGenerator {
}
import { RandomGenerator } from '../crypto_utils';
export declare const nodeCryptoGenerateRandom: RandomGenerator;
12 changes: 3 additions & 9 deletions built/node_support/crypto_utils.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion built/node_support/node_request_handler.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { RandomGenerator } from './crypto_utils';
import { RandomGenerator } from '../crypto_utils';
import { QueryStringUtils } from '../query_string_utils';
import { AuthorizationRequest } from '../authorization_request';
import { AuthorizationRequestHandler, AuthorizationRequestResponse } from '../authorization_request_handler';
Expand Down
Loading

0 comments on commit ce2904e

Please sign in to comment.