@ctx-core/auth0-management 9.8.136 → 10.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.
- package/AUTH0_MANAGEMENT_ID/index.d.ts +2 -2
- package/AUTH0_MANAGEMENT_ID/index.js +5 -4
- package/AUTH0_MANAGEMENT_SECRET/index.d.ts +2 -2
- package/AUTH0_MANAGEMENT_SECRET/index.js +5 -4
- package/auth0__user/index.d.ts +2 -2
- package/auth0__user/index.js +6 -4
- package/auth0__user/index.test.ts +2 -2
- package/package.json +78 -79
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { be_sig_triple_T } from 'ctx-core/rmemo'
|
|
2
2
|
export declare const [
|
|
3
3
|
AUTH0_MANAGEMENT_ID$_,
|
|
4
4
|
AUTH0_MANAGEMENT_ID_,
|
|
5
5
|
AUTH0_MANAGEMENT_ID__set,
|
|
6
|
-
]:
|
|
6
|
+
]:be_sig_triple_T<string>
|
|
7
7
|
export {
|
|
8
8
|
AUTH0_MANAGEMENT_ID$_ as AUTH0_MANAGEMENT_ID__,
|
|
9
9
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
/// <reference types="ctx-core" />
|
|
1
2
|
import { import_meta_env_ } from 'ctx-core/env'
|
|
2
|
-
import {
|
|
3
|
-
/** @typedef {import('@ctx-core/nanostores').be_atom_triple_T} */
|
|
3
|
+
import { be_sig_triple_ } from 'ctx-core/rmemo'
|
|
4
4
|
export const [
|
|
5
5
|
AUTH0_MANAGEMENT_ID$_,
|
|
6
6
|
AUTH0_MANAGEMENT_ID_,
|
|
7
7
|
AUTH0_MANAGEMENT_ID__set,
|
|
8
|
-
] = /** @type {
|
|
9
|
-
|
|
8
|
+
] = /** @type {be_sig_triple_T<string>} */
|
|
9
|
+
be_sig_triple_(()=>
|
|
10
|
+
import_meta_env_().AUTH0_MANAGEMENT_ID)
|
|
10
11
|
export {
|
|
11
12
|
AUTH0_MANAGEMENT_ID$_ as AUTH0_MANAGEMENT_ID__,
|
|
12
13
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { be_sig_triple_T } from 'ctx-core/rmemo'
|
|
2
2
|
export declare const [
|
|
3
3
|
AUTH0_MANAGEMENT_SECRET$_,
|
|
4
4
|
AUTH0_MANAGEMENT_SECRET_,
|
|
5
5
|
AUTH0_MANAGEMENT_SECRET__set,
|
|
6
|
-
]:
|
|
6
|
+
]:be_sig_triple_T<string>
|
|
7
7
|
export {
|
|
8
8
|
AUTH0_MANAGEMENT_SECRET$_ as AUTH0_MANAGEMENT_SECRET__,
|
|
9
9
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
/// <reference types="ctx-core" />
|
|
1
2
|
import { import_meta_env_ } from 'ctx-core/env'
|
|
2
|
-
import {
|
|
3
|
-
/** @typedef {import('@ctx-core/nanostores').be_atom_triple_T} */
|
|
3
|
+
import { be_sig_triple_ } from 'ctx-core/rmemo'
|
|
4
4
|
export const [
|
|
5
5
|
AUTH0_MANAGEMENT_SECRET$_,
|
|
6
6
|
AUTH0_MANAGEMENT_SECRET_,
|
|
7
7
|
AUTH0_MANAGEMENT_SECRET__set,
|
|
8
|
-
] = /** @type {
|
|
9
|
-
|
|
8
|
+
] = /** @type {be_sig_triple_T<string>} */
|
|
9
|
+
be_sig_triple_(()=>
|
|
10
|
+
import_meta_env_().AUTH0_MANAGEMENT_SECRET)
|
|
10
11
|
export {
|
|
11
12
|
AUTH0_MANAGEMENT_SECRET$_ as AUTH0_MANAGEMENT_SECRET__,
|
|
12
13
|
}
|
package/auth0__user/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { be_sig_triple_T } from 'ctx-core/rmemo'
|
|
2
2
|
import type { UserProfile } from 'auth0'
|
|
3
3
|
export declare const [
|
|
4
4
|
auth0__user$_,
|
|
5
5
|
auth0__user_,
|
|
6
6
|
auth0__user__set,
|
|
7
|
-
]:
|
|
7
|
+
]:be_sig_triple_T<UserProfile>
|
package/auth0__user/index.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/// <reference types="ctx-core" />
|
|
2
|
+
import { be_sig_triple_ } from 'ctx-core/rmemo'
|
|
3
|
+
/** @typedef {be_sig_triple_T} */
|
|
3
4
|
export const [
|
|
4
5
|
auth0__user$_,
|
|
5
6
|
auth0__user_,
|
|
6
7
|
auth0__user__set,
|
|
7
|
-
] = /** @type {
|
|
8
|
-
|
|
8
|
+
] = /** @type {be_sig_triple_T<import('auth0').UserProfile>} */
|
|
9
|
+
be_sig_triple_(()=>
|
|
10
|
+
undefined)
|
|
@@ -6,10 +6,10 @@ import { auth0__user$_, auth0__user_, auth0__user__set } from '../index.js'
|
|
|
6
6
|
test('auth0__user', ()=>{
|
|
7
7
|
const ctx = ctx__new()
|
|
8
8
|
const auth0__user = auth0__user__new()
|
|
9
|
-
equal(auth0__user$_(ctx)
|
|
9
|
+
equal(auth0__user$_(ctx)(), undefined)
|
|
10
10
|
equal(auth0__user_(ctx), undefined)
|
|
11
11
|
auth0__user__set(ctx, auth0__user)
|
|
12
|
-
equal(auth0__user$_(ctx)
|
|
12
|
+
equal(auth0__user$_(ctx)(), auth0__user)
|
|
13
13
|
equal(auth0__user_(ctx), auth0__user)
|
|
14
14
|
})
|
|
15
15
|
test.run()
|
package/package.json
CHANGED
|
@@ -1,80 +1,79 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}
|
|
2
|
+
"name": "@ctx-core/auth0-management",
|
|
3
|
+
"version": "10.0.0",
|
|
4
|
+
"description": "ctx-core auth0 management api",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"ctx-core",
|
|
7
|
+
"auth0"
|
|
8
|
+
],
|
|
9
|
+
"homepage": "https://github.com/ctx-core/auth0-management#readme",
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/ctx-core/auth0-management/issues"
|
|
12
|
+
},
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "https://github.com/ctx-core/auth0-management.git"
|
|
16
|
+
},
|
|
17
|
+
"license": "Apache-2.0",
|
|
18
|
+
"author": "Brian Takita",
|
|
19
|
+
"type": "module",
|
|
20
|
+
"files": [
|
|
21
|
+
"*.d.ts",
|
|
22
|
+
"*.js",
|
|
23
|
+
"*.json",
|
|
24
|
+
"./bin",
|
|
25
|
+
"./auth0__user",
|
|
26
|
+
"./auth0__v2_client__GET__fetch",
|
|
27
|
+
"./auth0__v2_client_grants__GET__fetch",
|
|
28
|
+
"./auth0__v2_user__GET__fetch",
|
|
29
|
+
"./auth0__v2_user__PATCH__fetch",
|
|
30
|
+
"./auth0__v2_users_by_email__GET__fetch",
|
|
31
|
+
"./auth0_management__client_credentials__body__new",
|
|
32
|
+
"./auth0_management__init",
|
|
33
|
+
"./auth0_management__new",
|
|
34
|
+
"./auth0_management__token__new",
|
|
35
|
+
"./AUTH0_MANAGEMENT_ID",
|
|
36
|
+
"./AUTH0_MANAGEMENT_SECRET"
|
|
37
|
+
],
|
|
38
|
+
"types": "./index.d.ts",
|
|
39
|
+
"exports": {
|
|
40
|
+
".": "./index.js",
|
|
41
|
+
"./package.json": "./package.json"
|
|
42
|
+
},
|
|
43
|
+
"bin": {
|
|
44
|
+
"add-grant-password-auth0": "./bin/add-grant-password-auth0.mjs",
|
|
45
|
+
"auth0": "./bin/auth0.mjs",
|
|
46
|
+
"getAll-client-grants-auth0": "./bin/getAll-client-grants-auth0.mjs"
|
|
47
|
+
},
|
|
48
|
+
"scripts": {
|
|
49
|
+
"build": ":",
|
|
50
|
+
"clean": ":",
|
|
51
|
+
"exec": "$@",
|
|
52
|
+
"prepublishOnly": "pnpm clean && pnpm build && pnpm test",
|
|
53
|
+
"test": "pnpm test-unit && check-dts",
|
|
54
|
+
"test-unit": "tsx node_modules/uvu/bin.js . '\\.test\\.(ts|js)$'",
|
|
55
|
+
"test-unit-coverage": "c8 pnpm test-unit"
|
|
56
|
+
},
|
|
57
|
+
"dependencies": {
|
|
58
|
+
"@ctx-core/auth0": "^40.1.128",
|
|
59
|
+
"@ctx-core/fetch": "^13.1.70",
|
|
60
|
+
"auth0": "^4.2.0",
|
|
61
|
+
"ctx-core": "^5.5.0"
|
|
62
|
+
},
|
|
63
|
+
"devDependencies": {
|
|
64
|
+
"@types/auth0": "^3.3.10",
|
|
65
|
+
"@types/auth0-js": "^9.21.5",
|
|
66
|
+
"@types/sinon": "^17.0.2",
|
|
67
|
+
"c8": "^8.0.1",
|
|
68
|
+
"check-dts": "^0.7.2",
|
|
69
|
+
"sinon": "^17.0.1",
|
|
70
|
+
"tsx": "^4.7.0",
|
|
71
|
+
"typescript": "next",
|
|
72
|
+
"uvu": "^0.5.6"
|
|
73
|
+
},
|
|
74
|
+
"publishConfig": {
|
|
75
|
+
"access": "public",
|
|
76
|
+
"cache": "~/.npm"
|
|
77
|
+
},
|
|
78
|
+
"sideEffects": false
|
|
79
|
+
}
|