@descope/web-js-sdk 0.1.0-alpha.2 → 0.1.0-alpha.21

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 {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,43 @@
1
+ export declare const authInfo: {
2
+ sessionJwt: string;
3
+ refreshJwt: string;
4
+ cookieDomain: string;
5
+ cookiePath: string;
6
+ cookieExpiration: number;
7
+ user: {
8
+ name: string;
9
+ loginIds: string[];
10
+ };
11
+ };
12
+ export declare const flowResponse: {
13
+ authInfo: {
14
+ sessionJwt: string;
15
+ refreshJwt: string;
16
+ cookieDomain: string;
17
+ cookiePath: string;
18
+ cookieExpiration: number;
19
+ user: {
20
+ name: string;
21
+ loginIds: string[];
22
+ };
23
+ };
24
+ status: string;
25
+ };
26
+ export declare const completedFlowResponse: {
27
+ authInfo: {
28
+ sessionJwt: string;
29
+ refreshJwt: string;
30
+ cookieDomain: string;
31
+ cookiePath: string;
32
+ cookieExpiration: number;
33
+ user: {
34
+ name: string;
35
+ loginIds: string[];
36
+ };
37
+ };
38
+ status: string;
39
+ };
40
+ export declare const mockFingerprint: {
41
+ vsid: string;
42
+ vrid: string;
43
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ export declare const createMockReturnValue: (data: any) => {
2
+ ok: boolean;
3
+ json: () => Promise<any>;
4
+ clone?: () => any;
5
+ };
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/web-js-sdk",
3
- "version": "0.1.0-alpha.2",
3
+ "version": "0.1.0-alpha.21",
4
4
  "main": "dist/cjs/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "types": "dist/index.d.ts",
@@ -14,11 +14,19 @@
14
14
  "start": "npm run generateCerts && npm run build && http-server -S -o ./examples",
15
15
  "build": "rimraf dist && rollup -c",
16
16
  "test": "jest",
17
- "lint": "eslint src/**/*.* --fix",
17
+ "prepare": "husky install",
18
+ "lint": "eslint '+(src|test|examples)/**/*.ts' --fix",
18
19
  "format": "prettier . -w --ignore-path .gitignore",
20
+ "format-check": "prettier . --check --ignore-path .gitignore",
21
+ "format-lint": "pretty-quick --staged --ignore-path .gitignore && lint-staged",
19
22
  "prepublishOnly": "npm run build",
20
23
  "generateCerts": "test -f ./key.pem && test -f ./cert.pem || openssl req -new -newkey rsa:2048 -days 365 -nodes -x509 -subj '/C=US/ST=California/L=San Francisco/O=Descope/CN=localhost' -keyout ./key.pem -out ./cert.pem"
21
24
  },
25
+ "lint-staged": {
26
+ "+(src|test|examples)/**/*.{js,ts,jsx,tsx}": [
27
+ "npm run lint"
28
+ ]
29
+ },
22
30
  "license": "MIT",
23
31
  "repository": {
24
32
  "type": "git",
@@ -33,7 +41,7 @@
33
41
  ],
34
42
  "devDependencies": {
35
43
  "@open-wc/rollup-plugin-html": "1.2.5",
36
- "@rollup/plugin-commonjs": "^22.0.0",
44
+ "@rollup/plugin-commonjs": "^23.0.0",
37
45
  "@rollup/plugin-node-resolve": "^13.3.0",
38
46
  "@rollup/plugin-replace": "^4.0.0",
39
47
  "@rollup/plugin-typescript": "^8.3.0",
@@ -41,28 +49,31 @@
41
49
  "@types/js-cookie": "^3.0.2",
42
50
  "@types/lodash.get": "^4.4.7",
43
51
  "@typescript-eslint/parser": "^5.33.1",
44
- "eslint": "8.20.0",
52
+ "eslint": "8.30.0",
45
53
  "eslint-config-airbnb-typescript": "17.0.0",
46
54
  "eslint-config-prettier": "8.5.0",
47
55
  "eslint-config-standard": "17.0.0",
48
- "eslint-import-resolver-typescript": "3.3.0",
56
+ "eslint-import-resolver-typescript": "3.5.2",
49
57
  "eslint-plugin-import": "2.26.0",
50
- "eslint-plugin-jest": "26.6.0",
51
- "eslint-plugin-jest-dom": "4.0.2",
58
+ "eslint-plugin-jest": "26.9.0",
59
+ "eslint-plugin-jest-dom": "4.0.3",
52
60
  "eslint-plugin-jest-formatting": "3.1.0",
53
- "eslint-plugin-n": "15.2.4",
54
- "eslint-plugin-no-only-tests": "3.0.0",
61
+ "eslint-plugin-n": "15.6.0",
62
+ "eslint-plugin-no-only-tests": "3.1.0",
55
63
  "eslint-plugin-prefer-arrow": "1.2.3",
56
64
  "eslint-plugin-prettier": "4.2.1",
57
- "eslint-plugin-promise": "6.0.0",
65
+ "eslint-plugin-promise": "6.1.1",
58
66
  "http-server": "^14.0.0",
59
67
  "husky": "^8.0.1",
60
68
  "jest": "^27.3.1",
69
+ "lint-staged": "^13.0.3",
61
70
  "prettier": "^2.6.2",
71
+ "pretty-quick": "^3.1.3",
62
72
  "rimraf": "^3.0.2",
63
73
  "rollup": "^2.62.0",
64
74
  "rollup-plugin-auto-external": "^2.0.0",
65
75
  "rollup-plugin-browsersync": "^1.3.3",
76
+ "rollup-plugin-define": "^1.0.1",
66
77
  "rollup-plugin-delete": "^2.0.0",
67
78
  "rollup-plugin-dts": "^4.2.2",
68
79
  "rollup-plugin-esbuild": "^4.9.1",
@@ -74,9 +85,9 @@
74
85
  "typescript": "^4.5.3"
75
86
  },
76
87
  "dependencies": {
77
- "@descope/core-js-sdk": "0.0.41-alpha.22",
78
- "@fingerprintjs/fingerprintjs-pro": "^3.7.1",
79
- "js-cookie": "^3.0.1"
88
+ "@descope/core-js-sdk": "0.0.41-alpha.43",
89
+ "@fingerprintjs/fingerprintjs-pro": "3.8.1",
90
+ "js-cookie": "3.0.1"
80
91
  },
81
92
  "overrides": {
82
93
  "terser": "^5.14.2"