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

broccoli

Package Overview
Dependencies
Maintainers
3
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

5

CHANGELOG.md
# master
# 1.1.0
* Add `needsCache` to `pluginInterface`. Allows opting out of cache directory
creation.
# 1.0.0

@@ -4,0 +9,0 @@

8

lib/builder.js

@@ -260,3 +260,6 @@ 'use strict'

nodeWrapper.outputPath = this.mkTmpDir(nodeWrapper, 'out')
nodeWrapper.cachePath = this.mkTmpDir(nodeWrapper, 'cache')
if (nodeWrapper.nodeInfo.needsCache) {
nodeWrapper.cachePath = this.mkTmpDir(nodeWrapper, 'cache')
}
} else { // nodeType === 'source'

@@ -506,3 +509,4 @@ // We could name this .sourcePath, but with .outputPath the code is simpler.

annotation: this.nodeInfo.annotation,
persistentOutput: this.nodeInfo.persistentOutput
persistentOutput: this.nodeInfo.persistentOutput,
needsCache: this.nodeInfo.needsCache
// leave out instantiationStack (too long), inputNodes, and callbacks

@@ -509,0 +513,0 @@ })

@@ -23,7 +23,4 @@ var middleware = require('./middleware')

// We register these so the 'exit' handler removing temp dirs is called
function cleanupAndExit() {
// TODO who is responsible for calling builder.cleanup?
return server.watcher.quit()

@@ -35,4 +32,2 @@ }

server.watcher.on('buildSuccess', function() {

@@ -53,4 +48,2 @@ printSlowNodes(server.builder.outputNodeWrapper)

server.watcher.start()

@@ -61,3 +54,3 @@ .catch(function(err) {

.finally(function() {
server.builder.cleanup() // TODO
server.builder.cleanup()
server.http.close()

@@ -73,6 +66,4 @@ })

server.http.listen(parseInt(port, 10), host)
return server
}
{
"name": "broccoli",
"description": "Fast client-side asset builder",
"version": "1.0.0",
"version": "1.1.0",
"author": "Jo Liss <joliss42@gmail.com>",

@@ -22,3 +22,3 @@ "main": "lib/index.js",

"dependencies": {
"broccoli-node-info": "1.0.0",
"broccoli-node-info": "1.1.0",
"broccoli-slow-trees": "^2.0.0",

@@ -46,2 +46,3 @@ "broccoli-source": "^1.1.0",

"multidep": "^2.0.0",
"semver": "^5.3.0",
"sinon": "^1.17.1",

@@ -48,0 +49,0 @@ "sinon-chai": "^2.8.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