Skip to content

Commit

Permalink
fix return and update build
Browse files Browse the repository at this point in the history
  • Loading branch information
mlabieniec committed Dec 27, 2017
1 parent c84a722 commit 867428b
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 25 deletions.
2 changes: 1 addition & 1 deletion packages/aws-amplify/dist/aws-amplify.js
Original file line number Diff line number Diff line change
Expand Up @@ -36117,7 +36117,7 @@ var Logger_1 = __webpack_require__(13);
var logger = new Logger_1.ConsoleLogger('ClientDevice_Browser');
function clientInfo() {
if (typeof window === 'undefined') {
return;
return {};
}
return browserClientInfo();
}
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-amplify/dist/aws-amplify.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/aws-amplify/dist/aws-amplify.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/aws-amplify/dist/aws-amplify.min.js.map

Large diffs are not rendered by default.

10 changes: 1 addition & 9 deletions packages/aws-amplify/lib/Common/ClientDevice/browser.d.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
export declare function clientInfo(): {} | {
'platform': string;
'make': string;
'model': string;
'version': string;
'appVersion': string;
'language': string;
'timezone': string;
};
export declare function clientInfo(): {};
export declare function dimension(): {
width: number;
height: number;
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-amplify/lib/Common/ClientDevice/browser.js

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

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

10 changes: 1 addition & 9 deletions packages/aws-amplify/lib/Common/ClientDevice/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
export default class ClientDevice {
static clientInfo(): {} | {
'platform': string;
'make': string;
'model': string;
'version': string;
'appVersion': string;
'language': string;
'timezone': string;
};
static clientInfo(): {};
static dimension(): {
width: number;
height: number;
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-amplify/src/Common/ClientDevice/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { ConsoleLogger as Logger } from '../Logger';
const logger = new Logger('ClientDevice_Browser');

export function clientInfo() {
if (typeof window === 'undefined') { return; }
if (typeof window === 'undefined') { return {}; }

return browserClientInfo();
}
Expand Down

0 comments on commit 867428b

Please sign in to comment.