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

es6-dev-server

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es6-dev-server - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

11

index.js

@@ -181,6 +181,7 @@ // ES6 DEV SERVER

/* Note: if resolveImports() fails, the server will return error 500. */
const { resolvedCode, error } = this.resolveImports(moduleFilePath, code)
let { resolvedCode, error } = this.resolveImports(moduleFilePath, code)
if (error) {
this.send(req, res, 500, error)
return true
// this.send(req, res, 500, error)
// return true
resolvedCode = code
}

@@ -239,2 +240,3 @@

const { error, path } = this.resolveModuleLikeNode(moduleFilePath, orig)
if (error) return { error }

@@ -250,2 +252,5 @@ patches.push({

ImportDeclaration: patchSrc,
ExportAllDeclaration: patchSrc,
ExportDefaultDeclaration: patchSrc,
ExportNamedDeclaration: patchSrc,
ImportExpression: node => {

@@ -252,0 +257,0 @@ if (node.source.type === 'Literal') {

{
"name": "es6-dev-server",
"description": "Serve ES6 modules ensuring node resolution via the node algorithm. Express middleware and full server",
"version": "0.0.9",
"version": "0.0.10",
"bin": {

@@ -6,0 +6,0 @@ "es6-dev-server": "./server"

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