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":""}

64
buildfiles/node_modules/lazy-val/package.json generated vendored Normal file
View File

@@ -0,0 +1,64 @@
{
"_from": "lazy-val@^1.0.4",
"_id": "lazy-val@1.0.4",
"_inBundle": false,
"_integrity": "sha512-u93kb2fPbIrfzBuLjZE+w+fJbUUMhNDXxNmMfaqNgpfQf1CO5ZSe2LfsnBqVAk7i/2NF48OSoRj+Xe2VT+lE8Q==",
"_location": "/lazy-val",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "lazy-val@^1.0.4",
"name": "lazy-val",
"escapedName": "lazy-val",
"rawSpec": "^1.0.4",
"saveSpec": null,
"fetchSpec": "^1.0.4"
},
"_requiredBy": [
"/app-builder-lib",
"/electron-builder",
"/electron-publish",
"/read-config-file"
],
"_resolved": "https://registry.npmjs.org/lazy-val/-/lazy-val-1.0.4.tgz",
"_shasum": "882636a7245c2cfe6e0a4e3ba6c5d68a137e5c65",
"_spec": "lazy-val@^1.0.4",
"_where": "/home/shihaam/www/freezer.shihaam.me/node_modules/electron-builder",
"author": {
"name": "Vladimir Krivosheev"
},
"babel": {
"presets": [
"babel-preset-ts-node6-bluebird"
]
},
"bugs": {
"url": "https://github.com/develar/lazy-val/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "Lazy value.",
"devDependencies": {
"babel-preset-ts-node6-bluebird": "^3.0.1",
"ts-babel": "^6.1.2",
"typescript": "^3.3.3333"
},
"files": [
"out"
],
"homepage": "https://github.com/develar/lazy-val",
"license": "MIT",
"main": "out/main.js",
"name": "lazy-val",
"repository": {
"type": "git",
"url": "git+https://github.com/develar/lazy-val.git"
},
"scripts": {
"compile": "ts-babel",
"release": "yarn compile && npm publish"
},
"typings": "./out/main.d.ts",
"version": "1.0.4"
}

11
buildfiles/node_modules/lazy-val/readme.md generated vendored Normal file
View File

@@ -0,0 +1,11 @@
## lazy-val
Lazy value.
```typescript
class Lazy<T> {
constructor(creator: () => Promise<T>)
readonly hasValue: boolean
value: Promise<T>
}
```