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

@web/dev-server-core

Package Overview
Dependencies
Maintainers
7
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web/dev-server-core - npm Package Compare versions

Comparing version 0.0.0-canary-20240212171943 to 0.0.0-canary-20240219104126

2

dist/server/DevServer.js

@@ -14,3 +14,3 @@ import chokidar from 'chokidar';

connections = new Set();
constructor(config, logger, fileWatcher = chokidar.watch([])) {
constructor(config, logger, fileWatcher = chokidar.watch([], config.chokidarOptions)) {
this.config = config;

@@ -17,0 +17,0 @@ this.logger = logger;

@@ -5,2 +5,3 @@ /// <reference types="node" />

import { Server } from 'net';
import chokidar from 'chokidar';
export type MimeTypeMappings = Record<string, string>;

@@ -68,3 +69,7 @@ export interface DevServerCoreConfig {

disableFileWatcher?: boolean;
/**
* Additional options you want to provide to chokidar file watcher
*/
chokidarOptions?: chokidar.WatchOptions;
}
//# sourceMappingURL=DevServerCoreConfig.d.ts.map
{
"name": "@web/dev-server-core",
"version": "0.0.0-canary-20240212171943",
"version": "0.0.0-canary-20240219104126",
"publishConfig": {

@@ -65,3 +65,3 @@ "access": "public"

"@types/ws": "^7.4.0",
"@web/parse5-utils": "0.0.0-canary-20240212171943",
"@web/parse5-utils": "0.0.0-canary-20240219104126",
"chokidar": "^3.4.3",

@@ -68,0 +68,0 @@ "clone": "^2.1.2",

@@ -21,3 +21,3 @@ import Koa from 'koa';

public logger: Logger,
public fileWatcher = chokidar.watch([]),
public fileWatcher = chokidar.watch([], config.chokidarOptions),
) {

@@ -24,0 +24,0 @@ if (!config) throw new Error('Missing config.');

import { Middleware } from 'koa';
import { Plugin } from '../plugins/Plugin';
import { Server } from 'net';
import chokidar from 'chokidar';

@@ -70,2 +71,7 @@ export type MimeTypeMappings = Record<string, string>;

disableFileWatcher?: boolean;
/**
* Additional options you want to provide to chokidar file watcher
*/
chokidarOptions?: chokidar.WatchOptions;
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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