Socket
Socket
Sign inDemoInstall

@keymetrics/interdb

Package Overview
Dependencies
Maintainers
4
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@keymetrics/interdb - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

12

lib/db.js
'use strict'
const crypto = require('crypto')
const fs = require('fs')

@@ -91,4 +92,15 @@ const cst = require('../constants.js')

}
// Sha sum
getShaSum () {
try {
const hash = crypto.createHash('sha256')
hash.update(JSON.stringify(this.db.data))
return hash.digest('hex')
} catch (error) {
return null
}
}
}
module.exports = Db

2

package.json
{
"name": "@keymetrics/interdb",
"version": "0.0.7",
"version": "0.0.8",
"description": "Shared and discoverable database services",

@@ -5,0 +5,0 @@ "main": "index.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