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

brfs

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

brfs - npm Package Compare versions

Comparing version 0.0.9 to 0.1.0

1

index.js

@@ -81,2 +81,3 @@ var fs = require('fs');

node.update(JSON.stringify(src));
tr.emit('file', fpath);
if (--pending === 0) finish(output);

@@ -83,0 +84,0 @@ });

4

package.json
{
"name": "brfs",
"version": "0.0.9",
"version": "0.1.0",
"description": "browserify fs.readFileSync() static asset inliner",

@@ -14,3 +14,3 @@ "main": "index.js",

"tap": "~0.4.0",
"browserify": "~2.22.0",
"browserify": "~3.25.2",
"concat-stream": "~1.0.0"

@@ -17,0 +17,0 @@ },

@@ -10,3 +10,3 @@ var test = require('tap').test;

test('parse non-js, non-json files', function (t) {
t.plan(1);
t.plan(2);

@@ -29,6 +29,11 @@ var b = browserify();

b.bundle(function (err, src) {
var bs = b.bundle(function (err, src) {
if (err) t.fail(err);
vm.runInNewContext(src, { console: { log: log } });
});
bs.on('transform', function (tr) {
tr.on('file', function (file) {
t.equal(file, __dirname + '/files/tr.html');
});
});

@@ -35,0 +40,0 @@ function log (msg) {

Sorry, the diff of this file is not supported yet

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