@cenk1cenk2/oclif-common 6.3.1 → 6.3.3

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -11
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1224,16 +1224,10 @@ var _LockerService = class _LockerService {
1224
1224
  return this.toUnlock.length > 0;
1225
1225
  }
1226
1226
  addLock(...data) {
1227
- this.toLock = [
1228
- ...this.toLock,
1229
- ...data
1230
- ];
1227
+ this.toLock.push(...data);
1231
1228
  }
1232
1229
  addUnlock(...data) {
1233
- this.toUnlock = [
1234
- ...this.toUnlock,
1235
- ...data
1236
- ];
1230
+ this.toUnlock.push(...data);
1237
1231
  }
1238
1232
  async applyLockAll(lock) {
1239
1233
  if (this.hasLock()) {
@@ -1286,10 +1280,10 @@ var _LockerService = class _LockerService {
1286
1280
  }
1287
1281
  lock = this.op.set(lock, path, parsed);
1288
1282
  this.logger.verbose("Merge lock: %s -> %o", path, d.data);
1289
- } else {
1290
- lock = this.op.set(lock, path, d.data);
1291
- this.logger.verbose("Override lock: %s -> %o", path, d.data);
1283
+ return;
1292
1284
  }
1285
+ lock = this.op.set(lock, path, d.data);
1286
+ this.logger.verbose("Override lock: %s -> %o", path, d.data);
1293
1287
  });
1294
1288
  return lock;
1295
1289
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cenk1cenk2/oclif-common",
3
- "version": "6.3.1",
3
+ "version": "6.3.3",
4
4
  "description": "Oclif common package for oclif2 projects.",
5
5
  "repository": "https://gitlab.kilic.dev/libraries/oclif-tools",
6
6
  "type": "module",