@travetto/manifest
Advanced tools
Comparing version 4.0.2 to 4.0.3
{ | ||
"name": "@travetto/manifest", | ||
"version": "4.0.2", | ||
"version": "4.0.3", | ||
"description": "Support for project indexing, manifesting, along with file watching", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -187,3 +187,4 @@ import fs from 'node:fs/promises'; | ||
static async transformFile(moduleFile: string, full: string): Promise<ManifestModuleFile> { | ||
const res: ManifestModuleFile = [moduleFile, this.getFileType(moduleFile), this.#getNewest(await fs.stat(full))]; | ||
const updated = this.#getNewest(await fs.stat(full).catch(() => ({ mtimeMs: 0, ctimeMs: 0 }))); | ||
const res: ManifestModuleFile = [moduleFile, this.getFileType(moduleFile), updated]; | ||
const role = this.getFileRole(moduleFile); | ||
@@ -190,0 +191,0 @@ return role ? [...res, role] : res; |
@@ -5,3 +5,5 @@ import type { ManifestModuleFileType, ManifestModuleFolderType, ManifestModuleRole } from './common'; | ||
export type ManifestModuleFile = [string, ManifestModuleFileType, number] | [string, ManifestModuleFileType, number, ManifestModuleRole]; | ||
export type ManifestModuleFile = | ||
[path: string, type: ManifestModuleFileType, updated: number] | | ||
[path: string, type: ManifestModuleFileType, updated: number, role: ManifestModuleRole]; | ||
@@ -8,0 +10,0 @@ export type ManifestDepCore = { |
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
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
71937
1625