juxscript 1.1.261 → 1.1.263

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.
@@ -109,8 +109,12 @@ app.get('/favicon.png', (req, res) => res.status(204).end());
109
109
  // ═══════════════════════════════════════════════════════════════
110
110
  // API ROUTES — BEFORE static and catch-all
111
111
  // ═══════════════════════════════════════════════════════════════
112
- app.get('/api/test', (req, res) => {
112
+ app.get('/api/test', (_req, res) => {
113
+ const fruits = ['apple', 'banana', 'orange', 'mango', 'strawberry', 'grape', 'watermelon', 'pineapple', 'kiwi', 'peach'];
114
+ const randomFruit = fruits[Math.floor(Math.random() * fruits.length)];
115
+
113
116
  res.json({
117
+ randomFruit,
114
118
  users: [
115
119
  { id: 1, name: 'Alice', email: 'alice@example.com' },
116
120
  { id: 2, name: 'Bob', email: 'bob@example.com' },
@@ -138,7 +142,11 @@ app.get('/__jux_sources.json', (req, res) => {
138
142
  // API ROUTES — must come BEFORE static middleware and catch-all
139
143
  // ═══════════════════════════════════════════════════════════════
140
144
  app.get('/api/test', (req, res) => {
145
+ const fruits = ['apple', 'banana', 'orange', 'mango', 'strawberry', 'grape', 'watermelon', 'pineapple', 'kiwi', 'peach'];
146
+ const randomFruit = fruits[Math.floor(Math.random() * fruits.length)];
147
+
141
148
  res.json({
149
+ randomFruit,
142
150
  users: [
143
151
  { id: 1, name: 'Alice', email: 'alice@example.com' },
144
152
  { id: 2, name: 'Bob', email: 'bob@example.com' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "juxscript",
3
- "version": "1.1.261",
3
+ "version": "1.1.263",
4
4
  "type": "module",
5
5
  "description": "A JavaScript UX authorship platform",
6
6
  "main": "./dist/lib/index.js",