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

assetstream

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

assetstream - npm Package Compare versions

Comparing version 0.1.8 to 0.1.9

2

AssetStream.js
var AssetStream = exports;
AssetStream.version = require('./package.json').version;
AssetStream.mime = require('mime');

@@ -5,0 +7,0 @@

2

package.json
{
"name": "assetstream",
"version": "0.1.8",
"version": "0.1.9",
"description": "Stream and transform your browser assets.",

@@ -5,0 +5,0 @@ "repository": {

@@ -266,6 +266,10 @@

var shouldBundle = false;
if (asset.event === 'delete') {
if (modules[asset.path]) {
shouldBundle = true;
}
delete modules[asset.path];
} else if (asset.event === 'update' && isType.javaScript(asset)) {
if (!asset.content.minified) {

@@ -276,2 +280,7 @@ callback(new Error('Can only bundle minified JavaScript modules.'));

modules[asset.path] = loadJavaScriptAsset(asset);
shouldBundle = true;
}
if (shouldBundle) {
if (!loader) {

@@ -282,10 +291,7 @@ loader = loadJavaScriptAsset(createLoader(loaderPath));

modules[asset.path] = loadJavaScriptAsset(asset);
bundleCallback = callback;
clearTimeout(bundleTimer);
bundleTimer = setTimeout(createBundle, 100);
}
};
});
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