@travetto/manifest
Advanced tools
Comparing version 3.0.1 to 3.0.2-rc.0
{ | ||
"name": "@travetto/manifest", | ||
"version": "3.0.1", | ||
"version": "3.0.2-rc.0", | ||
"description": "Support for project indexing, manifesting, along with file watching", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -99,3 +99,3 @@ <!-- This file was generated by @travetto/doc and should not be modified directly --> | ||
export type WatchEvent = { action: 'create' | 'update' | 'delete', file: string }; | ||
type EventFilter = (ev: WatchEvent) => boolean; | ||
export type WatchEventFilter = (ev: WatchEvent) => boolean; | ||
@@ -107,3 +107,3 @@ export type WatchEventListener = (ev: WatchEvent, folder: string) => void; | ||
*/ | ||
filter?: EventFilter; | ||
filter?: WatchEventFilter; | ||
/** | ||
@@ -124,11 +124,11 @@ * List of top level folders to ignore | ||
/** | ||
* Leverages @parcel/watcher to watch a series of folders | ||
* @param folders | ||
* Watch files for a given folder | ||
* @param folder | ||
* @param onEvent | ||
* @private | ||
* @param options | ||
*/ | ||
export async function watchFolders( | ||
folders: string[] | [folder: string, targetFolder: string][], | ||
export async function watchFolderImmediate( | ||
folder: string, | ||
onEvent: WatchEventListener, | ||
config: WatchConfig = {} | ||
options: WatchConfig = {} | ||
): Promise<() => Promise<void>> { | ||
@@ -135,0 +135,0 @@ ``` |
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
70409
1