Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript #356

Merged
merged 76 commits into from
Aug 11, 2020
Merged

Typescript #356

merged 76 commits into from
Aug 11, 2020

Conversation

mahboubii
Copy link
Contributor

No description provided.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 22, 2020

Size Change: +2.02 kB (2%)

Total Size: 100 kB

Filename Size Change
dist/js_min/getstream.js 31.2 kB +161 B (0%)
dist/js/getstream.js 69.2 kB +1.86 kB (2%)

compressed-size-action

@mahboubii mahboubii requested a review from nhannah July 22, 2020 14:45
import utils from './utils';
import signing from './signing';

export default function createRedirectUrl(targetUrl, userId, events) {
// TODO: userId is skipped here
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch: if user_id is given we need to add it to token instead of *

} catch (e) {
return undefined;
}
}

function padString(string) {
function padString(string: string) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's rename it, looks awkward

if (contentType != null) fileField.type = contentType;
}

data.append('file', fileField);
return data;
}

function replaceStreamObjects(obj) {
// TODO: refactor and add proper types
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor

@ferhatelmas ferhatelmas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

probably we will spot some improvements down the road but looks fine in general, nothing blocking.

"homepage": "https://getstream.io/docs/?language=js",
"email": "support@getstream.io",
"license": "BSD-3-Clause",
"version": "5.0.5",
"version": "5.1.0-0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's go with 6.x

@mahboubii mahboubii merged commit 617554d into master Aug 11, 2020
@ferhatelmas ferhatelmas deleted the feature/typescript branch August 21, 2020 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants