@ctx-core/auth0-management 9.7.107 → 9.7.110

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/CHANGELOG.md CHANGED
@@ -1,5 +1,36 @@
1
1
  # @ctx-core/auth0-management
2
2
 
3
+ ## 9.7.110
4
+
5
+ ### Patch Changes
6
+
7
+ - @ctx-core/fetch: ^13.0.8 -> ^13.0.9
8
+ - Updated dependencies
9
+ - Updated dependencies
10
+ - @ctx-core/auth0@40.0.43
11
+
12
+ ## 9.7.109
13
+
14
+ ### Patch Changes
15
+
16
+ - @ctx-core/fetch: ^13.0.7 -> ^13.0.8
17
+ - Updated dependencies
18
+ - Updated dependencies
19
+ - Updated dependencies
20
+ - @ctx-core/auth0@40.0.42
21
+
22
+ ## 9.7.108
23
+
24
+ ### Patch Changes
25
+
26
+ - @ctx-core/object: ^28.1.0 -> ^28.2.0
27
+ - Updated dependencies
28
+ - @ctx-core/auth0@40.0.41
29
+ - @ctx-core/env@17.3.9
30
+ - @ctx-core/error@12.3.44
31
+ - @ctx-core/nanostores@6.0.12
32
+ - @ctx-core/uri@12.4.57
33
+
3
34
  ## 9.7.107
4
35
 
5
36
  ### Patch Changes
package/COMMIT_EDITMSG CHANGED
@@ -1 +1,2 @@
1
1
 
2
+
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
- import { ctx_ } from '@ctx-core/object'
2
+ import { ctx__new } from '@ctx-core/object'
3
3
  import { auth0__v2_client__GET__fetch2 } from '../src/index.js'
4
4
  await main()
5
5
  async function main() {
6
- const ctx = ctx_()
6
+ const ctx = ctx__new()
7
7
  const [client] = await auth0__v2_client__GET__fetch2(ctx, {
8
8
  json: {
9
9
  grant_types: [
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import { import_meta_env_ } from '@ctx-core/env'
3
- import { ctx_ } from '@ctx-core/object'
3
+ import { ctx__new } from '@ctx-core/object'
4
4
  import { auth0__v2_client_grants__GET__fetch2, auth0__v2__url_ } from '../src/index.js'
5
5
  await main()
6
6
  async function main() {
7
- const ctx = ctx_()
7
+ const ctx = ctx__new()
8
8
  const [json] = await auth0__v2_client_grants__GET__fetch2(ctx, {
9
9
  json: {
10
10
  client_id: import_meta_env_().AUTH0_CLIENT_ID,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctx-core/auth0-management",
3
- "version": "9.7.107",
3
+ "version": "9.7.110",
4
4
  "description": "ctx-core auth0 management api",
5
5
  "keywords": [
6
6
  "ctx-core",
@@ -28,13 +28,13 @@
28
28
  "getAll-client-grants-auth0": "./bin/getAll-client-grants-auth0.mjs"
29
29
  },
30
30
  "dependencies": {
31
- "@ctx-core/auth0": "^40.0.40",
32
- "@ctx-core/env": "^17.3.8",
33
- "@ctx-core/error": "^12.3.43",
34
- "@ctx-core/fetch": "^13.0.7",
35
- "@ctx-core/nanostores": "6.0.11",
36
- "@ctx-core/object": "^28.1.0",
37
- "@ctx-core/uri": "^12.4.56",
31
+ "@ctx-core/auth0": "^40.0.43",
32
+ "@ctx-core/env": "^17.3.9",
33
+ "@ctx-core/error": "^12.3.44",
34
+ "@ctx-core/fetch": "^13.0.9",
35
+ "@ctx-core/nanostores": "6.0.12",
36
+ "@ctx-core/object": "^28.2.0",
37
+ "@ctx-core/uri": "^12.4.57",
38
38
  "auth0": "^4.0.1"
39
39
  },
40
40
  "devDependencies": {
@@ -1,10 +1,10 @@
1
- import { ctx_ } from '@ctx-core/object'
1
+ import { ctx__new } from '@ctx-core/object'
2
2
  import { UserProfile } from 'auth0'
3
3
  import { test } from 'uvu'
4
4
  import { equal } from 'uvu/assert'
5
5
  import { auth0__user$_, auth0__user_, auth0__user__set } from '../index.js'
6
6
  test('auth0__user', ()=>{
7
- const ctx = ctx_()
7
+ const ctx = ctx__new()
8
8
  const auth0__user = auth0__user__new()
9
9
  equal(auth0__user$_(ctx).$, undefined)
10
10
  equal(auth0__user_(ctx), undefined)
@@ -1,5 +1,5 @@
1
1
  import {AUTH0_DOMAIN__set} from '@ctx-core/auth0'
2
- import {ctx_} from '@ctx-core/object'
2
+ import {ctx__new} from '@ctx-core/object'
3
3
  import {type UserProfile} from 'auth0'
4
4
  import {restore, stub} from 'sinon'
5
5
  import {test} from 'uvu'
@@ -9,7 +9,7 @@ import {auth0__v2_user__GET__fetch, auth0__v2_user__GET__fetch2} from './index.j
9
9
 
10
10
  test.after.each(() => restore())
11
11
  test('auth0__v2_user__GET__fetch', async () => {
12
- const ctx = ctx_()
12
+ const ctx = ctx__new()
13
13
  AUTH0_DOMAIN__set(ctx, 'myapp.auth0.com')
14
14
  auth0_management__init(ctx, {
15
15
  AUTH0_MANAGEMENT_ID: 'AUTH0_MANAGEMENT_ID',
@@ -24,7 +24,7 @@ test('auth0__v2_user__GET__fetch', async () => {
24
24
  equal(await response.json(), auth0__user)
25
25
  })
26
26
  test('auth0__v2_user__GET__fetch2', async () => {
27
- const ctx = ctx_()
27
+ const ctx = ctx__new()
28
28
  AUTH0_DOMAIN__set(ctx, 'myapp.auth0.com')
29
29
  auth0_management__init(ctx, {
30
30
  AUTH0_MANAGEMENT_ID: 'AUTH0_MANAGEMENT_ID',
@@ -1,5 +1,5 @@
1
1
  import { AUTH0_DOMAIN__set } from '@ctx-core/auth0'
2
- import { ctx_ } from '@ctx-core/object'
2
+ import { ctx__new } from '@ctx-core/object'
3
3
  import { type Auth0UserProfile } from 'auth0-js'
4
4
  import { restore, stub } from 'sinon'
5
5
  import { test } from 'uvu'
@@ -13,7 +13,7 @@ test.after.each(()=>{
13
13
  restore()
14
14
  })
15
15
  test('auth0__v2_users_by_email__GET__fetch', async ()=>{
16
- const ctx = ctx_()
16
+ const ctx = ctx__new()
17
17
  AUTH0_DOMAIN__set(ctx, 'myapp.auth0.com')
18
18
  auth0_management__init(ctx, {
19
19
  AUTH0_MANAGEMENT_ID: 'AUTH0_MANAGEMENT_ID',
@@ -28,7 +28,7 @@ test('auth0__v2_users_by_email__GET__fetch', async ()=>{
28
28
  equal(response.status, 200)
29
29
  })
30
30
  test('auth0__v2_users_by_email__GET__fetch2', async ()=>{
31
- const ctx = ctx_()
31
+ const ctx = ctx__new()
32
32
  AUTH0_DOMAIN__set(ctx, 'myapp.auth0.com')
33
33
  auth0_management__init(ctx, {
34
34
  AUTH0_MANAGEMENT_ID: 'AUTH0_MANAGEMENT_ID',
@@ -1,12 +1,12 @@
1
1
  import { AUTH0_DOMAIN__set } from '@ctx-core/auth0'
2
- import { ctx_ } from '@ctx-core/object'
2
+ import { ctx__new } from '@ctx-core/object'
3
3
  import { restore, stub } from 'sinon'
4
4
  import { test } from 'uvu'
5
5
  import { equal } from 'uvu/assert'
6
6
  import { auth0_management__init, auth0_management__token__new } from '../index.js'
7
7
  test.after.each(()=>restore())
8
8
  test('auth0_management__token__new|error', async ()=>{
9
- const ctx = ctx_()
9
+ const ctx = ctx__new()
10
10
  AUTH0_DOMAIN__set(ctx, 'myapp.auth0.com')
11
11
  auth0_management__init(ctx, {
12
12
  AUTH0_MANAGEMENT_ID: 'AUTH0_MANAGEMENT_ID',