@walkeros/cli 2.1.1 → 2.2.0-next-1772811722420

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,6 +1,6 @@
1
1
  {
2
- "$schema": "https://walkeros.io/schema/flow/v1.json",
3
- "version": 1,
2
+ "$schema": "https://walkeros.io/schema/flow/v2.json",
3
+ "version": 2,
4
4
  "variables": {
5
5
  "currency": "EUR",
6
6
  "flowVersion": "1.0.0",
@@ -476,12 +476,34 @@
476
476
  "metaAccessToken": "$env.META_ACCESS_TOKEN:demo_token"
477
477
  },
478
478
  "packages": {
479
- "@walkeros/collector": {},
479
+ "@walkeros/core": {
480
+ "path": "../../core"
481
+ },
482
+ "@walkeros/collector": {
483
+ "path": "../../collector"
484
+ },
480
485
  "@walkeros/server-source-express": {},
481
486
  "@walkeros/server-destination-meta": {},
482
487
  "@walkeros/destination-demo": {},
483
488
  "@walkeros/transformer-validator": {},
484
- "@walkeros/server-transformer-fingerprint": {}
489
+ "@walkeros/server-transformer-fingerprint": {},
490
+ "@walkeros/server-transformer-cache": {
491
+ "path": "../../server/transformers/cache"
492
+ },
493
+ "@walkeros/store-memory": {
494
+ "path": "../../stores/memory"
495
+ }
496
+ },
497
+ "stores": {
498
+ "cache": {
499
+ "package": "@walkeros/store-memory",
500
+ "config": {
501
+ "settings": {
502
+ "maxSize": 10485760,
503
+ "maxEntries": 1000
504
+ }
505
+ }
506
+ }
485
507
  },
486
508
  "sources": {
487
509
  "http": {
@@ -523,6 +545,26 @@
523
545
  }
524
546
  },
525
547
  "transformers": {
548
+ "cache": {
549
+ "package": "@walkeros/server-transformer-cache",
550
+ "next": "filter",
551
+ "config": {
552
+ "settings": {
553
+ "rules": [
554
+ {
555
+ "match": {
556
+ "key": "method",
557
+ "operator": "equals",
558
+ "value": "GET"
559
+ },
560
+ "key": ["method", "path"],
561
+ "ttl": 300
562
+ }
563
+ ]
564
+ }
565
+ },
566
+ "env": { "store": "$store:cache" }
567
+ },
526
568
  "filter": {
527
569
  "code": {
528
570
  "type": "filter",
@@ -635,7 +677,7 @@
635
677
  "destinations": {
636
678
  "meta": {
637
679
  "package": "@walkeros/server-destination-meta",
638
- "before": "filter",
680
+ "before": "cache",
639
681
  "config": {
640
682
  "settings": {
641
683
  "pixelId": "$var.metaPixelId",