@tsed/cli-core 3.20.5 → 3.20.8

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.
@@ -3719,6 +3719,30 @@ CliCore = CliCore_1 = __decorate([Module({
3719
3719
  imports: [CliPackageJson, ProjectPackageJson, CliService, CliConfiguration]
3720
3720
  })], CliCore);
3721
3721
 
3722
+ function at(n) {
3723
+ // ToInteger() abstract op
3724
+ n = Math.trunc(n) || 0; // Allow negative indexing from the end
3725
+
3726
+ if (n < 0) n += this.length; // OOB access is guaranteed to return undefined
3727
+
3728
+ if (n < 0 || n >= this.length) return undefined; // Otherwise, this is just normal property access
3729
+
3730
+ return this[n];
3731
+ }
3732
+
3733
+ const TypedArray = Reflect.getPrototypeOf(Int8Array);
3734
+
3735
+ for (const C of [Array, String, TypedArray]) {
3736
+ if (C) {
3737
+ Object.defineProperty(C.prototype, "at", {
3738
+ value: at,
3739
+ writable: true,
3740
+ enumerable: false,
3741
+ configurable: true
3742
+ });
3743
+ }
3744
+ }
3745
+
3722
3746
  const helpInformation = Command$1.prototype.helpInformation;
3723
3747
 
3724
3748
  function colorizeSection(str, section) {