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

chrome-fs

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chrome-fs - npm Package Compare versions

Comparing version 9.1.0 to 9.2.0

31

chrome.js

@@ -113,6 +113,2 @@ var util = require('util')

exports.utimes = function (name, now, mtime, cb) {
cb()
}
exports.chown = function (path, uid, gid, callback) {

@@ -132,2 +128,6 @@ resolve(path)

exports.utimes = function (name, now, mtime, cb) {
cb()
}
exports.fchown = function (fd, uid, gid, callback) {

@@ -350,3 +350,3 @@ exports.chown(fd.fullPath, uid, gid, callback)

if (util.isObject(path)) {
return this.ftruncate(path, len, callback)
return exports.ftruncate(path, len, callback)
}

@@ -361,3 +361,3 @@ if (util.isFunction(len)) {

callback = maybeCallback(callback)
this.open(path, 'w', function (er, fd) {
exports.open(path, 'w', function (er, fd) {
if (er) return callback(er)

@@ -441,3 +441,3 @@ fd.onwriteend = function (evt) {

} else {
this.stat(fd.fullPath, callback)
exports.stat(fd.fullPath, callback)
}

@@ -931,3 +931,3 @@ }

options = util._extend({
highWaterMark: 64 * 1024
highWaterMark: 33554432 // 1024 * 1024
}, options || {})

@@ -1084,2 +1084,3 @@

}
options = options || {}

@@ -1139,3 +1140,3 @@

}
WriteStream.prototype.totalsize = 0
WriteStream.prototype._write = function (data, encoding, callbk) {

@@ -1180,3 +1181,3 @@ if (!util.isBuffer(data)) {

}
this.totalsize += data.length
this.writelist.push(data)

@@ -1186,3 +1187,3 @@ this.currentbuffersize += data.length

if (this.currentbuffersize > 1048576) {
if (this.currentbuffersize > 134217728) {
this._intenalwrite()

@@ -1201,2 +1202,6 @@ }

}
if (this.fd.readystate > 0) {
return
}
var dataToWrite = Buffer.concat(this.writelist)

@@ -1206,3 +1211,5 @@ this.writelist = []

var initblob = new Blob([dataToWrite]) // eslint-disable-line
this.fd.write(initblob)
if (typeof this.fd.write !== 'undefined') {
this.fd.write(initblob)
}
}

@@ -1209,0 +1216,0 @@

{
"name": "chrome-fs",
"version": "9.1.0",
"version": "9.2.0",
"description": "Use the Node `fs` API in Chrome Apps",

@@ -31,5 +31,3 @@ "main": "main.js",

},
"dependencies": {
"util": "^0.10.3"
}
"dependencies": {}
}
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