@walkeros/server-source-aws 4.8.0 → 4.8.1-next-1792019907609

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$meta": {
3
3
  "package": "@walkeros/server-source-aws",
4
- "version": "4.8.0",
4
+ "version": "4.8.1-next-1792019907609",
5
5
  "type": "source",
6
6
  "platform": [
7
7
  "server"
@@ -284,7 +284,7 @@
284
284
  },
285
285
  "examples": {
286
286
  "createTrigger": {
287
- "$code": "async e=>{let t;return{get flow(){return t},trigger:()=>async n=>{if(!t){const n=await ho(e);t={collector:n.collector,elb:n.elb}}const o=function(e){for(const t of Object.values(e.sources||{}))if(\"lambda\"===t.type)return t}(t.collector);if(!o)throw new Error(\"Lambda source not found in collector\");const r={awsRequestId:`test-${Date.now()}`},s=o.push,i=await s(n,r);let a;try{a=JSON.parse(i.body||\"{}\")}catch{a=i.body}const c={};if(i.headers)for(const[e,t]of Object.entries(i.headers))void 0!==t&&(c[e]=String(t));return{statusCode:i.statusCode,body:a,headers:c}}}}"
287
+ "$code": "async e=>{let t;return{get flow(){return t},trigger:()=>async n=>{if(!t){const n=await mo(e);t={collector:n.collector,elb:n.elb}}const o=function(e){for(const t of Object.values(e.sources||{}))if(\"lambda\"===t.type)return t}(t.collector);if(!o)throw new Error(\"Lambda source not found in collector\");const r={awsRequestId:`test-${Date.now()}`},s=o.push,i=await s(n,r);let a;try{a=JSON.parse(i.body||\"{}\")}catch{a=i.body}const c={};if(i.headers)for(const[e,t]of Object.entries(i.headers))void 0!==t&&(c[e]=String(t));return{statusCode:i.statusCode,body:a,headers:c}}}}"
288
288
  },
289
289
  "env": {
290
290
  "push": {
@@ -449,13 +449,13 @@
449
449
  }
450
450
  },
451
451
  "trigger": {
452
- "$code": "function vo(e){return async t=>{const n={...t};if(n.body&&\"string\"==typeof n.body){const e=JSON.parse(n.body);e.name&&!e.event&&(n.body=JSON.stringify({...e,event:e.name,name:void 0}))}return e.push(n,{awsRequestId:\"test-req\"})}}"
452
+ "$code": "function wo(e){return async t=>{const n={...t};if(n.body&&\"string\"==typeof n.body){const e=JSON.parse(n.body);e.name&&!e.event&&(n.body=JSON.stringify({...e,event:e.name,name:void 0}))}return e.push(n,{awsRequestId:\"test-req\"})}}"
453
453
  }
454
454
  },
455
455
  "exportExamples": {
456
456
  "sourceLambda": {
457
457
  "createTrigger": {
458
- "$code": "async e=>{let t;return{get flow(){return t},trigger:()=>async n=>{if(!t){const n=await ho(e);t={collector:n.collector,elb:n.elb}}const o=function(e){for(const t of Object.values(e.sources||{}))if(\"lambda\"===t.type)return t}(t.collector);if(!o)throw new Error(\"Lambda source not found in collector\");const r={awsRequestId:`test-${Date.now()}`},s=o.push,i=await s(n,r);let a;try{a=JSON.parse(i.body||\"{}\")}catch{a=i.body}const c={};if(i.headers)for(const[e,t]of Object.entries(i.headers))void 0!==t&&(c[e]=String(t));return{statusCode:i.statusCode,body:a,headers:c}}}}"
458
+ "$code": "async e=>{let t;return{get flow(){return t},trigger:()=>async n=>{if(!t){const n=await mo(e);t={collector:n.collector,elb:n.elb}}const o=function(e){for(const t of Object.values(e.sources||{}))if(\"lambda\"===t.type)return t}(t.collector);if(!o)throw new Error(\"Lambda source not found in collector\");const r={awsRequestId:`test-${Date.now()}`},s=o.push,i=await s(n,r);let a;try{a=JSON.parse(i.body||\"{}\")}catch{a=i.body}const c={};if(i.headers)for(const[e,t]of Object.entries(i.headers))void 0!==t&&(c[e]=String(t));return{statusCode:i.statusCode,body:a,headers:c}}}}"
459
459
  },
460
460
  "env": {
461
461
  "push": {
@@ -620,12 +620,12 @@
620
620
  }
621
621
  },
622
622
  "trigger": {
623
- "$code": "function vo(e){return async t=>{const n={...t};if(n.body&&\"string\"==typeof n.body){const e=JSON.parse(n.body);e.name&&!e.event&&(n.body=JSON.stringify({...e,event:e.name,name:void 0}))}return e.push(n,{awsRequestId:\"test-req\"})}}"
623
+ "$code": "function wo(e){return async t=>{const n={...t};if(n.body&&\"string\"==typeof n.body){const e=JSON.parse(n.body);e.name&&!e.event&&(n.body=JSON.stringify({...e,event:e.name,name:void 0}))}return e.push(n,{awsRequestId:\"test-req\"})}}"
624
624
  }
625
625
  },
626
626
  "sourceSqs": {
627
627
  "createTrigger": {
628
- "$code": "async e=>{let t;return{get flow(){return t},trigger:()=>async n=>{if(!t){const n=await ho(e);t={collector:n.collector,elb:n.elb}}const o=function(e){for(const t of Object.values(e.sources??{}))if(Do(t))return t}(t.collector);if(!o)throw new Error(\"sqs source not registered in collector, ensure it is configured in sources\");const r={MessageId:n.MessageId,Body:n.Body,ReceiptHandle:n.ReceiptHandle,Attributes:n.Attributes,MessageAttributes:n.MessageAttributes},s=await o.push(r),i=[];return s&&\"object\"==typeof s&&(s.acked&&i.push([\"message.ack\",n.MessageId]),s.nacked&&i.push([\"message.nack\",n.MessageId])),i}}}"
628
+ "$code": "async e=>{let t;return{get flow(){return t},trigger:()=>async n=>{if(!t){const n=await mo(e);t={collector:n.collector,elb:n.elb}}const o=function(e){for(const t of Object.values(e.sources??{}))if(jo(t))return t}(t.collector);if(!o)throw new Error(\"sqs source not registered in collector, ensure it is configured in sources\");const r={MessageId:n.MessageId,Body:n.Body,ReceiptHandle:n.ReceiptHandle,Attributes:n.Attributes,MessageAttributes:n.MessageAttributes},s=await o.push(r),i=[];return s&&\"object\"==typeof s&&(s.acked&&i.push([\"message.ack\",n.MessageId]),s.nacked&&i.push([\"message.nack\",n.MessageId])),i}}}"
629
629
  },
630
630
  "env": {
631
631
  "moduleMockEnv": {
@@ -658,7 +658,7 @@
658
658
  "$code": "()=>{}"
659
659
  },
660
660
  "scope": {
661
- "$code": "()=>ko"
661
+ "$code": "()=>So"
662
662
  }
663
663
  }
664
664
  },
@@ -692,7 +692,7 @@
692
692
  "$code": "()=>{}"
693
693
  },
694
694
  "scope": {
695
- "$code": "()=>ko"
695
+ "$code": "()=>So"
696
696
  }
697
697
  },
698
698
  "AWS": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@walkeros/server-source-aws",
3
3
  "description": "AWS server sources for walkerOS (Lambda, API Gateway, Function URLs)",
4
- "version": "4.8.0",
4
+ "version": "4.8.1-next-1792019907609",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.mjs",
@@ -23,14 +23,14 @@
23
23
  "dependencies": {
24
24
  "@aws-sdk/client-sqs": "^3.952.0",
25
25
  "@aws-sdk/client-sns": "^3.952.0",
26
- "@walkeros/core": "4.8.0"
26
+ "@walkeros/core": "4.8.1-next-1792019907609"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "@types/aws-lambda": "^8.10.0"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/aws-lambda": "^8.10.159",
33
- "@walkeros/collector": "4.8.0"
33
+ "@walkeros/collector": "4.8.1-next-1792019907609"
34
34
  },
35
35
  "repository": {
36
36
  "url": "git+https://github.com/elbwalker/walkerOS.git",