@walkeros/cli 4.9.0-next-1793116456867 → 4.9.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/CHANGELOG.md +32 -7
- package/dist/cli.js +1599 -1460
- package/dist/examples/README.md +7 -5
- package/dist/examples/customers/README.md +3 -3
- package/dist/examples/flow-complete.json +55 -25
- package/dist/examples/flow-complete.md +48 -19
- package/dist/examples/flow-selfhost-test.json +3 -1
- package/dist/examples/index.d.ts +25 -1
- package/dist/examples/index.js +86 -32
- package/dist/examples/index.js.map +1 -1
- package/dist/examples/server-collect.json +1 -2
- package/dist/examples/shared/README.md +3 -0
- package/dist/examples/shared/products/SKU-1 +1 -0
- package/dist/examples/shared/products/SKU-2 +1 -0
- package/dist/examples/web-serve.json +4 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/validate.js +1 -1
- package/examples/README.md +7 -5
- package/examples/customers/README.md +3 -3
- package/examples/flow-complete.json +55 -25
- package/examples/flow-complete.md +48 -19
- package/examples/flow-selfhost-test.json +3 -1
- package/examples/server-collect.json +1 -2
- package/examples/shared/README.md +3 -0
- package/examples/shared/products/SKU-1 +1 -0
- package/examples/shared/products/SKU-2 +1 -0
- package/examples/web-serve.json +4 -0
- package/package.json +30 -30
- package/src/telemetry/flow.json +1 -1
package/dist/examples/index.js
CHANGED
|
@@ -264,25 +264,25 @@ var flow_complete_default = {
|
|
|
264
264
|
bundle: {
|
|
265
265
|
packages: {
|
|
266
266
|
"@walkeros/collector": {
|
|
267
|
-
version: "4.9.0
|
|
267
|
+
version: "4.9.0"
|
|
268
268
|
},
|
|
269
269
|
"@walkeros/web-source-cmp-usercentrics": {
|
|
270
|
-
version: "4.9.0
|
|
270
|
+
version: "4.9.0"
|
|
271
271
|
},
|
|
272
272
|
"@walkeros/web-source-session": {
|
|
273
|
-
version: "4.9.0
|
|
273
|
+
version: "4.9.0"
|
|
274
274
|
},
|
|
275
275
|
"@walkeros/web-source-datalayer": {
|
|
276
|
-
version: "4.9.0
|
|
276
|
+
version: "4.9.0"
|
|
277
277
|
},
|
|
278
278
|
"@walkeros/web-source-browser": {
|
|
279
|
-
version: "4.9.0
|
|
279
|
+
version: "4.9.0"
|
|
280
280
|
},
|
|
281
281
|
"@walkeros/web-destination-gtag": {
|
|
282
|
-
version: "4.9.0
|
|
282
|
+
version: "4.9.0"
|
|
283
283
|
},
|
|
284
284
|
"@walkeros/web-destination-api": {
|
|
285
|
-
version: "4.9.0
|
|
285
|
+
version: "4.9.0"
|
|
286
286
|
}
|
|
287
287
|
},
|
|
288
288
|
env: {
|
|
@@ -1801,40 +1801,40 @@ var flow_complete_default = {
|
|
|
1801
1801
|
bundle: {
|
|
1802
1802
|
packages: {
|
|
1803
1803
|
"@walkeros/collector": {
|
|
1804
|
-
version: "4.9.0
|
|
1804
|
+
version: "4.9.0"
|
|
1805
1805
|
},
|
|
1806
1806
|
"@walkeros/server-source-express": {
|
|
1807
|
-
version: "4.9.0
|
|
1807
|
+
version: "4.9.0"
|
|
1808
1808
|
},
|
|
1809
1809
|
"@walkeros/transformer-ga4": {
|
|
1810
|
-
version: "4.9.0
|
|
1810
|
+
version: "4.9.0"
|
|
1811
1811
|
},
|
|
1812
1812
|
"@walkeros/transformer-validate": {
|
|
1813
|
-
version: "4.9.0
|
|
1813
|
+
version: "4.9.0"
|
|
1814
1814
|
},
|
|
1815
1815
|
"@walkeros/server-transformer-bot": {
|
|
1816
|
-
version: "4.9.0
|
|
1816
|
+
version: "4.9.0"
|
|
1817
1817
|
},
|
|
1818
1818
|
"@walkeros/server-transformer-fingerprint": {
|
|
1819
|
-
version: "4.9.0
|
|
1819
|
+
version: "4.9.0"
|
|
1820
1820
|
},
|
|
1821
1821
|
"@walkeros/server-transformer-file": {
|
|
1822
|
-
version: "4.9.0
|
|
1822
|
+
version: "4.9.0"
|
|
1823
1823
|
},
|
|
1824
1824
|
"@walkeros/server-store-fs": {
|
|
1825
|
-
version: "4.9.0
|
|
1825
|
+
version: "4.9.0"
|
|
1826
1826
|
},
|
|
1827
1827
|
"@walkeros/server-destination-gcp": {
|
|
1828
|
-
version: "4.9.0
|
|
1828
|
+
version: "4.9.0"
|
|
1829
1829
|
},
|
|
1830
1830
|
"@walkeros/server-destination-meta": {
|
|
1831
|
-
version: "4.9.0
|
|
1831
|
+
version: "4.9.0"
|
|
1832
1832
|
},
|
|
1833
1833
|
"@walkeros/server-destination-piwikpro": {
|
|
1834
|
-
version: "4.9.0
|
|
1834
|
+
version: "4.9.0"
|
|
1835
1835
|
},
|
|
1836
1836
|
"@walkeros/server-destination-datamanager": {
|
|
1837
|
-
version: "4.9.0
|
|
1837
|
+
version: "4.9.0"
|
|
1838
1838
|
}
|
|
1839
1839
|
}
|
|
1840
1840
|
}
|
|
@@ -1904,6 +1904,10 @@ var flow_complete_default = {
|
|
|
1904
1904
|
{
|
|
1905
1905
|
path: "/walker.js",
|
|
1906
1906
|
methods: ["GET"]
|
|
1907
|
+
},
|
|
1908
|
+
{
|
|
1909
|
+
path: "/demo/products/:id",
|
|
1910
|
+
methods: ["GET"]
|
|
1907
1911
|
}
|
|
1908
1912
|
],
|
|
1909
1913
|
cors: {
|
|
@@ -1965,6 +1969,14 @@ var flow_complete_default = {
|
|
|
1965
1969
|
value: "/g/collect"
|
|
1966
1970
|
},
|
|
1967
1971
|
stop: true
|
|
1972
|
+
},
|
|
1973
|
+
{
|
|
1974
|
+
match: {
|
|
1975
|
+
key: "ingest.path",
|
|
1976
|
+
operator: "prefix",
|
|
1977
|
+
value: "/demo/products/"
|
|
1978
|
+
},
|
|
1979
|
+
next: "productApi"
|
|
1968
1980
|
}
|
|
1969
1981
|
]
|
|
1970
1982
|
},
|
|
@@ -2435,6 +2447,7 @@ var flow_complete_default = {
|
|
|
2435
2447
|
},
|
|
2436
2448
|
config: {
|
|
2437
2449
|
settings: {
|
|
2450
|
+
prefix: "/",
|
|
2438
2451
|
headers: {
|
|
2439
2452
|
"Cache-Control": "public, max-age=300",
|
|
2440
2453
|
"Cross-Origin-Resource-Policy": "same-site"
|
|
@@ -2445,6 +2458,23 @@ var flow_complete_default = {
|
|
|
2445
2458
|
stop: true
|
|
2446
2459
|
}
|
|
2447
2460
|
},
|
|
2461
|
+
productApi: {
|
|
2462
|
+
package: "@walkeros/server-transformer-file",
|
|
2463
|
+
env: {
|
|
2464
|
+
store: "$store.assets"
|
|
2465
|
+
},
|
|
2466
|
+
config: {
|
|
2467
|
+
settings: {
|
|
2468
|
+
prefix: "/demo/",
|
|
2469
|
+
headers: {
|
|
2470
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
2471
|
+
}
|
|
2472
|
+
}
|
|
2473
|
+
},
|
|
2474
|
+
next: {
|
|
2475
|
+
stop: true
|
|
2476
|
+
}
|
|
2477
|
+
},
|
|
2448
2478
|
dedup: {
|
|
2449
2479
|
cache: {
|
|
2450
2480
|
stop: true,
|
|
@@ -2581,7 +2611,7 @@ var flow_complete_default = {
|
|
|
2581
2611
|
package: "@walkeros/server-transformer-fingerprint",
|
|
2582
2612
|
config: {
|
|
2583
2613
|
settings: {
|
|
2584
|
-
salt: "$
|
|
2614
|
+
salt: "$secret.FINGERPRINT_SALT",
|
|
2585
2615
|
length: 16,
|
|
2586
2616
|
site: ["event.source.url", "ingest.origin"]
|
|
2587
2617
|
}
|
|
@@ -4065,7 +4095,7 @@ var flow_complete_default = {
|
|
|
4065
4095
|
package: "@walkeros/server-transformer-fingerprint",
|
|
4066
4096
|
config: {
|
|
4067
4097
|
settings: {
|
|
4068
|
-
salt: "$
|
|
4098
|
+
salt: "$secret.EMAIL_SALT",
|
|
4069
4099
|
rotate: "none",
|
|
4070
4100
|
output: "user.email",
|
|
4071
4101
|
fields: [
|
|
@@ -4327,7 +4357,7 @@ var flow_complete_default = {
|
|
|
4327
4357
|
},
|
|
4328
4358
|
settings: {
|
|
4329
4359
|
pixelId: "$env.META_PIXEL_ID:1234567890",
|
|
4330
|
-
accessToken: "$
|
|
4360
|
+
accessToken: "$secret.META_ACCESS_TOKEN",
|
|
4331
4361
|
action_source: "website",
|
|
4332
4362
|
user_data: {
|
|
4333
4363
|
em: {
|
|
@@ -4875,13 +4905,13 @@ var flow_complete_default = {
|
|
|
4875
4905
|
bundle: {
|
|
4876
4906
|
packages: {
|
|
4877
4907
|
"@walkeros/collector": {
|
|
4878
|
-
version: "4.9.0
|
|
4908
|
+
version: "4.9.0"
|
|
4879
4909
|
},
|
|
4880
4910
|
"@walkeros/server-source-gcp": {
|
|
4881
|
-
version: "4.9.0
|
|
4911
|
+
version: "4.9.0"
|
|
4882
4912
|
},
|
|
4883
4913
|
"@walkeros/server-destination-gcp": {
|
|
4884
|
-
version: "4.9.0
|
|
4914
|
+
version: "4.9.0"
|
|
4885
4915
|
}
|
|
4886
4916
|
}
|
|
4887
4917
|
}
|
|
@@ -5296,7 +5326,7 @@ var teaching = {
|
|
|
5296
5326
|
chapter: "web-entry",
|
|
5297
5327
|
level: "intermediate",
|
|
5298
5328
|
useCases: ["consent", "sessions"],
|
|
5299
|
-
note: "require holds the
|
|
5329
|
+
note: "require holds back the entries already in the dataLayer until consent and session are known; new pushes are captured from the start.",
|
|
5300
5330
|
docs: []
|
|
5301
5331
|
},
|
|
5302
5332
|
"source-mapping": {
|
|
@@ -5395,7 +5425,7 @@ var teaching = {
|
|
|
5395
5425
|
chapter: "server-entry",
|
|
5396
5426
|
level: "beginner",
|
|
5397
5427
|
useCases: ["script-serving", "ga4-migration"],
|
|
5398
|
-
note: "One route per job, each with its own methods: /collect, /g/collect, /walker.js.",
|
|
5428
|
+
note: "One route per job, each with its own methods: /collect, /g/collect, /walker.js, /demo/products/:id.",
|
|
5399
5429
|
docs: [],
|
|
5400
5430
|
example: { step: "express", name: "postCollect" }
|
|
5401
5431
|
},
|
|
@@ -5962,11 +5992,11 @@ var teaching = {
|
|
|
5962
5992
|
docs: [{ page: "guides/reference-syntax" }]
|
|
5963
5993
|
},
|
|
5964
5994
|
"ref-env": {
|
|
5965
|
-
pointer: "/flows/
|
|
5995
|
+
pointer: "/flows/web/collector/custom/environment",
|
|
5966
5996
|
chapter: "references",
|
|
5967
5997
|
level: "intermediate",
|
|
5968
|
-
useCases: [
|
|
5969
|
-
note: "$env without a default must be set:
|
|
5998
|
+
useCases: [],
|
|
5999
|
+
note: "$env without a default must be set: this web flow declares ENVIRONMENT in config.bundle.env, so the build never misses it.",
|
|
5970
6000
|
docs: [{ page: "guides/reference-syntax" }]
|
|
5971
6001
|
},
|
|
5972
6002
|
"ref-env-default": {
|
|
@@ -6023,7 +6053,7 @@ var teaching = {
|
|
|
6023
6053
|
chapter: "references",
|
|
6024
6054
|
level: "advanced",
|
|
6025
6055
|
useCases: ["deploy"],
|
|
6026
|
-
note: "Web $env is resolved at build time
|
|
6056
|
+
note: "Web $env is resolved at build time: a local walkeros bundle reads the shell environment with this declared set on top.",
|
|
6027
6057
|
docs: [{ page: "guides/reference-syntax" }]
|
|
6028
6058
|
},
|
|
6029
6059
|
// chains-routing
|
|
@@ -6540,6 +6570,30 @@ var teaching = {
|
|
|
6540
6570
|
note: "Default response headers for served files: caching and resource policy.",
|
|
6541
6571
|
docs: [{ page: "transformers/file" }]
|
|
6542
6572
|
},
|
|
6573
|
+
"file-prefix": {
|
|
6574
|
+
pointer: "/flows/server/transformers/file/config/settings/prefix",
|
|
6575
|
+
chapter: "state-stores",
|
|
6576
|
+
level: "intermediate",
|
|
6577
|
+
useCases: ["script-serving"],
|
|
6578
|
+
note: "prefix / makes the step own every script request: a missing walker.js answers 404 instead of the tracking pixel.",
|
|
6579
|
+
docs: []
|
|
6580
|
+
},
|
|
6581
|
+
"products-case": {
|
|
6582
|
+
pointer: "/flows/server/sources/express/before/one/3",
|
|
6583
|
+
chapter: "state-stores",
|
|
6584
|
+
level: "intermediate",
|
|
6585
|
+
useCases: [],
|
|
6586
|
+
note: "The last case sends product lookups (/demo/products/<id>) to productApi.",
|
|
6587
|
+
docs: []
|
|
6588
|
+
},
|
|
6589
|
+
"product-api": {
|
|
6590
|
+
pointer: "/flows/server/transformers/productApi",
|
|
6591
|
+
chapter: "state-stores",
|
|
6592
|
+
level: "intermediate",
|
|
6593
|
+
useCases: [],
|
|
6594
|
+
note: "A lookup route: GET /demo/products/<id> answers the product as JSON from the assets store (prefix /demo/ is stripped to the key products/<id>; headers sets the JSON Content-Type), 404 for an unknown id, and never becomes an event.",
|
|
6595
|
+
docs: []
|
|
6596
|
+
},
|
|
6543
6597
|
"gclid-to-ads": {
|
|
6544
6598
|
pointer: "/flows/server/destinations/datamanager/config/mapping/order/complete/data/map/gclid",
|
|
6545
6599
|
chapter: "state-stores",
|
|
@@ -7039,7 +7093,7 @@ var flowCompleteCoverage = {
|
|
|
7039
7093
|
batch: "rule-batch",
|
|
7040
7094
|
condition: "rule-condition",
|
|
7041
7095
|
consent: {
|
|
7042
|
-
excluded: "
|
|
7096
|
+
excluded: "destination consent is the gate in this file; the consent guide shows a rule's consent"
|
|
7043
7097
|
},
|
|
7044
7098
|
settings: "rule-settings",
|
|
7045
7099
|
data: "rule-data",
|