Skip to content

Commit

Permalink
build(deps): update @kocal/logger (#200)
Browse files Browse the repository at this point in the history
* build(deps): update @kocal/logger

* chore: remove type definition
  • Loading branch information
Kocal authored Jan 25, 2019
1 parent 249a4b4 commit 6846ef4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 39 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
]
},
"dependencies": {
"@kocal/logger": "^1.1.1",
"@kocal/logger": "^1.3.1",
"autoprefixer": "^9.1.2",
"buble": "^0.19.6",
"chalk": "^2.4.1",
Expand Down
34 changes: 0 additions & 34 deletions types/modules.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,37 +83,3 @@ declare module 'defaults-deep' {

export default fn;
}

declare module '@kocal/logger' {
export interface Context {
level: string;
levelColor: (level: string) => any;
message: string;
chalk: any;
luxon: any;
}

export type Variables = { [k: string]: any } | (() => { [k: string]: any });

class Logger {
static getLogger(name: string, options: {}): Logger;

setLevel(level: string): void;

setFormat(format: (ctx: Context, variables: Variables) => string): void;

setVariables(variables: Variables): void;

debug(message: any, additionalVariables?: Variables): void;

log(message: any, additionalVariables?: Variables): void;

info(message: any, additionalVariables?: Variables): void;

warn(message: any, additionalVariables?: Variables): void;

error(message: any, additionalVariables?: Variables): void;
}

export default Logger;
}
14 changes: 10 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -973,11 +973,12 @@
log-update "^2.3.0"
strip-ansi "^3.0.1"

"@kocal/logger@^1.1.1":
version "1.1.2"
resolved "https://registry.yarnpkg.com/@kocal/logger/-/logger-1.1.2.tgz#60b4a0523cebd0e6317b8957a26dd4953473ac90"
integrity sha512-Cw4S0lz99t+NlaBjp2eXVvX/CPSeA/Xh37QIIvkN00c2ZBpuquoMM3bJXzkdLbVWGoIwqEc4O9ykfAnf4q0vZw==
"@kocal/logger@^1.3.1":
version "1.3.1"
resolved "https://registry.yarnpkg.com/@kocal/logger/-/logger-1.3.1.tgz#e7ec7fc29d6ec27f9bfdfea1b1a26deabdaf0ea5"
integrity sha512-lpNYhzuWa3DRLrXP2Zewe5d/kpL5DrHHocGW9/z9UpG0Mc0A3tiAggPasgQ+mtFeBWYxKN7gPSoFz9xOTEz9TA==
dependencies:
"@types/luxon" "^1.10.2"
chalk "^2.4.1"
luxon "^1.8.2"

Expand Down Expand Up @@ -1307,6 +1308,11 @@
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.1.tgz#fcaa655260285b8061850789f8268c51a4ec8ee1"
integrity sha512-NVQEMviDWjuen3UW+mU1J6fZ0WhOfG1yRce/2OTcbaz+fgmTw2cahx6N2wh0Yl+a+hg2UZj/oElZmtULWyGIsA==

"@types/luxon@^1.10.2":
version "1.10.2"
resolved "https://registry.yarnpkg.com/@types/luxon/-/luxon-1.10.2.tgz#36ed140a3dadea3e7be4982cecb47d89aa098a20"
integrity sha512-LEqrz+1tzeWwyzmC9hJ6negMjGGc1ABaAwVPwkeN1a2/Oqql/SowlcENFd5e2EkWYJd7FhMojFBTuyWOPUx8sg==

"@types/minimatch@*":
version "3.0.3"
resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d"
Expand Down

0 comments on commit 6846ef4

Please sign in to comment.