orbit-db-storage-adapter
Advanced tools
Comparing version 0.5.0 to 0.5.1
{ | ||
"name": "orbit-db-storage-adapter", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "OrbitDB adapter for any abstract-leveldown compliant storage", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
@@ -5,2 +5,3 @@ 'use strict' | ||
const level = require('level') | ||
const fs = require('fs') | ||
@@ -60,2 +61,4 @@ // Should work for all abstract-leveldown compliant stores | ||
} else { | ||
// Default leveldown or level-js store with directory creation | ||
if(fs && fs.mkdirSync) fs.mkdirSync(directory, { recursive: true }) | ||
resolve(level(directory, options)) | ||
@@ -62,0 +65,0 @@ } |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
137158
702
3