@ctx-core/auth0-management 9.8.138 → 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.
@@ -1,9 +1,9 @@
1
- import type { be_atom_triple_T } from '@ctx-core/nanostores'
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
- ]:be_atom_triple_T<string>
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 { be_atom_triple_ } from '@ctx-core/nanostores'
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 {be_atom_triple_T<string>} */ be_atom_triple_(()=>
9
- import_meta_env_().AUTH0_MANAGEMENT_ID)
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 { be_atom_triple_T } from '@ctx-core/nanostores'
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
- ]:be_atom_triple_T<string>
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 { be_atom_triple_ } from '@ctx-core/nanostores'
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 {be_atom_triple_T<string>} */ be_atom_triple_(()=>
9
- import_meta_env_().AUTH0_MANAGEMENT_SECRET)
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
  }
@@ -1,7 +1,7 @@
1
- import type { be_atom_triple_T } from '@ctx-core/nanostores'
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
- ]:be_atom_triple_T<UserProfile>
7
+ ]:be_sig_triple_T<UserProfile>
@@ -1,8 +1,10 @@
1
- import { be_atom_triple_ } from '@ctx-core/nanostores'
2
- /** @typedef {import('@ctx-core/nanostores').be_atom_triple_T} */
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 {be_atom_triple_T<import('auth0').UserProfile>} */be_atom_triple_(()=>
8
- undefined)
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).$, undefined)
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).$, auth0__user)
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
- "name": "@ctx-core/auth0-management",
3
- "version": "9.8.138",
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
- "dependencies": {
49
- "@ctx-core/auth0": "^40.1.128",
50
- "@ctx-core/env": "^17.5.4",
51
- "@ctx-core/fetch": "^13.1.70",
52
- "@ctx-core/nanostores": "10.0.14",
53
- "auth0": "^4.2.0",
54
- "ctx-core": "^5.5.0"
55
- },
56
- "devDependencies": {
57
- "@types/auth0": "^3.3.10",
58
- "@types/auth0-js": "^9.21.5",
59
- "@types/sinon": "^17.0.2",
60
- "c8": "^8.0.1",
61
- "check-dts": "^0.7.2",
62
- "sinon": "^17.0.1",
63
- "tsx": "^4.7.0",
64
- "typescript": "next",
65
- "uvu": "^0.5.6"
66
- },
67
- "publishConfig": {
68
- "access": "public",
69
- "cache": "~/.npm"
70
- },
71
- "sideEffects": false,
72
- "scripts": {
73
- "build": ":",
74
- "clean": ":",
75
- "exec": "$@",
76
- "test": "pnpm test-unit && check-dts",
77
- "test-unit": "tsx node_modules/uvu/bin.js . '\\.test\\.(ts|js)$'",
78
- "test-unit-coverage": "c8 pnpm test-unit"
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
+ }