This commit is contained in:
2022-09-30 05:39:11 +00:00
parent 41ee9463ae
commit 4687fa49bc
11418 changed files with 1312504 additions and 0 deletions

7
buildfiles/node_modules/lazy-val/out/main.d.ts generated vendored Normal file
View File

@ -0,0 +1,7 @@
export declare class Lazy<T> {
private _value;
private creator;
constructor(creator: () => Promise<T>);
readonly hasValue: boolean;
value: Promise<T>;
}

35
buildfiles/node_modules/lazy-val/out/main.js generated vendored Normal file
View File

@ -0,0 +1,35 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Lazy = void 0;
class Lazy {
constructor(creator) {
this._value = null;
this.creator = creator;
}
get hasValue() {
return this.creator == null;
}
get value() {
if (this.creator == null) {
return this._value;
}
const result = this.creator();
this.value = result;
return result;
}
set value(value) {
this._value = value;
this.creator = null;
}
} exports.Lazy = Lazy;
// __ts-babel@6.0.4
//# sourceMappingURL=main.js.map

1
buildfiles/node_modules/lazy-val/out/main.js.map generated vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"sources":["../src/main.ts"],"names":[],"mappings":";;;;;;;AAAM,MAAO,IAAP,CAAW;AAIf,EAAA,WAAA,CAAY,OAAZ,EAAqC;AAH7B,SAAA,MAAA,GAA4B,IAA5B;AAIN,SAAK,OAAL,GAAe,OAAf;AACD;;AAED,MAAI,QAAJ,GAAY;AACV,WAAO,KAAK,OAAL,IAAgB,IAAvB;AACD;;AAED,MAAI,KAAJ,GAAS;AACP,QAAI,KAAK,OAAL,IAAgB,IAApB,EAA0B;AACxB,aAAO,KAAK,MAAZ;AACD;;AAED,UAAM,MAAM,GAAG,KAAK,OAAL,EAAf;AACA,SAAK,KAAL,GAAa,MAAb;AACA,WAAO,MAAP;AACD;;AAED,MAAI,KAAJ,CAAU,KAAV,EAA2B;AACzB,SAAK,MAAL,GAAc,KAAd;AACA,SAAK,OAAL,GAAe,IAAf;AACD;;AAzBc,C","sourcesContent":["export class Lazy<T> {\n private _value: Promise<T> | null = null\n private creator: (() => Promise<T>) | null\n\n constructor(creator: () => Promise<T>) {\n this.creator = creator\n }\n\n get hasValue() {\n return this.creator == null\n }\n\n get value(): Promise<T> {\n if (this.creator == null) {\n return this._value!!\n }\n\n const result = this.creator()\n this.value = result\n return result\n }\n\n set value(value: Promise<T>) {\n this._value = value\n this.creator = null\n }\n}"],"sourceRoot":""}