Compare commits

...
4 Commits
Author SHA1 Message Date
Mathias Buus 51093efbc5 0.7.2 2020-11-12 14:46:28 +01:00
Christophe Diederichs f79aed4eee turn off worker_threads in browser (#52) 2020-11-12 14:04:40 +01:00
Kyle Mathews 3eb1d64460 Small copy change to README (#54) 2020-11-12 08:39:33 +01:00
RangerMauve 7febc97986 Detect window.close is defined (#49) 2020-10-09 13:35:11 +02:00
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ console.log('Plaintext:', plainText.toString())
## API
See [sodium-native](https://github.com/sodium-friends/sodium-native).
This is a work in progress so all functions are not implemented yet.
This is a work in progress so not all functions are implemented yet.
This module is organised into individual submodules which can be required
independently for smaller bundles in the browser. To leverage automatic
+3 -2
View File
@@ -1,6 +1,6 @@
{
"name": "sodium-javascript",
"version": "0.7.1",
"version": "0.7.2",
"description": "WIP - a pure javascript version of sodium-native",
"main": "index.js",
"dependencies": {
@@ -24,7 +24,8 @@
]
},
"browser": {
"crypto": false
"crypto": false,
"worker_threads": false
},
"react-native": {
"crypto": "crypto"
+1 -1
View File
@@ -1,3 +1,3 @@
require('sodium-test')(require('.'))
if (typeof window !== 'undefined') window.close()
if ((typeof window !== 'undefined') && window.close) window.close()