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

@travetto/manifest

Package Overview
Dependencies
Maintainers
0
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 5.0.0-rc.4 to 5.0.0-rc.5

2

package.json
{
"name": "@travetto/manifest",
"version": "5.0.0-rc.4",
"version": "5.0.0-rc.5",
"description": "Support for project indexing, manifesting, along with file watching",

@@ -5,0 +5,0 @@ "keywords": [

@@ -33,3 +33,3 @@ <!-- This file was generated by @travetto/doc and should not be modified directly -->

## Manifest Delta
During the compilation process, it is helpful to know how the output content differs from the manifest, which is produced from the source input. The [ManifestDeltaUtil](https://github.com/travetto/travetto/tree/main/module/manifest/src/delta.ts#L21) provides the functionality for a given manifest, and will produce a stream of changes grouped by module. This is the primary input into the [Compiler](https://github.com/travetto/travetto/tree/main/module/compiler#readme "The compiler infrastructure for the Travetto framework")'s incremental behavior to know when a file has changed and needs to be recompiled.
During the compilation process, it is helpful to know how the output content differs from the manifest, which is produced from the source input. The [ManifestDeltaUtil](https://github.com/travetto/travetto/tree/main/module/manifest/src/delta.ts#L23) provides the functionality for a given manifest, and will produce a stream of changes grouped by module. This is the primary input into the [Compiler](https://github.com/travetto/travetto/tree/main/module/compiler#readme "The compiler infrastructure for the Travetto framework")'s incremental behavior to know when a file has changed and needs to be recompiled.

@@ -36,0 +36,0 @@ ## Class and Function Metadata

@@ -18,2 +18,4 @@ import fs from 'node:fs/promises';

const TypedObject: { keys<T = unknown, K extends keyof T = keyof T>(o: T): K[] } & ObjectConstructor = Object;
/**

@@ -76,4 +78,3 @@ * Produce delta for the manifest

const out: Record<string, ManifestModuleFile> = {};
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
for (const key of Object.keys(m.files) as (ManifestModuleFolderType[])) {
for (const key of TypedObject.keys(m.files)) {
if (!VALID_SOURCE_FOLDERS.has(key)) {

@@ -80,0 +81,0 @@ continue;

@@ -7,3 +7,2 @@ import { existsSync } from 'node:fs';

import type { ManifestModuleFolderType } from './types/common';
import type { ManifestModule, ManifestRoot, ManifestModuleFile, IndexedModule, IndexedFile, FindConfig } from './types/manifest';

@@ -92,6 +91,5 @@

children: new Set(),
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
files: Object.fromEntries(
Object.entries(m.files).map(([folder, files]) => [folder, this.#moduleFiles(m, files ?? [])])
) as Record<ManifestModuleFolderType, IndexedFile[]>
files: TypedObject.fromEntries(
TypedObject.entries(m.files).map(([folder, files]) => [folder, this.#moduleFiles(m, files ?? [])])
)
}));

@@ -218,4 +216,4 @@

if (mod) {
const patt = new RegExp(`^${mod.replace(/[*]/g, '.*')}$`);
for (const m of allMods.filter(x => patt.test(x))) {
const pattern = new RegExp(`^${mod.replace(/[*]/g, '.*')}$`);
for (const m of allMods.filter(x => pattern.test(x))) {
active[neg ? 'delete' : 'add'](m);

@@ -222,0 +220,0 @@ }

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