@criipto/verify-react 1.1.2 → 1.1.4

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.
@@ -0,0 +1 @@
1
+ export declare function createMemoryStorage(): Storage;
package/jest.setup.ts CHANGED
@@ -1,22 +1,3 @@
1
- const storageMock = () => {
2
- let store : {[key: string]: string} = {};
3
-
4
- return {
5
- getItem(key: string) {
6
- return store[key] || null;
7
- },
8
- setItem(key: string, value: any) {
9
- store[key] = value.toString();
10
- },
11
- removeItem(key: string) {
12
- delete store[key];
13
- },
14
- clear() {
15
- store = {};
16
- }
17
- };
18
- };
19
-
20
1
  export default async function () {
21
- global.sessionStorage = storageMock() as any;
2
+
22
3
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@criipto/verify-react",
3
3
  "private": false,
4
- "version": "1.1.2",
4
+ "version": "1.1.4",
5
5
  "description": "Verify SDK for React Single Page Applications",
6
6
  "main": "dist/criipto-verify-react.cjs.js",
7
7
  "types": "dist/index.d.ts",
package/example/README.md DELETED
@@ -1,9 +0,0 @@
1
- # Example app with @criipto-verify-react
2
-
3
- `CriiptoVerifyProvider` is implemented in [src/index.js](src/index.js) and the primary app logic is in [src/App.js](src/App.js).
4
- You can run this sample app directly with example credentials, or use your own `domain`and `clientID` if you configure your application on the [Criipto Dashboard](https://dashboard.criipto.com/).
5
-
6
- ```jsx
7
- domain = 'samples.criipto.id';
8
- clientID = 'urn:criipto:samples:criipto-verify-react';
9
- ```