@limno/core 0.1.5 → 0.1.6
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.
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -553,7 +553,7 @@ var import_node_module2 = require("module");
|
|
|
553
553
|
var import_node_os2 = __toESM(require("os"), 1);
|
|
554
554
|
var import_node_path3 = __toESM(require("path"), 1);
|
|
555
555
|
var require2 = (0, import_node_module2.createRequire)(importMetaUrl);
|
|
556
|
-
var
|
|
556
|
+
var TTL = 60 * 60 * 1e3;
|
|
557
557
|
function currentVersion() {
|
|
558
558
|
try {
|
|
559
559
|
return require2("../package.json").version;
|
|
@@ -598,7 +598,7 @@ var cacheFile = () => import_node_path3.default.join(import_node_os2.default.hom
|
|
|
598
598
|
async function latestVersion() {
|
|
599
599
|
try {
|
|
600
600
|
const cached = JSON.parse((0, import_node_fs2.readFileSync)(cacheFile(), "utf8"));
|
|
601
|
-
if (Date.now() - cached.at <
|
|
601
|
+
if (Date.now() - cached.at < TTL) return cached.latest;
|
|
602
602
|
} catch {
|
|
603
603
|
}
|
|
604
604
|
try {
|
package/dist/index.js
CHANGED
|
@@ -504,7 +504,7 @@ import { createRequire as createRequire2 } from "module";
|
|
|
504
504
|
import os2 from "os";
|
|
505
505
|
import path3 from "path";
|
|
506
506
|
var require2 = createRequire2(import.meta.url);
|
|
507
|
-
var
|
|
507
|
+
var TTL = 60 * 60 * 1e3;
|
|
508
508
|
function currentVersion() {
|
|
509
509
|
try {
|
|
510
510
|
return require2("../package.json").version;
|
|
@@ -549,7 +549,7 @@ var cacheFile = () => path3.join(os2.homedir(), ".limno", "update-check.json");
|
|
|
549
549
|
async function latestVersion() {
|
|
550
550
|
try {
|
|
551
551
|
const cached = JSON.parse(readFileSync2(cacheFile(), "utf8"));
|
|
552
|
-
if (Date.now() - cached.at <
|
|
552
|
+
if (Date.now() - cached.at < TTL) return cached.latest;
|
|
553
553
|
} catch {
|
|
554
554
|
}
|
|
555
555
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@limno/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "Limno's framework-neutral dev tooling: JSX source stamping, the change-set store and the endpoints the editor talks to.",
|
|
5
5
|
"license": "FSL-1.1-MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@babel/parser": "^7.29.0",
|
|
44
44
|
"@babel/traverse": "^7.29.0",
|
|
45
45
|
"@limno/mcp": "0.1.2",
|
|
46
|
-
"@limno/overlay": "0.1.
|
|
46
|
+
"@limno/overlay": "0.1.6",
|
|
47
47
|
"@limno/spec": "0.1.2",
|
|
48
48
|
"launch-editor": "^2.14.1",
|
|
49
49
|
"magic-string": "^0.30.17"
|