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.2.2 to 0.2.3

6

CHANGELOG.md
# @web/dev-server-core
## 0.2.3
### Patch Changes
- 0cc6a82: expose ErrorWithLocation class
## 0.2.2

@@ -4,0 +10,0 @@

2

dist/index.d.ts

@@ -5,3 +5,2 @@ export { DevServer } from './server/DevServer';

export { getRequestBrowserPath, getRequestFilePath, getResponseBody, getHtmlPath, isInlineScriptRequest, } from './utils';
export { Logger } from './logger/Logger';
export { EventStreamManager } from './event-stream/EventStreamManager';

@@ -11,4 +10,5 @@ export { FSWatcher } from 'chokidar';

export { Server } from 'net';
export { Logger, ErrorWithLocation } from './logger/Logger';
export { PluginSyntaxError } from './logger/PluginSyntaxError';
export { PluginError } from './logger/PluginError';
//# sourceMappingURL=index.d.ts.map

@@ -14,4 +14,6 @@ export interface ErrorWithLocation {

warn(...messages: unknown[]): void;
group(): void;
groupEnd(): void;
logSyntaxError(error: ErrorWithLocation): void;
}
//# sourceMappingURL=Logger.d.ts.map

@@ -17,19 +17,8 @@ "use strict";

};
const mockLogger = {
log() {
//
const mockLogger = Object.assign(Object.assign({}, console), { debug() {
// no debug
},
debug() {
//
},
error() {
//
},
warn() {
//
},
logSyntaxError() {
//
},
};
logSyntaxError(error) {
console.error(error);
} });
function virtualFilesPlugin(servedFiles) {

@@ -36,0 +25,0 @@ return {

{
"name": "@web/dev-server-core",
"version": "0.2.2",
"version": "0.2.3",
"publishConfig": {

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

"node-fetch": "3.0.0-beta.7",
"open": "^7.0.4",
"portfinder": "^1.0.26",

@@ -68,0 +67,0 @@ "uuid": "^8.2.0"

@@ -5,7 +5,2 @@ # Web Dev Server Core

Documentation:
- [Using es modules](https://github.com/modernweb-dev/web/blob/master/docs/learn/standards-based/es-modules.md)
- [Common code transformations](https://github.com/modernweb-dev/web/blob/master/docs/docs/dev-server/code-transformations.md)
- [Server Middleware](https://github.com/modernweb-dev/web/blob/master/docs/docs/dev-server/middleware.md)
- [Server plugins](https://github.com/modernweb-dev/web/blob/master/docs/docs/dev-server/server-plugins.md)
See [our website](https://modern-web.dev/docs/dev-server/overview/) for full documentation.

@@ -11,3 +11,2 @@ export { DevServer } from './server/DevServer';

} from './utils';
export { Logger } from './logger/Logger';
export { EventStreamManager } from './event-stream/EventStreamManager';

@@ -17,3 +16,4 @@ export { FSWatcher } from 'chokidar';

export { Server } from 'net';
export { Logger, ErrorWithLocation } from './logger/Logger';
export { PluginSyntaxError } from './logger/PluginSyntaxError';
export { PluginError } from './logger/PluginError';

@@ -15,3 +15,5 @@ export interface ErrorWithLocation {

warn(...messages: unknown[]): void;
group(): void;
groupEnd(): void;
logSyntaxError(error: ErrorWithLocation): void;
}

@@ -18,17 +18,9 @@ import portfinder from 'portfinder';

const mockLogger: Logger = {
log() {
//
},
...console,
debug() {
//
// no debug
},
error() {
//
logSyntaxError(error) {
console.error(error);
},
warn() {
//
},
logSyntaxError() {
//
},
};

@@ -35,0 +27,0 @@

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

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