Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@travetto/manifest

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@travetto/manifest - npm Package Compare versions

Comparing version 4.0.2 to 4.0.3

2

package.json
{
"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 = {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc