1
0
Fork 0
liza/test
Mike Gerwitz 0a9a5fe56e TokenStore: Provide document id via constructor
The primary use case for this is currently the DataAPI, and the quote id is
only available at the highest level of the server, before dapis are
processed.

In any case, the TokenStore was already described in terms of a combination
of document id; namespace; and root field; so it makes sense for doc id to
be part of the constructor.

If a more generic TokenStore is needed in the future, we could go back to
the previous API and wrap it in another class, like a partially applied
function (e.g. `DocumentTokenStore`).

* src/server/token/TokenStore.ts: Move doc_id out of arguments and into the
  constructor.
* test/server/token/TokenStoreTest.ts: Update accordingly.
2019-10-18 09:55:10 -04:00
..
bucket Copyright range update 2019-08-30 09:41:35 -04:00
calc Copyright range update 2019-08-30 09:41:35 -04:00
client Copyright range update 2019-08-30 09:41:35 -04:00
conf Add ConfLoader 2017-08-28 09:07:28 -04:00
dapi Copyright range update 2019-08-30 09:41:35 -04:00
document Copyright range update 2019-08-30 09:41:35 -04:00
error {Context,Chained}Error: New modules 2019-10-18 09:55:09 -04:00
event FieldVisibilityEventHandler: Fix arrow function notation 2019-10-17 11:47:14 -04:00
field Copyright range update 2019-08-30 09:41:35 -04:00
program Copyright range update 2019-08-30 09:41:35 -04:00
quote Copyright range update 2019-08-30 09:41:35 -04:00
server TokenStore: Provide document id via constructor 2019-10-18 09:55:10 -04:00
store Copyright range update 2019-08-30 09:41:35 -04:00
system Copyright range update 2019-08-30 09:41:35 -04:00
ui Copyright range update 2019-08-30 09:41:35 -04:00
validate [DEV-5657] Check for TLD in email addresses 2019-09-12 09:30:23 -04:00
pre.js Copyright range update 2019-08-30 09:41:35 -04:00