@ankhorage/doctor 0.14.17 → 0.14.18
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 +6 -0
- package/README.md +1 -1
- package/dist/authReadinessProviderEnvironment.d.ts.map +1 -1
- package/dist/authReadinessProviderEnvironment.js +1 -1
- package/dist/authReadinessProviderEnvironment.js.map +1 -1
- package/package.json +2 -2
- package/src/authReadinessProviderEnvironment.ts +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
# @ankhorage/doctor
|
|
5
5
|
|
|
6
|
-
         
|
|
7
7
|
|
|
8
8
|
Executable Ankh provider and standalone CLI for lightweight repo and package compliance diagnostics.
|
|
9
9
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authReadinessProviderEnvironment.d.ts","sourceRoot":"","sources":["../src/authReadinessProviderEnvironment.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"authReadinessProviderEnvironment.d.ts","sourceRoot":"","sources":["../src/authReadinessProviderEnvironment.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AACvF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAI1E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEtD,wBAAgB,8BAA8B,CAAC,KAAK,EAAE;IACpD,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC;IAChC,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC;IACjC,QAAQ,CAAC,cAAc,EAAE,SAAS,iBAAiB,EAAE,CAAC;IACtD,QAAQ,CAAC,WAAW,EAAE,gBAAgB,CAAC;IACvC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,gBAAgB,CAAC;CACpC,GAAG;IACF,QAAQ,CAAC,oBAAoB,EAAE,SAAS,iBAAiB,EAAE,CAAC;IAC5D,QAAQ,CAAC,SAAS,EAAE,SAAS,eAAe,EAAE,CAAC;IAC/C,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;CAC/B,CA+BA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolveSupabaseOAuthSetupPlan } from '@ankhorage/supabase
|
|
1
|
+
import { resolveSupabaseOAuthSetupPlan } from '@ankhorage/auth-supabase';
|
|
2
2
|
import { analyzeAuthReadinessEnvironment } from './authReadinessEnvironment.js';
|
|
3
3
|
import { createUnsupportedAuthReadiness } from './authReadinessUnsupported.js';
|
|
4
4
|
export function analyzeAuthProviderEnvironment(input) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authReadinessProviderEnvironment.js","sourceRoot":"","sources":["../src/authReadinessProviderEnvironment.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"authReadinessProviderEnvironment.js","sourceRoot":"","sources":["../src/authReadinessProviderEnvironment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AAIzE,OAAO,EAAE,+BAA+B,EAAE,MAAM,+BAA+B,CAAC;AAChF,OAAO,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAG/E,MAAM,UAAU,8BAA8B,CAAC,KAO9C;IAKC,MAAM,IAAI,GAAG,6BAA6B,CAAC;QACzC,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,SAAS,EAAE,kBAAkB;QAC7B,WAAW,EAAE,KAAK,CAAC,WAAW;QAC9B,OAAO,EAAE,KAAK,CAAC,cAAc;KAC9B,CAAC,CAAC;IACH,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAClB,OAAO;YACL,oBAAoB,EAAE,EAAE;YACxB,SAAS,EAAE,8BAA8B,CAAC;gBACxC,WAAW,EAAE,KAAK,CAAC,WAAW;gBAC9B,QAAQ,EAAE,KAAK,CAAC,QAAQ;gBACxB,OAAO,EAAE,KAAK,CAAC,cAAc;aAC9B,CAAC;YACF,WAAW,EAAE,IAAI;SAClB,CAAC;IACJ,CAAC;IAED,OAAO;QACL,GAAG,+BAA+B,CAAC;YACjC,aAAa,EAAE,KAAK,CAAC,aAAa;YAClC,cAAc,EAAE,KAAK,CAAC,cAAc;YACpC,cAAc,EAAE,KAAK,CAAC,cAAc;YACpC,WAAW,EAAE,KAAK,CAAC,WAAW;YAC9B,IAAI;YACJ,QAAQ,EAAE,KAAK,CAAC,QAAQ;YACxB,OAAO,EAAE,KAAK,CAAC,OAAO;SACvB,CAAC;QACF,WAAW,EAAE,KAAK;KACnB,CAAC;AACJ,CAAC","sourcesContent":["import { resolveSupabaseOAuthSetupPlan } from '@ankhorage/auth-supabase';\nimport type { AppDeployTargetId, AppDeployTargets } from '@ankhorage/contracts/deploy';\nimport type { AppEnvironmentId } from '@ankhorage/contracts/environments';\n\nimport { analyzeAuthReadinessEnvironment } from './authReadinessEnvironment.js';\nimport { createUnsupportedAuthReadiness } from './authReadinessUnsupported.js';\nimport type { DoctorReadiness } from './readiness.js';\n\nexport function analyzeAuthProviderEnvironment(input: {\n readonly callbackRoute: unknown;\n readonly credentialsRef: unknown;\n readonly enabledTargets: readonly AppDeployTargetId[];\n readonly environment: AppEnvironmentId;\n readonly provider: string;\n readonly targets: AppDeployTargets;\n}): {\n readonly missingNativeTargets: readonly AppDeployTargetId[];\n readonly readiness: readonly DoctorReadiness[];\n readonly unsupported: boolean;\n} {\n const plan = resolveSupabaseOAuthSetupPlan({\n provider: input.provider,\n transport: 'brokeredRedirect',\n environment: input.environment,\n targets: input.enabledTargets,\n });\n if (plan === null) {\n return {\n missingNativeTargets: [],\n readiness: createUnsupportedAuthReadiness({\n environment: input.environment,\n provider: input.provider,\n targets: input.enabledTargets,\n }),\n unsupported: true,\n };\n }\n\n return {\n ...analyzeAuthReadinessEnvironment({\n callbackRoute: input.callbackRoute,\n credentialsRef: input.credentialsRef,\n enabledTargets: input.enabledTargets,\n environment: input.environment,\n plan,\n provider: input.provider,\n targets: input.targets,\n }),\n unsupported: false,\n };\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ankhorage/doctor",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.18",
|
|
4
4
|
"description": "Executable Ankh provider and standalone CLI for lightweight repo and package compliance diagnostics.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
"@ankhorage/dependency-graph": "^1.3.0",
|
|
137
137
|
"@ankhorage/rules-architecture": "^0.6.1",
|
|
138
138
|
"@ankhorage/rules-repository": "^0.2.0",
|
|
139
|
-
"@ankhorage/supabase
|
|
139
|
+
"@ankhorage/auth-supabase": "^2.0.2",
|
|
140
140
|
"@ankhorage/utility": "^1.9.85"
|
|
141
141
|
},
|
|
142
142
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { resolveSupabaseOAuthSetupPlan } from '@ankhorage/auth-supabase';
|
|
1
2
|
import type { AppDeployTargetId, AppDeployTargets } from '@ankhorage/contracts/deploy';
|
|
2
3
|
import type { AppEnvironmentId } from '@ankhorage/contracts/environments';
|
|
3
|
-
import { resolveSupabaseOAuthSetupPlan } from '@ankhorage/supabase-auth';
|
|
4
4
|
|
|
5
5
|
import { analyzeAuthReadinessEnvironment } from './authReadinessEnvironment.js';
|
|
6
6
|
import { createUnsupportedAuthReadiness } from './authReadinessUnsupported.js';
|