@salesforce/core 4.0.0-v3.0 → 4.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.
- package/LICENSE.txt +1 -1
- package/README.md +93 -44
- package/lib/config/aliasesConfig.d.ts +12 -0
- package/lib/config/aliasesConfig.js +28 -0
- package/lib/config/authInfoConfig.d.ts +19 -0
- package/lib/config/authInfoConfig.js +35 -0
- package/lib/config/config.d.ts +181 -48
- package/lib/config/config.js +382 -159
- package/lib/config/configAggregator.d.ts +59 -42
- package/lib/config/configAggregator.js +135 -82
- package/lib/config/configFile.d.ts +2 -2
- package/lib/config/configFile.js +40 -31
- package/lib/config/configGroup.d.ts +9 -9
- package/lib/config/configGroup.js +13 -11
- package/lib/config/configStore.d.ts +9 -9
- package/lib/config/configStore.js +29 -26
- package/lib/config/envVars.d.ts +102 -0
- package/lib/config/envVars.js +457 -0
- package/lib/config/orgUsersConfig.d.ts +8 -0
- package/lib/config/orgUsersConfig.js +12 -0
- package/lib/config/sandboxOrgConfig.d.ts +8 -0
- package/lib/config/sandboxOrgConfig.js +12 -0
- package/lib/config/sandboxProcessCache.d.ts +16 -0
- package/lib/config/sandboxProcessCache.js +38 -0
- package/lib/config/tokensConfig.d.ts +10 -0
- package/lib/config/tokensConfig.js +29 -0
- package/lib/config/ttlConfig.d.ts +34 -0
- package/lib/config/ttlConfig.js +50 -0
- package/lib/crypto/crypto.js +29 -16
- package/lib/crypto/keyChain.js +4 -4
- package/lib/crypto/keyChainImpl.d.ts +5 -3
- package/lib/crypto/keyChainImpl.js +65 -66
- package/lib/crypto/secureBuffer.d.ts +1 -1
- package/lib/crypto/secureBuffer.js +1 -1
- package/lib/deviceOauthService.d.ts +5 -5
- package/lib/deviceOauthService.js +37 -33
- package/lib/exported.d.ts +22 -15
- package/lib/exported.js +49 -25
- package/lib/global.d.ts +17 -3
- package/lib/global.js +46 -13
- package/lib/lifecycleEvents.d.ts +39 -2
- package/lib/lifecycleEvents.js +77 -3
- package/lib/logger.d.ts +21 -11
- package/lib/logger.js +121 -105
- package/lib/messages.d.ts +53 -36
- package/lib/messages.js +89 -97
- package/lib/org/authInfo.d.ts +84 -72
- package/lib/org/authInfo.js +326 -320
- package/lib/org/authRemover.d.ts +16 -23
- package/lib/org/authRemover.js +62 -60
- package/lib/org/connection.d.ts +33 -59
- package/lib/org/connection.js +129 -190
- package/lib/org/index.js +6 -2
- package/lib/org/org.d.ts +263 -38
- package/lib/org/org.js +734 -149
- package/lib/org/orgConfigProperties.d.ts +69 -0
- package/lib/org/orgConfigProperties.js +121 -0
- package/lib/org/permissionSetAssignment.js +6 -15
- package/lib/org/scratchOrgCache.d.ts +20 -0
- package/lib/org/scratchOrgCache.js +33 -0
- package/lib/org/scratchOrgCreate.d.ts +54 -0
- package/lib/org/scratchOrgCreate.js +214 -0
- package/lib/org/scratchOrgErrorCodes.d.ts +10 -0
- package/lib/org/scratchOrgErrorCodes.js +79 -0
- package/lib/org/scratchOrgFeatureDeprecation.d.ts +26 -0
- package/lib/org/scratchOrgFeatureDeprecation.js +105 -0
- package/lib/org/scratchOrgInfoApi.d.ts +68 -0
- package/lib/org/scratchOrgInfoApi.js +416 -0
- package/lib/org/scratchOrgInfoGenerator.d.ts +64 -0
- package/lib/org/scratchOrgInfoGenerator.js +237 -0
- package/lib/org/scratchOrgLifecycleEvents.d.ts +10 -0
- package/lib/org/scratchOrgLifecycleEvents.js +41 -0
- package/lib/org/scratchOrgSettingsGenerator.d.ts +79 -0
- package/lib/org/scratchOrgSettingsGenerator.js +277 -0
- package/lib/org/scratchOrgTypes.d.ts +43 -0
- package/lib/{status/client.js → org/scratchOrgTypes.js} +1 -1
- package/lib/org/user.d.ts +7 -2
- package/lib/org/user.js +78 -54
- package/lib/schema/printer.d.ts +6 -0
- package/lib/schema/printer.js +49 -46
- package/lib/schema/validator.d.ts +12 -10
- package/lib/schema/validator.js +56 -76
- package/lib/{sfdxError.d.ts → sfError.d.ts} +12 -15
- package/lib/{sfdxError.js → sfError.js} +42 -24
- package/lib/{sfdxProject.d.ts → sfProject.d.ts} +75 -35
- package/lib/sfProject.js +651 -0
- package/lib/stateAggregator/accessors/aliasAccessor.d.ts +98 -0
- package/lib/stateAggregator/accessors/aliasAccessor.js +146 -0
- package/lib/stateAggregator/accessors/orgAccessor.d.ts +101 -0
- package/lib/stateAggregator/accessors/orgAccessor.js +240 -0
- package/lib/stateAggregator/accessors/sandboxAccessor.d.ts +8 -0
- package/lib/stateAggregator/accessors/sandboxAccessor.js +28 -0
- package/lib/stateAggregator/accessors/tokenAccessor.d.ts +63 -0
- package/lib/stateAggregator/accessors/tokenAccessor.js +80 -0
- package/lib/stateAggregator/index.d.ts +4 -0
- package/lib/stateAggregator/index.js +27 -0
- package/lib/stateAggregator/stateAggregator.d.ts +25 -0
- package/lib/stateAggregator/stateAggregator.js +46 -0
- package/lib/status/myDomainResolver.d.ts +1 -1
- package/lib/status/myDomainResolver.js +10 -10
- package/lib/status/pollingClient.d.ts +2 -6
- package/lib/status/pollingClient.js +38 -64
- package/lib/status/streamingClient.d.ts +5 -80
- package/lib/status/streamingClient.js +74 -94
- package/lib/status/types.d.ts +89 -0
- package/lib/status/types.js +18 -0
- package/lib/testSetup.d.ts +212 -79
- package/lib/testSetup.js +478 -182
- package/lib/util/cache.d.ts +11 -0
- package/lib/util/cache.js +70 -0
- package/lib/util/checkLightningDomain.d.ts +1 -0
- package/lib/util/checkLightningDomain.js +29 -0
- package/lib/util/directoryWriter.d.ts +12 -0
- package/lib/util/directoryWriter.js +54 -0
- package/lib/util/getJwtAudienceUrl.d.ts +4 -0
- package/lib/util/getJwtAudienceUrl.js +19 -0
- package/lib/util/internal.d.ts +28 -2
- package/lib/util/internal.js +65 -8
- package/lib/util/jsonXmlTools.d.ts +14 -0
- package/lib/util/jsonXmlTools.js +39 -0
- package/lib/util/mapKeys.d.ts +14 -0
- package/lib/util/mapKeys.js +52 -0
- package/lib/util/sfdc.d.ts +51 -63
- package/lib/util/sfdc.js +75 -127
- package/lib/util/sfdcUrl.d.ts +64 -0
- package/lib/util/sfdcUrl.js +197 -0
- package/lib/util/structuredWriter.d.ts +9 -0
- package/lib/util/structuredWriter.js +3 -0
- package/lib/util/zipWriter.d.ts +16 -0
- package/lib/util/zipWriter.js +68 -0
- package/lib/webOAuthServer.d.ts +20 -7
- package/lib/webOAuthServer.js +107 -60
- package/messageTransformer/messageTransformer.ts +93 -0
- package/messages/auth.md +11 -3
- package/messages/config.md +94 -6
- package/messages/connection.md +8 -0
- package/messages/core.json +3 -3
- package/messages/core.md +11 -1
- package/messages/envVars.md +313 -0
- package/messages/org.md +64 -0
- package/messages/scratchOrgCreate.md +23 -0
- package/messages/scratchOrgErrorCodes.md +115 -0
- package/messages/scratchOrgFeatureDeprecation.md +11 -0
- package/messages/scratchOrgInfoApi.md +20 -0
- package/messages/scratchOrgInfoGenerator.md +27 -0
- package/messages/user.md +12 -0
- package/package.json +138 -66
- package/CHANGELOG.md +0 -699
- package/lib/config/aliases.d.ts +0 -56
- package/lib/config/aliases.js +0 -96
- package/lib/config/globalInfoConfig.d.ts +0 -74
- package/lib/config/globalInfoConfig.js +0 -144
- package/lib/config/keychainConfig.d.ts +0 -19
- package/lib/config/keychainConfig.js +0 -43
- package/lib/config/sfdxDataHandler.d.ts +0 -36
- package/lib/config/sfdxDataHandler.js +0 -165
- package/lib/sfdxProject.js +0 -546
- package/lib/status/client.d.ts +0 -15
- package/lib/util/fs.d.ts +0 -198
- package/lib/util/fs.js +0 -374
package/package.json
CHANGED
|
@@ -1,23 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/core",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "Core libraries to interact with SFDX projects, orgs, and APIs.",
|
|
5
5
|
"main": "lib/exported",
|
|
6
|
+
"types": "lib/exported.d.ts",
|
|
6
7
|
"license": "BSD-3-Clause",
|
|
8
|
+
"engines": {
|
|
9
|
+
"node": ">=16.0.0"
|
|
10
|
+
},
|
|
7
11
|
"scripts": {
|
|
8
|
-
"build": "
|
|
12
|
+
"build": "wireit",
|
|
9
13
|
"ci-docs": "yarn sf-ci-docs",
|
|
10
14
|
"clean": "sf-clean",
|
|
11
|
-
"clean-all": "-clean all",
|
|
12
|
-
"compile": "
|
|
15
|
+
"clean-all": "sf-clean all",
|
|
16
|
+
"compile": "wireit",
|
|
13
17
|
"docs": "sf-docs",
|
|
14
|
-
"format": "
|
|
15
|
-
"lint": "
|
|
18
|
+
"format": "wireit",
|
|
19
|
+
"lint": "wireit",
|
|
16
20
|
"lint-fix": "yarn sf-lint --fix",
|
|
17
|
-
"postcompile": "tsc -p
|
|
18
|
-
"prepack": "sf-
|
|
19
|
-
"
|
|
20
|
-
"test": "
|
|
21
|
+
"postcompile": "tsc -p typedocExamples",
|
|
22
|
+
"prepack": "sf-prepack",
|
|
23
|
+
"prepare": "sf-install",
|
|
24
|
+
"test": "wireit",
|
|
25
|
+
"test:only": "wireit"
|
|
21
26
|
},
|
|
22
27
|
"keywords": [
|
|
23
28
|
"force",
|
|
@@ -29,73 +34,140 @@
|
|
|
29
34
|
"docs",
|
|
30
35
|
"lib",
|
|
31
36
|
"messages",
|
|
32
|
-
"!lib/**/*.map"
|
|
37
|
+
"!lib/**/*.map",
|
|
38
|
+
"messageTransformer/messageTransformer.ts"
|
|
33
39
|
],
|
|
34
|
-
"husky": {
|
|
35
|
-
"hooks": {
|
|
36
|
-
"commit-msg": "sf-husky-commit-msg",
|
|
37
|
-
"pre-commit": "sf-husky-pre-commit",
|
|
38
|
-
"pre-push": "sf-husky-pre-push"
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
40
|
"dependencies": {
|
|
42
41
|
"@salesforce/bunyan": "^2.0.0",
|
|
43
|
-
"@salesforce/kit": "^
|
|
44
|
-
"@salesforce/schemas": "^1.
|
|
45
|
-
"@salesforce/ts-types": "^
|
|
46
|
-
"@types/
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
42
|
+
"@salesforce/kit": "^3.0.0",
|
|
43
|
+
"@salesforce/schemas": "^1.5.1",
|
|
44
|
+
"@salesforce/ts-types": "^2.0.1",
|
|
45
|
+
"@types/semver": "^7.3.13",
|
|
46
|
+
"ajv": "^8.12.0",
|
|
47
|
+
"archiver": "^5.3.0",
|
|
48
|
+
"change-case": "^4.1.2",
|
|
49
|
+
"debug": "^3.2.7",
|
|
50
|
+
"faye": "^1.4.0",
|
|
51
|
+
"form-data": "^4.0.0",
|
|
52
|
+
"js2xmlparser": "^4.0.1",
|
|
53
|
+
"jsforce": "^2.0.0-beta.23",
|
|
54
|
+
"jsonwebtoken": "9.0.0",
|
|
55
|
+
"ts-retry-promise": "^0.7.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@salesforce/dev-config": "^
|
|
59
|
-
"@salesforce/dev-scripts": "^0.
|
|
60
|
-
"@salesforce/prettier-config": "^0.0.
|
|
61
|
-
"@salesforce/ts-sinon": "^1.
|
|
62
|
-
"@types/
|
|
63
|
-
"@types/
|
|
64
|
-
"@types/
|
|
65
|
-
"@types/
|
|
66
|
-
"@types/
|
|
67
|
-
"@types/
|
|
68
|
-
"@
|
|
69
|
-
"@
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"eslint": "^
|
|
75
|
-
"eslint-config-
|
|
76
|
-
"eslint-config-salesforce": "^
|
|
77
|
-
"eslint-
|
|
78
|
-
"eslint-
|
|
79
|
-
"eslint-plugin-
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"husky": "^4.2.5",
|
|
84
|
-
"mocha": "^7.2.0",
|
|
58
|
+
"@salesforce/dev-config": "^4.0.1",
|
|
59
|
+
"@salesforce/dev-scripts": "^5.0.1",
|
|
60
|
+
"@salesforce/prettier-config": "^0.0.2",
|
|
61
|
+
"@salesforce/ts-sinon": "^1.4.6",
|
|
62
|
+
"@types/archiver": "^5.3.2",
|
|
63
|
+
"@types/chai-string": "^1.4.2",
|
|
64
|
+
"@types/debug": "0.0.31",
|
|
65
|
+
"@types/jsonwebtoken": "9.0.2",
|
|
66
|
+
"@types/lodash": "^4.14.194",
|
|
67
|
+
"@types/shelljs": "0.8.12",
|
|
68
|
+
"@typescript-eslint/eslint-plugin": "^5.59.7",
|
|
69
|
+
"@typescript-eslint/parser": "^5.59.7",
|
|
70
|
+
"chai": "^4.3.7",
|
|
71
|
+
"chai-string": "^1.5.0",
|
|
72
|
+
"eslint": "^8.41.0",
|
|
73
|
+
"eslint-config-prettier": "^8.8.0",
|
|
74
|
+
"eslint-config-salesforce": "^2.0.1",
|
|
75
|
+
"eslint-config-salesforce-license": "^0.2.0",
|
|
76
|
+
"eslint-config-salesforce-typescript": "^1.1.1",
|
|
77
|
+
"eslint-plugin-header": "^3.1.1",
|
|
78
|
+
"eslint-plugin-import": "^2.27.5",
|
|
79
|
+
"eslint-plugin-jsdoc": "^43.1.1",
|
|
80
|
+
"husky": "^7.0.4",
|
|
81
|
+
"lodash": "^4.17.21",
|
|
82
|
+
"mocha": "^9.1.3",
|
|
85
83
|
"nyc": "^15.1.0",
|
|
86
|
-
"prettier": "^2.
|
|
87
|
-
"pretty-quick": "^
|
|
88
|
-
"shelljs": "0.8.
|
|
89
|
-
"sinon": "^
|
|
90
|
-
"ts-node": "^
|
|
91
|
-
"
|
|
84
|
+
"prettier": "^2.8.7",
|
|
85
|
+
"pretty-quick": "^3.1.3",
|
|
86
|
+
"shelljs": "0.8.5",
|
|
87
|
+
"sinon": "^14.0.2",
|
|
88
|
+
"ts-node": "^10.4.0",
|
|
89
|
+
"ttypescript": "^1.5.15",
|
|
90
|
+
"typescript": "^4.9.5",
|
|
91
|
+
"wireit": "^0.9.5"
|
|
92
92
|
},
|
|
93
|
-
"types": "lib/exported.d.ts",
|
|
94
93
|
"repository": {
|
|
95
94
|
"type": "git",
|
|
96
95
|
"url": "https://github.com/forcedotcom/sfdx-core.git"
|
|
97
96
|
},
|
|
98
97
|
"publishConfig": {
|
|
99
98
|
"access": "public"
|
|
99
|
+
},
|
|
100
|
+
"wireit": {
|
|
101
|
+
"build": {
|
|
102
|
+
"dependencies": [
|
|
103
|
+
"compile",
|
|
104
|
+
"lint"
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
"compile": {
|
|
108
|
+
"command": "ttsc -p . --pretty --incremental",
|
|
109
|
+
"files": [
|
|
110
|
+
"src/**/*.ts",
|
|
111
|
+
"tsconfig.json",
|
|
112
|
+
"messages",
|
|
113
|
+
"messageTransformer"
|
|
114
|
+
],
|
|
115
|
+
"output": [
|
|
116
|
+
"lib/**",
|
|
117
|
+
"*.tsbuildinfo"
|
|
118
|
+
],
|
|
119
|
+
"clean": "if-file-deleted"
|
|
120
|
+
},
|
|
121
|
+
"format": {
|
|
122
|
+
"command": "prettier --write \"+(src|test|schemas)/**/*.+(ts|js|json)|command-snapshot.json\"",
|
|
123
|
+
"files": [
|
|
124
|
+
"src/**/*.ts",
|
|
125
|
+
"test/**/*.ts",
|
|
126
|
+
"schemas/**/*.json",
|
|
127
|
+
"command-snapshot.json",
|
|
128
|
+
".prettier*"
|
|
129
|
+
],
|
|
130
|
+
"output": []
|
|
131
|
+
},
|
|
132
|
+
"lint": {
|
|
133
|
+
"command": "eslint src test --color --cache --cache-location .eslintcache",
|
|
134
|
+
"files": [
|
|
135
|
+
"src/**/*.ts",
|
|
136
|
+
"test/**/*.ts",
|
|
137
|
+
"messages/**",
|
|
138
|
+
"**/.eslint*",
|
|
139
|
+
"**/tsconfig.json"
|
|
140
|
+
],
|
|
141
|
+
"output": []
|
|
142
|
+
},
|
|
143
|
+
"test:compile": {
|
|
144
|
+
"command": "tsc -p \"./test\" --pretty",
|
|
145
|
+
"files": [
|
|
146
|
+
"test/**/*.ts",
|
|
147
|
+
"**/tsconfig.json"
|
|
148
|
+
],
|
|
149
|
+
"output": []
|
|
150
|
+
},
|
|
151
|
+
"test:only": {
|
|
152
|
+
"command": "nyc mocha \"test/**/*Test.ts\"",
|
|
153
|
+
"env": {
|
|
154
|
+
"FORCE_COLOR": "2"
|
|
155
|
+
},
|
|
156
|
+
"files": [
|
|
157
|
+
"test/**/*.ts",
|
|
158
|
+
"src/**/*.ts",
|
|
159
|
+
"**/tsconfig.json",
|
|
160
|
+
".mocha*",
|
|
161
|
+
"!*.nut.ts",
|
|
162
|
+
".nycrc"
|
|
163
|
+
],
|
|
164
|
+
"output": []
|
|
165
|
+
},
|
|
166
|
+
"test": {
|
|
167
|
+
"dependencies": [
|
|
168
|
+
"test:only",
|
|
169
|
+
"test:compile"
|
|
170
|
+
]
|
|
171
|
+
}
|
|
100
172
|
}
|
|
101
|
-
}
|
|
173
|
+
}
|