Skip to content

Commit

Permalink
put todo; 5.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
derhuerst committed Jul 26, 2023
1 parent e6aeb85 commit 3315fcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const TIME = Symbol.for('cached-hafas-client:time')
const isObj = o => o && 'object' === typeof o && !Array.isArray(o)

const hash = (str) => {
// todo: make hash shorter
return createHash('sha256').update(str, 'utf8').digest('hex').slice(0, 32)
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "cached-hafas-client",
"description": "Pass in a HAFAS client, cache data from it.",
"version": "5.1.1",
"version": "5.1.2",
"main": "index.js",
"type": "module",
"files": [
Expand Down

0 comments on commit 3315fcc

Please sign in to comment.