@sesamy/sesamy-js 1.1.0 → 1.3.0
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 +17 -4
- package/package.json +23 -7
- package/dist/sesamy-js.es.js +0 -3145
- package/dist/sesamy-js.umd.js +0 -41
package/README.md
CHANGED
|
@@ -16,10 +16,23 @@ The following events are tracked:
|
|
|
16
16
|
|
|
17
17
|
The following methods are available on the `sesamy` object:
|
|
18
18
|
|
|
19
|
-
-
|
|
20
|
-
-
|
|
21
|
-
-
|
|
22
|
-
-
|
|
19
|
+
- init - Initializes the sesamy-js library
|
|
20
|
+
- auth
|
|
21
|
+
- getUser: fetches the user's profile
|
|
22
|
+
- isAuthenticated: checks if the user is authenticated
|
|
23
|
+
- loginWithRedirect: redirects the user to the login page
|
|
24
|
+
- logout: logs the user out
|
|
25
|
+
- entitlements
|
|
26
|
+
- get: fetches a single entitlement by id
|
|
27
|
+
- list - fetches the user's entitlements
|
|
28
|
+
- profile
|
|
29
|
+
- get: fetches the user's profile
|
|
30
|
+
- update: updates the user's profile
|
|
31
|
+
- tags
|
|
32
|
+
- get: fetches the user's tags
|
|
33
|
+
- set: sets a tag for the user
|
|
34
|
+
- push: pushes a tag to a tag list
|
|
35
|
+
- getVersion: returns the version of the sesamy-js library
|
|
23
36
|
|
|
24
37
|
## Events
|
|
25
38
|
|
package/package.json
CHANGED
|
@@ -6,25 +6,32 @@
|
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
7
7
|
"tag": "latest"
|
|
8
8
|
},
|
|
9
|
-
"version": "1.
|
|
10
|
-
"
|
|
9
|
+
"version": "1.3.0",
|
|
10
|
+
"main": "./dist/sesamy-js.cjs",
|
|
11
|
+
"module": "./dist/sesamy-js.mjs",
|
|
11
12
|
"files": [
|
|
12
13
|
"dist/sesamy-js.es.js",
|
|
13
14
|
"dist/sesamy-js.umd.js"
|
|
14
15
|
],
|
|
15
16
|
"exports": {
|
|
16
17
|
".": {
|
|
17
|
-
"
|
|
18
|
-
"
|
|
18
|
+
"require": "./dist/sesamy-js.cjs",
|
|
19
|
+
"import": "./dist/sesamy-js.mjs"
|
|
20
|
+
},
|
|
21
|
+
"./dist/": {
|
|
22
|
+
"import": "./dist/",
|
|
23
|
+
"require": "./dist/"
|
|
19
24
|
}
|
|
20
25
|
},
|
|
21
26
|
"scripts": {
|
|
22
27
|
"dev": "vite",
|
|
23
|
-
"build": "tsc && vite build",
|
|
24
|
-
"build:prod": "tsc && vite build --config
|
|
28
|
+
"build": "rimraf build/**/* && tsc && vite build --config vite.dev.config.ts",
|
|
29
|
+
"build:prod": "rimraf build/**/* && tsc && vite build && dts-bundle-generator --config ./dts-bundle-generator.config.ts && copyfiles ./package.json build",
|
|
25
30
|
"preview": "vite preview",
|
|
26
31
|
"type-check": "tsc",
|
|
27
|
-
"semantic-release": "semantic-release"
|
|
32
|
+
"semantic-release": "semantic-release",
|
|
33
|
+
"lint": "eslint . --ext .ts",
|
|
34
|
+
"format": "prettier . --write"
|
|
28
35
|
},
|
|
29
36
|
"release": {
|
|
30
37
|
"branches": [
|
|
@@ -57,6 +64,15 @@
|
|
|
57
64
|
"devDependencies": {
|
|
58
65
|
"@semantic-release/changelog": "^6.0.3",
|
|
59
66
|
"@semantic-release/git": "^10.0.1",
|
|
67
|
+
"@types/node": "^20.11.19",
|
|
68
|
+
"@typescript-eslint/eslint-plugin": "^7.0.2",
|
|
69
|
+
"@typescript-eslint/parser": "^7.0.2",
|
|
70
|
+
"copyfiles": "^2.4.1",
|
|
71
|
+
"dts-bundle-generator": "^9.3.1",
|
|
72
|
+
"eslint": "^8.56.0",
|
|
73
|
+
"eslint-config-prettier": "^9.1.0",
|
|
74
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
75
|
+
"prettier": "^3.2.5",
|
|
60
76
|
"semantic-release": "^23.0.2",
|
|
61
77
|
"typescript": "^5.2.2",
|
|
62
78
|
"vite": "^5.0.8",
|