MCPcopy Create free account
hub / github.com/stenciljs/core / getLastCheck

Function getLastCheck

src/sys/node/node-stencil-version-checker.ts:95–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93}
94
95function getLastCheck() {
96 return new Promise<number>((resolve) => {
97 fs.readFile(getLastCheckStoragePath(), 'utf8', (err, data) => {
98 if (!err && isString(data)) {
99 try {
100 resolve(JSON.parse(data));
101 } catch (e) {}
102 }
103 resolve(null);
104 });
105 });
106}
107
108function setLastCheck() {
109 return new Promise<void>((resolve) => {

Callers 1

getLatestCompilerVersionFunction · 0.85

Calls 5

getLastCheckStoragePathFunction · 0.85
resolveFunction · 0.85
readFileMethod · 0.80
parseMethod · 0.80
isStringFunction · 0.50

Tested by

no test coverage detected