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

broccoli-file-creator

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-file-creator - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

index.js

@@ -41,5 +41,5 @@ var fs = require('fs');

function linkFromCache(from, to) {
mkdirp.sync(path.dirname(to.outputFile));
mkdirp.sync(path.dirname(to));
symlinkOrCopySync(from, to);
}
{
"name": "broccoli-file-creator",
"version": "1.0.0",
"version": "1.0.1",
"description": "Broccoli plugin to create a file.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -52,2 +52,13 @@ 'use strict';

it('creates the file specified in a non-existent directory', function(){
var content = 'ZOMG, ZOMG, HOLY MOLY!!!';
var tree = writeFile('/somewhere/something.js', content);
builder = new broccoli.Builder(tree);
return builder.build().then(function(result) {
expect(fs.readFileSync(result.directory + '/somewhere/something.js', {encoding: 'utf8'})).to.eql(content);
});
});
it('correctly caches', function(){

@@ -54,0 +65,0 @@ var content = 'ZOMG, ZOMG, HOLY MOLY!!!';

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