@keymetrics/interdb
Advanced tools
Comparing version 0.0.7 to 0.0.8
'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 |
{ | ||
"name": "@keymetrics/interdb", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "Shared and discoverable database services", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
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
55119
170