@walkeros/server-transformer-file 3.3.1 → 3.4.0
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/dev.js +1 -1
- package/dist/dev.js.map +1 -1
- package/dist/dev.mjs +1 -1
- package/dist/dev.mjs.map +1 -1
- package/dist/walkerOS.json +13 -2
- package/package.json +4 -4
package/dist/dev.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e,r=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,
|
|
1
|
+
"use strict";var e,r=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,i=(e,t)=>{for(var o in t)r(e,o,{get:t[o],enumerable:!0})},s={};i(s,{examples:()=>g,schemas:()=>n}),module.exports=(e=s,((e,i,s,n)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let p of o(i))a.call(e,p)||p===s||r(e,p,{get:()=>i[p],enumerable:!(n=t(i,p))||n.enumerable});return e})(r({},"__esModule",{value:!0}),e));var n={};i(n,{SettingsSchema:()=>l,settings:()=>d});var p=require("@walkeros/core/dev"),c=require("@walkeros/core/dev"),l=c.z.object({prefix:c.z.string().optional().describe('URL prefix to strip before store lookup. E.g., "/static" → /static/walker.js looks up "walker.js"'),headers:c.z.record(c.z.string(),c.z.string()).optional().describe("Default response headers (e.g., Cache-Control, X-Frame-Options)"),mimeTypes:c.z.record(c.z.string(),c.z.string()).optional().describe('Extension → Content-Type overrides. Keys include dot: { ".wasm": "application/wasm" }')}).describe("File transformer: serves static files via pluggable Store backend"),d=(0,p.zodToSchema)(l),g={};i(g,{env:()=>m,step:()=>u});var u={};i(u,{serveStaticFile:()=>v});var v={description:'Serve a static JavaScript file from store. Config: prefix: "/static", headers: { "Cache-Control": "public, max-age=3600" }',in:{name:"page view",data:{path:"/static/walker.js"},id:"1700000600-gr0up-1",trigger:"load",entity:"page",action:"view",timestamp:1700000600,group:"gr0up",count:1,version:{tagging:1},source:{type:"server",id:"",previous_id:""}},out:[["respond",{status:200,headers:{"Content-Type":"application/javascript","Cache-Control":"public, max-age=3600"}}]]},m={};i(m,{init:()=>b,push:()=>f,simulation:()=>h});var b=void 0,f={store:void 0,respond:void 0},h=["call:respond"];//# sourceMappingURL=dev.js.map
|
package/dist/dev.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/dev.ts","../src/schemas/index.ts","../src/schemas/settings.ts","../src/examples/index.ts","../src/examples/step.ts","../src/examples/env.ts"],"sourcesContent":["export * as schemas from './schemas';\nexport * as examples from './examples';\n","import { zodToSchema } from '@walkeros/core/dev';\nimport { SettingsSchema } from './settings';\n\nexport { SettingsSchema, type Settings } from './settings';\nexport const settings = zodToSchema(SettingsSchema);\n","import { z } from '@walkeros/core/dev';\n\n/**\n * File transformer settings schema.\n *\n * Mirrors: types.ts FileSettings\n */\nexport const SettingsSchema = z\n .object({\n prefix: z\n .string()\n .optional()\n .describe(\n 'URL prefix to strip before store lookup. E.g., \"/static\" → /static/walker.js looks up \"walker.js\"',\n ),\n headers: z\n .record(z.string(), z.string())\n .optional()\n .describe(\n 'Default response headers (e.g., Cache-Control, X-Frame-Options)',\n ),\n mimeTypes: z\n .record(z.string(), z.string())\n .optional()\n .describe(\n 'Extension → Content-Type overrides. Keys include dot: { \".wasm\": \"application/wasm\" }',\n ),\n })\n .describe(\n 'File transformer: serves static files via pluggable Store backend',\n );\n\nexport type Settings = z.infer<typeof SettingsSchema>;\n","export * as step from './step';\nexport * as env from './env';\n","import type { Flow } from '@walkeros/core';\n\nexport const serveStaticFile: Flow.StepExample = {\n description:\n 'Serve a static JavaScript file from store. ' +\n 'Config: prefix: \"/static\", headers: { \"Cache-Control\": \"public, max-age=3600\" }',\n in: {\n name: 'page view',\n data: { path: '/static/walker.js' },\n id: '1700000600-gr0up-1',\n trigger: 'load',\n entity: 'page',\n action: 'view',\n timestamp: 1700000600,\n group: 'gr0up',\n count: 1,\n version: { tagging: 1 },\n source: { type: 'server', id: '', previous_id: '' },\n },\n out:
|
|
1
|
+
{"version":3,"sources":["../src/dev.ts","../src/schemas/index.ts","../src/schemas/settings.ts","../src/examples/index.ts","../src/examples/step.ts","../src/examples/env.ts"],"sourcesContent":["export * as schemas from './schemas';\nexport * as examples from './examples';\n","import { zodToSchema } from '@walkeros/core/dev';\nimport { SettingsSchema } from './settings';\n\nexport { SettingsSchema, type Settings } from './settings';\nexport const settings = zodToSchema(SettingsSchema);\n","import { z } from '@walkeros/core/dev';\n\n/**\n * File transformer settings schema.\n *\n * Mirrors: types.ts FileSettings\n */\nexport const SettingsSchema = z\n .object({\n prefix: z\n .string()\n .optional()\n .describe(\n 'URL prefix to strip before store lookup. E.g., \"/static\" → /static/walker.js looks up \"walker.js\"',\n ),\n headers: z\n .record(z.string(), z.string())\n .optional()\n .describe(\n 'Default response headers (e.g., Cache-Control, X-Frame-Options)',\n ),\n mimeTypes: z\n .record(z.string(), z.string())\n .optional()\n .describe(\n 'Extension → Content-Type overrides. Keys include dot: { \".wasm\": \"application/wasm\" }',\n ),\n })\n .describe(\n 'File transformer: serves static files via pluggable Store backend',\n );\n\nexport type Settings = z.infer<typeof SettingsSchema>;\n","export * as step from './step';\nexport * as env from './env';\n","import type { Flow } from '@walkeros/core';\n\nexport const serveStaticFile: Flow.StepExample = {\n description:\n 'Serve a static JavaScript file from store. ' +\n 'Config: prefix: \"/static\", headers: { \"Cache-Control\": \"public, max-age=3600\" }',\n in: {\n name: 'page view',\n data: { path: '/static/walker.js' },\n id: '1700000600-gr0up-1',\n trigger: 'load',\n entity: 'page',\n action: 'view',\n timestamp: 1700000600,\n group: 'gr0up',\n count: 1,\n version: { tagging: 1 },\n source: { type: 'server', id: '', previous_id: '' },\n },\n out: [\n [\n 'respond',\n {\n status: 200,\n headers: {\n 'Content-Type': 'application/javascript',\n 'Cache-Control': 'public, max-age=3600',\n },\n },\n ],\n ],\n};\n","import type { FileEnv } from '../types';\n\nexport const init: FileEnv | undefined = undefined;\n\nexport const push: FileEnv = {\n store: undefined,\n respond: undefined,\n};\n\nexport const simulation = ['call:respond'];\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAAA,cAA4B;;;ACA5B,iBAAkB;AAOX,IAAM,iBAAiB,aAC3B,OAAO;AAAA,EACN,QAAQ,aACL,OAAO,EACP,SAAS,EACT;AAAA,IACC;AAAA,EACF;AAAA,EACF,SAAS,aACN,OAAO,aAAE,OAAO,GAAG,aAAE,OAAO,CAAC,EAC7B,SAAS,EACT;AAAA,IACC;AAAA,EACF;AAAA,EACF,WAAW,aACR,OAAO,aAAE,OAAO,GAAG,aAAE,OAAO,CAAC,EAC7B,SAAS,EACT;AAAA,IACC;AAAA,EACF;AACJ,CAAC,EACA;AAAA,EACC;AACF;;;AD1BK,IAAM,eAAW,yBAAY,cAAc;;;AEJlD;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAEO,IAAM,kBAAoC;AAAA,EAC/C,aACE;AAAA,EAEF,IAAI;AAAA,IACF,MAAM;AAAA,IACN,MAAM,EAAE,MAAM,oBAAoB;AAAA,IAClC,IAAI;AAAA,IACJ,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,WAAW;AAAA,IACX,OAAO;AAAA,IACP,OAAO;AAAA,IACP,SAAS,EAAE,SAAS,EAAE;AAAA,IACtB,QAAQ,EAAE,MAAM,UAAU,IAAI,IAAI,aAAa,GAAG;AAAA,EACpD;AAAA,EACA,KAAK;AAAA,IACH;AAAA,MACE;AAAA,MACA;AAAA,QACE,QAAQ;AAAA,QACR,SAAS;AAAA,UACP,gBAAgB;AAAA,UAChB,iBAAiB;AAAA,QACnB;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;;;AC/BA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEO,IAAM,OAA4B;AAElC,IAAM,OAAgB;AAAA,EAC3B,OAAO;AAAA,EACP,SAAS;AACX;AAEO,IAAM,aAAa,CAAC,cAAc;","names":["import_dev"]}
|
package/dist/dev.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=Object.defineProperty,r=(r,
|
|
1
|
+
var e=Object.defineProperty,r=(r,t)=>{for(var i in t)e(r,i,{get:t[i],enumerable:!0})},t={};r(t,{SettingsSchema:()=>s,settings:()=>o});import{zodToSchema as i}from"@walkeros/core/dev";import{z as a}from"@walkeros/core/dev";var s=a.object({prefix:a.string().optional().describe('URL prefix to strip before store lookup. E.g., "/static" → /static/walker.js looks up "walker.js"'),headers:a.record(a.string(),a.string()).optional().describe("Default response headers (e.g., Cache-Control, X-Frame-Options)"),mimeTypes:a.record(a.string(),a.string()).optional().describe('Extension → Content-Type overrides. Keys include dot: { ".wasm": "application/wasm" }')}).describe("File transformer: serves static files via pluggable Store backend"),o=i(s),n={};r(n,{env:()=>l,step:()=>p});var p={};r(p,{serveStaticFile:()=>c});var c={description:'Serve a static JavaScript file from store. Config: prefix: "/static", headers: { "Cache-Control": "public, max-age=3600" }',in:{name:"page view",data:{path:"/static/walker.js"},id:"1700000600-gr0up-1",trigger:"load",entity:"page",action:"view",timestamp:1700000600,group:"gr0up",count:1,version:{tagging:1},source:{type:"server",id:"",previous_id:""}},out:[["respond",{status:200,headers:{"Content-Type":"application/javascript","Cache-Control":"public, max-age=3600"}}]]},l={};r(l,{init:()=>d,push:()=>g,simulation:()=>v});var d=void 0,g={store:void 0,respond:void 0},v=["call:respond"];export{n as examples,t as schemas};//# sourceMappingURL=dev.mjs.map
|
package/dist/dev.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/schemas/index.ts","../src/schemas/settings.ts","../src/examples/index.ts","../src/examples/step.ts","../src/examples/env.ts"],"sourcesContent":["import { zodToSchema } from '@walkeros/core/dev';\nimport { SettingsSchema } from './settings';\n\nexport { SettingsSchema, type Settings } from './settings';\nexport const settings = zodToSchema(SettingsSchema);\n","import { z } from '@walkeros/core/dev';\n\n/**\n * File transformer settings schema.\n *\n * Mirrors: types.ts FileSettings\n */\nexport const SettingsSchema = z\n .object({\n prefix: z\n .string()\n .optional()\n .describe(\n 'URL prefix to strip before store lookup. E.g., \"/static\" → /static/walker.js looks up \"walker.js\"',\n ),\n headers: z\n .record(z.string(), z.string())\n .optional()\n .describe(\n 'Default response headers (e.g., Cache-Control, X-Frame-Options)',\n ),\n mimeTypes: z\n .record(z.string(), z.string())\n .optional()\n .describe(\n 'Extension → Content-Type overrides. Keys include dot: { \".wasm\": \"application/wasm\" }',\n ),\n })\n .describe(\n 'File transformer: serves static files via pluggable Store backend',\n );\n\nexport type Settings = z.infer<typeof SettingsSchema>;\n","export * as step from './step';\nexport * as env from './env';\n","import type { Flow } from '@walkeros/core';\n\nexport const serveStaticFile: Flow.StepExample = {\n description:\n 'Serve a static JavaScript file from store. ' +\n 'Config: prefix: \"/static\", headers: { \"Cache-Control\": \"public, max-age=3600\" }',\n in: {\n name: 'page view',\n data: { path: '/static/walker.js' },\n id: '1700000600-gr0up-1',\n trigger: 'load',\n entity: 'page',\n action: 'view',\n timestamp: 1700000600,\n group: 'gr0up',\n count: 1,\n version: { tagging: 1 },\n source: { type: 'server', id: '', previous_id: '' },\n },\n out:
|
|
1
|
+
{"version":3,"sources":["../src/schemas/index.ts","../src/schemas/settings.ts","../src/examples/index.ts","../src/examples/step.ts","../src/examples/env.ts"],"sourcesContent":["import { zodToSchema } from '@walkeros/core/dev';\nimport { SettingsSchema } from './settings';\n\nexport { SettingsSchema, type Settings } from './settings';\nexport const settings = zodToSchema(SettingsSchema);\n","import { z } from '@walkeros/core/dev';\n\n/**\n * File transformer settings schema.\n *\n * Mirrors: types.ts FileSettings\n */\nexport const SettingsSchema = z\n .object({\n prefix: z\n .string()\n .optional()\n .describe(\n 'URL prefix to strip before store lookup. E.g., \"/static\" → /static/walker.js looks up \"walker.js\"',\n ),\n headers: z\n .record(z.string(), z.string())\n .optional()\n .describe(\n 'Default response headers (e.g., Cache-Control, X-Frame-Options)',\n ),\n mimeTypes: z\n .record(z.string(), z.string())\n .optional()\n .describe(\n 'Extension → Content-Type overrides. Keys include dot: { \".wasm\": \"application/wasm\" }',\n ),\n })\n .describe(\n 'File transformer: serves static files via pluggable Store backend',\n );\n\nexport type Settings = z.infer<typeof SettingsSchema>;\n","export * as step from './step';\nexport * as env from './env';\n","import type { Flow } from '@walkeros/core';\n\nexport const serveStaticFile: Flow.StepExample = {\n description:\n 'Serve a static JavaScript file from store. ' +\n 'Config: prefix: \"/static\", headers: { \"Cache-Control\": \"public, max-age=3600\" }',\n in: {\n name: 'page view',\n data: { path: '/static/walker.js' },\n id: '1700000600-gr0up-1',\n trigger: 'load',\n entity: 'page',\n action: 'view',\n timestamp: 1700000600,\n group: 'gr0up',\n count: 1,\n version: { tagging: 1 },\n source: { type: 'server', id: '', previous_id: '' },\n },\n out: [\n [\n 'respond',\n {\n status: 200,\n headers: {\n 'Content-Type': 'application/javascript',\n 'Cache-Control': 'public, max-age=3600',\n },\n },\n ],\n ],\n};\n","import type { FileEnv } from '../types';\n\nexport const init: FileEnv | undefined = undefined;\n\nexport const push: FileEnv = {\n store: undefined,\n respond: undefined,\n};\n\nexport const simulation = ['call:respond'];\n"],"mappings":";;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAAS,mBAAmB;;;ACA5B,SAAS,SAAS;AAOX,IAAM,iBAAiB,EAC3B,OAAO;AAAA,EACN,QAAQ,EACL,OAAO,EACP,SAAS,EACT;AAAA,IACC;AAAA,EACF;AAAA,EACF,SAAS,EACN,OAAO,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,EAC7B,SAAS,EACT;AAAA,IACC;AAAA,EACF;AAAA,EACF,WAAW,EACR,OAAO,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,EAC7B,SAAS,EACT;AAAA,IACC;AAAA,EACF;AACJ,CAAC,EACA;AAAA,EACC;AACF;;;AD1BK,IAAM,WAAW,YAAY,cAAc;;;AEJlD;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAEO,IAAM,kBAAoC;AAAA,EAC/C,aACE;AAAA,EAEF,IAAI;AAAA,IACF,MAAM;AAAA,IACN,MAAM,EAAE,MAAM,oBAAoB;AAAA,IAClC,IAAI;AAAA,IACJ,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,WAAW;AAAA,IACX,OAAO;AAAA,IACP,OAAO;AAAA,IACP,SAAS,EAAE,SAAS,EAAE;AAAA,IACtB,QAAQ,EAAE,MAAM,UAAU,IAAI,IAAI,aAAa,GAAG;AAAA,EACpD;AAAA,EACA,KAAK;AAAA,IACH;AAAA,MACE;AAAA,MACA;AAAA,QACE,QAAQ;AAAA,QACR,SAAS;AAAA,UACP,gBAAgB;AAAA,UAChB,iBAAiB;AAAA,QACnB;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;;;AC/BA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEO,IAAM,OAA4B;AAElC,IAAM,OAAgB;AAAA,EAC3B,OAAO;AAAA,EACP,SAAS;AACX;AAEO,IAAM,aAAa,CAAC,cAAc;","names":[]}
|
package/dist/walkerOS.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$meta": {
|
|
3
3
|
"package": "@walkeros/server-transformer-file",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.4.0",
|
|
5
5
|
"type": "transformer",
|
|
6
6
|
"platform": [
|
|
7
7
|
"server"
|
|
@@ -74,7 +74,18 @@
|
|
|
74
74
|
"previous_id": ""
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
|
-
"out":
|
|
77
|
+
"out": [
|
|
78
|
+
[
|
|
79
|
+
"respond",
|
|
80
|
+
{
|
|
81
|
+
"status": 200,
|
|
82
|
+
"headers": {
|
|
83
|
+
"Content-Type": "application/javascript",
|
|
84
|
+
"Cache-Control": "public, max-age=3600"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
]
|
|
78
89
|
}
|
|
79
90
|
}
|
|
80
91
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@walkeros/server-transformer-file",
|
|
3
3
|
"description": "File serving transformer for walkerOS - serves static files via pluggable Store backend",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.4.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.mjs",
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"update": "npx npm-check-updates -u && npm update"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@walkeros/core": "3.
|
|
30
|
+
"@walkeros/core": "3.4.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@walkeros/core": "3.
|
|
34
|
-
"@walkeros/store-memory": "3.
|
|
33
|
+
"@walkeros/core": "3.4.0",
|
|
34
|
+
"@walkeros/store-memory": "3.4.0"
|
|
35
35
|
},
|
|
36
36
|
"repository": {
|
|
37
37
|
"url": "git+https://github.com/elbwalker/walkerOS.git",
|