@web/dev-server-core
Advanced tools
Comparing version 0.2.2 to 0.2.3
# @web/dev-server-core | ||
## 0.2.3 | ||
### Patch Changes | ||
- 0cc6a82: expose ErrorWithLocation class | ||
## 0.2.2 | ||
@@ -4,0 +10,0 @@ |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
8
4
245570
4580
6