Michael Telatynski
00aba742e4
Merge commit from fork
...
to avoid path traversal attacks
and remove the legacy allowance for fragments in MXCs
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2024-11-12 09:08:00 +00:00
Johannes Marbach
05ba27f36b
Change imports for Node.js compatibility ( #4377 )
...
* Change imports for Node.js compatibility
Fixes : #4287
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org >
* Run prettier
* Run prettier (again)
* Add comment
* Update babel.config.cjs
---------
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org >
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com >
2024-08-29 15:56:32 +00:00
Travis Ralston
661ba76763
Use stable endpoints for MSC3916 ( #4239 )
...
* Use stable endpoints for MSC3916
* appease the linter
2024-06-13 17:03:25 +00:00
Travis Ralston
402adfbe8a
Add helpers for authenticated media, and associated documentation ( #4185 )
...
* Add helpers for authenticated media, and associated documentation
* Appease the linter
2024-05-02 21:11:09 +00:00
Travis Ralston
ab217bdc35
Support optional MSC3860 redirects ( #4007 )
...
* Support optional MSC3860 redirects
See `allow_redirect` across the media endpoints: https://spec.matrix.org/v1.9/client-server-api/#client-behaviour-7
* Update the tests
* Appease the linter
* Add test to appease SonarCloud
* Only add `allow_redirect` if the parameter is specified rather than defaulting to `false`
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
---------
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com >
2024-01-24 10:30:51 +00:00
Travis Ralston
8c16d69f3c
Set minimum supported Matrix 1.1 version (drop legacy r0 versions) ( #3007 )
...
Co-authored-by: Germain <germains@element.io >
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com >
2023-08-14 09:25:15 +01:00
Michael Telatynski
6ef9f6c55e
Enable better tree shaking ( #3356 )
2023-05-15 08:10:44 +00:00
Michael Weimann
349c2c2587
Apply prettier formatting
2022-12-09 09:38:20 +01:00
Michael Telatynski
c4006d752a
Improve tsdoc types ( #2940 )
...
* Install eslint-plugin-jsdoc
* Enable lint rule jsdoc/no-types
* Make tsdoc more valid, add required hyphens and s/return/returns/g
* Stash tsdoc work
* Fix mistypes
* Stash
* Stash
* More tsdoc work
* Remove useless doc params
* Fixup docs
* Apply suggestions from code review
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com >
* Update src/crypto/verification/request/ToDeviceChannel.ts
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com >
* Update src/client.ts
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com >
* Update src/client.ts
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com >
* Update src/client.ts
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com >
* Iterate
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com >
2022-12-07 18:01:54 +00:00
Michael Telatynski
12a4d2a749
Make more of the code conform to Strict TSC ( #2756 )
2022-10-14 15:57:08 +01:00
Kerry
75513d08de
test typescriptification - misc ( #2547 )
...
* renamed: spec/unit/login.spec.js -> spec/unit/login.spec.ts
* type test client
* renamed: spec/unit/interactive-auth.spec.js -> spec/unit/interactive-auth.spec.ts
* fix ts issues in interactive-auth.spec
* renamed: spec/unit/filter.spec.js -> spec/unit/filter.spec.ts
* fix ts in filter.spec
* renamed: spec/unit/event.spec.js -> spec/unit/event.spec.ts
* ts in event.spec
* renamed: spec/unit/pushprocessor.spec.js -> spec/unit/pushprocessor.spec.ts
* fix ts in pushprocessor.spec
* fix ts in realtime-callbacks.spec
* renamed: spec/unit/content-repo.spec.js -> spec/unit/content-repo.spec.ts
* fix signature for getHttpUriForMxc
* pr fixes
2022-07-28 08:09:21 +02:00
CommanderRoot
cde935629d
Replace deprecated String.prototype.substr() ( #2298 )
...
.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated
Signed-off-by: Tobias Speicher <rootcommander@gmail.com >
2022-04-14 15:23:27 -06:00
Michael Telatynski
f8097221e6
Improve typing ( #2055 )
2021-12-09 14:22:58 +00:00
Michael Telatynski
7aa5a79c86
Convert Room and RoomState to Typescript
2021-06-18 15:29:45 +01:00
Michael Telatynski
2f0d96d030
Convert some utils to typescript
2021-06-15 10:01:51 +01:00