@salesforce/core 4.3.0 → 4.3.2
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/README.md +5 -1
- package/lib/exported.d.ts +0 -1
- package/lib/exported.js +2 -4
- package/lib/org/scratchOrgSettingsGenerator.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -23,6 +23,10 @@ See the [API documentation](https://forcedotcom.github.io/sfdx-core/).
|
|
|
23
23
|
|
|
24
24
|
If you are interested in contributing, please take a look at the [CONTRIBUTING](CONTRIBUTING.md) guide.
|
|
25
25
|
|
|
26
|
+
## Issues
|
|
27
|
+
|
|
28
|
+
Please report all issues to [issues only repository](https://github.com/forcedotcom/cli/issues).
|
|
29
|
+
|
|
26
30
|
# Using TestSetup
|
|
27
31
|
|
|
28
32
|
The Salesforce DX Core Library provides a unit testing utility to help with mocking and sand-boxing core components. This feature allows unit tests to execute without needing to make API calls to salesforce.com.
|
|
@@ -238,7 +242,7 @@ In your plugin or library,
|
|
|
238
242
|
```json
|
|
239
243
|
{
|
|
240
244
|
...
|
|
241
|
-
"plugins": [{ "transform": "@salesforce/core", "import": "messageTransformer" }]
|
|
245
|
+
"plugins": [{ "transform": "@salesforce/core/lib/messageTransformer", "import": "messageTransformer" }]
|
|
242
246
|
}
|
|
243
247
|
```
|
|
244
248
|
|
package/lib/exported.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { OAuth2Config } from 'jsforce';
|
|
2
|
-
export { messageTransformer } from './messageTransformer';
|
|
3
2
|
export { ConfigFile } from './config/configFile';
|
|
4
3
|
export { TTLConfig } from './config/ttlConfig';
|
|
5
4
|
export { envVars, EnvironmentVariable, SUPPORTED_ENV_VARS, EnvVars } from './config/envVars';
|
package/lib/exported.js
CHANGED
|
@@ -20,11 +20,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
20
20
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
21
21
|
};
|
|
22
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
-
exports.scratchOrgResume = exports.scratchOrgCreate = exports.PermissionSetAssignment = exports.User = exports.REQUIRED_FIELDS = exports.DefaultUserFields = exports.MyDomainResolver = exports.StreamingClient = exports.CometClient = exports.PollingClient = exports.SfError = exports.SchemaPrinter = exports.SchemaValidator = exports.SfProjectJson = exports.SfProject = exports.ORG_CONFIG_ALLOWED_PROPERTIES = exports.OrgConfigProperties = exports.OrgTypes = exports.SandboxEvents = exports.Org = exports.Messages = exports.Logger = exports.LoggerLevel = exports.getJwtAudienceUrl = exports.SfdcUrl = exports.WebOAuthServer = exports.Lifecycle = exports.Global = exports.Mode = exports.SFDX_HTTP_HEADERS = exports.Connection = exports.AuthRemover = exports.AuthInfo = exports.ConfigAggregator = exports.SandboxRequestCache = exports.SF_ALLOWED_PROPERTIES = exports.SFDX_ALLOWED_PROPERTIES = exports.SfConfigProperties = exports.SfdxPropertyKeys = exports.Config = exports.OrgUsersConfig = exports.DeviceOauthService = exports.StateAggregator = exports.EnvVars = exports.SUPPORTED_ENV_VARS = exports.EnvironmentVariable = exports.envVars = exports.TTLConfig = exports.ConfigFile =
|
|
24
|
-
exports.ScratchOrgCache = exports.scratchOrgLifecycleStages =
|
|
23
|
+
exports.scratchOrgLifecycleEventName = exports.scratchOrgResume = exports.scratchOrgCreate = exports.PermissionSetAssignment = exports.User = exports.REQUIRED_FIELDS = exports.DefaultUserFields = exports.MyDomainResolver = exports.StreamingClient = exports.CometClient = exports.PollingClient = exports.SfError = exports.SchemaPrinter = exports.SchemaValidator = exports.SfProjectJson = exports.SfProject = exports.ORG_CONFIG_ALLOWED_PROPERTIES = exports.OrgConfigProperties = exports.OrgTypes = exports.SandboxEvents = exports.Org = exports.Messages = exports.Logger = exports.LoggerLevel = exports.getJwtAudienceUrl = exports.SfdcUrl = exports.WebOAuthServer = exports.Lifecycle = exports.Global = exports.Mode = exports.SFDX_HTTP_HEADERS = exports.Connection = exports.AuthRemover = exports.AuthInfo = exports.ConfigAggregator = exports.SandboxRequestCache = exports.SF_ALLOWED_PROPERTIES = exports.SFDX_ALLOWED_PROPERTIES = exports.SfConfigProperties = exports.SfdxPropertyKeys = exports.Config = exports.OrgUsersConfig = exports.DeviceOauthService = exports.StateAggregator = exports.EnvVars = exports.SUPPORTED_ENV_VARS = exports.EnvironmentVariable = exports.envVars = exports.TTLConfig = exports.ConfigFile = void 0;
|
|
24
|
+
exports.ScratchOrgCache = exports.scratchOrgLifecycleStages = void 0;
|
|
25
25
|
const messages_1 = require("./messages");
|
|
26
|
-
var messageTransformer_1 = require("./messageTransformer");
|
|
27
|
-
Object.defineProperty(exports, "messageTransformer", { enumerable: true, get: function () { return messageTransformer_1.messageTransformer; } });
|
|
28
26
|
var configFile_1 = require("./config/configFile");
|
|
29
27
|
Object.defineProperty(exports, "ConfigFile", { enumerable: true, get: function () { return configFile_1.ConfigFile; } });
|
|
30
28
|
var ttlConfig_1 = require("./config/ttlConfig");
|
|
@@ -224,7 +224,7 @@ class SettingsGenerator {
|
|
|
224
224
|
if (status !== RequestStatus.Succeeded) {
|
|
225
225
|
const componentFailures = (0, ts_types_1.ensureObject)(result.details).componentFailures;
|
|
226
226
|
const failures = (Array.isArray(componentFailures) ? componentFailures : [componentFailures])
|
|
227
|
-
.map((failure) => failure.problem)
|
|
227
|
+
.map((failure) => `[${failure.problemType}] ${failure.fullName} : ${failure.problem} `)
|
|
228
228
|
.join('\n');
|
|
229
229
|
const error = new sfError_1.SfError(`A scratch org was created with username ${username}, but the settings failed to deploy due to: \n${failures}`, 'ProblemDeployingSettings');
|
|
230
230
|
error.setData(result);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/core",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.2",
|
|
4
4
|
"description": "Core libraries to interact with SFDX projects, orgs, and APIs.",
|
|
5
5
|
"main": "lib/exported",
|
|
6
6
|
"types": "lib/exported.d.ts",
|
|
@@ -67,10 +67,10 @@
|
|
|
67
67
|
"@types/proper-lockfile": "^4.1.2",
|
|
68
68
|
"@types/shelljs": "0.8.12",
|
|
69
69
|
"@typescript-eslint/eslint-plugin": "^5.59.9",
|
|
70
|
-
"@typescript-eslint/parser": "^5.59.
|
|
70
|
+
"@typescript-eslint/parser": "^5.59.11",
|
|
71
71
|
"chai": "^4.3.7",
|
|
72
72
|
"chai-string": "^1.5.0",
|
|
73
|
-
"eslint": "^8.
|
|
73
|
+
"eslint": "^8.43.0",
|
|
74
74
|
"eslint-config-prettier": "^8.8.0",
|
|
75
75
|
"eslint-config-salesforce": "^2.0.1",
|
|
76
76
|
"eslint-config-salesforce-license": "^0.2.0",
|