-
Notifications
You must be signed in to change notification settings - Fork 943
Apply strictNullChecks to all packages except database #1805
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
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
21e14c0
TS changes before splitting database
hsubox76 9f38d85
Roll back database changes
hsubox76 10fe94e
[AUTOMATED]: Prettier Code Styling
hsubox76 e9d9a93
Put back database nullcheck exception
hsubox76 263cd24
Finish fixing strictNullCheck errors
hsubox76 54bdc4e
Fix logger test.
hsubox76 e1ab520
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
hsubox76 f246e21
Fix tests
hsubox76 3e1ea9b
Update primitive array types to type[]
hsubox76 8025369
[AUTOMATED]: Prettier Code Styling
hsubox76 6e668c0
Put test exclusion back in rxfire
hsubox76 ce0118b
Address PR comments
hsubox76 2e41a2f
[AUTOMATED]: Prettier Code Styling
hsubox76 95aa743
Addressing PR comments
hsubox76 1c5b5c5
Few more comments to address
hsubox76 9c3d52f
change assertThrows to assume it never returns null
hsubox76 6ec6881
[AUTOMATED]: Prettier Code Styling
hsubox76 384c580
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
hsubox76 aca9dd8
Fix additional warnings after merge
hsubox76 88f27cf
Fix storage test
hsubox76 d9c9040
[AUTOMATED]: Prettier Code Styling
hsubox76 846f100
Address comments in PR
hsubox76 df401be
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
hsubox76 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,7 @@ import { Location } from './location'; | |
import * as json from './json'; | ||
import * as type from './type'; | ||
import { ListResult } from '../list'; | ||
import * as errors from './error'; | ||
|
||
/** | ||
* Represents the simplified object metadata returned by List API. | ||
|
@@ -58,11 +59,15 @@ function fromBackendResponse( | |
items: [], | ||
nextPageToken: resource['nextPageToken'] | ||
}; | ||
const bucket = authWrapper.bucket(); | ||
if (bucket === null) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is why I don't like mixing |
||
throw errors.noDefaultBucket(); | ||
} | ||
if (resource[PREFIXES_KEY]) { | ||
for (const path of resource[PREFIXES_KEY]) { | ||
const pathWithoutTrailingSlash = path.replace(/\/$/, ''); | ||
const reference = authWrapper.makeStorageReference( | ||
new Location(authWrapper.bucket(), pathWithoutTrailingSlash) | ||
new Location(bucket, pathWithoutTrailingSlash) | ||
); | ||
listResult.prefixes.push(reference); | ||
} | ||
|
@@ -71,7 +76,7 @@ function fromBackendResponse( | |
if (resource[ITEMS_KEY]) { | ||
for (const item of resource[ITEMS_KEY]) { | ||
const reference = authWrapper.makeStorageReference( | ||
new Location(authWrapper.bucket(), item['name']) | ||
new Location(bucket, item['name']) | ||
); | ||
listResult.items.push(reference); | ||
} | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.