include node_modules so release .zip is deployable

This commit is contained in:
2023-11-24 17:44:25 -05:00
parent 6c86cfe5d2
commit 8b11c41267
8963 changed files with 874175 additions and 1 deletions
+29
View File
@@ -0,0 +1,29 @@
/**
* @packageDocumentation
* @module std.internal
*/
import { IForwardIterator } from "../../../iterator/IForwardIterator";
/**
* Adaptor for `for ... of` iteration.
*
* @author Jeongho Nam - https://github.com/samchon
*/
export declare class ForOfAdaptor<T, InputIterator extends Readonly<IForwardIterator<T, InputIterator>>> implements IterableIterator<T> {
private it_;
private last_;
/**
* Initializer Constructor.
*
* @param first Input iteartor of the first position.
* @param last Input iterator of the last position.
*/
constructor(first: InputIterator, last: InputIterator);
/**
* @inheritDoc
*/
next(): IteratorResult<T>;
/**
* @inheritDoc
*/
[Symbol.iterator](): IterableIterator<T>;
}
+47
View File
@@ -0,0 +1,47 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ForOfAdaptor = void 0;
/**
* Adaptor for `for ... of` iteration.
*
* @author Jeongho Nam - https://github.com/samchon
*/
var ForOfAdaptor = /** @class */ (function () {
/**
* Initializer Constructor.
*
* @param first Input iteartor of the first position.
* @param last Input iterator of the last position.
*/
function ForOfAdaptor(first, last) {
this.it_ = first;
this.last_ = last;
}
/**
* @inheritDoc
*/
ForOfAdaptor.prototype.next = function () {
if (this.it_.equals(this.last_))
return {
done: true,
value: undefined,
};
else {
var it = this.it_;
this.it_ = this.it_.next();
return {
done: false,
value: it.value,
};
}
};
/**
* @inheritDoc
*/
ForOfAdaptor.prototype[Symbol.iterator] = function () {
return this;
};
return ForOfAdaptor;
}());
exports.ForOfAdaptor = ForOfAdaptor;
//# sourceMappingURL=ForOfAdaptor.js.map
@@ -0,0 +1,17 @@
/**
* @packageDocumentation
* @module std.internal
*/
import { IForwardIterator } from "../../../iterator/IForwardIterator";
export declare class NativeArrayIterator<T> implements Readonly<IForwardIterator<T, NativeArrayIterator<T>>> {
private data_;
private index_;
constructor(data: Array<T>, index: number);
index(): number;
get value(): T;
prev(): NativeArrayIterator<T>;
next(): NativeArrayIterator<T>;
advance(n: number): NativeArrayIterator<T>;
equals(obj: NativeArrayIterator<T>): boolean;
swap(obj: NativeArrayIterator<T>): void;
}
+70
View File
@@ -0,0 +1,70 @@
"use strict";
var __read = (this && this.__read) || function (o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.NativeArrayIterator = void 0;
var NativeArrayIterator = /** @class */ (function () {
/* ---------------------------------------------------------
CONSTRUCTORS
--------------------------------------------------------- */
function NativeArrayIterator(data, index) {
this.data_ = data;
this.index_ = index;
}
/* ---------------------------------------------------------
ACCESSORS
--------------------------------------------------------- */
NativeArrayIterator.prototype.index = function () {
return this.index_;
};
Object.defineProperty(NativeArrayIterator.prototype, "value", {
get: function () {
return this.data_[this.index_];
},
enumerable: false,
configurable: true
});
/* ---------------------------------------------------------
MOVERS
--------------------------------------------------------- */
NativeArrayIterator.prototype.prev = function () {
--this.index_;
return this;
};
NativeArrayIterator.prototype.next = function () {
++this.index_;
return this;
};
NativeArrayIterator.prototype.advance = function (n) {
this.index_ += n;
return this;
};
/* ---------------------------------------------------------
COMPARES
--------------------------------------------------------- */
NativeArrayIterator.prototype.equals = function (obj) {
return this.data_ === obj.data_ && this.index_ === obj.index_;
};
NativeArrayIterator.prototype.swap = function (obj) {
var _a, _b;
_a = __read([obj.data_, this.data_], 2), this.data_ = _a[0], obj.data_ = _a[1];
_b = __read([obj.index_, this.index_], 2), this.index_ = _b[0], obj.index_ = _b[1];
};
return NativeArrayIterator;
}());
exports.NativeArrayIterator = NativeArrayIterator;
//# sourceMappingURL=NativeArrayIterator.js.map
+14
View File
@@ -0,0 +1,14 @@
/**
* @packageDocumentation
* @module std.internal
*/
import { IForwardIterator } from "../../../iterator/IForwardIterator";
export declare class Repeater<T> implements Readonly<IForwardIterator<T, Repeater<T>>> {
private index_;
private value_;
constructor(index: number, value?: T);
index(): number;
get value(): T;
next(): Repeater<T>;
equals(obj: Repeater<T>): boolean;
}
+38
View File
@@ -0,0 +1,38 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Repeater = void 0;
var Repeater = /** @class */ (function () {
/* ---------------------------------------------------------
CONSTRUCTORS
--------------------------------------------------------- */
function Repeater(index, value) {
this.index_ = index;
this.value_ = value;
}
/* ---------------------------------------------------------
ACCESSORS
--------------------------------------------------------- */
Repeater.prototype.index = function () {
return this.index_;
};
Object.defineProperty(Repeater.prototype, "value", {
get: function () {
return this.value_;
},
enumerable: false,
configurable: true
});
/* ---------------------------------------------------------
MOVERS & COMPARE
--------------------------------------------------------- */
Repeater.prototype.next = function () {
++this.index_;
return this;
};
Repeater.prototype.equals = function (obj) {
return this.index_ === obj.index_;
};
return Repeater;
}());
exports.Repeater = Repeater;
//# sourceMappingURL=Repeater.js.map