@ctx-core/auth0-management 9.8.138 → 10.0.1

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctx-core/auth0-management",
3
- "version": "9.8.138",
3
+ "version": "10.0.1",
4
4
  "description": "ctx-core auth0 management api",
5
5
  "keywords": [
6
6
  "ctx-core",
@@ -46,10 +46,8 @@
46
46
  "getAll-client-grants-auth0": "./bin/getAll-client-grants-auth0.mjs"
47
47
  },
48
48
  "dependencies": {
49
- "@ctx-core/auth0": "^40.1.128",
50
- "@ctx-core/env": "^17.5.4",
49
+ "@ctx-core/auth0": "^40.1.129",
51
50
  "@ctx-core/fetch": "^13.1.70",
52
- "@ctx-core/nanostores": "10.0.14",
53
51
  "auth0": "^4.2.0",
54
52
  "ctx-core": "^5.5.0"
55
53
  },
@@ -73,8 +71,9 @@
73
71
  "build": ":",
74
72
  "clean": ":",
75
73
  "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"
74
+ "test": "pnpm test:unit && pnpm test:types",
75
+ "test:types": "check-dts",
76
+ "test:unit": "tsx node_modules/uvu/bin.js . '\\.test\\.(ts|js)$'",
77
+ "test:unit:coverage": "c8 pnpm test:unit"
79
78
  }
80
79
  }