Skip to content

Commit

Permalink
Merge branch 'release/v0.18.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
holtwick committed Mar 25, 2024
2 parents 171dffb + ad74f1e commit d19cb4f
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion demos/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"preview": "vite preview"
},
"dependencies": {
"vue": "^3.4.21"
"vue": "^3.4.21"
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.0.4",
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "zeed",
"type": "module",
"version": "0.18.4",
"version": "0.18.5",
"description": "🌱 Simple foundation library",
"author": {
"name": "Dirk Holtwick",
Expand Down Expand Up @@ -65,15 +65,15 @@
"watch": "nr build -- --watch src"
},
"devDependencies": {
"@antfu/eslint-config": "^2.8.3",
"@antfu/eslint-config": "^2.9.0",
"@antfu/ni": "^0.21.12",
"@types/node": "^20.11.28",
"@types/node": "^20.11.30",
"@vitest/coverage-v8": "^1.4.0",
"esbuild": "^0.20.2",
"eslint": "^8.57.0",
"tsup": "^8.0.2",
"typescript": "^5.4.2",
"vite": "^5.1.6",
"typescript": "^5.4.3",
"vite": "^5.2.6",
"vitest": "^1.4.0"
}
}
18 changes: 9 additions & 9 deletions src/common/data/object.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isArray, isBinaryArray, isFunction, isObject, isPrimitive, isSymbol } from './is'
import { isArray, isBinaryArray, isObject, isPrimitive, isSymbol } from './is'

/** Like `.map()` for object. Return new key and value or `undefined` to delete. */
export function objectMap<T = any>(
Expand Down Expand Up @@ -112,16 +112,16 @@ export function objectPlain(obj: any, opt?: {
.map(o => handleObject(o, depth + 1))
}

if (isObject(obj) || isFunction(obj)) {
const nobj: any = {}
for (const [key, value] of Object.entries(obj)) {
if (filter(value))
nobj[key] = handleObject(value, depth + 1)
}
return nobj
// if (isObject(obj) || isFunction(obj)) {
const nobj: any = {}
for (const [key, value] of Object.entries(obj)) {
if (filter(value))
nobj[key] = handleObject(value, depth + 1)
}
return nobj
// }

return undefined
// return undefined
}

return handleObject(obj, 0)
Expand Down
2 changes: 1 addition & 1 deletion src/common/msg/emitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class Emitter<

/**
* Emits an event to all subscribers and executes their corresponding event handlers.
*
*
* @param event - The event to emit.
* @param args - The arguments to pass to the event handlers.
* @returns A promise that resolves to a boolean indicating whether the event was successfully emitted.
Expand Down
2 changes: 1 addition & 1 deletion src/common/network.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { fetchJson, fetchText, parseBasicAuth } from './network'
import { fetchText, parseBasicAuth } from './network'

describe('network', () => {
it('should fetch', async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/common/time.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function formatMilliseconds(ms: number): string {

/**
* Parses the given date candidates and returns the first valid Date object found.
*
*
* @param dateCandidates - The date candidates to parse, which can be either strings or Date objects.
* @returns The parsed Date object, or undefined if no valid date is found.
*/
Expand Down

0 comments on commit d19cb4f

Please sign in to comment.