@opensecret/react 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/package.json +4 -2
- package/dist/opensecret-react.es.js +0 -15182
- package/dist/opensecret-react.umd.js +0 -154
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ import { OpenSecretProvider } from "@opensecret/react";
|
|
|
17
17
|
|
|
18
18
|
function App() {
|
|
19
19
|
return (
|
|
20
|
-
<OpenSecretProvider apiUrl="https://preview.opensecret.
|
|
20
|
+
<OpenSecretProvider apiUrl="https://preview-enclave.opensecret.cloud">
|
|
21
21
|
<App />
|
|
22
22
|
</OpenSecretProvider>
|
|
23
23
|
);
|
|
@@ -35,7 +35,7 @@ function App() {
|
|
|
35
35
|
return (
|
|
36
36
|
<div>
|
|
37
37
|
<button onClick={() => os.signIn("email", "password")}>Sign In</button>
|
|
38
|
-
<button onClick={() => os.signUp("name", "email", "password"
|
|
38
|
+
<button onClick={() => os.signUp("name", "email", "password")}>Sign Up</button>
|
|
39
39
|
<button onClick={() => os.signOut()}>Sign Out</button>
|
|
40
40
|
<button onClick={() => os.get("key")}>Get Value</button>
|
|
41
41
|
<button onClick={() => os.put("key", "value")}>Put Value</button>
|
|
@@ -53,7 +53,7 @@ function App() {
|
|
|
53
53
|
The `OpenSecretProvider` component is the main entry point for the SDK. It requires a single prop, `apiUrl`, which should be set to the URL of your OpenSecret backend.
|
|
54
54
|
|
|
55
55
|
```tsx
|
|
56
|
-
<OpenSecretProvider apiUrl="https://preview.opensecret.
|
|
56
|
+
<OpenSecretProvider apiUrl="https://preview-enclave.opensecret.cloud">
|
|
57
57
|
<App />
|
|
58
58
|
</OpenSecretProvider>
|
|
59
59
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opensecret/react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -47,6 +47,8 @@
|
|
|
47
47
|
"prettier": "^3.3.3",
|
|
48
48
|
"typescript": "~5.6.2",
|
|
49
49
|
"typescript-eslint": "^8.11.0",
|
|
50
|
-
"vite": "^5.4.10"
|
|
50
|
+
"vite": "^5.4.10",
|
|
51
|
+
"@noble/curves": "^1.6.0",
|
|
52
|
+
"@noble/hashes": "^1.5.0"
|
|
51
53
|
}
|
|
52
54
|
}
|