@useparagon/connect 2.3.1-experimental.19665.1 → 2.3.1
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.
|
@@ -21,14 +21,3 @@ export declare function sanitizeExternalConfigId(externalId: string): string;
|
|
|
21
21
|
export declare const getHeadersForUserMeta: (userMeta?: PersonaMeta) => {
|
|
22
22
|
[x: string]: string;
|
|
23
23
|
};
|
|
24
|
-
/**
|
|
25
|
-
* Normalizes persona metadata keys to match DB conventions.
|
|
26
|
-
* `name` (any casing) -> `Name`, `email` (any casing) -> `Email`,
|
|
27
|
-
* all other keys are trimmed.
|
|
28
|
-
*/
|
|
29
|
-
export declare function normalizePersonaMeta(meta: PersonaMeta): PersonaMeta;
|
|
30
|
-
/**
|
|
31
|
-
* Checks whether incoming metadata (from request header) would produce
|
|
32
|
-
* a meaningful change when merged into the existing stored metadata.
|
|
33
|
-
*/
|
|
34
|
-
export declare function hasPersonaMetaChanged(incomingMeta: PersonaMeta, storedMeta: PersonaMeta | undefined | null): boolean;
|
|
@@ -28,6 +28,12 @@ export declare function generateMatrix<T extends Record<string, any>>(input: {
|
|
|
28
28
|
[k in keyof T]: T[k][];
|
|
29
29
|
}, limit?: number): T[];
|
|
30
30
|
export declare function sleep(milliseconds: number): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* Normalizes a plain object for comparison by sorting keys (key-order independent).
|
|
33
|
+
* Only handles objects; does not accept or recurse into arrays.
|
|
34
|
+
*/
|
|
35
|
+
export declare function normalizeForMetaCompare(value: Record<string, unknown>): Record<string, unknown>;
|
|
36
|
+
export declare function areObjectsEqual(a: Record<string, unknown>, b: Record<string, unknown>): boolean;
|
|
31
37
|
export declare const uuidPattern: RegExp;
|
|
32
38
|
export declare function isUUID(value: string | unknown): boolean;
|
|
33
39
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useparagon/connect",
|
|
3
|
-
"version": "2.3.1
|
|
3
|
+
"version": "2.3.1",
|
|
4
4
|
"description": "Embed integrations into your app with the Paragon SDK",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
|
@@ -33,7 +33,6 @@
|
|
|
33
33
|
"clone-deep": "^4.0.1",
|
|
34
34
|
"hash.js": "^1.1.7",
|
|
35
35
|
"jwt-decode": "^3.1.2",
|
|
36
|
-
"lodash": "^4.17.23",
|
|
37
36
|
"react": "^17.0.2",
|
|
38
37
|
"tslib": "2.3.1"
|
|
39
38
|
},
|
|
@@ -47,7 +46,6 @@
|
|
|
47
46
|
"@types/gapi": "^0.0.47",
|
|
48
47
|
"@types/google.picker": "^0.0.42",
|
|
49
48
|
"@types/jest": "^29.5.1",
|
|
50
|
-
"@types/lodash": "^4.17.24",
|
|
51
49
|
"@types/node": "^18.13.0",
|
|
52
50
|
"@types/react": "^17.0.11",
|
|
53
51
|
"@types/react-dom": "^17.0.8",
|