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

@parcel/packager-html

Package Overview
Dependencies
Maintainers
1
Versions
890
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@parcel/packager-html - npm Package Compare versions

Comparing version 2.0.0-nightly.79 to 2.0.0-nightly.85

9

lib/HTMLPackager.js

@@ -41,6 +41,4 @@ "use strict";

let bundleGroups = bundleGraph.getBundleGroupsReferencedByBundle(bundle);
let bundles = bundleGroups.reduce((p, {
bundleGroup
}) => {
let bundleGroups = bundleGraph.getExternalDependencies(bundle).map(dependency => bundleGraph.resolveExternalDependency(dependency)).filter(Boolean);
let bundles = bundleGroups.reduce((p, bundleGroup) => {
let bundles = bundleGraph.getBundlesInBundleGroup(bundleGroup).filter(bundle => !bundle.getEntryAssets().some(asset => asset.id === bundleGroup.entryAssetId));

@@ -58,3 +56,4 @@ return p.concat(bundles);

bundleGraph,
contents: html
contents: html,
relative: false
});

@@ -61,0 +60,0 @@ }

{
"name": "@parcel/packager-html",
"version": "2.0.0-nightly.79+287ac639",
"version": "2.0.0-nightly.85+e33d9161",
"license": "MIT",

@@ -19,9 +19,9 @@ "publishConfig": {

"dependencies": {
"@parcel/plugin": "2.0.0-nightly.79+287ac639",
"@parcel/types": "2.0.0-nightly.79+287ac639",
"@parcel/utils": "2.0.0-nightly.79+287ac639",
"@parcel/plugin": "2.0.0-nightly.85+e33d9161",
"@parcel/types": "2.0.0-nightly.85+e33d9161",
"@parcel/utils": "2.0.0-nightly.85+e33d9161",
"nullthrows": "^1.1.1",
"posthtml": "^0.11.3"
},
"gitHead": "287ac6397ade28595d56ac73971edb832bda8ff7"
"gitHead": "e33d91613d0ab9f600c93c5f8466f20fe9ca9dce"
}

@@ -37,4 +37,7 @@ // @flow strict-local

// JS. This will be inserted as a <link> element into the HTML here.
let bundleGroups = bundleGraph.getBundleGroupsReferencedByBundle(bundle);
let bundles = bundleGroups.reduce((p, {bundleGroup}) => {
let bundleGroups = bundleGraph
.getExternalDependencies(bundle)
.map(dependency => bundleGraph.resolveExternalDependency(dependency))
.filter(Boolean);
let bundles = bundleGroups.reduce((p, bundleGroup) => {
let bundles = bundleGraph

@@ -70,2 +73,3 @@ .getBundlesInBundleGroup(bundleGroup)

contents: html,
relative: false,
});

@@ -72,0 +76,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