Skip to content

Commit

Permalink
Merge branch 'release/release/0.13.23'
Browse files Browse the repository at this point in the history
  • Loading branch information
holtwick committed Oct 23, 2023
2 parents 79f0963 + 01bc930 commit 0c8cfc2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "zeed",
"type": "module",
"version": "0.13.22",
"version": "0.13.23",
"description": "🌱 Simple foundation library",
"author": {
"name": "Dirk Holtwick",
Expand Down Expand Up @@ -69,15 +69,15 @@
"devDependencies": {
"@antfu/eslint-config": "^0.43.1",
"@antfu/ni": "^0.21.8",
"@types/node": "^20",
"@types/node": "^20.8.7",
"c8": "^8.0.1",
"cross-fetch": "^4.0.0",
"esbuild": "^0.19.5",
"eslint": "^8.51.0",
"eslint": "^8.52.0",
"madge": "^6.1.0",
"tsup": "^7.2.0",
"typescript": "^5.2.2",
"vite": "^4.4.11",
"vite": "^4.5.0",
"vitest": "^0.34.6"
}
}
10 changes: 5 additions & 5 deletions src/browser/log/log-browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import type { LogHandler, LogHandlerOptions, LogMessage } from '../../common/log/log-base'
import { LogLevelError, LogLevelInfo, LogLevelWarn } from '../../common/log/log-base'
import { browserSelectColorByName } from '../../common/log/log-colors'
import { joinLogStrings, useLevelFilter, useNamespaceFilter } from '../../common/log/log-filter'
import { useLevelFilter, useNamespaceFilter } from '../../common/log/log-filter'
import { formatMilliseconds, getTimestamp } from '../../common/time'
import { browserSupportsColors } from './log-colors'

Expand Down Expand Up @@ -84,22 +84,22 @@ export function LoggerBrowserHandler(opt: LogHandlerOptions = {}): LogHandler {
case LogLevelInfo:
if (opt.levelHelper)
args[0] = `I|* ${args[0]}`
console.info(...joinLogStrings(...args))
console.info(...args)
break
case LogLevelWarn:
if (opt.levelHelper)
args[0] = `W|** ${args[0]}`
console.warn(...joinLogStrings(...args))
console.warn(...args)
break
case LogLevelError:
if (opt.levelHelper)
args[0] = `E|*** ${args[0]}`
console.error(...joinLogStrings(...args))
console.error(...args)
break
default:
if (opt.levelHelper)
args[0] = `D| ${args[0]}`
console.debug(...joinLogStrings(...args))
console.debug(...args)
break
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/common/data/bin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ export function fromHex(hexString: string): Uint8Array {
)
}

// Learn about Base64 in browsers: https://web.dev/articles/base64-encoding

/** Regular base64 */
export function toBase64(bin: BinInput, stripPadding = false): string {
const bytes = toUint8Array(bin)
Expand Down

0 comments on commit 0c8cfc2

Please sign in to comment.