@opensecret/react 1.5.1 → 1.5.2
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/LICENSE.md +7 -0
- package/dist/index.d.ts +9 -0
- package/dist/opensecret-react.es.js +913 -903
- package/dist/opensecret-react.umd.js +19 -19
- package/package.json +1 -1
package/LICENSE.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Copyright (c) 2024 OpenSecret
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/dist/index.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ declare namespace api {
|
|
|
43
43
|
fetchUser,
|
|
44
44
|
fetchPut,
|
|
45
45
|
fetchDelete,
|
|
46
|
+
fetchDeleteAllKV,
|
|
46
47
|
fetchGet,
|
|
47
48
|
fetchList,
|
|
48
49
|
fetchLogout,
|
|
@@ -821,6 +822,8 @@ declare function fetchAttestationDocument(nonce: string, explicitApiUrl?: string
|
|
|
821
822
|
|
|
822
823
|
declare function fetchDelete(key: string): Promise<void>;
|
|
823
824
|
|
|
825
|
+
declare function fetchDeleteAllKV(): Promise<void>;
|
|
826
|
+
|
|
824
827
|
declare function fetchGet(key: string): Promise<string | undefined>;
|
|
825
828
|
|
|
826
829
|
declare function fetchGuestLogin(id: string, password: string, client_id: string): Promise<LoginResponse>;
|
|
@@ -1521,6 +1524,12 @@ export declare type OpenSecretContextType = {
|
|
|
1521
1524
|
* - Propagates any server-side errors directly
|
|
1522
1525
|
*/
|
|
1523
1526
|
del: typeof api.fetchDelete;
|
|
1527
|
+
/**
|
|
1528
|
+
* Deletes all key-value pairs from the user's storage
|
|
1529
|
+
* @returns A promise resolving when the deletion is complete
|
|
1530
|
+
* @throws {Error} If the deletion fails
|
|
1531
|
+
*/
|
|
1532
|
+
delAll: typeof api.fetchDeleteAllKV;
|
|
1524
1533
|
verifyEmail: typeof api.verifyEmail;
|
|
1525
1534
|
requestNewVerificationCode: typeof api.requestNewVerificationCode;
|
|
1526
1535
|
requestNewVerificationEmail: typeof api.requestNewVerificationCode;
|