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.2.1 to 10.0.0

33

chrome.js

@@ -442,8 +442,35 @@ var util = require('util')

exports.open = function (path, flags, mode, callback) {
path = resolve(path)
var isEntry = false
if (!nullCheck(path, callback)) return
if (typeof path === 'object') {
isEntry = true
} else {
path = resolve(path)
}
console.log(path.constructor)
flags = flagToString(flags)
callback = makeCallback(arguments[arguments.length - 1])
mode = modeNum(mode, 438 /* =0666 */)
if (!nullCheck(path, callback)) return
// Allow for passing of fileentries to support external fs
if (isEntry) {
if (flags.indexOf('w') > -1 || flags.indexOf('a') > -1) {
path.createWriter(function (fileWriter) {
fileWriter.flags = flags
fileWriter.fullPath = path.fullPath
fds[fileWriter.fullPath] = {}
fds[fileWriter.fullPath].status = 'open'
fileWriter.key = fileWriter.fullPath
callback(null, fileWriter)
}, callback)
} else {
path.file(function (file) {
file.fullPath = path.fullPath
fds[file.fullPath] = {}
fds[file.fullPath].status = 'open'
file.key = file.fullPath
callback(null, file)
})
}
return
}
window.requestFileSystem(

@@ -450,0 +477,0 @@ window.PERSISTENT, FILESYSTEM_DEFAULT_SIZE,

2

package.json
{
"name": "chrome-fs",
"version": "9.2.1",
"version": "10.0.0",
"description": "Use the Node `fs` API in Chrome Apps",

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

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