Skip to content

Commit

Permalink
fix typos in README
Browse files Browse the repository at this point in the history
  • Loading branch information
diegommm committed Sep 21, 2023
1 parent 5aadc10 commit e0605a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const store = subtleCryptoStore(window.crypto, backend, 'my super pass', {
```

*NOTE*: these options are very strictly expected to be finite, positive
integer values of typr `number`. If you supply something like `'16'` or `16.1`
integer values of type `number`. If you supply something like `'16'` or `16.1`
that value will be dropped and a default used. Use predefined constants,
sanitize your input or check the returned `options` member, which contains the
parameters being used.
Expand All @@ -58,9 +58,9 @@ SubtleCrypto APIs were already available in most major browsers.
Crypto and SubtleCrypto APIs are only available in a
[Secure Context](https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts).
For browsers, this means that the `Window` or `Worker` have an HTTPS origin, and
if the window belongs to an iframe, then all its ancestors are also delivered
if the window belongs to an `iframe`, then all its ancestors are also delivered
through HTTPS. There are other cases as well, you can read the linked document
for more information. At runtime, the global and raeadonly property
for more information. At runtime, the global and readonly property
[isSecureContext](https://developer.mozilla.org/en-US/docs/Web/API/isSecureContext)
can be used to easily detect the availability of these features, so if it
returns `true` then you should have access to these APIs.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "svelte-subtlecrypto-store",
"version": "1.0.0",
"version": "1.1.0",
"description": "Svelte writable store using SubtleCrypto API",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit e0605a3

Please sign in to comment.