Commit 52a74a8 1 parent a905bcc commit 52a74a8 Copy full SHA for 52a74a8
File tree 3 files changed +3
-3
lines changed
07-creational-design-patterns
08-singleton-dependencies
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
- import { db } from './db.js'
2
1
import { promisify } from 'util'
2
+ import { db } from './db.js'
3
3
4
4
const dbRun = promisify ( db . run . bind ( db ) )
5
5
const dbAll = promisify ( db . all . bind ( db ) )
Original file line number Diff line number Diff line change 1
- import { Blog } from './blog.js'
2
1
import { dirname , join } from 'path'
3
2
import { fileURLToPath } from 'url'
3
+ import { Blog } from './blog.js'
4
4
import { createDb } from './db.js'
5
5
6
6
const __dirname = dirname ( fileURLToPath ( import . meta. url ) )
Original file line number Diff line number Diff line change 1
- import { Blog } from './blog.js'
2
1
import { dirname , join } from 'path'
3
2
import { fileURLToPath } from 'url'
3
+ import { Blog } from './blog.js'
4
4
import { createDb } from './db.js'
5
5
6
6
const __dirname = dirname ( fileURLToPath ( import . meta. url ) )
You can’t perform that action at this time.
0 commit comments