@lowdefy/plugin-auth0 4.7.2 → 5.0.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.
@@ -12,29 +12,22 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */
16
-
17
- function Auth0LogoutCallback({ url, baseUrl, properties }) {
18
- if (url === 'AUTH0_LOGOUT') {
19
- return `${properties.issuer}/v2/logout?returnTo=${encodeURIComponent(
20
- `${baseUrl}/${properties.returnToPagedId}`
21
- )}&client_id=${properties.clientId}`;
22
- }
23
-
24
- // next-auth default redirect callback implementation
25
- // Allows relative callback URLs
26
- if (url.startsWith('/')) {
27
- return `${baseUrl}${url}`;
28
- }
29
- // Allows callback URLs on the same origin
30
- if (new URL(url).origin === baseUrl) {
31
- return url;
32
- }
33
- return baseUrl;
15
+ */ function Auth0LogoutCallback({ url, baseUrl, properties }) {
16
+ if (url === 'AUTH0_LOGOUT') {
17
+ return `${properties.issuer}/v2/logout?returnTo=${encodeURIComponent(`${baseUrl}/${properties.returnToPagedId}`)}&client_id=${properties.clientId}`;
18
+ }
19
+ // next-auth default redirect callback implementation
20
+ // Allows relative callback URLs
21
+ if (url.startsWith('/')) {
22
+ return `${baseUrl}${url}`;
23
+ }
24
+ // Allows callback URLs on the same origin
25
+ if (new URL(url).origin === baseUrl) {
26
+ return url;
27
+ }
28
+ return baseUrl;
34
29
  }
35
-
36
30
  Auth0LogoutCallback.meta = {
37
- type: 'redirect',
31
+ type: 'redirect'
38
32
  };
39
-
40
33
  export default Auth0LogoutCallback;
@@ -12,6 +12,4 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */
16
-
17
- export { default as Auth0LogoutCallback } from './callbacks/Auth0LogoutCallback.js';
15
+ */ export { default as Auth0LogoutCallback } from './callbacks/Auth0LogoutCallback.js';
@@ -12,12 +12,10 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */
16
-
17
- import * as callbacks from './auth/callbacks.js';
18
-
19
- export default {
20
- auth: {
21
- callbacks: Object.keys(callbacks),
22
- },
15
+ */ export default {
16
+ auth: {
17
+ callbacks: [
18
+ 'Auth0LogoutCallback'
19
+ ]
20
+ }
23
21
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/plugin-auth0",
3
- "version": "4.7.2",
3
+ "version": "5.0.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "",
6
6
  "homepage": "https://lowdefy.com",
@@ -28,23 +28,24 @@
28
28
  },
29
29
  "type": "module",
30
30
  "exports": {
31
- "./auth/callbacks": "./auth/callbacks.js",
32
- "./types": "./types.js"
31
+ "./auth/callbacks": "./dist/auth/callbacks.js",
32
+ "./types": "./dist/types.js"
33
33
  },
34
34
  "files": [
35
- "*"
35
+ "dist/*"
36
36
  ],
37
37
  "devDependencies": {
38
- "@swc/cli": "0.1.63",
39
- "@swc/core": "1.3.99",
40
- "@swc/jest": "0.2.29",
38
+ "@lowdefy/node-utils": "5.0.0",
39
+ "@swc/cli": "0.8.0",
40
+ "@swc/core": "1.15.18",
41
+ "@swc/jest": "0.2.39",
41
42
  "jest": "28.1.3"
42
43
  },
43
44
  "publishConfig": {
44
45
  "access": "public"
45
46
  },
46
47
  "scripts": {
47
- "build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
48
+ "build": "swc src --out-dir dist --config-file ../../../../.swcrc --cli-config-file ../../../../.swc-cli.json --copy-files",
48
49
  "clean": "rm -rf dist"
49
50
  }
50
51
  }
package/CHANGELOG.md DELETED
@@ -1,156 +0,0 @@
1
- # Change Log
2
-
3
- ## 4.7.2
4
-
5
- ## 4.7.1
6
-
7
- ## 4.7.0
8
-
9
- ## 4.6.0
10
-
11
- ## 4.5.2
12
-
13
- ## 4.5.1
14
-
15
- ## 4.5.0
16
-
17
- ## 4.4.0
18
-
19
- ## 4.3.2
20
-
21
- ## 4.3.1
22
-
23
- ## 4.3.0
24
-
25
- ## 4.2.2
26
-
27
- ## 4.2.1
28
-
29
- ### Patch Changes
30
-
31
- - a1f47d97c: Fix Github actions release.
32
-
33
- ## 4.2.0
34
-
35
- ## 4.1.0
36
-
37
- ## 4.0.2
38
-
39
- ## 4.0.1
40
-
41
- ## 4.0.0
42
-
43
- All notable changes to this project will be documented in this file.
44
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
45
-
46
- # [4.0.0-rc.15](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.14...v4.0.0-rc.15) (2023-12-05)
47
-
48
- **Note:** Version bump only for package @lowdefy/plugin-auth0
49
-
50
- # [4.0.0-rc.14](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.12...v4.0.0-rc.14) (2023-11-17)
51
-
52
- **Note:** Version bump only for package @lowdefy/plugin-auth0
53
-
54
- # [4.0.0-rc.13](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.12...v4.0.0-rc.13) (2023-11-17)
55
-
56
- **Note:** Version bump only for package @lowdefy/plugin-auth0
57
-
58
- # [4.0.0-rc.12](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.11...v4.0.0-rc.12) (2023-10-19)
59
-
60
- **Note:** Version bump only for package @lowdefy/plugin-auth0
61
-
62
- # [4.0.0-rc.11](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.10...v4.0.0-rc.11) (2023-10-06)
63
-
64
- ### Bug Fixes
65
-
66
- - **deps:** Dependencies patch updates. ([adcd80a](https://github.com/lowdefy/lowdefy/commit/adcd80afe8c752e15c900b88eb4d9be8526c7bcd))
67
-
68
- # [4.0.0-rc.10](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.9...v4.0.0-rc.10) (2023-07-26)
69
-
70
- **Note:** Version bump only for package @lowdefy/plugin-auth0
71
-
72
- # [4.0.0-rc.9](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.8...v4.0.0-rc.9) (2023-05-31)
73
-
74
- **Note:** Version bump only for package @lowdefy/plugin-auth0
75
-
76
- # [4.0.0-rc.8](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.7...v4.0.0-rc.8) (2023-05-19)
77
-
78
- **Note:** Version bump only for package @lowdefy/plugin-auth0
79
-
80
- # [4.0.0-rc.7](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.6...v4.0.0-rc.7) (2023-03-24)
81
-
82
- **Note:** Version bump only for package @lowdefy/plugin-auth0
83
-
84
- # [4.0.0-rc.6](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.5...v4.0.0-rc.6) (2023-03-20)
85
-
86
- **Note:** Version bump only for package @lowdefy/plugin-auth0
87
-
88
- # [4.0.0-rc.5](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.4...v4.0.0-rc.5) (2023-02-24)
89
-
90
- **Note:** Version bump only for package @lowdefy/plugin-auth0
91
-
92
- # [4.0.0-rc.4](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.3...v4.0.0-rc.4) (2023-02-21)
93
-
94
- **Note:** Version bump only for package @lowdefy/plugin-auth0
95
-
96
- # [4.0.0-rc.3](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.2...v4.0.0-rc.3) (2023-02-21)
97
-
98
- **Note:** Version bump only for package @lowdefy/plugin-auth0
99
-
100
- # [4.0.0-rc.2](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.1...v4.0.0-rc.2) (2023-02-17)
101
-
102
- **Note:** Version bump only for package @lowdefy/plugin-auth0
103
-
104
- # [4.0.0-rc.1](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.0...v4.0.0-rc.1) (2023-02-17)
105
-
106
- **Note:** Version bump only for package @lowdefy/plugin-auth0
107
-
108
- # [4.0.0-rc.0](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.37...v4.0.0-rc.0) (2023-01-05)
109
-
110
- **Note:** Version bump only for package @lowdefy/plugin-auth0
111
-
112
- # [4.0.0-alpha.37](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.36...v4.0.0-alpha.37) (2022-12-07)
113
-
114
- **Note:** Version bump only for package @lowdefy/plugin-auth0
115
-
116
- # [4.0.0-alpha.36](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.35...v4.0.0-alpha.36) (2022-10-14)
117
-
118
- **Note:** Version bump only for package @lowdefy/plugin-auth0
119
-
120
- # [4.0.0-alpha.35](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.34...v4.0.0-alpha.35) (2022-10-05)
121
-
122
- **Note:** Version bump only for package @lowdefy/plugin-auth0
123
-
124
- # [4.0.0-alpha.34](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.33...v4.0.0-alpha.34) (2022-09-30)
125
-
126
- **Note:** Version bump only for package @lowdefy/plugin-auth0
127
-
128
- # [4.0.0-alpha.33](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.32...v4.0.0-alpha.33) (2022-09-22)
129
-
130
- **Note:** Version bump only for package @lowdefy/plugin-auth0
131
-
132
- # [4.0.0-alpha.32](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.31...v4.0.0-alpha.32) (2022-09-22)
133
-
134
- **Note:** Version bump only for package @lowdefy/plugin-auth0
135
-
136
- # [4.0.0-alpha.31](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.30...v4.0.0-alpha.31) (2022-09-21)
137
-
138
- **Note:** Version bump only for package @lowdefy/plugin-auth0
139
-
140
- # [4.0.0-alpha.30](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.29...v4.0.0-alpha.30) (2022-09-17)
141
-
142
- **Note:** Version bump only for package @lowdefy/plugin-auth0
143
-
144
- # [4.0.0-alpha.29](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.28...v4.0.0-alpha.29) (2022-09-13)
145
-
146
- **Note:** Version bump only for package @lowdefy/plugin-auth0
147
-
148
- # [4.0.0-alpha.28](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.27...v4.0.0-alpha.28) (2022-09-12)
149
-
150
- **Note:** Version bump only for package @lowdefy/plugin-auth0
151
-
152
- # [4.0.0-alpha.27](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.26...v4.0.0-alpha.27) (2022-09-08)
153
-
154
- ### Features
155
-
156
- - **plugins:** Add plugin-auth0. ([10a6206](https://github.com/lowdefy/lowdefy/commit/10a6206f93bf5a78e90b5c3659a64bc08132bdc1))