Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
# PR ends up red even when only a single integration container is flaky.
fail-fast: false
matrix:
db: [couch, elasticsearch, mongo, mysql, redis, mock, sqlite, memory, rusty, surrealdb]
db: [couch, dirty, elasticsearch, mongo, mysql, redis, mock, sqlite, memory, rusty, surrealdb]
steps:
- uses: actions/checkout@v6

Expand Down
8 changes: 7 additions & 1 deletion databases/dirty_db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@
*/

import AbstractDatabase, {type Settings} from '../lib/AbstractDatabase';
import Dirty from 'dirty-ts';
import DirtyImport from 'dirty-ts';

// dirty-ts is a CJS package that exposes the constructor as `module.exports.default`
// with the `__esModule` marker. Under Node's ESM-to-CJS interop, the default
// import resolves to the whole `module.exports` object (not the constructor),
// so unwrap `.default` if it's present.
const Dirty: any = (DirtyImport as any).default ?? DirtyImport;

type DirtyDBCallback = (p?:any, keys?: string[])=>{};

Expand Down
8 changes: 7 additions & 1 deletion databases/dirty_git_db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@ import {simpleGit} from 'simple-git'
*/


import Dirty from 'dirty-ts';
import DirtyImport from 'dirty-ts';

// dirty-ts is a CJS package that exposes the constructor as `module.exports.default`
// with the `__esModule` marker. Under Node's ESM-to-CJS interop, the default
// import resolves to the whole `module.exports` object (not the constructor),
// so unwrap `.default` if it's present.
const Dirty: any = (DirtyImport as any).default ?? DirtyImport;

export default class extends AbstractDatabase {
public db: any;
Expand Down
Loading