Socket
Socket
Sign inDemoInstall

@web/dev-server-rollup

Package Overview
Dependencies
Maintainers
7
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 0.3.16 to 0.3.17

5

dist/rollupAdapter.js

@@ -153,3 +153,6 @@ "use strict";

const normalizedPath = path_1.default.normalize(resolvedImportPath);
if (!normalizedPath.startsWith(rootDir)) {
// append a path separator to rootDir so we are actually testing containment
// of the normalized path within the rootDir folder
const checkRootDir = rootDir.endsWith(path_1.default.sep) ? rootDir : rootDir + path_1.default.sep;
if (!normalizedPath.startsWith(checkRootDir)) {
const relativePath = path_1.default.relative(rootDir, normalizedPath);

@@ -156,0 +159,0 @@ const dirUp = `..${path_1.default.sep}`;

2

package.json
{
"name": "@web/dev-server-rollup",
"version": "0.3.16",
"version": "0.3.17",
"publishConfig": {

@@ -5,0 +5,0 @@ "access": "public"

@@ -217,3 +217,8 @@ /* eslint-disable no-control-regex */

const normalizedPath = path.normalize(resolvedImportPath);
if (!normalizedPath.startsWith(rootDir)) {
// append a path separator to rootDir so we are actually testing containment
// of the normalized path within the rootDir folder
const checkRootDir = rootDir.endsWith(path.sep) ? rootDir : rootDir + path.sep;
if (!normalizedPath.startsWith(checkRootDir)) {
const relativePath = path.relative(rootDir, normalizedPath);

@@ -220,0 +225,0 @@ const dirUp = `..${path.sep}`;

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