auth0-deploy-cli 8.20.4-beta.0 → 8.21.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/.circleci/config.yml +5 -46
- package/.eslintignore +5 -0
- package/.eslintrc +69 -0
- package/CHANGELOG.md +15 -6
- package/lib/args.js +1 -0
- package/lib/args.js.map +1 -0
- package/lib/commands/export.js +49 -41
- package/lib/commands/export.js.map +1 -0
- package/lib/commands/import.js +43 -36
- package/lib/commands/import.js.map +1 -0
- package/lib/commands/index.js +1 -0
- package/lib/commands/index.js.map +1 -0
- package/lib/configFactory.js +1 -0
- package/lib/configFactory.js.map +1 -0
- package/lib/context/defaults.js +10 -38
- package/lib/context/defaults.js.map +1 -0
- package/lib/context/directory/handlers/actions.js +39 -40
- package/lib/context/directory/handlers/actions.js.map +1 -0
- package/lib/context/directory/handlers/attackProtection.js +34 -22
- package/lib/context/directory/handlers/attackProtection.js.map +1 -0
- package/lib/context/directory/handlers/branding.js +21 -12
- package/lib/context/directory/handlers/branding.js.map +1 -0
- package/lib/context/directory/handlers/clientGrants.js +62 -52
- package/lib/context/directory/handlers/clientGrants.js.map +1 -0
- package/lib/context/directory/handlers/clients.js +60 -17
- package/lib/context/directory/handlers/clients.js.map +1 -0
- package/lib/context/directory/handlers/connectionProfiles.d.ts +11 -0
- package/lib/context/directory/handlers/connectionProfiles.js +59 -0
- package/lib/context/directory/handlers/connectionProfiles.js.map +1 -0
- package/lib/context/directory/handlers/connections.js +41 -32
- package/lib/context/directory/handlers/connections.js.map +1 -0
- package/lib/context/directory/handlers/customDomains.js +21 -9
- package/lib/context/directory/handlers/customDomains.js.map +1 -0
- package/lib/context/directory/handlers/databases.js +35 -37
- package/lib/context/directory/handlers/databases.js.map +1 -0
- package/lib/context/directory/handlers/emailProvider.js +36 -22
- package/lib/context/directory/handlers/emailProvider.js.map +1 -0
- package/lib/context/directory/handlers/emailTemplates.js +29 -20
- package/lib/context/directory/handlers/emailTemplates.js.map +1 -0
- package/lib/context/directory/handlers/flowVaultConnections.js +49 -39
- package/lib/context/directory/handlers/flowVaultConnections.js.map +1 -0
- package/lib/context/directory/handlers/flows.js +48 -38
- package/lib/context/directory/handlers/flows.js.map +1 -0
- package/lib/context/directory/handlers/forms.js +48 -38
- package/lib/context/directory/handlers/forms.js.map +1 -0
- package/lib/context/directory/handlers/guardianFactorProviders.js +21 -9
- package/lib/context/directory/handlers/guardianFactorProviders.js.map +1 -0
- package/lib/context/directory/handlers/guardianFactorTemplates.js +21 -9
- package/lib/context/directory/handlers/guardianFactorTemplates.js.map +1 -0
- package/lib/context/directory/handlers/guardianFactors.js +21 -9
- package/lib/context/directory/handlers/guardianFactors.js.map +1 -0
- package/lib/context/directory/handlers/guardianPhoneFactorMessageTypes.js +20 -8
- package/lib/context/directory/handlers/guardianPhoneFactorMessageTypes.js.map +1 -0
- package/lib/context/directory/handlers/guardianPhoneFactorSelectedProvider.js +20 -8
- package/lib/context/directory/handlers/guardianPhoneFactorSelectedProvider.js.map +1 -0
- package/lib/context/directory/handlers/guardianPolicies.js +20 -8
- package/lib/context/directory/handlers/guardianPolicies.js.map +1 -0
- package/lib/context/directory/handlers/hooks.js +34 -24
- package/lib/context/directory/handlers/hooks.js.map +1 -0
- package/lib/context/directory/handlers/index.js +3 -0
- package/lib/context/directory/handlers/index.js.map +1 -0
- package/lib/context/directory/handlers/logStreams.js +24 -12
- package/lib/context/directory/handlers/logStreams.js.map +1 -0
- package/lib/context/directory/handlers/networkACLs.js +34 -22
- package/lib/context/directory/handlers/networkACLs.js.map +1 -0
- package/lib/context/directory/handlers/organizations.js +44 -39
- package/lib/context/directory/handlers/organizations.js.map +1 -0
- package/lib/context/directory/handlers/pages.js +37 -31
- package/lib/context/directory/handlers/pages.js.map +1 -0
- package/lib/context/directory/handlers/phoneProvider.js +24 -12
- package/lib/context/directory/handlers/phoneProvider.js.map +1 -0
- package/lib/context/directory/handlers/prompts.js +76 -58
- package/lib/context/directory/handlers/prompts.js.map +1 -0
- package/lib/context/directory/handlers/resourceServers.d.ts +1 -1
- package/lib/context/directory/handlers/resourceServers.js +30 -18
- package/lib/context/directory/handlers/resourceServers.js.map +1 -0
- package/lib/context/directory/handlers/roles.js +31 -21
- package/lib/context/directory/handlers/roles.js.map +1 -0
- package/lib/context/directory/handlers/rules.js +32 -22
- package/lib/context/directory/handlers/rules.js.map +1 -0
- package/lib/context/directory/handlers/rulesConfigs.js +15 -3
- package/lib/context/directory/handlers/rulesConfigs.js.map +1 -0
- package/lib/context/directory/handlers/selfServiceProfiles.js +40 -28
- package/lib/context/directory/handlers/selfServiceProfiles.js.map +1 -0
- package/lib/context/directory/handlers/tenant.js +34 -14
- package/lib/context/directory/handlers/tenant.js.map +1 -0
- package/lib/context/directory/handlers/themes.js +21 -9
- package/lib/context/directory/handlers/themes.js.map +1 -0
- package/lib/context/directory/handlers/triggers.d.ts +1 -1
- package/lib/context/directory/handlers/triggers.js +26 -16
- package/lib/context/directory/handlers/triggers.js.map +1 -0
- package/lib/context/directory/handlers/userAttributeProfiles.d.ts +1 -1
- package/lib/context/directory/handlers/userAttributeProfiles.js +26 -16
- package/lib/context/directory/handlers/userAttributeProfiles.js.map +1 -0
- package/lib/context/directory/index.js +80 -66
- package/lib/context/directory/index.js.map +1 -0
- package/lib/context/index.js +20 -9
- package/lib/context/index.js.map +1 -0
- package/lib/context/yaml/handlers/actions.js +41 -39
- package/lib/context/yaml/handlers/actions.js.map +1 -0
- package/lib/context/yaml/handlers/attackProtection.js +41 -27
- package/lib/context/yaml/handlers/attackProtection.js.map +1 -0
- package/lib/context/yaml/handlers/branding.js +69 -47
- package/lib/context/yaml/handlers/branding.js.map +1 -0
- package/lib/context/yaml/handlers/clientGrants.js +40 -26
- package/lib/context/yaml/handlers/clientGrants.js.map +1 -0
- package/lib/context/yaml/handlers/clients.js +85 -41
- package/lib/context/yaml/handlers/clients.js.map +1 -0
- package/lib/context/yaml/handlers/connectionProfiles.d.ts +11 -0
- package/lib/context/yaml/handlers/connectionProfiles.js +44 -0
- package/lib/context/yaml/handlers/connectionProfiles.js.map +1 -0
- package/lib/context/yaml/handlers/connections.js +67 -63
- package/lib/context/yaml/handlers/connections.js.map +1 -0
- package/lib/context/yaml/handlers/customDomains.js +19 -7
- package/lib/context/yaml/handlers/customDomains.js.map +1 -0
- package/lib/context/yaml/handlers/databases.js +65 -63
- package/lib/context/yaml/handlers/databases.js.map +1 -0
- package/lib/context/yaml/handlers/emailProvider.js +37 -22
- package/lib/context/yaml/handlers/emailProvider.js.map +1 -0
- package/lib/context/yaml/handlers/emailTemplates.js +39 -28
- package/lib/context/yaml/handlers/emailTemplates.js.map +1 -0
- package/lib/context/yaml/handlers/flowVaultConnections.js +50 -36
- package/lib/context/yaml/handlers/flowVaultConnections.js.map +1 -0
- package/lib/context/yaml/handlers/flows.js +66 -55
- package/lib/context/yaml/handlers/flows.js.map +1 -0
- package/lib/context/yaml/handlers/forms.js +66 -55
- package/lib/context/yaml/handlers/forms.js.map +1 -0
- package/lib/context/yaml/handlers/guardianFactorProviders.js +19 -7
- package/lib/context/yaml/handlers/guardianFactorProviders.js.map +1 -0
- package/lib/context/yaml/handlers/guardianFactorTemplates.js +19 -7
- package/lib/context/yaml/handlers/guardianFactorTemplates.js.map +1 -0
- package/lib/context/yaml/handlers/guardianFactors.js +19 -7
- package/lib/context/yaml/handlers/guardianFactors.js.map +1 -0
- package/lib/context/yaml/handlers/guardianPhoneFactorMessageTypes.js +19 -7
- package/lib/context/yaml/handlers/guardianPhoneFactorMessageTypes.js.map +1 -0
- package/lib/context/yaml/handlers/guardianPhoneFactorSelectedProvider.js +19 -7
- package/lib/context/yaml/handlers/guardianPhoneFactorSelectedProvider.js.map +1 -0
- package/lib/context/yaml/handlers/guardianPolicies.js +19 -7
- package/lib/context/yaml/handlers/guardianPolicies.js.map +1 -0
- package/lib/context/yaml/handlers/hooks.js +48 -34
- package/lib/context/yaml/handlers/hooks.js.map +1 -0
- package/lib/context/yaml/handlers/index.js +3 -0
- package/lib/context/yaml/handlers/index.js.map +1 -0
- package/lib/context/yaml/handlers/logStreams.js +30 -16
- package/lib/context/yaml/handlers/logStreams.js.map +1 -0
- package/lib/context/yaml/handlers/networkACLs.js +39 -25
- package/lib/context/yaml/handlers/networkACLs.js.map +1 -0
- package/lib/context/yaml/handlers/organizations.js +46 -37
- package/lib/context/yaml/handlers/organizations.js.map +1 -0
- package/lib/context/yaml/handlers/pages.js +39 -31
- package/lib/context/yaml/handlers/pages.js.map +1 -0
- package/lib/context/yaml/handlers/phoneProvider.js +31 -17
- package/lib/context/yaml/handlers/phoneProvider.js.map +1 -0
- package/lib/context/yaml/handlers/prompts.js +47 -22
- package/lib/context/yaml/handlers/prompts.js.map +1 -0
- package/lib/context/yaml/handlers/resourceServers.d.ts +1 -1
- package/lib/context/yaml/handlers/resourceServers.js +33 -21
- package/lib/context/yaml/handlers/resourceServers.js.map +1 -0
- package/lib/context/yaml/handlers/roles.js +33 -19
- package/lib/context/yaml/handlers/roles.js.map +1 -0
- package/lib/context/yaml/handlers/rules.js +39 -28
- package/lib/context/yaml/handlers/rules.js.map +1 -0
- package/lib/context/yaml/handlers/rulesConfigs.js +28 -14
- package/lib/context/yaml/handlers/rulesConfigs.js.map +1 -0
- package/lib/context/yaml/handlers/selfServiceProfiles.js +43 -29
- package/lib/context/yaml/handlers/selfServiceProfiles.js.map +1 -0
- package/lib/context/yaml/handlers/tenant.js +41 -19
- package/lib/context/yaml/handlers/tenant.js.map +1 -0
- package/lib/context/yaml/handlers/themes.js +19 -7
- package/lib/context/yaml/handlers/themes.js.map +1 -0
- package/lib/context/yaml/handlers/triggers.d.ts +1 -1
- package/lib/context/yaml/handlers/triggers.js +29 -15
- package/lib/context/yaml/handlers/triggers.js.map +1 -0
- package/lib/context/yaml/handlers/userAttributeProfiles.d.ts +1 -1
- package/lib/context/yaml/handlers/userAttributeProfiles.js +19 -7
- package/lib/context/yaml/handlers/userAttributeProfiles.js.map +1 -0
- package/lib/context/yaml/index.js +128 -120
- package/lib/context/yaml/index.js.map +1 -0
- package/lib/index.d.ts +96 -4
- package/lib/index.js +34 -24
- package/lib/index.js.map +1 -0
- package/lib/keywordPreservation.d.ts +1 -1
- package/lib/keywordPreservation.js +6 -10
- package/lib/keywordPreservation.js.map +1 -0
- package/lib/logger.js +1 -0
- package/lib/logger.js.map +1 -0
- package/lib/readonly.js +4 -3
- package/lib/readonly.js.map +1 -0
- package/lib/sessionDurationsToMinutes.js +1 -0
- package/lib/sessionDurationsToMinutes.js.map +1 -0
- package/lib/tools/auth0/client.js +127 -108
- package/lib/tools/auth0/client.js.map +1 -0
- package/lib/tools/auth0/handlers/actions.d.ts +26 -8
- package/lib/tools/auth0/handlers/actions.js +149 -138
- package/lib/tools/auth0/handlers/actions.js.map +1 -0
- package/lib/tools/auth0/handlers/attackProtection.js +92 -80
- package/lib/tools/auth0/handlers/attackProtection.js.map +1 -0
- package/lib/tools/auth0/handlers/branding.js +99 -75
- package/lib/tools/auth0/handlers/branding.js.map +1 -0
- package/lib/tools/auth0/handlers/clientGrants.d.ts +9 -2
- package/lib/tools/auth0/handlers/clientGrants.js +72 -65
- package/lib/tools/auth0/handlers/clientGrants.js.map +1 -0
- package/lib/tools/auth0/handlers/clients.d.ts +85 -7
- package/lib/tools/auth0/handlers/clients.js +187 -66
- package/lib/tools/auth0/handlers/clients.js.map +1 -0
- package/lib/tools/auth0/handlers/connectionProfiles.d.ts +182 -0
- package/lib/tools/auth0/handlers/connectionProfiles.js +239 -0
- package/lib/tools/auth0/handlers/connectionProfiles.js.map +1 -0
- package/lib/tools/auth0/handlers/connections.d.ts +1 -3
- package/lib/tools/auth0/handlers/connections.js +135 -130
- package/lib/tools/auth0/handlers/connections.js.map +1 -0
- package/lib/tools/auth0/handlers/customDomains.d.ts +1 -4
- package/lib/tools/auth0/handlers/customDomains.js +53 -43
- package/lib/tools/auth0/handlers/customDomains.js.map +1 -0
- package/lib/tools/auth0/handlers/databases.js +114 -94
- package/lib/tools/auth0/handlers/databases.js.map +1 -0
- package/lib/tools/auth0/handlers/default.d.ts +2 -2
- package/lib/tools/auth0/handlers/default.js +171 -210
- package/lib/tools/auth0/handlers/default.js.map +1 -0
- package/lib/tools/auth0/handlers/emailProvider.js +52 -41
- package/lib/tools/auth0/handlers/emailProvider.js.map +1 -0
- package/lib/tools/auth0/handlers/emailTemplates.js +71 -49
- package/lib/tools/auth0/handlers/emailTemplates.js.map +1 -0
- package/lib/tools/auth0/handlers/flowVaultConnections.d.ts +12 -5
- package/lib/tools/auth0/handlers/flowVaultConnections.js +143 -108
- package/lib/tools/auth0/handlers/flowVaultConnections.js.map +1 -0
- package/lib/tools/auth0/handlers/flows.d.ts +3 -2
- package/lib/tools/auth0/handlers/flows.js +129 -92
- package/lib/tools/auth0/handlers/flows.js.map +1 -0
- package/lib/tools/auth0/handlers/forms.d.ts +3 -3
- package/lib/tools/auth0/handlers/forms.js +112 -98
- package/lib/tools/auth0/handlers/forms.js.map +1 -0
- package/lib/tools/auth0/handlers/guardianFactorProviders.js +84 -61
- package/lib/tools/auth0/handlers/guardianFactorProviders.js.map +1 -0
- package/lib/tools/auth0/handlers/guardianFactorTemplates.js +68 -46
- package/lib/tools/auth0/handlers/guardianFactorTemplates.js.map +1 -0
- package/lib/tools/auth0/handlers/guardianFactors.js +45 -35
- package/lib/tools/auth0/handlers/guardianFactors.js.map +1 -0
- package/lib/tools/auth0/handlers/guardianPhoneFactorMessageTypes.js +45 -29
- package/lib/tools/auth0/handlers/guardianPhoneFactorMessageTypes.js.map +1 -0
- package/lib/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.js +45 -29
- package/lib/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.js.map +1 -0
- package/lib/tools/auth0/handlers/guardianPolicies.js +35 -20
- package/lib/tools/auth0/handlers/guardianPolicies.js.map +1 -0
- package/lib/tools/auth0/handlers/hooks.js +153 -123
- package/lib/tools/auth0/handlers/hooks.js.map +1 -0
- package/lib/tools/auth0/handlers/index.js +3 -0
- package/lib/tools/auth0/handlers/index.js.map +1 -0
- package/lib/tools/auth0/handlers/logStreams.js +47 -42
- package/lib/tools/auth0/handlers/logStreams.js.map +1 -0
- package/lib/tools/auth0/handlers/networkACLs.d.ts +4 -5
- package/lib/tools/auth0/handlers/networkACLs.js +133 -115
- package/lib/tools/auth0/handlers/networkACLs.js.map +1 -0
- package/lib/tools/auth0/handlers/organizations.d.ts +9 -10
- package/lib/tools/auth0/handlers/organizations.js +429 -360
- package/lib/tools/auth0/handlers/organizations.js.map +1 -0
- package/lib/tools/auth0/handlers/pages.js +83 -74
- package/lib/tools/auth0/handlers/pages.js.map +1 -0
- package/lib/tools/auth0/handlers/phoneProvider.d.ts +2 -2
- package/lib/tools/auth0/handlers/phoneProvider.js +82 -69
- package/lib/tools/auth0/handlers/phoneProvider.js.map +1 -0
- package/lib/tools/auth0/handlers/prompts.d.ts +5 -5
- package/lib/tools/auth0/handlers/prompts.js +235 -240
- package/lib/tools/auth0/handlers/prompts.js.map +1 -0
- package/lib/tools/auth0/handlers/resourceServers.d.ts +1 -3
- package/lib/tools/auth0/handlers/resourceServers.js +60 -59
- package/lib/tools/auth0/handlers/resourceServers.js.map +1 -0
- package/lib/tools/auth0/handlers/roles.js +178 -162
- package/lib/tools/auth0/handlers/roles.js.map +1 -0
- package/lib/tools/auth0/handlers/rules.js +162 -144
- package/lib/tools/auth0/handlers/rules.js.map +1 -0
- package/lib/tools/auth0/handlers/rulesConfigs.js +39 -30
- package/lib/tools/auth0/handlers/rulesConfigs.js.map +1 -0
- package/lib/tools/auth0/handlers/scimHandler.d.ts +3 -4
- package/lib/tools/auth0/handlers/scimHandler.js +132 -110
- package/lib/tools/auth0/handlers/scimHandler.js.map +1 -0
- package/lib/tools/auth0/handlers/selfServiceProfiles.d.ts +5 -13
- package/lib/tools/auth0/handlers/selfServiceProfiles.js +204 -170
- package/lib/tools/auth0/handlers/selfServiceProfiles.js.map +1 -0
- package/lib/tools/auth0/handlers/tenant.d.ts +3 -5
- package/lib/tools/auth0/handlers/tenant.js +52 -45
- package/lib/tools/auth0/handlers/tenant.js.map +1 -0
- package/lib/tools/auth0/handlers/themes.d.ts +12 -12
- package/lib/tools/auth0/handlers/themes.js +102 -86
- package/lib/tools/auth0/handlers/themes.js.map +1 -0
- package/lib/tools/auth0/handlers/triggers.js +75 -59
- package/lib/tools/auth0/handlers/triggers.js.map +1 -0
- package/lib/tools/auth0/handlers/userAttributeProfiles.d.ts +4 -4
- package/lib/tools/auth0/handlers/userAttributeProfiles.js +63 -56
- package/lib/tools/auth0/handlers/userAttributeProfiles.js.map +1 -0
- package/lib/tools/auth0/index.js +48 -35
- package/lib/tools/auth0/index.js.map +1 -0
- package/lib/tools/auth0/schema.js +4 -6
- package/lib/tools/auth0/schema.js.map +1 -0
- package/lib/tools/calculateChanges.js +15 -24
- package/lib/tools/calculateChanges.js.map +1 -0
- package/lib/tools/constants.d.ts +3 -2
- package/lib/tools/constants.js +2 -0
- package/lib/tools/constants.js.map +1 -0
- package/lib/tools/deploy.js +29 -17
- package/lib/tools/deploy.js.map +1 -0
- package/lib/tools/index.d.ts +89 -3
- package/lib/tools/index.js +2 -3
- package/lib/tools/index.js.map +1 -0
- package/lib/tools/utils.d.ts +1 -1
- package/lib/tools/utils.js +22 -12
- package/lib/tools/utils.js.map +1 -0
- package/lib/tools/validationError.js +1 -0
- package/lib/tools/validationError.js.map +1 -0
- package/lib/types.d.ts +6 -9
- package/lib/types.js +1 -0
- package/lib/types.js.map +1 -0
- package/lib/utils.d.ts +58 -3
- package/lib/utils.js +5 -8
- package/lib/utils.js.map +1 -0
- package/package.json +10 -11
- package/tsconfig.json +3 -4
- package/eslint.config.js +0 -130
package/lib/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CustomDomain, GetConnectionsStrategyEnum, ManagementClient, ResourceServer, UserAttributeProfile } from 'auth0';
|
|
2
2
|
import { PromisePoolExecutor } from 'promise-pool-executor';
|
|
3
3
|
import { Action } from './tools/auth0/handlers/actions';
|
|
4
4
|
import { Prompts } from './tools/auth0/handlers/prompts';
|
|
@@ -14,7 +14,6 @@ import { FlowVaultConnection } from './tools/auth0/handlers/flowVaultConnections
|
|
|
14
14
|
import { SsProfileWithCustomText } from './tools/auth0/handlers/selfServiceProfiles';
|
|
15
15
|
import { PhoneProvider } from './tools/auth0/handlers/phoneProvider';
|
|
16
16
|
import { NetworkACL } from './tools/auth0/handlers/networkACLs';
|
|
17
|
-
import { UserAttributeProfile } from './tools/auth0/handlers/userAttributeProfiles';
|
|
18
17
|
import { AttackProtection } from './tools/auth0/handlers/attackProtection';
|
|
19
18
|
type SharedPaginationParams = {
|
|
20
19
|
checkpoint?: boolean;
|
|
@@ -22,7 +21,7 @@ type SharedPaginationParams = {
|
|
|
22
21
|
is_global?: boolean;
|
|
23
22
|
include_totals?: boolean;
|
|
24
23
|
id?: string;
|
|
25
|
-
strategy?:
|
|
24
|
+
strategy?: GetConnectionsStrategyEnum[];
|
|
26
25
|
};
|
|
27
26
|
export type CheckpointPaginationParams = SharedPaginationParams & {
|
|
28
27
|
from?: string;
|
|
@@ -59,9 +58,6 @@ export type Config = {
|
|
|
59
58
|
AUTH0_BASE_PATH?: string;
|
|
60
59
|
AUTH0_AUDIENCE?: string;
|
|
61
60
|
AUTH0_API_MAX_RETRIES?: number;
|
|
62
|
-
AUTH0_MAX_RETRIES?: number;
|
|
63
|
-
AUTH0_RETRY_INITIAL_DELAY_MS?: number;
|
|
64
|
-
AUTH0_RETRY_MAX_DELAY_MS?: number;
|
|
65
61
|
AUTH0_KEYWORD_REPLACE_MAPPINGS?: KeywordMappings;
|
|
66
62
|
AUTH0_EXPORT_IDENTIFIERS?: boolean;
|
|
67
63
|
AUTH0_CONNECTIONS_DIRECTORY?: string;
|
|
@@ -96,7 +92,7 @@ export type Assets = Partial<{
|
|
|
96
92
|
clients: Client[] | null;
|
|
97
93
|
clientGrants: ClientGrant[] | null;
|
|
98
94
|
connections: Asset[] | null;
|
|
99
|
-
customDomains:
|
|
95
|
+
customDomains: CustomDomain[] | null;
|
|
100
96
|
databases: Asset[] | null;
|
|
101
97
|
emailProvider: Asset | null;
|
|
102
98
|
emailTemplates: Asset[] | null;
|
|
@@ -115,7 +111,7 @@ export type Assets = Partial<{
|
|
|
115
111
|
organizations: Asset[] | null;
|
|
116
112
|
pages: Page[] | null;
|
|
117
113
|
prompts: Prompts | null;
|
|
118
|
-
resourceServers:
|
|
114
|
+
resourceServers: ResourceServer[] | null;
|
|
119
115
|
roles: Asset[] | null;
|
|
120
116
|
rules: Asset[] | null;
|
|
121
117
|
rulesConfigs: Asset[] | null;
|
|
@@ -133,6 +129,7 @@ export type Assets = Partial<{
|
|
|
133
129
|
networkACLs: NetworkACL[] | null;
|
|
134
130
|
userAttributeProfiles: UserAttributeProfile[] | null;
|
|
135
131
|
userAttributeProfilesWithId: UserAttributeProfile[] | null;
|
|
132
|
+
connectionProfiles: Asset[] | null;
|
|
136
133
|
}>;
|
|
137
134
|
export type CalculatedChanges = {
|
|
138
135
|
del: Asset[];
|
|
@@ -140,7 +137,7 @@ export type CalculatedChanges = {
|
|
|
140
137
|
conflicts: Asset[];
|
|
141
138
|
create: Asset[];
|
|
142
139
|
};
|
|
143
|
-
export type AssetTypes = 'rules' | 'rulesConfigs' | 'hooks' | 'pages' | 'databases' | 'clientGrants' | 'resourceServers' | 'clients' | 'connections' | 'tenant' | 'emailProvider' | 'emailTemplates' | 'guardianFactors' | 'guardianFactorProviders' | 'guardianFactorTemplates' | 'guardianPhoneFactorMessageTypes' | 'guardianPhoneFactorSelectedProvider' | 'guardianPolicies' | 'roles' | 'actions' | 'organizations' | 'triggers' | 'attackProtection' | 'branding' | 'phoneProviders' | 'logStreams' | 'prompts' | 'customDomains' | 'themes' | 'forms' | 'flows' | 'flowVaultConnections' | 'selfServiceProfiles' | 'networkACLs' | 'userAttributeProfiles';
|
|
140
|
+
export type AssetTypes = 'rules' | 'rulesConfigs' | 'hooks' | 'pages' | 'databases' | 'clientGrants' | 'resourceServers' | 'clients' | 'connections' | 'tenant' | 'emailProvider' | 'emailTemplates' | 'guardianFactors' | 'guardianFactorProviders' | 'guardianFactorTemplates' | 'guardianPhoneFactorMessageTypes' | 'guardianPhoneFactorSelectedProvider' | 'guardianPolicies' | 'roles' | 'actions' | 'organizations' | 'triggers' | 'attackProtection' | 'branding' | 'phoneProviders' | 'logStreams' | 'prompts' | 'customDomains' | 'themes' | 'forms' | 'flows' | 'flowVaultConnections' | 'selfServiceProfiles' | 'networkACLs' | 'userAttributeProfiles' | 'connectionProfiles';
|
|
144
141
|
export type KeywordMappings = {
|
|
145
142
|
[key: string]: (string | number)[] | string | number;
|
|
146
143
|
};
|
package/lib/types.js
CHANGED
package/lib/types.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAsMa,QAAA,SAAS,GAAG;IACvB,IAAI;IACJ,IAAI;IACJ,OAAO;IACP,OAAO;IACP,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,OAAO;IACP,KAAK;IACL,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,OAAO;IACP,IAAI;IACJ,QAAQ;IACR,OAAO;IACP,OAAO;IACP,IAAI;IACJ,OAAO;IACP,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,OAAO;IACP,OAAO;IACP,OAAO;IACP,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,OAAO;IACP,OAAO;IACP,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,KAAK;IACL,OAAO;IACP,OAAO;IACP,OAAO;CACC,CAAC"}
|
package/lib/utils.d.ts
CHANGED
|
@@ -12,8 +12,63 @@ export declare function dumpJSON(file: string, mappings: {
|
|
|
12
12
|
}): void;
|
|
13
13
|
export declare function existsMustBeDir(folder: string): boolean;
|
|
14
14
|
export declare function toConfigFn(data: Config): (arg0: keyof Config) => any;
|
|
15
|
-
export declare function stripIdentifiers(auth0: Auth0, assets: Assets):
|
|
16
|
-
|
|
15
|
+
export declare function stripIdentifiers(auth0: Auth0, assets: Assets): {
|
|
16
|
+
actions?: import("./tools/auth0/handlers/actions").Action[] | null | undefined;
|
|
17
|
+
attackProtection?: import("./tools/auth0/handlers/attackProtection").AttackProtection | null | undefined;
|
|
18
|
+
branding?: (Asset & {
|
|
19
|
+
templates?: {
|
|
20
|
+
template: string;
|
|
21
|
+
body: string;
|
|
22
|
+
}[] | null;
|
|
23
|
+
}) | null | undefined;
|
|
24
|
+
phoneProviders?: import("auth0").GetBrandingPhoneProviders200ResponseProvidersInner[] | null | undefined;
|
|
25
|
+
clients?: import("./tools/auth0/handlers/clients").Client[] | null | undefined;
|
|
26
|
+
clientGrants?: import("./tools/auth0/handlers/clientGrants").ClientGrant[] | null | undefined;
|
|
27
|
+
connections?: Asset[] | null | undefined;
|
|
28
|
+
customDomains?: import("auth0").CustomDomain[] | null | undefined;
|
|
29
|
+
databases?: Asset[] | null | undefined;
|
|
30
|
+
emailProvider?: Asset | null | undefined;
|
|
31
|
+
emailTemplates?: Asset[] | null | undefined;
|
|
32
|
+
guardianFactorProviders?: Asset[] | null | undefined;
|
|
33
|
+
guardianFactors?: Asset[] | null | undefined;
|
|
34
|
+
guardianFactorTemplates?: Asset[] | null | undefined;
|
|
35
|
+
guardianPhoneFactorMessageTypes?: {
|
|
36
|
+
message_types: Asset[];
|
|
37
|
+
} | null | undefined;
|
|
38
|
+
guardianPhoneFactorSelectedProvider?: Asset | null | undefined;
|
|
39
|
+
guardianPolicies?: {
|
|
40
|
+
policies: string[];
|
|
41
|
+
} | null | undefined;
|
|
42
|
+
hooks?: Asset[] | null | undefined;
|
|
43
|
+
logStreams?: import("./tools/auth0/handlers/logStreams").LogStream[] | null | undefined;
|
|
44
|
+
organizations?: Asset[] | null | undefined;
|
|
45
|
+
pages?: import("./tools/auth0/handlers/pages").Page[] | null | undefined;
|
|
46
|
+
prompts?: Partial<import("./tools/auth0/handlers/prompts").PromptSettings & {
|
|
47
|
+
customText: import("./tools/auth0/handlers/prompts").AllPromptsByLanguage;
|
|
48
|
+
partials: import("./tools/auth0/handlers/prompts").CustomPromptPartials;
|
|
49
|
+
screenRenderers?: import("./tools/auth0/handlers/prompts").ScreenRenderer[];
|
|
50
|
+
}> | null | undefined;
|
|
51
|
+
resourceServers?: import("auth0").ResourceServer[] | null | undefined;
|
|
52
|
+
roles?: Asset[] | null | undefined;
|
|
53
|
+
rules?: Asset[] | null | undefined;
|
|
54
|
+
rulesConfigs?: Asset[] | null | undefined;
|
|
55
|
+
tenant?: import("auth0").TenantSettings | null | undefined;
|
|
56
|
+
triggers?: Asset[] | null | undefined;
|
|
57
|
+
exclude?: {
|
|
58
|
+
[key: string]: string[];
|
|
59
|
+
} | undefined;
|
|
60
|
+
clientsOrig?: Asset[] | null | undefined;
|
|
61
|
+
themes?: import("auth0").PostBrandingTheme200Response[] | null | undefined;
|
|
62
|
+
forms?: import("./tools/auth0/handlers/forms").Form[] | null | undefined;
|
|
63
|
+
flows?: import("./tools/auth0/handlers/flows").Flow[] | null | undefined;
|
|
64
|
+
flowVaultConnections?: import("./tools/auth0/handlers/flowVaultConnections").FlowVaultConnection[] | null | undefined;
|
|
65
|
+
selfServiceProfiles?: import("./tools/auth0/handlers/selfServiceProfiles").SsProfileWithCustomText[] | null | undefined;
|
|
66
|
+
networkACLs?: import("auth0").GetNetworkAclsById200Response[] | null | undefined;
|
|
67
|
+
userAttributeProfiles?: import("auth0").UserAttributeProfile[] | null | undefined;
|
|
68
|
+
userAttributeProfilesWithId?: import("auth0").UserAttributeProfile[] | null | undefined;
|
|
69
|
+
connectionProfiles?: Asset[] | null | undefined;
|
|
70
|
+
};
|
|
71
|
+
export declare function sanitize(str: string): string;
|
|
17
72
|
type ImportantFields = {
|
|
18
73
|
name: string | null;
|
|
19
74
|
client_id: string | null;
|
|
@@ -30,7 +85,7 @@ export declare function recordsSorter(a: Partial<ImportantFields>, b: Partial<Im
|
|
|
30
85
|
export declare function clearTenantFlags(tenant: Asset): void;
|
|
31
86
|
export declare function ensureProp(obj: Asset, props: string): void;
|
|
32
87
|
export declare function clearClientArrays(client: Asset): Asset;
|
|
33
|
-
export declare function convertClientIdToName(clientId: string
|
|
88
|
+
export declare function convertClientIdToName(clientId: string, knownClients?: Asset[]): string;
|
|
34
89
|
export declare function hasKeywordMarkers(value: any): boolean;
|
|
35
90
|
export declare function mapClientID2NameSorted(enabledClients: string[] | string, knownClients: Asset[]): string[] | string;
|
|
36
91
|
export declare function nomalizedYAMLPath(filePath: string): string[];
|
package/lib/utils.js
CHANGED
|
@@ -92,7 +92,7 @@ function toConfigFn(data) {
|
|
|
92
92
|
return (key) => data[key];
|
|
93
93
|
}
|
|
94
94
|
function stripIdentifiers(auth0, assets) {
|
|
95
|
-
const updated = {
|
|
95
|
+
const updated = Object.assign({}, assets);
|
|
96
96
|
// Some of the object identifiers are required to perform updates.
|
|
97
97
|
// Don't strip these object id's
|
|
98
98
|
const ignore = [
|
|
@@ -111,7 +111,7 @@ function stripIdentifiers(auth0, assets) {
|
|
|
111
111
|
// All objects with the identifier field is an array. This could change in future.
|
|
112
112
|
if (Array.isArray(exist)) {
|
|
113
113
|
updated[h.type] = exist.map((o) => {
|
|
114
|
-
const newObj = {
|
|
114
|
+
const newObj = Object.assign({}, o);
|
|
115
115
|
delete newObj[h.id];
|
|
116
116
|
return newObj;
|
|
117
117
|
});
|
|
@@ -120,8 +120,6 @@ function stripIdentifiers(auth0, assets) {
|
|
|
120
120
|
return updated;
|
|
121
121
|
}
|
|
122
122
|
function sanitize(str) {
|
|
123
|
-
if (!str)
|
|
124
|
-
return 'undefined';
|
|
125
123
|
return (0, sanitize_filename_1.default)(str, { replacement: '-' });
|
|
126
124
|
}
|
|
127
125
|
function formatResults(item) {
|
|
@@ -139,7 +137,7 @@ function formatResults(item) {
|
|
|
139
137
|
stage: null,
|
|
140
138
|
id: null,
|
|
141
139
|
};
|
|
142
|
-
const result = {
|
|
140
|
+
const result = Object.assign({}, importantFields);
|
|
143
141
|
Object.entries(item)
|
|
144
142
|
.sort()
|
|
145
143
|
.forEach(([key, value]) => {
|
|
@@ -184,8 +182,6 @@ function clearClientArrays(client) {
|
|
|
184
182
|
return client;
|
|
185
183
|
}
|
|
186
184
|
function convertClientIdToName(clientId, knownClients = []) {
|
|
187
|
-
if (!clientId)
|
|
188
|
-
return 'undefined_clientId';
|
|
189
185
|
try {
|
|
190
186
|
const found = knownClients.find((c) => c.client_id === clientId);
|
|
191
187
|
return (found && found.name) || clientId;
|
|
@@ -266,9 +262,10 @@ exports.findKeyPathWithValue = findKeyPathWithValue;
|
|
|
266
262
|
* @returns The Base64 encoded certificate string if the input starts with '-----BEGIN CERTIFICATE-----', otherwise returns the original string.
|
|
267
263
|
*/
|
|
268
264
|
const encodeCertStringToBase64 = (cert) => {
|
|
269
|
-
if (cert
|
|
265
|
+
if (cert === null || cert === void 0 ? void 0 : cert.startsWith('-----BEGIN CERTIFICATE-----')) {
|
|
270
266
|
return Buffer.from(cert).toString('base64');
|
|
271
267
|
}
|
|
272
268
|
return cert;
|
|
273
269
|
};
|
|
274
270
|
exports.encodeCertStringToBase64 = encodeCertStringToBase64;
|
|
271
|
+
//# sourceMappingURL=utils.js.map
|
package/lib/utils.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;;;;AASA,kCAMC;AAED,wBAMC;AAED,4BAQC;AAED,4BAgBC;AAED,4BAQC;AAED,0CAQC;AAED,gCAEC;AAED,4CA6BC;AAED,4BAEC;AAcD,sCA4BC;AAED,sCAYC;AAED,4CAIC;AAED,gCAKC;AAED,8CAWC;AAED,sDAOC;AAED,8CAGC;AAED,wDAuBC;AAED,8CAwBC;AAjQD,gDAAwB;AACxB,wDAA0B;AAC1B,0EAA6C;AAC7C,wDAA+B;AAC/B,mCAA0C;AAC1C,mCAA4D;AAC5D,sDAA2B;AAG3B,SAAgB,WAAW,CAAC,QAAgB;IAC1C,IAAI,CAAC;QACH,OAAO,kBAAE,CAAC,QAAQ,CAAC,cAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IAC3D,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED,SAAgB,MAAM,CAAC,QAAgB;IACrC,IAAI,CAAC;QACH,OAAO,kBAAE,CAAC,QAAQ,CAAC,cAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACtD,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED,SAAgB,QAAQ,CAAC,MAAc,EAAE,IAAc;IACrD,IAAI,WAAW,CAAC,MAAM,CAAC,EAAE,CAAC;QACxB,OAAO,kBAAE;aACN,WAAW,CAAC,MAAM,CAAC;aACnB,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,cAAI,CAAC,IAAI,CAAC,MAAM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AAC,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC,CAAC;QAC7C,CAAC;QAED,+DAA+D;QAC/D,IAAI,IAAA,iBAAQ,EAAC,KAAK,CAAC,EAAE,CAAC;YACpB,iCAAiC;YACjC,OAAO,CAAC,IAAI,CAAC,GAAG,IAAA,4BAAoB,EAAC,KAAK,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC;QACrE,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAzBW,QAAA,oBAAoB,wBAyB/B;AAEF;;;;;GAKG;AACI,MAAM,wBAAwB,GAAG,CAAC,IAAY,EAAE,EAAE;IACvD,IAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,UAAU,CAAC,6BAA6B,CAAC,EAAE,CAAC;QACpD,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC9C,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AALW,QAAA,wBAAwB,4BAKnC"}
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "auth0-deploy-cli",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.21.0",
|
|
4
4
|
"description": "A command line tool for deploying updates to your Auth0 tenant",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"a0deploy": "lib/index.js"
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
|
-
"lint:fix": "eslint --fix . && kacl lint",
|
|
11
|
-
"lint": "eslint . && kacl lint",
|
|
10
|
+
"lint:fix": "eslint --fix --ignore-path .eslintignore --ignore-pattern webpack . && kacl lint",
|
|
11
|
+
"lint": "eslint --ignore-path .eslintignore --ignore-pattern webpack . && kacl lint",
|
|
12
12
|
"format": "npx prettier --write .",
|
|
13
13
|
"test": "ts-mocha -p tsconfig.json --recursive 'test/**/*.test*' --exclude 'test/e2e/*' --timeout 20000",
|
|
14
14
|
"test:e2e:node-module": "ts-mocha -p tsconfig.json --recursive 'test/e2e/*.test*' --timeout 120000",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"homepage": "https://github.com/auth0/auth0-deploy-cli#readme",
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"ajv": "^6.12.6",
|
|
36
|
-
"auth0": "^
|
|
36
|
+
"auth0": "^4.37.0",
|
|
37
37
|
"dot-prop": "^5.3.0",
|
|
38
38
|
"fs-extra": "^10.1.0",
|
|
39
39
|
"js-yaml": "^4.1.1",
|
|
@@ -51,15 +51,13 @@
|
|
|
51
51
|
"@types/lodash": "^4.17.20",
|
|
52
52
|
"@types/mocha": "^10.0.10",
|
|
53
53
|
"@types/nconf": "^0.10.7",
|
|
54
|
-
"@eslint/
|
|
55
|
-
"@typescript-eslint/eslint-plugin": "^8.47.0",
|
|
56
|
-
"@typescript-eslint/parser": "^8.47.0",
|
|
54
|
+
"@typescript-eslint/parser": "^5.62.0",
|
|
57
55
|
"chai": "^4.5.0",
|
|
58
56
|
"chai-as-promised": "^7.1.2",
|
|
59
|
-
"eslint": "^
|
|
57
|
+
"eslint": "^7.32.0",
|
|
58
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
60
59
|
"eslint-config-prettier": "^10.1.8",
|
|
61
60
|
"eslint-plugin-import": "^2.32.0",
|
|
62
|
-
"globals": "^15.12.0",
|
|
63
61
|
"husky": "^9.1.7",
|
|
64
62
|
"kacl": "^1.1.1",
|
|
65
63
|
"mocha": "^10.8.2",
|
|
@@ -73,10 +71,11 @@
|
|
|
73
71
|
"sinon": "^13.0.2",
|
|
74
72
|
"sinon-chai": "^3.7.0",
|
|
75
73
|
"ts-mocha": "^10.1.0",
|
|
76
|
-
"typescript": "^5.9.
|
|
74
|
+
"typescript": "^5.9.2",
|
|
75
|
+
"zlib": "^1.0.5"
|
|
77
76
|
},
|
|
78
77
|
"engines": {
|
|
79
|
-
"node": ">=20.
|
|
78
|
+
"node": ">=20.18.1"
|
|
80
79
|
},
|
|
81
80
|
"keywords": [
|
|
82
81
|
"auth0",
|
package/tsconfig.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"target": "
|
|
3
|
+
"target": "es2016",
|
|
4
4
|
"experimentalDecorators": true,
|
|
5
|
-
"module": "
|
|
6
|
-
"moduleResolution": "nodenext",
|
|
5
|
+
"module": "commonjs",
|
|
7
6
|
"rootDir": "./src",
|
|
8
7
|
"allowJs": true,
|
|
9
8
|
"outDir": "./lib",
|
|
10
|
-
"sourceMap":
|
|
9
|
+
"sourceMap": true,
|
|
11
10
|
"esModuleInterop": true,
|
|
12
11
|
"forceConsistentCasingInFileNames": true,
|
|
13
12
|
"strict": false,
|
package/eslint.config.js
DELETED
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
const js = require('@eslint/js');
|
|
2
|
-
const tsParser = require('@typescript-eslint/parser');
|
|
3
|
-
const tsEslint = require('@typescript-eslint/eslint-plugin');
|
|
4
|
-
const importPlugin = require('eslint-plugin-import');
|
|
5
|
-
const globals = require('globals');
|
|
6
|
-
const eslintConfigPrettier = require('eslint-config-prettier');
|
|
7
|
-
|
|
8
|
-
const baseRecommended = js.configs.recommended;
|
|
9
|
-
|
|
10
|
-
module.exports = [
|
|
11
|
-
{
|
|
12
|
-
ignores: [
|
|
13
|
-
'coverage/**',
|
|
14
|
-
'examples/**',
|
|
15
|
-
'local/**',
|
|
16
|
-
'node_modules/**',
|
|
17
|
-
'lib/**',
|
|
18
|
-
'test/e2e/testdata/**',
|
|
19
|
-
'webpack/**',
|
|
20
|
-
],
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
...baseRecommended,
|
|
24
|
-
files: ['**/*.{js,ts,cjs,mjs}'],
|
|
25
|
-
linterOptions: {
|
|
26
|
-
reportUnusedDisableDirectives: 'off',
|
|
27
|
-
},
|
|
28
|
-
languageOptions: {
|
|
29
|
-
...(baseRecommended.languageOptions ?? {}),
|
|
30
|
-
parser: tsParser,
|
|
31
|
-
parserOptions: {
|
|
32
|
-
...(baseRecommended.languageOptions?.parserOptions ?? {}),
|
|
33
|
-
ecmaVersion: 2020,
|
|
34
|
-
sourceType: 'module',
|
|
35
|
-
},
|
|
36
|
-
globals: {
|
|
37
|
-
...(baseRecommended.languageOptions?.globals ?? {}),
|
|
38
|
-
...globals.es2020,
|
|
39
|
-
...globals.node,
|
|
40
|
-
...globals.mocha,
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
plugins: {
|
|
44
|
-
...(baseRecommended.plugins ?? {}),
|
|
45
|
-
import: importPlugin,
|
|
46
|
-
'@typescript-eslint': tsEslint,
|
|
47
|
-
},
|
|
48
|
-
settings: {
|
|
49
|
-
'import/resolver': {
|
|
50
|
-
node: {
|
|
51
|
-
extensions: ['.js', '.ts', '.mjs', '.cjs'],
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
rules: {
|
|
56
|
-
...(baseRecommended.rules ?? {}),
|
|
57
|
-
'max-len': 'off',
|
|
58
|
-
'class-methods-use-this': 'off',
|
|
59
|
-
'comma-dangle': 'off',
|
|
60
|
-
'eol-last': ['error', 'always'],
|
|
61
|
-
indent: [
|
|
62
|
-
'error',
|
|
63
|
-
2,
|
|
64
|
-
{
|
|
65
|
-
SwitchCase: 1,
|
|
66
|
-
},
|
|
67
|
-
],
|
|
68
|
-
'import/no-extraneous-dependencies': [
|
|
69
|
-
'error',
|
|
70
|
-
{
|
|
71
|
-
devDependencies: true,
|
|
72
|
-
},
|
|
73
|
-
],
|
|
74
|
-
'import/no-dynamic-require': 'off',
|
|
75
|
-
'prefer-arrow-callback': 'off',
|
|
76
|
-
'object-shorthand': 'off',
|
|
77
|
-
'prefer-template': 'off',
|
|
78
|
-
'func-names': 'off',
|
|
79
|
-
'new-cap': 'off',
|
|
80
|
-
'no-await-in-loop': 'off',
|
|
81
|
-
'no-param-reassign': 'off',
|
|
82
|
-
'no-multiple-empty-lines': [
|
|
83
|
-
'error',
|
|
84
|
-
{
|
|
85
|
-
max: 1,
|
|
86
|
-
maxEOF: 0,
|
|
87
|
-
},
|
|
88
|
-
],
|
|
89
|
-
'no-plusplus': 'off',
|
|
90
|
-
'no-extra-boolean-cast': 'off',
|
|
91
|
-
'no-useless-escape': 'off',
|
|
92
|
-
'no-redeclare': 'off',
|
|
93
|
-
'no-unused-vars': 'off',
|
|
94
|
-
'@typescript-eslint/no-unused-vars': [
|
|
95
|
-
'error',
|
|
96
|
-
{
|
|
97
|
-
argsIgnorePattern: '^_',
|
|
98
|
-
varsIgnorePattern: '^_',
|
|
99
|
-
caughtErrors: 'none',
|
|
100
|
-
ignoreRestSiblings: true,
|
|
101
|
-
},
|
|
102
|
-
],
|
|
103
|
-
'@typescript-eslint/no-redeclare': 'off',
|
|
104
|
-
'@typescript-eslint/no-explicit-any': 'off',
|
|
105
|
-
'no-var': 'off',
|
|
106
|
-
'object-curly-spacing': ['error', 'always'],
|
|
107
|
-
quotes: [
|
|
108
|
-
'error',
|
|
109
|
-
'single',
|
|
110
|
-
{
|
|
111
|
-
avoidEscape: true,
|
|
112
|
-
},
|
|
113
|
-
],
|
|
114
|
-
semi: ['error', 'always'],
|
|
115
|
-
strict: 'off',
|
|
116
|
-
'space-before-blocks': ['error', 'always'],
|
|
117
|
-
'import/extensions': [
|
|
118
|
-
'error',
|
|
119
|
-
'ignorePackages',
|
|
120
|
-
{
|
|
121
|
-
js: 'never',
|
|
122
|
-
ts: 'never',
|
|
123
|
-
mjs: 'never',
|
|
124
|
-
cjs: 'never',
|
|
125
|
-
},
|
|
126
|
-
],
|
|
127
|
-
},
|
|
128
|
-
},
|
|
129
|
-
eslintConfigPrettier,
|
|
130
|
-
];
|