@salesforce/cli 2.5.6 → 2.5.7

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/bin/run CHANGED
@@ -8,9 +8,6 @@ process.setMaxListeners(parseInt(process.env.SF_MAX_EVENT_LISTENERS, 10) || 1000
8
8
  // Don't let other plugins override the CLI specified max listener count
9
9
  process.setMaxListeners = () => {};
10
10
 
11
- // Check node version before requiring additional packages
12
- require('../dist/versions').checkNodeVersion();
13
-
14
11
  // Pre-process/prune flags before creating or running the actual CLI
15
12
  require('../dist/flags').preprocessCliFlags(process);
16
13
 
package/dist/util/env.js CHANGED
@@ -7,8 +7,8 @@ exports.Env = void 0;
7
7
  * Licensed under the BSD 3-Clause license.
8
8
  * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
9
9
  */
10
- const core_1 = require("@salesforce/core");
11
- class Env extends core_1.EnvVars {
10
+ const envVars_1 = require("@salesforce/core/lib/config/envVars");
11
+ class Env extends envVars_1.EnvVars {
12
12
  constructor(env = process.env) {
13
13
  super(env);
14
14
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@salesforce/cli",
3
- "version": "2.5.6",
3
+ "version": "2.5.7",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@salesforce/cli",
9
- "version": "2.5.6",
9
+ "version": "2.5.7",
10
10
  "hasInstallScript": true,
11
11
  "license": "BSD-3-Clause",
12
12
  "dependencies": {
@@ -40,7 +40,6 @@
40
40
  "@salesforce/plugin-user": "2.3.28",
41
41
  "@salesforce/sf-plugins-core": "3.1.15",
42
42
  "debug": "^4.3.4",
43
- "semver": "^7.5.4",
44
43
  "tslib": "^2.4.1"
45
44
  },
46
45
  "bin": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.5.6",
2
+ "version": "2.5.7",
3
3
  "commands": {
4
4
  "cmdt:generate:field": {
5
5
  "id": "cmdt:generate:field",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@salesforce/cli",
3
3
  "description": "The Salesforce CLI",
4
- "version": "2.5.6",
4
+ "version": "2.5.7",
5
5
  "author": "Salesforce",
6
6
  "bin": {
7
7
  "sf": "./bin/run",
@@ -149,7 +149,6 @@
149
149
  "@salesforce/plugin-user": "2.3.28",
150
150
  "@salesforce/sf-plugins-core": "3.1.15",
151
151
  "debug": "^4.3.4",
152
- "semver": "^7.5.4",
153
152
  "tslib": "^2.4.1"
154
153
  },
155
154
  "pinnedDependencies": [
@@ -205,9 +204,9 @@
205
204
  "pack:tarballs:sequential": "oclif pack:tarballs --xz",
206
205
  "pack:verify": "sf-release cli:tarballs:verify --cli sf --windows-username-buffer 34",
207
206
  "pack:win": "oclif pack:win",
207
+ "postinstall": "node ./scripts/post-install-release-notes.js",
208
208
  "postpack": "rm -f oclif.manifest.json npm-shrinkwrap.json",
209
209
  "preinstall": "node ./scripts/preinstall.js",
210
- "postinstall": "node ./scripts/post-install-release-notes.js",
211
210
  "prepack": "sf-prepack",
212
211
  "prepare": "sf-install && yarn compile && yarn lint",
213
212
  "prepublishOnly": "npm shrinkwrap",
package/dist/versions.js DELETED
@@ -1,47 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2022, salesforce.com, inc.
4
- * All rights reserved.
5
- * Licensed under the BSD 3-Clause license.
6
- * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.checkNodeVersion = exports.isVersion = void 0;
10
- const semver = require("semver");
11
- // eslint-disable-next-line @typescript-eslint/no-var-requires
12
- const pjson = require('../package.json');
13
- /**
14
- * Determines whether or not a tag string is a semantic version.
15
- *
16
- * @param {*} tag The possible version string
17
- * @returns {boolean} True, if the string is recognized as a semantic version
18
- */
19
- function isVersion(tag) {
20
- if (!tag) {
21
- return false;
22
- }
23
- return !!semver.valid(tag) || false;
24
- }
25
- exports.isVersion = isVersion;
26
- // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
27
- module.exports.isVersion = isVersion;
28
- /**
29
- * Checks the current Node version for compatibility before launching the CLI.
30
- */
31
- function checkNodeVersion(preferThrow = false, currentVersion = process.versions.node, requiredVersion = pjson.engines.node.slice(2)) {
32
- if (semver.compare(currentVersion, requiredVersion) < 0) {
33
- const message = `Unsupported Node.js version ${currentVersion}, version ${requiredVersion} or later is required.`;
34
- if (!preferThrow) {
35
- // eslint-disable-next-line no-console
36
- console.error(message);
37
- process.exit(1);
38
- }
39
- else {
40
- throw new Error(message);
41
- }
42
- }
43
- }
44
- exports.checkNodeVersion = checkNodeVersion;
45
- // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
46
- module.exports.checkNodeVersion = checkNodeVersion;
47
- //# sourceMappingURL=versions.js.map