lib/src/util/index.ts

44 lines
1.4 KiB
TypeScript
Raw Normal View History

2021-10-18 17:48:16 +00:00
import {RequestInfo, RequestInit, Response} from 'node-fetch'
import {unsafeESMImport} from './unsafe'
export const fetch = (url: RequestInfo, init?: RequestInit): Promise<Response> => unsafeESMImport('node-fetch').then(({default: nodeFetch}) => nodeFetch(url, init))
2021-06-02 01:59:40 +00:00
export * from './cache/Cache'
export * from './cache/InMemCache'
export * from './collection/ArrayIterable'
export * from './collection/AsyncCollection'
export * from './collection/Collection'
export * from './collection/Iterable'
export * from './collection/where'
export * from './const/http'
export * from './error/ErrorWithContext'
2021-10-18 17:48:16 +00:00
export * from './error/MethodNotSupportedError'
2022-03-30 23:15:56 +00:00
export * from './error/DebuggingTraceIsNotAnError'
2021-06-02 01:59:40 +00:00
export * from './logging/Logger'
export * from './logging/StandardLogger'
export * from './logging/FileLogger'
2021-06-02 01:59:40 +00:00
export * from './logging/types'
export * from './support/BehaviorSubject'
export * from './support/data'
export * from './support/mixin'
export * from './support/path'
export * from './support/debug'
export * from './support/path/Filesystem'
export * from './support/path/LocalFilesystem'
export * from './support/path/SSHFilesystem'
export * from './support/Safe'
2021-06-02 01:59:40 +00:00
export * from './support/Rehydratable'
export * from './support/string'
export * from './support/timeout'
export * from './support/global'
export * from './support/Pipe'
export * from './support/Messages'
export * from './support/types'