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.20 to 0.3.21

8

dist/rollupAdapter.js

@@ -65,3 +65,3 @@ "use strict";

async resolveImport({ source, context, code, column, line }) {
var _a, _b, _c;
var _a;
if (context.response.is('html') && source.startsWith('�')) {

@@ -79,5 +79,3 @@ // when serving HTML a null byte gets parsed as an unknown character

}
if (!injectedFilePath &&
!path_1.default.isAbsolute(source) &&
/^https?$/.test((_b = (_a = whatwg_url_1.default.parseURL(source)) === null || _a === void 0 ? void 0 : _a.scheme) !== null && _b !== void 0 ? _b : '')) {
if (!injectedFilePath && !path_1.default.isAbsolute(source) && whatwg_url_1.default.parseURL(source) != null) {
// don't resolve relative and valid urls

@@ -105,3 +103,3 @@ return source;

}
let result = await ((_c = rollupPlugin.resolveId) === null || _c === void 0 ? void 0 : _c.call(rollupPluginContext, resolvableImport, filePath, { isEntry: false }));
let result = await ((_a = rollupPlugin.resolveId) === null || _a === void 0 ? void 0 : _a.call(rollupPluginContext, resolvableImport, filePath, { isEntry: false }));
if (!result && injectedFilePath) {

@@ -108,0 +106,0 @@ // the import is a file path but it was not resolved by this plugin

{
"name": "@web/dev-server-rollup",
"version": "0.3.20",
"version": "0.3.21",
"publishConfig": {

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

@@ -116,7 +116,3 @@ /* eslint-disable no-control-regex */

if (
!injectedFilePath &&
!path.isAbsolute(source) &&
/^https?$/.test(whatwgUrl.parseURL(source)?.scheme ?? '')
) {
if (!injectedFilePath && !path.isAbsolute(source) && whatwgUrl.parseURL(source) != null) {
// don't resolve relative and valid urls

@@ -123,0 +119,0 @@ return source;

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