Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcherGu committed Apr 12, 2023
1 parent 7ec64af commit 04cdccf
Show file tree
Hide file tree
Showing 7 changed files with 121 additions and 111 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"reflect-metadata": "^0.1.13"
},
"devDependencies": {
"@lightwing/eslint-config": "0.0.12",
"@lightwing/eslint-config": "0.0.14",
"@types/node": "18.15.11",
"electron": "24.1.0",
"eslint": "8.38.0",
Expand Down
218 changes: 114 additions & 104 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ export const IPC_SEND = 'ipc:send'
export const IPC_ON = 'ipc:on'
export const IPC_WIN_NAME = 'ipc:win-name'
export const DEFAULT_WIN_NAME = 'main'

1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type { BrowserWindow } from 'electron'
import { app, ipcMain } from 'electron'
import { DEFAULT_WIN_NAME, INJECTABLE, INJECT_NAME, INJECT_TYPE, IPC_HANDLE, IPC_ON, IPC_SEND, IPC_WIN_NAME, PARAMTYPES_METADATA } from './constants'
import { createLogger } from './log'

export { createLogger } from './log'
export * from './decorators'

Expand Down
6 changes: 3 additions & 3 deletions src/log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as colors from 'colorette'

type LOG_TYPE = 'info' | 'success' | 'error' | 'warn'

export const colorize = (type: LOG_TYPE, data: any) => {
export function colorize(type: LOG_TYPE, data: any) {
const color
= type === 'info'
? 'blue'
Expand All @@ -15,13 +15,13 @@ export const colorize = (type: LOG_TYPE, data: any) => {
return colors[color](data)
}

export const makeLabel = (name: string, type?: LOG_TYPE) => {
export function makeLabel(name: string, type?: LOG_TYPE) {
return `${colors.dim('[')}${type ? colorize(type, name) : name}${colors.dim(']')}`
}

export type Logger = ReturnType<typeof createLogger>

export const createLogger = (name = 'Einf') => {
export function createLogger(name = 'Einf') {
return {
success(...args: any[]) {
return this.print('success', ...args)
Expand Down
2 changes: 1 addition & 1 deletion tests/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { execa } from 'execa'

const mockDir = path.resolve(__dirname, './mock')

const run = async () => {
async function run() {
const { stdout, stderr } = await execa(
'npx',
['vite'],
Expand Down
2 changes: 1 addition & 1 deletion tests/mock/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { join } from 'path'
import { join } from 'node:path'
import { BrowserWindow, app } from 'electron'
import { createEinf } from '../../../dist'
import { AppController } from './app.controller'
Expand Down

0 comments on commit 04cdccf

Please sign in to comment.