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.3.2 to 4.3.3

4

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

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

"license": "BSD-3-Clause",
"gitHead": "d7f14b66ad97ac81f734cf737cf67cd2ec55fefe"
"gitHead": "2495caf36b6b169ca1320b0259e211d49225287f"
}

@@ -33,3 +33,3 @@ 'use strict';

const bundle = Bundle.create(options);
const results = [ bundle ];
const results = [bundle];
const entry = packet.files[entries[0]];

@@ -40,3 +40,3 @@

for (const mod of Object.values(packet.entries)) {
if (mod.file !== entry.file && mod.file.replace(rExt, '.css') === entry.file) {
if (!entries.includes(mod.file) && mod.file.replace(rExt, '.css') === entry.file) {
entries.push(mod.file);

@@ -46,4 +46,10 @@ break;

}
// if there are multiple entries, the returned bundle might not contain all of them
for (const file of entries) {
if (!bundle.entries.includes(file)) bundle.entries.push(file);
if (bundle.entries.includes(file)) continue;
if (path.extname(file) === '.css') {
bundle.entries.push(file);
} else {
bundle.entries.unshift(file);
}
}

@@ -50,0 +56,0 @@ return results;

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