veryfront 0.0.9 → 0.0.11
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/ai/index.js +238 -45
- package/dist/ai/index.js.map +4 -4
- package/dist/ai/react.d.ts +103 -2
- package/dist/cli.js +79621 -10314
- package/dist/components.js +42 -38
- package/dist/components.js.map +4 -4
- package/dist/config.js +8 -0
- package/dist/config.js.map +3 -3
- package/dist/data.js +19 -2
- package/dist/data.js.map +4 -4
- package/dist/index.js +70 -55
- package/dist/index.js.map +4 -4
- package/package.json +2 -2
package/dist/components.js
CHANGED
|
@@ -525,7 +525,7 @@ var init_deno = __esm({
|
|
|
525
525
|
"deno.json"() {
|
|
526
526
|
deno_default = {
|
|
527
527
|
name: "veryfront",
|
|
528
|
-
version: "0.0.
|
|
528
|
+
version: "0.0.11",
|
|
529
529
|
nodeModulesDir: "auto",
|
|
530
530
|
workspace: [
|
|
531
531
|
"./examples/async-worker-redis",
|
|
@@ -1237,22 +1237,44 @@ var init_bundle_manifest_init = __esm({
|
|
|
1237
1237
|
}
|
|
1238
1238
|
});
|
|
1239
1239
|
|
|
1240
|
+
// src/platform/compat/runtime.ts
|
|
1241
|
+
var isDeno, isNode, isBun, isCloudflare;
|
|
1242
|
+
var init_runtime = __esm({
|
|
1243
|
+
"src/platform/compat/runtime.ts"() {
|
|
1244
|
+
"use strict";
|
|
1245
|
+
isDeno = typeof Deno !== "undefined";
|
|
1246
|
+
isNode = typeof globalThis.process !== "undefined" && globalThis.process?.versions?.node !== void 0;
|
|
1247
|
+
isBun = typeof globalThis.Bun !== "undefined";
|
|
1248
|
+
isCloudflare = typeof globalThis !== "undefined" && "caches" in globalThis && "WebSocketPair" in globalThis;
|
|
1249
|
+
}
|
|
1250
|
+
});
|
|
1251
|
+
|
|
1252
|
+
// src/platform/compat/process.ts
|
|
1253
|
+
import process2 from "node:process";
|
|
1254
|
+
function getEnv(key) {
|
|
1255
|
+
if (isDeno) {
|
|
1256
|
+
return process2.env(key);
|
|
1257
|
+
}
|
|
1258
|
+
return process2.env[key];
|
|
1259
|
+
}
|
|
1260
|
+
var init_process = __esm({
|
|
1261
|
+
"src/platform/compat/process.ts"() {
|
|
1262
|
+
"use strict";
|
|
1263
|
+
init_runtime();
|
|
1264
|
+
}
|
|
1265
|
+
});
|
|
1266
|
+
|
|
1240
1267
|
// src/core/utils/feature-flags.ts
|
|
1241
1268
|
function isRSCEnabled(config) {
|
|
1242
1269
|
if (config?.experimental?.rsc !== void 0) {
|
|
1243
1270
|
return config.experimental.rsc;
|
|
1244
1271
|
}
|
|
1245
|
-
|
|
1246
|
-
return process.env("VERYFRONT_EXPERIMENTAL_RSC") === "1";
|
|
1247
|
-
}
|
|
1248
|
-
if (typeof process !== "undefined" && process?.env) {
|
|
1249
|
-
return process.env.VERYFRONT_EXPERIMENTAL_RSC === "1";
|
|
1250
|
-
}
|
|
1251
|
-
return false;
|
|
1272
|
+
return getEnv("VERYFRONT_EXPERIMENTAL_RSC") === "1";
|
|
1252
1273
|
}
|
|
1253
1274
|
var init_feature_flags = __esm({
|
|
1254
1275
|
"src/core/utils/feature-flags.ts"() {
|
|
1255
1276
|
"use strict";
|
|
1277
|
+
init_process();
|
|
1256
1278
|
}
|
|
1257
1279
|
});
|
|
1258
1280
|
|
|
@@ -1708,6 +1730,7 @@ var init_define_config = __esm({
|
|
|
1708
1730
|
"src/core/config/define-config.ts"() {
|
|
1709
1731
|
"use strict";
|
|
1710
1732
|
init_veryfront_error();
|
|
1733
|
+
init_process();
|
|
1711
1734
|
}
|
|
1712
1735
|
});
|
|
1713
1736
|
|
|
@@ -2192,20 +2215,20 @@ var init_filesystem_adapter = __esm({
|
|
|
2192
2215
|
});
|
|
2193
2216
|
|
|
2194
2217
|
// src/platform/adapters/node/environment-adapter.ts
|
|
2195
|
-
import
|
|
2218
|
+
import process3 from "node:process";
|
|
2196
2219
|
var NodeEnvironmentAdapter;
|
|
2197
2220
|
var init_environment_adapter = __esm({
|
|
2198
2221
|
"src/platform/adapters/node/environment-adapter.ts"() {
|
|
2199
2222
|
"use strict";
|
|
2200
2223
|
NodeEnvironmentAdapter = class {
|
|
2201
2224
|
get(key) {
|
|
2202
|
-
return
|
|
2225
|
+
return process3.env[key];
|
|
2203
2226
|
}
|
|
2204
2227
|
set(key, value) {
|
|
2205
|
-
|
|
2228
|
+
process3.env[key] = value;
|
|
2206
2229
|
}
|
|
2207
2230
|
toObject() {
|
|
2208
|
-
return { ...
|
|
2231
|
+
return { ...process3.env };
|
|
2209
2232
|
}
|
|
2210
2233
|
};
|
|
2211
2234
|
}
|
|
@@ -7150,18 +7173,6 @@ var init_error_catalog = __esm({
|
|
|
7150
7173
|
}
|
|
7151
7174
|
});
|
|
7152
7175
|
|
|
7153
|
-
// src/platform/compat/runtime.ts
|
|
7154
|
-
var isDeno, isNode, isBun, isCloudflare;
|
|
7155
|
-
var init_runtime = __esm({
|
|
7156
|
-
"src/platform/compat/runtime.ts"() {
|
|
7157
|
-
"use strict";
|
|
7158
|
-
isDeno = typeof Deno !== "undefined";
|
|
7159
|
-
isNode = typeof globalThis.process !== "undefined" && globalThis.process?.versions?.node !== void 0;
|
|
7160
|
-
isBun = typeof globalThis.Bun !== "undefined";
|
|
7161
|
-
isCloudflare = typeof globalThis !== "undefined" && "caches" in globalThis && "WebSocketPair" in globalThis;
|
|
7162
|
-
}
|
|
7163
|
-
});
|
|
7164
|
-
|
|
7165
7176
|
// src/platform/compat/console/ansi.ts
|
|
7166
7177
|
var ansi, red, green, yellow, blue, magenta, cyan, white, gray, bold, dim, italic, underline, strikethrough, reset;
|
|
7167
7178
|
var init_ansi = __esm({
|
|
@@ -7344,14 +7355,6 @@ var init_error_formatter = __esm({
|
|
|
7344
7355
|
}
|
|
7345
7356
|
});
|
|
7346
7357
|
|
|
7347
|
-
// src/platform/compat/process.ts
|
|
7348
|
-
import process3 from "node:process";
|
|
7349
|
-
var init_process = __esm({
|
|
7350
|
-
"src/platform/compat/process.ts"() {
|
|
7351
|
-
init_runtime();
|
|
7352
|
-
}
|
|
7353
|
-
});
|
|
7354
|
-
|
|
7355
7358
|
// src/core/errors/user-friendly/error-wrapper.ts
|
|
7356
7359
|
var init_error_wrapper = __esm({
|
|
7357
7360
|
"src/core/errors/user-friendly/error-wrapper.ts"() {
|
|
@@ -7783,16 +7786,16 @@ function createMockAdapter() {
|
|
|
7783
7786
|
files.set(path, content);
|
|
7784
7787
|
return Promise.resolve();
|
|
7785
7788
|
},
|
|
7786
|
-
exists:
|
|
7789
|
+
exists: (path) => {
|
|
7787
7790
|
if (files.has(path))
|
|
7788
|
-
return true;
|
|
7791
|
+
return Promise.resolve(true);
|
|
7789
7792
|
if (directories.has(path))
|
|
7790
|
-
return true;
|
|
7793
|
+
return Promise.resolve(true);
|
|
7791
7794
|
for (const filePath of files.keys()) {
|
|
7792
7795
|
if (filePath.startsWith(path + "/"))
|
|
7793
|
-
return true;
|
|
7796
|
+
return Promise.resolve(true);
|
|
7794
7797
|
}
|
|
7795
|
-
return false;
|
|
7798
|
+
return Promise.resolve(false);
|
|
7796
7799
|
},
|
|
7797
7800
|
readDir: async function* (path) {
|
|
7798
7801
|
const entries = /* @__PURE__ */ new Map();
|
|
@@ -8467,6 +8470,7 @@ var LRUCacheAdapter = class {
|
|
|
8467
8470
|
|
|
8468
8471
|
// src/core/utils/lru-wrapper.ts
|
|
8469
8472
|
init_utils();
|
|
8473
|
+
init_process();
|
|
8470
8474
|
var LRUCache = class {
|
|
8471
8475
|
adapter;
|
|
8472
8476
|
cleanupTimer;
|
|
@@ -8542,7 +8546,7 @@ function shouldDisableInterval() {
|
|
|
8542
8546
|
return true;
|
|
8543
8547
|
}
|
|
8544
8548
|
try {
|
|
8545
|
-
return
|
|
8549
|
+
return getEnv("VF_DISABLE_LRU_INTERVAL") === "1";
|
|
8546
8550
|
} catch {
|
|
8547
8551
|
return false;
|
|
8548
8552
|
}
|