Skip to content

Commit 1fca47d

Browse files
committed
prettier
1 parent 7e9d37c commit 1fca47d

File tree

19 files changed

+128
-93
lines changed

19 files changed

+128
-93
lines changed

packages/client/src/transport-interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export interface TransportInterface {
99
loginWithService(
1010
service: string,
1111
authenticateParams: {
12-
[key: string]: string | object
12+
[key: string]: string | object;
1313
}
1414
): Promise<LoginReturnType>;
1515
logout(accessToken: string): Promise<void>;

packages/common/__tests__/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ import { AccountsError } from '../src';
33
describe('common', () => {
44
it('should have named export AccountsError', () => {
55
expect(typeof AccountsError).toBe('function');
6-
})
7-
})
6+
});
7+
});

packages/oauth-instagram/__tests__/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ import AccountsOAuthInstagram from '../src';
33
describe('AccountsOAuthInstagram', () => {
44
it('should have default export AccountsOAuthInstagram', () => {
55
expect(typeof AccountsOAuthInstagram).toBe('function');
6-
})
7-
})
6+
});
7+
});

packages/oauth-instagram/src/accounts-oauth-instagram.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ import * as rp from 'request-promise';
22

33
export class AccountsOAuthInstagram {
44
public async authenticate(params) {
5-
let data = await rp(`https://api.instagram.com/v1/users/self/?access_token=${params.access_token}`);
5+
let data = await rp(
6+
`https://api.instagram.com/v1/users/self/?access_token=${
7+
params.access_token
8+
}`
9+
);
610
data = JSON.parse(data).data;
711
return {
812
id: data.id,

packages/oauth-instagram/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
import { AccountsOAuthInstagram } from './accounts-oauth-instagram';
2-
export default AccountsOAuthInstagram;
2+
export default AccountsOAuthInstagram;

packages/oauth-twitter/__tests__/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ import AccountsOAuthTwitter from '../src';
33
describe('AccountsOAuthTwitter', () => {
44
it('should have default export AccountsOAuthTwitter', () => {
55
expect(typeof AccountsOAuthTwitter).toBe('function');
6-
})
7-
})
6+
});
7+
});

packages/oauth-twitter/src/accounts-oauth-twitter.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class AccountsOAuthTwitter {
1818
this.options.secret,
1919
'1.0A',
2020
null,
21-
'HMAC-SHA1',
21+
'HMAC-SHA1'
2222
);
2323
}
2424

@@ -43,9 +43,8 @@ export class AccountsOAuthTwitter {
4343
};
4444
resolve(user);
4545
}
46-
},
46+
}
4747
);
4848
});
49-
5049
}
5150
}

packages/oauth-twitter/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import { AccountsOAuthTwitter } from './accounts-oauth-twitter';
22

33
export { AccountsOauthTwitterOptions } from './accounts-oauth-twitter';
4-
export default AccountsOAuthTwitter;
4+
export default AccountsOAuthTwitter;

packages/oauth/__tests__/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ import AccountsOauth from '../src';
33
describe('AccountsOauth', () => {
44
it('should have default export AccountsOauth', () => {
55
expect(typeof AccountsOauth).toBe('function');
6-
})
7-
})
6+
});
7+
});

packages/oauth/src/accounts-oauth.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ export interface OauthUser {
1010

1111
export interface OauthOptions {
1212
[provider: string]: {
13-
authenticate: (params: any) => Promise<OauthUser>
14-
}
13+
authenticate: (params: any) => Promise<OauthUser>;
14+
};
1515
}
1616

1717
export class AccountsOauth implements AuthService {
@@ -23,7 +23,7 @@ export class AccountsOauth implements AuthService {
2323
constructor(options) {
2424
this.options = options;
2525
}
26-
26+
2727
public setStore(store: DBInterface) {
2828
this.db = store;
2929
}
@@ -34,7 +34,7 @@ export class AccountsOauth implements AuthService {
3434
}
3535

3636
const userProvider = this.options[params.provider];
37-
37+
3838
if (typeof userProvider.authenticate !== 'function') {
3939
throw new Error('Invalid provider');
4040
}
@@ -68,5 +68,4 @@ export class AccountsOauth implements AuthService {
6868

6969
await this.db.setService(userId, provider, null);
7070
}
71-
7271
}

0 commit comments

Comments
 (0)