From d757d56df821005a4b9da931f1a7a43b41e5917b Mon Sep 17 00:00:00 2001 From: Andrey Platov <andrey@hardcoreeng.com> Date: Wed, 4 Aug 2021 20:11:33 +0200 Subject: [PATCH] add memdb docs Signed-off-by: Andrey Platov <andrey@hardcoreeng.com> --- common/config/rush/.npmrc-publish | 20 -------------------- packages/core/src/memdb.ts | 4 ++++ 2 files changed, 4 insertions(+), 20 deletions(-) delete mode 100644 common/config/rush/.npmrc-publish diff --git a/common/config/rush/.npmrc-publish b/common/config/rush/.npmrc-publish deleted file mode 100644 index 7ab44c18d6..0000000000 --- a/common/config/rush/.npmrc-publish +++ /dev/null @@ -1,20 +0,0 @@ -# This config file is very similar to common/config/rush/.npmrc, except that .npmrc-publish -# is used by the "rush publish" command, as publishing often involves different credentials -# and registries than other operations. -# -# Before invoking the package manager, Rush will copy this file to "common/temp/publish-home/.npmrc" -# and then temporarily map that folder as the "home directory" for the current user account. -# This enables the same settings to apply for each project folder that gets published. The copied file -# will omit any config lines that reference environment variables that are undefined in that session; -# this avoids problems that would otherwise result due to a missing variable being replaced by -# an empty string. -# -# * * * SECURITY WARNING * * * -# -# It is NOT recommended to store authentication tokens in a text file on a lab machine, because -# other unrelated processes may be able to read the file. Also, the file may persist indefinitely, -# for example if the machine loses power. A safer practice is to pass the token via an -# environment variable, which can be referenced from .npmrc using ${} expansion. For example: -# -# //registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN} -# diff --git a/packages/core/src/memdb.ts b/packages/core/src/memdb.ts index bfd5fcee61..8f7f98434c 100644 --- a/packages/core/src/memdb.ts +++ b/packages/core/src/memdb.ts @@ -138,6 +138,8 @@ class MemDb extends TxProcessor { /** * Hold transactions + * + * @public */ export class TxDb extends MemDb implements Storage { async tx (tx: Tx): Promise<void> { @@ -147,6 +149,8 @@ export class TxDb extends MemDb implements Storage { /** * Hold model objects and classes + * + * @public */ export class ModelDb extends MemDb implements Storage { protected async txCreateDoc (tx: TxCreateDoc<Doc>): Promise<void> {