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

fortune-fs

Package Overview
Dependencies
Maintainers
1
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.0.0 to 1.0.1

15

index.js

@@ -16,3 +16,3 @@ 'use strict'

var DefaultAdapter = Adapter.DefaultAdapter
var map, primaryKey, generateId
var map, primaryKey

@@ -30,3 +30,2 @@ function FileSystemAdapter (properties) {

map = properties.common.map
generateId = properties.common.generateId
}

@@ -115,8 +114,10 @@

var self = this
var memoizedIds = ids || Object.keys(self.db[type])
return writeRecords(
path.join(self.options.path, type),
ids || Object.keys(self.db[type]))
.then(function () {
return DefaultAdapter.prototype.delete.call(self, type, ids)
return DefaultAdapter.prototype.delete.call(self, type, ids)
.then(function (count) {
return writeRecords(
path.join(self.options.path, type),
memoizedIds)
.then(function () { return count })
})

@@ -123,0 +124,0 @@ }

{
"name": "fortune-fs",
"description": "File system adapter for Fortune.",
"version": "1.0.0",
"version": "1.0.1",
"license": "MIT",

@@ -6,0 +6,0 @@ "repository": {

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