Skip to content

Commit

Permalink
docs: ✏️ info => debug
Browse files Browse the repository at this point in the history
  • Loading branch information
haozi committed Nov 22, 2023
1 parent 65f7a0f commit 28c8de9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "idmp",
"version": "1.8.2",
"version": "1.8.3",
"keywords": [
"cache response",
"swr without hooks",
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,12 @@ const idmp = <T>(
if (process.env.NODE_ENV !== 'production') {
if (i === 0) {
printLogs(
`%c[idmp info] ${globalKey?.toString()} from origin`,
`%c[idmp debug] ${globalKey?.toString()} from origin`,
'font-weight: lighter',
)
} else {
printLogs(
`%c[idmp info] ${globalKey?.toString()} from cache`,
`%c[idmp debug] ${globalKey?.toString()} from cache`,
'color: gray; font-weight: lighter',
)
}
Expand Down Expand Up @@ -256,7 +256,7 @@ const idmp = <T>(
if (cache[K.resData]) {
if (process.env.NODE_ENV !== 'production') {
printLogs(
`%c[idmp info] \`${globalKey?.toString()}\` from cache`,
`%c[idmp debug] \`${globalKey?.toString()}\` from cache`,
'color: gray;font-weight: lighter',
)
}
Expand Down

0 comments on commit 28c8de9

Please sign in to comment.