Skip to content

Commit

Permalink
fix: deps
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillgroshkov committed Aug 13, 2023
1 parent 3267067 commit 2d8340f
Show file tree
Hide file tree
Showing 8 changed files with 158 additions and 203 deletions.
2 changes: 1 addition & 1 deletion scripts/cannon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ yarn tsn cannon
import { expressFunctionFactory, runCannon } from '@naturalcycles/bench-lib'
import { _omit } from '@naturalcycles/js-lib'
import { getValidationResult, stringId } from '@naturalcycles/nodejs-lib'
import { runScript } from '@naturalcycles/nodejs-lib/dist/script'
import { runScript } from '@naturalcycles/nodejs-lib'
import { CommonDao, InMemoryDB } from '../src'
import { createTestItemsBM, testItemBMSchema, testItemDBMSchema, TEST_TABLE } from '../src/testing'

Expand Down
2 changes: 1 addition & 1 deletion scripts/ndjsonTest.script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ DEBUG=nc* yarn tsn ndjsonTest.script.ts
*/

import { runScript } from '@naturalcycles/nodejs-lib/dist/script'
import { runScript } from '@naturalcycles/nodejs-lib'
import { dbPipelineBackup, dbPipelineCopy, dbPipelineRestore, InMemoryDB } from '../src'
import { tmpDir } from '../src/test/paths.cnst'
import { createTestItemsDBM, TEST_TABLE } from '../src/testing'
Expand Down
2 changes: 1 addition & 1 deletion src/adapter/file/file.db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
Saved,
} from '@naturalcycles/js-lib'
import { readableCreate, ReadableTyped } from '@naturalcycles/nodejs-lib'
import { dimGrey } from '@naturalcycles/nodejs-lib/dist/colors'
import { dimGrey } from '@naturalcycles/nodejs-lib'
import { BaseCommonDB, DBSaveBatchOperation, queryInMemory } from '../..'
import { CommonDB } from '../../common.db'
import {
Expand Down
2 changes: 1 addition & 1 deletion src/adapter/inmemory/inMemory.db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
_emptyDir,
_ensureDir,
} from '@naturalcycles/nodejs-lib'
import { dimGrey, yellow } from '@naturalcycles/nodejs-lib/dist/colors'
import { dimGrey, yellow } from '@naturalcycles/nodejs-lib'
import { CommonDB, DBIncrement, DBPatch, DBTransaction, queryInMemory } from '../..'
import {
CommonDBCreateOptions,
Expand Down
2 changes: 1 addition & 1 deletion src/pipeline/dbPipelineBackup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
_ensureFileSync,
_writeJson,
} from '@naturalcycles/nodejs-lib'
import { boldWhite, dimWhite, grey, yellow } from '@naturalcycles/nodejs-lib/dist/colors'
import { boldWhite, dimWhite, grey, yellow } from '@naturalcycles/nodejs-lib'
import { CommonDB } from '../common.db'
import { DBQuery } from '../index'

Expand Down
2 changes: 1 addition & 1 deletion src/pipeline/dbPipelineCopy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
writableForEach,
_pipeline,
} from '@naturalcycles/nodejs-lib'
import { boldWhite, dimWhite, grey, yellow } from '@naturalcycles/nodejs-lib/dist/colors'
import { boldWhite, dimWhite, grey, yellow } from '@naturalcycles/nodejs-lib'
import { CommonDB } from '../common.db'
import { CommonDBSaveOptions } from '../db.model'
import { DBQuery } from '../query/dbQuery'
Expand Down
6 changes: 3 additions & 3 deletions src/pipeline/dbPipelineRestore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ import {
writableForEach,
_pipeline,
_ensureDirSync,
_readJsonFile,
_readJson,
} from '@naturalcycles/nodejs-lib'
import { boldWhite, dimWhite, grey, yellow } from '@naturalcycles/nodejs-lib/dist/colors'
import { boldWhite, dimWhite, grey, yellow } from '@naturalcycles/nodejs-lib'
import { CommonDB } from '../common.db'
import { CommonDBSaveOptions } from '../index'

Expand Down Expand Up @@ -182,7 +182,7 @@ export async function dbPipelineRestore(opt: DBPipelineRestoreOptions): Promise<
return
}

const schema = await _readJsonFile<JsonSchemaObject<any>>(schemaFilePath)
const schema = await _readJson<JsonSchemaObject<any>>(schemaFilePath)
await db.createTable(table, schema, { dropIfExists: true })
})
}
Expand Down
343 changes: 149 additions & 194 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 2d8340f

Please sign in to comment.