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

@travetto/base

Package Overview
Dependencies
Maintainers
1
Versions
357
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@travetto/base - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1-rc.1

6

package.json
{
"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}`;

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