@yarnpkg/plugin-essentials 4.4.1 → 4.4.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.
@@ -1,10 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
3
  const cli_1 = require("@yarnpkg/cli");
5
4
  const core_1 = require("@yarnpkg/core");
6
5
  const clipanion_1 = require("clipanion");
7
- const get_1 = tslib_1.__importDefault(require("lodash/get"));
6
+ const compat_1 = require("es-toolkit/compat");
8
7
  const util_1 = require("util");
9
8
  // eslint-disable-next-line arca/no-default-export
10
9
  class ConfigGetCommand extends cli_1.BaseCommand {
@@ -34,7 +33,7 @@ class ConfigGetCommand extends cli_1.BaseCommand {
34
33
  });
35
34
  const asObject = core_1.miscUtils.convertMapsToIndexableObjects(displayedValue);
36
35
  const requestedObject = path
37
- ? (0, get_1.default)(asObject, path)
36
+ ? (0, compat_1.get)(asObject, path)
38
37
  : asObject;
39
38
  const report = await core_1.StreamReport.start({
40
39
  configuration,
@@ -1,12 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
3
  const cli_1 = require("@yarnpkg/cli");
5
4
  const core_1 = require("@yarnpkg/core");
6
5
  const clipanion_1 = require("clipanion");
7
- const cloneDeep_1 = tslib_1.__importDefault(require("lodash/cloneDeep"));
8
- const get_1 = tslib_1.__importDefault(require("lodash/get"));
9
- const set_1 = tslib_1.__importDefault(require("lodash/set"));
6
+ const compat_1 = require("es-toolkit/compat");
10
7
  const util_1 = require("util");
11
8
  // eslint-disable-next-line arca/no-default-export
12
9
  class ConfigSetCommand extends cli_1.BaseCommand {
@@ -43,8 +40,8 @@ class ConfigSetCommand extends cli_1.BaseCommand {
43
40
  : patch => core_1.Configuration.updateConfiguration(assertProjectCwd(), patch);
44
41
  await updateConfiguration(current => {
45
42
  if (path) {
46
- const clone = (0, cloneDeep_1.default)(current);
47
- (0, set_1.default)(clone, this.name, value);
43
+ const clone = (0, compat_1.cloneDeep)(current);
44
+ (0, compat_1.set)(clone, this.name, value);
48
45
  return clone;
49
46
  }
50
47
  else {
@@ -61,7 +58,7 @@ class ConfigSetCommand extends cli_1.BaseCommand {
61
58
  });
62
59
  const asObject = core_1.miscUtils.convertMapsToIndexableObjects(displayedValue);
63
60
  const requestedObject = path
64
- ? (0, get_1.default)(asObject, path)
61
+ ? (0, compat_1.get)(asObject, path)
65
62
  : asObject;
66
63
  const report = await core_1.StreamReport.start({
67
64
  configuration,
@@ -1,12 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
3
  const cli_1 = require("@yarnpkg/cli");
5
4
  const core_1 = require("@yarnpkg/core");
6
5
  const clipanion_1 = require("clipanion");
7
- const cloneDeep_1 = tslib_1.__importDefault(require("lodash/cloneDeep"));
8
- const has_1 = tslib_1.__importDefault(require("lodash/has"));
9
- const unset_1 = tslib_1.__importDefault(require("lodash/unset"));
6
+ const compat_1 = require("es-toolkit/compat");
10
7
  // eslint-disable-next-line arca/no-default-export
11
8
  class ConfigUnsetCommand extends cli_1.BaseCommand {
12
9
  constructor() {
@@ -38,15 +35,15 @@ class ConfigUnsetCommand extends cli_1.BaseCommand {
38
35
  }, async (report) => {
39
36
  let bailedOutEarly = false;
40
37
  await updateConfiguration(current => {
41
- if (!(0, has_1.default)(current, this.name)) {
38
+ if (!(0, compat_1.has)(current, this.name)) {
42
39
  report.reportWarning(core_1.MessageName.UNNAMED, `Configuration doesn't contain setting ${this.name}; there is nothing to unset`);
43
40
  bailedOutEarly = true;
44
41
  return current;
45
42
  }
46
43
  const clone = path
47
- ? (0, cloneDeep_1.default)(current)
44
+ ? (0, compat_1.cloneDeep)(current)
48
45
  : { ...current };
49
- (0, unset_1.default)(clone, this.name);
46
+ (0, compat_1.unset)(clone, this.name);
50
47
  return clone;
51
48
  });
52
49
  // We can't show the success message in the callback as we must first wait for the new configuration to be persisted
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yarnpkg/plugin-essentials",
3
- "version": "4.4.1",
3
+ "version": "4.4.2",
4
4
  "license": "BSD-2-Clause",
5
5
  "main": "./lib/index.js",
6
6
  "exports": {
@@ -13,24 +13,23 @@
13
13
  "ci-info": "^4.0.0",
14
14
  "clipanion": "^4.0.0-rc.2",
15
15
  "enquirer": "^2.3.6",
16
- "lodash": "^4.17.15",
16
+ "es-toolkit": "^1.39.7",
17
17
  "micromatch": "^4.0.2",
18
18
  "semver": "^7.1.2",
19
19
  "tslib": "^2.4.0",
20
20
  "typanion": "^3.14.0"
21
21
  },
22
22
  "peerDependencies": {
23
- "@yarnpkg/cli": "^4.9.2",
24
- "@yarnpkg/core": "^4.4.2",
25
- "@yarnpkg/plugin-git": "^3.1.2"
23
+ "@yarnpkg/cli": "^4.9.3",
24
+ "@yarnpkg/core": "^4.4.3",
25
+ "@yarnpkg/plugin-git": "^3.1.3"
26
26
  },
27
27
  "devDependencies": {
28
- "@types/lodash": "^4.14.136",
29
28
  "@types/micromatch": "^4.0.1",
30
29
  "@types/semver": "^7.1.0",
31
- "@yarnpkg/cli": "^4.9.2",
32
- "@yarnpkg/core": "^4.4.2",
33
- "@yarnpkg/plugin-git": "^3.1.2"
30
+ "@yarnpkg/cli": "^4.9.3",
31
+ "@yarnpkg/core": "^4.4.3",
32
+ "@yarnpkg/plugin-git": "^3.1.3"
34
33
  },
35
34
  "repository": {
36
35
  "type": "git",