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

fortune-fs

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fortune-fs - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

11

index.js

@@ -119,3 +119,12 @@ 'use strict'

record = msgpack.decode(buffer)
if(buffer.length === 0) {
return reject(new Error(`Decode record failed. File is empty: ${filePath}`))
}
else {
try {
record = msgpack.decode(buffer)
} catch (e) {
return reject(new Error(`Decode record failed. File is corrupt: ${filePath}`, { cause: e }))
}
}

@@ -122,0 +131,0 @@ if (!(type in self.db)) self.db[type] = {}

9

package.json
{
"name": "fortune-fs",
"description": "File system adapter for Fortune.",
"version": "1.2.0",
"version": "1.2.1",
"license": "MIT",
"repository": {
"type": "git",
"url": "git@github.com:fortunejs/fortune-fs.git"
"url": "git+ssh://git@github.com/fortunejs/fortune-fs.git"
},

@@ -14,3 +14,3 @@ "scripts": {

"tag": "git tag `npm v fortune-fs version` && git push origin --tags",
"test": "npm run lint && node test.js"
"test": "npm run lint && node test/test.js"
},

@@ -28,2 +28,5 @@ "dependencies": {

},
"files": [
"index.js"
],
"keywords": [

@@ -30,0 +33,0 @@ "fs",

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