New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@cara/porter

Package Overview
Dependencies
Maintainers
3
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cara/porter - npm Package Compare versions

Comparing version 4.0.5 to 4.0.6

4

package.json
{
"name": "@cara/porter",
"description": "A middleware for web modules",
"version": "4.0.5",
"version": "4.0.6",
"main": "src/porter.js",

@@ -43,3 +43,3 @@ "repository": {

"license": "BSD-3-Clause",
"gitHead": "55a6c57a7b227aa1367cadfb632da7da9e9759c0"
"gitHead": "f6effff9548901739eabc064bb63491a817c959d"
}

@@ -43,5 +43,15 @@ 'use strict';

// wrapping css bundles, no need to look forward for css dependencies
if (bundle.format === '.css') return results;
if (!entry) return results;
if (bundle.format === '.css') {
for (const mod of Object.values(packet.entries)) {
if (mod.file !== entry.file && mod.file.replace(rExt, '.css') === entry.file) {
entries.push(mod.file);
break;
}
}
for (const file of entries) {
if (!bundle.entries.includes(file)) bundle.entries.push(file);
}
return results;
}

@@ -91,8 +101,8 @@ const cssExtensions = extMap['.css'];

const entry = getEntry(packet, entries);
const key = format === '.css' ? entry.replace(rExt, '.css') : entry;
const outkey = format === '.css' ? entry.replace(rExt, '.css') : entry;
let bundle = bundles[key];
let bundle = bundles[outkey];
if (!bundle) {
bundle = new Bundle({ ...options, format });
bundles[key] = bundle;
bundles[outkey] = bundle;
}

@@ -99,0 +109,0 @@

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