Skip to content

Commit

Permalink
Merge branch 'release/release/0.15.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
holtwick committed Nov 29, 2023
2 parents af45f5f + afce8b4 commit 46c30fb
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "zeed",
"type": "module",
"version": "0.15.2",
"version": "0.15.3",
"description": "🌱 Simple foundation library",
"author": {
"name": "Dirk Holtwick",
Expand Down
13 changes: 8 additions & 5 deletions src/common/msg/channel.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// (C)opyright 2021-07-15 Dirk Holtwick, holtwick.it. All rights reserved.

// import { Logger } from "../log"
import { useDisposeWithUtils } from '..'
import { uuid } from '../uuid'
import { Emitter } from './emitter'

// import { Logger } from "../log"
// const log = Logger("zeed:channel")

/** See http://developer.mozilla.org/en-US/docs/Web/API/MessageEvent */
Expand All @@ -29,10 +30,12 @@ export abstract class Channel extends Emitter<{
abstract isConnected?: boolean
abstract postMessage(data: any): void

// /** @deprecated use .dispose() */
// close() {
// void this.dispose()
// }
dispose = useDisposeWithUtils()

/** @deprecated use .dispose() */
close() {
void this.dispose()
}
}

/** Very basic channel demonstrating local communication */
Expand Down
2 changes: 1 addition & 1 deletion src/node/files-async.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import process from 'node:process'
import { isHiddenPath } from './fs'
import { globToRegExp } from './glob'

async function getStatAsync(path: string): Promise<any> {
export async function getStatAsync(path: string): Promise<any> {
try {
return await stat(path)
}
Expand Down
2 changes: 1 addition & 1 deletion src/node/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import process from 'node:process'
import { isHiddenPath } from './fs'
import { globToRegExp } from './glob'

function getStat(path: string): any {
export function getStat(path: string): any {
try {
return statSync(path)
}
Expand Down

0 comments on commit 46c30fb

Please sign in to comment.