478 Commits

Author SHA1 Message Date
AtHeartEngineer
ec787453af fix(admin-socketio) turning off read-only for now (#79) 2023-09-07 15:37:13 -04:00
AtHeartEngineer
2315f4c522 Merge branch 'main' into socketio-admin 2023-09-07 15:37:02 -04:00
Tanner Shaw
dcfb5a93c5 fix(socketio) trying to fix CORS stuff 2023-09-07 14:36:49 -05:00
Tanner Shaw
5aa97216d4 fix(socket-io) possible fix for CORS policy error 2023-09-07 14:35:24 -05:00
Tanner Shaw
7a2807dec3 fix(admin-socketio) turning off read-only for now 2023-09-07 14:32:45 -05:00
Tanner Shaw
30452352e4 fix(admin io) turning off read-only for now 2023-09-07 14:30:42 -05:00
AtHeartEngineer
37366f6c4c feature(Admin SocketIO) added admin socketio integration (#78) 2023-09-07 15:22:38 -04:00
AtHeartEngineer
a205d6ddcf Merge branch 'main' into socketio-admin 2023-09-07 15:22:01 -04:00
Tanner Shaw
7597e8f74d feature(Admin SocketIO) added admin socketio integration 2023-09-07 14:21:36 -05:00
AtHeartEngineer
1bbe6cde98 fix jsdocs spacing (#76) 2023-09-07 15:21:04 -04:00
AtHeartEngineer
28523ffc49 fix message bug if the epoch didn't exist yet (#77)
Also updated the mock roomId
2023-09-06 20:30:54 -04:00
6ca95afd7a fix message bug if the epoch didn't exist yet, and also updated the mock room 2023-09-06 20:25:10 -04:00
AtHeartEngineer
a80496f9cb Merge branch 'main' into js-docs-fix 2023-09-06 19:16:12 -04:00
AtHeartEngineer
1c0a39f57c Room admins (#75) 2023-09-06 19:15:48 -04:00
Tanner Shaw
a227c5f9bd fix(express) fixing endpoint misspellings 2023-09-06 18:05:25 -05:00
dae59682e8 fix jsdocs spacing 2023-09-06 19:04:31 -04:00
Tanner Shaw
9947de0b14 feature(rooms) added adminIdentities to schema and endpoint to add identities to adminIdentities 2023-09-06 17:02:09 -05:00
Tanner Shaw
e87361b8d2 Merge branch 'main' into room-admins 2023-09-06 15:43:09 -05:00
Tanner Shaw
74873004ea feature(rooms) add admins to room 2023-09-06 15:37:09 -05:00
AtHeartEngineer
8cd31ed7d6 Refactoring ClaimCodes (#74)
Refactoring claimcodes to expire after X amount of time or on number of
uses
2023-09-06 16:33:33 -04:00
ccda90b2e4 Merge branch 'main' into refactor-claimcodes 2023-09-06 16:31:30 -04:00
AtHeartEngineer
e78faf8121 refactored message validation and db to be stricter/cleaner (#69)
~Please review this and test it, I am at the airport and can't fully
test this right now.~
2023-09-06 15:15:36 -04:00
cd70acac03 feat(api): Updated createRoom function to return room ID 2023-09-06 11:55:27 -04:00
7035f4a689 chore(.gitignore) ignore vscode settings
refactor(websockets) remove systemMessage, add TotalMembers broadcast
2023-09-06 11:32:06 -04:00
Tanner Shaw
ef104a7595 small changes 2023-09-05 23:30:12 -05:00
Tanner Shaw
683a408d3c refactor(claimcodes) refactored updateClaimCode to not decrement from -1 and renamed variables to better match refactors 2023-09-05 22:27:05 -05:00
Tanner Shaw
8858dcf7c6 refactor(claimcodes) Refactored /join route to check, update, and delete claimcodes based on UNIX time and or uses left 2023-09-05 19:49:51 -05:00
Tanner Shaw
1609422ff0 feature(claimcodes) claimcodes now have a UNIX time to be claimed and an amount of time they can be used 2023-09-05 16:25:57 -05:00
AtHeartEngineer
7ac8eb29c3 system message broadcasts need to be reworked. 2023-09-01 19:15:53 -07:00
AtHeartEngineer
c68626e44a remove genID and use random value roomId 2023-09-01 19:02:32 -07:00
AtHeartEngineer
d0ebeec472 updated rlnjs to latest 2023-09-01 17:21:29 -07:00
AtHeartEngineer
a4786e5da1 version bump 2023-09-01 17:19:56 -07:00
AtHeartEngineer
ca5116871a refactored db and crypto folders/exports 2023-09-01 17:08:23 -07:00
AtHeartEngineer
a650243350 Merge branch 'main' into validate-message-refactor 2023-09-01 16:11:05 -04:00
AtHeartEngineer
a0dbeea951 refactored message validation to be stricter/cleaner 2023-09-01 13:09:13 -07:00
AtHeartEngineer
b37e80961d chore(deps): bump mongodb from 5.7.0 to 5.8.0 (#66)
Bumps [mongodb](https://github.com/mongodb/node-mongodb-native) from
5.7.0 to 5.8.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/mongodb/node-mongodb-native/releases">mongodb's
releases</a>.</em></p>
<blockquote>
<h2>v5.8.0</h2>
<h2><a
href="https://github.com/mongodb/node-mongodb-native/compare/v5.7.0...v5.8.0">5.8.0</a>
(2023-08-21)</h2>
<p>The MongoDB Node.js team is pleased to announce version 5.8.0 of the
<code>mongodb</code> package!</p>
<h2>Release Notes</h2>
<h3>The <code>AutoEncrypter</code> interface has been deprecated</h3>
<p>The <code>AutoEncrypter</code> interface was used internally but
accidentally made public in the 4.x version of the driver. It is now
deprecated and will be made internal in the next major release.</p>
<h3>Kerberos support for 1.x and 2.x</h3>
<p>Moves the kerberos dependency back to <code>^1.0.0 || ^2.0.0</code>
to indicate support for both 1.x and 2.x. Support for 1.x is removed in
6.0.</p>
<h3>Fixed accidental deprecation warning</h3>
<p>Because of internal options handling, a deprecation was emitted for
<code>tlsCertificateFile</code> when using
<code>tlsCertificateKeyFile</code>. That has been corrected.</p>
<h3>Remove credential availability on
<code>ConnectionPoolCreatedEvent</code></h3>
<p>In order to avoid mistakenly printing credentials the
<code>ConnectionPoolCreatedEvent</code> will replace the credentials
option with an empty object. The credentials are still accessble via
MongoClient options: <code>client.options.credentials</code>.</p>
<h3>Features</h3>
<ul>
<li><strong>NODE-5399:</strong> use mongodb-js/saslprep instead of
saslprep (<a
href="https://redirect.github.com/mongodb/node-mongodb-native/issues/3818">#3818</a>)
(<a
href="c0d3927379">c0d3927</a>)</li>
<li><strong>NODE-5429:</strong> deprecate the <code>AutoEncrypter</code>
interface (<a
href="https://redirect.github.com/mongodb/node-mongodb-native/issues/3764">#3764</a>)
(<a
href="9bb0d955e7">9bb0d95</a>)</li>
<li><strong>NODE-5465,NODE-5538:</strong> lower
<code>@aws-sdk/credential-providers</code> version to 3.188.0 and
<code>zstd</code> to <code>^1.0.0</code> (<a
href="https://redirect.github.com/mongodb/node-mongodb-native/issues/3821">#3821</a>)
(<a
href="39ff81d402">39ff81d</a>)</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li><strong>NODE-5489:</strong> set kerberos compatibility to ^1.0.0 ||
^2.0.0 (<a
href="https://redirect.github.com/mongodb/node-mongodb-native/issues/3803">#3803</a>)
(<a
href="c3b35b321b">c3b35b3</a>)</li>
<li><strong>NODE-5495:</strong> do not emit deprecation warning when
tlsCertificateKeyFile is specified and tlsCertificateFile is not (<a
href="https://redirect.github.com/mongodb/node-mongodb-native/issues/3810">#3810</a>)
(<a
href="e81d4a2fc0">e81d4a2</a>)</li>
<li><strong>NODE-5537:</strong> remove credentials from
ConnectionPoolCreatedEvent options (<a
href="https://redirect.github.com/mongodb/node-mongodb-native/issues/3813">#3813</a>)
(<a
href="4cf1e96c68">4cf1e96</a>)</li>
</ul>
<h2>Documentation</h2>
<ul>
<li><a
href="https://docs.mongodb.com/drivers/node/current/">Reference</a></li>
<li><a
href="https://mongodb.github.io/node-mongodb-native/5.8/">API</a></li>
<li><a
href="https://github.com/mongodb/node-mongodb-native/blob/v5.8.0/HISTORY.md">Changelog</a></li>
</ul>
<p>We invite you to try the <code>mongodb</code> library immediately,
and report any issues to the <a
href="https://jira.mongodb.org/projects/NODE">NODE project</a>.</p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/mongodb/node-mongodb-native/blob/v5.8.0/HISTORY.md">mongodb's
changelog</a>.</em></p>
<blockquote>
<h2><a
href="https://github.com/mongodb/node-mongodb-native/compare/v5.7.0...v5.8.0">5.8.0</a>
(2023-08-21)</h2>
<h3>Features</h3>
<ul>
<li><strong>NODE-5399:</strong> use mongodb-js/saslprep instead of
saslprep (<a
href="https://redirect.github.com/mongodb/node-mongodb-native/issues/3818">#3818</a>)
(<a
href="c0d3927379">c0d3927</a>)</li>
<li><strong>NODE-5429:</strong> deprecate the <code>AutoEncrypter</code>
interface (<a
href="https://redirect.github.com/mongodb/node-mongodb-native/issues/3764">#3764</a>)
(<a
href="9bb0d955e7">9bb0d95</a>)</li>
<li><strong>NODE-5465,NODE-5538:</strong> lower
<code>@aws-sdk/credential-providers</code> version to 3.188.0 and
<code>zstd</code> to <code>^1.0.0</code> (<a
href="https://redirect.github.com/mongodb/node-mongodb-native/issues/3821">#3821</a>)
(<a
href="39ff81d402">39ff81d</a>)</li>
<li><strong>NODE-5489:</strong> update kerberos dependency (<a
href="8c25d6d0a7">8c25d6d</a>)</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li><strong>NODE-5489:</strong> set kerberos compatibility to ^1.0.0 ||
^2.0.0 (<a
href="https://redirect.github.com/mongodb/node-mongodb-native/issues/3803">#3803</a>)
(<a
href="c3b35b321b">c3b35b3</a>)</li>
<li><strong>NODE-5495:</strong> do not emit deprecation warning when
tlsCertificateKeyFile is specified and tlsCertificateFile is not (<a
href="https://redirect.github.com/mongodb/node-mongodb-native/issues/3810">#3810</a>)
(<a
href="e81d4a2fc0">e81d4a2</a>)</li>
<li><strong>NODE-5537:</strong> remove credentials from
ConnectionPoolCreatedEvent options (<a
href="https://redirect.github.com/mongodb/node-mongodb-native/issues/3813">#3813</a>)
(<a
href="4cf1e96c68">4cf1e96</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="43673fa189"><code>43673fa</code></a>
chore(5.x): release 5.8.0 [skip-ci] (<a
href="https://redirect.github.com/mongodb/node-mongodb-native/issues/3825">#3825</a>)</li>
<li><a
href="4b2fc79525"><code>4b2fc79</code></a>
docs: fix cutoff sentence on CommandStartedEvent (<a
href="https://redirect.github.com/mongodb/node-mongodb-native/issues/3828">#3828</a>)</li>
<li><a
href="39ff81d402"><code>39ff81d</code></a>
feat(NODE-5465,NODE-5538): lower
<code>@aws-sdk/credential-providers</code> version to 3...</li>
<li><a
href="e1af3437c3"><code>e1af343</code></a>
chore: update release automation scripts 5.x (<a
href="https://redirect.github.com/mongodb/node-mongodb-native/issues/3823">#3823</a>)</li>
<li><a
href="c0d3927379"><code>c0d3927</code></a>
feat(NODE-5399): use mongodb-js/saslprep instead of saslprep (<a
href="https://redirect.github.com/mongodb/node-mongodb-native/issues/3818">#3818</a>)</li>
<li><a
href="4cf1e96c68"><code>4cf1e96</code></a>
fix(NODE-5537): remove credentials from ConnectionPoolCreatedEvent
options (#...</li>
<li><a
href="e81d4a2fc0"><code>e81d4a2</code></a>
fix(NODE-5495): do not emit deprecation warning when
tlsCertificateKeyFile is...</li>
<li><a
href="c3b35b321b"><code>c3b35b3</code></a>
fix(NODE-5489): set kerberos compatibility to ^1.0.0 || ^2.0.0 (<a
href="https://redirect.github.com/mongodb/node-mongodb-native/issues/3803">#3803</a>)</li>
<li><a
href="cc3069d836"><code>cc3069d</code></a>
Revert &quot;feat(NODE-5489): update kerberos dependency&quot;</li>
<li><a
href="8c25d6d0a7"><code>8c25d6d</code></a>
feat(NODE-5489): update kerberos dependency</li>
<li>Additional commits viewable in <a
href="https://github.com/mongodb/node-mongodb-native/compare/v5.7.0...v5.8.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=mongodb&package-manager=npm_and_yarn&previous-version=5.7.0&new-version=5.8.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/Discreetly/server/network/alerts).

</details>
2023-09-01 11:35:40 -04:00
AtHeartEngineer
3d16e3f732 prevent empty messages server side (#67) 2023-09-01 11:35:20 -04:00
AtHeartEngineer
9020a01b89 prevent empty messages server side 2023-08-30 17:07:18 -07:00
dependabot[bot]
51ccc6c6f9 chore(deps): bump mongodb from 5.7.0 to 5.8.0
Bumps [mongodb](https://github.com/mongodb/node-mongodb-native) from 5.7.0 to 5.8.0.
- [Release notes](https://github.com/mongodb/node-mongodb-native/releases)
- [Changelog](https://github.com/mongodb/node-mongodb-native/blob/v5.8.0/HISTORY.md)
- [Commits](https://github.com/mongodb/node-mongodb-native/compare/v5.7.0...v5.8.0)

---
updated-dependencies:
- dependency-name: mongodb
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-30 23:07:52 +00:00
AtHeartEngineer
95f9512fa2 Replaced JSON.stringify w String() (#65)
I believe this fixes the quote problem
2023-08-30 02:54:42 -04:00
AtHeartEngineer
90b1fbe6d1 Replaced JSON.stringify w String() 2023-08-29 21:32:21 -07:00
AtHeartEngineer
5155165198 System Messages for SocketIO (#62) 2023-08-26 08:17:25 -04:00
Tanner Shaw
1962720904 feature(socketIO) systemMessage made for SocketIO to broadcast system messages 2023-08-25 23:47:23 -05:00
AtHeartEngineer
b07b206004 startup and shutdown broadcast (#61) 2023-08-26 00:00:10 -04:00
AtHeartEngineer
3d3833676b Update server.ts 2023-08-26 00:00:03 -04:00
AtHeartEngineer
0d284922c0 startup and shutdown broadcast 2023-08-25 23:48:07 -04:00
AtHeartEngineer
3eebffe3f5 bug fix for some messages not being send because proof doesn't exist … (#60)
…on an old message
2023-08-25 23:40:08 -04:00
AtHeartEngineer
282d53b573 bug fix for some messages not being send because proof doesn't exist on an old message 2023-08-25 23:38:35 -04:00
AtHeartEngineer
2bd73ec0a4 /addcode fixed (#59)
…ms associations
2023-08-25 16:50:22 -04:00
AtHeartEngineer
0dfd4e005a Merge branch 'main' into fixing-code-creation 2023-08-25 16:49:44 -04:00