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

Tsify lib/storage #4499

Merged
merged 4 commits into from
Dec 28, 2022
Merged

Tsify lib/storage #4499

merged 4 commits into from
Dec 28, 2022

Conversation

jeremy-rifkin
Copy link
Member

No description provided.

// declarations."
// Updating profanities to v3 requires ESM modules
// eslint-disable-next-line @typescript-eslint/no-var-requires, unicorn/prefer-module
const profanities = require('profanities');
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure if there's another way to do this. I could not get any import working.

Copy link
Member

Choose a reason for hiding this comment

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

profanities is another lib we can't upgrade because of ESM, so... one day this will probably be ok.

lib/storage/remote.ts Outdated Show resolved Hide resolved
Copy link
Member

@mattgodbolt mattgodbolt left a comment

Choose a reason for hiding this comment

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

Yay

@@ -122,7 +128,7 @@ export class StorageS3 extends StorageBase {
const subHashes = _.chain(data.Items).pluck('unique_subhash').pluck('S').value();
const fullHashes = _.chain(data.Items).pluck('full_hash').pluck('S').value();
for (let i = MIN_STORED_ID_LENGTH; i < hash.length - 1; i++) {
let subHash = hash.substring(0, i);
const subHash = hash.substring(0, i);
Copy link
Member

Choose a reason for hiding this comment

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

woot

@jeremy-rifkin jeremy-rifkin merged commit 993c363 into main Dec 28, 2022
@jeremy-rifkin jeremy-rifkin deleted the jr/tsify-storage branch December 28, 2022 17:19
mattgodbolt pushed a commit that referenced this pull request Jan 4, 2023
* Tsify lib/storage

* Add @types/request

* Fix get/post types

* Better type solution
mattgodbolt pushed a commit that referenced this pull request Jan 24, 2023
* Tsify lib/storage

* Add @types/request

* Fix get/post types

* Better type solution
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants