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

firestorm-db

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

firestorm-db - npm Package Compare versions

Comparing version 1.8.0 to 1.9.0

18

index.js

@@ -12,2 +12,3 @@ try {

* @property {String | Number | Boolean | Array } value // the value you want to compare
* @property {Boolean} ignoreCase Ignore case on search string
*/

@@ -124,2 +125,12 @@

/**
* @returns {String} returns sha1 hash of the file. can be used to see if same file content without downloding the file for example
*/
sha1() {
return this.__get_request({
"collection": this.collectionName,
"command": "sha1",
})
}
/**
* Search through collection

@@ -166,5 +177,7 @@ * @param {SearchOption[]} searchOptions Array of search options

return new Promise((resolve, reject) => {
let raw
this.__get_request(params).then(res => {
const arr = []
raw = res
Object.keys(res).forEach(contribID => {

@@ -178,3 +191,6 @@ const tmp = res[contribID]

}).catch(err => reject(err))
}).catch(err => {
err.raw = raw
reject(err)
})
})

@@ -181,0 +197,0 @@ }

7

package.json
{
"name": "firestorm-db",
"version": "1.8.0",
"version": "1.9.0",
"description": "Self hosted Firestore-like database with API endpoints based on micro bulk operations",

@@ -8,3 +8,3 @@ "main": "index.js",

"php_start": "node tests/php_setup.js",
"test": "./node_modules/.bin/mocha tests/**/*.spec.js",
"test": "./node_modules/.bin/mocha -b tests/**/*.spec.js",
"php_stop": "sh tests/php_server_kill.sh",

@@ -39,6 +39,7 @@ "full": "npm run php_start && npm run test ; npm run php_stop",

"chai": "^4.3.4",
"crypto": "^1.0.1",
"fs": "0.0.1-security",
"fs-extra": "^10.0.0",
"glob": "^7.1.7",
"mocha": "^9.0.0",
"mocha": "^9.1.3",
"path": "^0.12.7",

@@ -45,0 +46,0 @@ "recursive-copy": "^2.0.11"

@@ -81,2 +81,3 @@ <div align="center">

|--|--|--|
| sha1() | none | Returns the file sha1 hash, may vary from read_raw because read_raw adds ID fields to the entries. Compare with stringify version of your file. |
| read_raw() | none | Reads the entire collection |

@@ -89,3 +90,3 @@ | get(id) | id: ``String\|Name`` | Tries to get one element by its key |

Search method can take one or more options to filter entries in a collection. A search option studies a ``field`` with a ``criteria`` and compares it to a ``value``.
Search method can take one or more options to filter entries in a collection. A search option studies a ``field`` with a ``criteria`` and compares it to a ``value``. On string values you can now use the boolean ``ignoreCase`` option.

@@ -92,0 +93,0 @@ Not all criterias are available depending the field type. There a more options available than the firestore ``where`` command allowing you to get better and faster search results.

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