keystore-idb
Advanced tools
Comparing version 0.14.1 to 0.14.2
{ | ||
"name": "keystore-idb", | ||
"version": "0.14.1", | ||
"version": "0.14.2", | ||
"description": "In-browser key management with IndexedDB and the Web Crypto API", | ||
@@ -27,2 +27,3 @@ "keywords": [], | ||
"test:prod": "npm run lint && npm run test -- --no-cache", | ||
"do-publish": "yarn build && cp package.json LICENSE README.md dist/ && cd dist && npm publish", | ||
"precommit": "lint-staged" | ||
@@ -29,0 +30,0 @@ }, |
@@ -40,2 +40,3 @@ "use strict"; | ||
var types_1 = require("./types"); | ||
var buffer_1 = require("buffer"); | ||
function arrBufToStr(buf, charSize) { | ||
@@ -50,3 +51,3 @@ var arr = charSize === 8 ? new Uint8Array(buf) : new Uint16Array(buf); | ||
var str = arrBufToStr(buf, 8); | ||
return Buffer.from(str, 'binary').toString('base64'); | ||
return buffer_1.Buffer.from(str, 'binary').toString('base64'); | ||
} | ||
@@ -63,3 +64,3 @@ exports.arrBufToBase64 = arrBufToBase64; | ||
function base64ToArrBuf(base64) { | ||
var str = Buffer.from(base64, 'base64').toString('binary'); | ||
var str = buffer_1.Buffer.from(base64, 'base64').toString('binary'); | ||
return strToArrBuf(str, 8); | ||
@@ -66,0 +67,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1911758
18814
7