@travetto/base
Advanced tools
Comparing version 3.0.0 to 3.0.1-rc.1
{ | ||
"name": "@travetto/base", | ||
"version": "3.0.0", | ||
"version": "3.0.1-rc.1", | ||
"description": "Environment config and common utilities for travetto applications.", | ||
@@ -29,3 +29,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@travetto/manifest": "^3.0.0", | ||
"@travetto/manifest": "^3.0.1-rc.0", | ||
"@types/source-map-support": "^0.5.6", | ||
@@ -35,3 +35,3 @@ "source-map-support": "^0.5.21" | ||
"peerDependencies": { | ||
"@travetto/transformer": "^3.0.0" | ||
"@travetto/transformer": "^3.0.1-rc.0" | ||
}, | ||
@@ -38,0 +38,0 @@ "peerDependenciesMeta": { |
@@ -80,5 +80,5 @@ import timers from 'timers/promises'; | ||
// Watch all output | ||
// Watch local output | ||
await watchFolders( | ||
RootIndex.getLocalOutputFolders(), | ||
RootIndex.getLocalModules().map(x => x.outputPath), | ||
(ev, folder) => this.dispatch(ev, folder), | ||
@@ -85,0 +85,0 @@ { filter: ev => ev.file.endsWith('.js'), createMissing: true } |
import fs from 'fs/promises'; | ||
import { watchFolders, WatchEvent, path } from '@travetto/manifest'; | ||
import { watchFolders, path, WatchEventFilter, WatchEventListener } from '@travetto/manifest'; | ||
@@ -63,6 +63,3 @@ import { FileResourceConfig, FileResourceProvider } from './resource'; | ||
*/ | ||
watchFiles( | ||
onEvent: (ev: WatchEvent) => void, | ||
filter?: (ev: WatchEvent) => boolean | ||
): Promise<() => Promise<void>> { | ||
watchFiles(onEvent: WatchEventListener, filter?: WatchEventFilter): Promise<() => Promise<void>> { | ||
console.log('Watching', this.getAllPaths()); | ||
@@ -69,0 +66,0 @@ return watchFolders(this.getAllPaths(), onEvent, { filter }); |
@@ -99,3 +99,3 @@ import timers from 'timers/promises'; | ||
*/ | ||
static prettyDelta(delta: number, unit: TimeUnit = 'ms'): string { | ||
static prettyDelta(delta: number, unit?: TimeUnit): string { | ||
if (delta === 0) { | ||
@@ -102,0 +102,0 @@ return `0${unit}`; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
101007
2181
1