@shware/workflow 5.0.0 → 5.0.1
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/_virtual/_rolldown/runtime.cjs +1 -2
- package/dist/apns-relay.cjs +1 -2
- package/dist/apns-relay.d.cts +0 -2
- package/dist/apns-relay.d.cts.map +1 -1
- package/dist/apns-relay.d.mts +0 -2
- package/dist/apns-relay.d.mts.map +1 -1
- package/dist/apns-relay.mjs +1 -2
- package/dist/apns.cjs +1 -2
- package/dist/apns.d.cts +0 -2
- package/dist/apns.d.cts.map +1 -1
- package/dist/apns.d.mts +0 -2
- package/dist/apns.d.mts.map +1 -1
- package/dist/apns.mjs +1 -2
- package/dist/aws/engine-step.cjs +1 -2
- package/dist/aws/engine-step.d.cts +0 -2
- package/dist/aws/engine-step.d.cts.map +1 -1
- package/dist/aws/engine-step.d.mts +0 -2
- package/dist/aws/engine-step.d.mts.map +1 -1
- package/dist/aws/engine-step.mjs +1 -2
- package/dist/aws/function-url.cjs +1 -2
- package/dist/aws/function-url.d.cts +0 -2
- package/dist/aws/function-url.d.cts.map +1 -1
- package/dist/aws/function-url.d.mts +0 -2
- package/dist/aws/function-url.d.mts.map +1 -1
- package/dist/aws/function-url.mjs +1 -2
- package/dist/aws/index.cjs +1 -2
- package/dist/aws/index.d.cts +0 -2
- package/dist/aws/index.d.cts.map +1 -1
- package/dist/aws/index.d.mts +0 -2
- package/dist/aws/index.d.mts.map +1 -1
- package/dist/aws/index.mjs +1 -2
- package/dist/aws/instances.cjs +1 -2
- package/dist/aws/instances.d.cts +0 -2
- package/dist/aws/instances.d.cts.map +1 -1
- package/dist/aws/instances.d.mts +0 -2
- package/dist/aws/instances.d.mts.map +1 -1
- package/dist/aws/instances.mjs +1 -2
- package/dist/aws/lambda-api.cjs +1 -2
- package/dist/aws/lambda-api.d.cts +0 -2
- package/dist/aws/lambda-api.d.cts.map +1 -1
- package/dist/aws/lambda-api.d.mts +0 -2
- package/dist/aws/lambda-api.d.mts.map +1 -1
- package/dist/aws/lambda-api.mjs +1 -2
- package/dist/client.cjs +1 -2
- package/dist/client.d.cts +0 -2
- package/dist/client.d.cts.map +1 -1
- package/dist/client.d.mts +0 -2
- package/dist/client.d.mts.map +1 -1
- package/dist/client.mjs +1 -2
- package/dist/cloudflare/bindings.cjs +1 -2
- package/dist/cloudflare/bindings.d.cts +0 -2
- package/dist/cloudflare/bindings.d.cts.map +1 -1
- package/dist/cloudflare/bindings.d.mts +0 -2
- package/dist/cloudflare/bindings.d.mts.map +1 -1
- package/dist/cloudflare/bindings.mjs +1 -2
- package/dist/cloudflare/runner.cjs +1 -2
- package/dist/cloudflare/runner.d.cts +0 -2
- package/dist/cloudflare/runner.d.cts.map +1 -1
- package/dist/cloudflare/runner.d.mts +0 -2
- package/dist/cloudflare/runner.d.mts.map +1 -1
- package/dist/cloudflare/runner.mjs +1 -2
- package/dist/cloudflare/worker.cjs +1 -2
- package/dist/cloudflare/worker.d.cts +0 -2
- package/dist/cloudflare/worker.d.cts.map +1 -1
- package/dist/cloudflare/worker.d.mts +0 -2
- package/dist/cloudflare/worker.d.mts.map +1 -1
- package/dist/cloudflare/worker.mjs +1 -2
- package/dist/cloudflare/workers.d.cts +0 -2
- package/dist/cloudflare/workers.d.cts.map +1 -1
- package/dist/cloudflare/workers.d.mts +0 -2
- package/dist/cloudflare/workers.d.mts.map +1 -1
- package/dist/config.cjs +1 -2
- package/dist/config.d.cts +0 -2
- package/dist/config.d.cts.map +1 -1
- package/dist/config.d.mts +0 -2
- package/dist/config.d.mts.map +1 -1
- package/dist/config.mjs +1 -2
- package/dist/contract.cjs +1 -2
- package/dist/contract.d.cts +0 -2
- package/dist/contract.d.cts.map +1 -1
- package/dist/contract.d.mts +0 -2
- package/dist/contract.d.mts.map +1 -1
- package/dist/contract.mjs +1 -2
- package/dist/dsl/action.cjs +1 -2
- package/dist/dsl/action.d.cts +0 -2
- package/dist/dsl/action.d.cts.map +1 -1
- package/dist/dsl/action.d.mts +0 -2
- package/dist/dsl/action.d.mts.map +1 -1
- package/dist/dsl/action.mjs +1 -2
- package/dist/dsl/base.cjs +1 -2
- package/dist/dsl/base.d.cts +0 -2
- package/dist/dsl/base.d.cts.map +1 -1
- package/dist/dsl/base.d.mts +0 -2
- package/dist/dsl/base.d.mts.map +1 -1
- package/dist/dsl/base.mjs +1 -2
- package/dist/dsl/bundle.cjs +1 -2
- package/dist/dsl/bundle.d.cts +0 -2
- package/dist/dsl/bundle.d.cts.map +1 -1
- package/dist/dsl/bundle.d.mts +0 -2
- package/dist/dsl/bundle.d.mts.map +1 -1
- package/dist/dsl/bundle.mjs +1 -2
- package/dist/dsl/condition.cjs +1 -2
- package/dist/dsl/condition.d.cts +0 -2
- package/dist/dsl/condition.d.cts.map +1 -1
- package/dist/dsl/condition.d.mts +0 -2
- package/dist/dsl/condition.d.mts.map +1 -1
- package/dist/dsl/condition.mjs +1 -2
- package/dist/dsl/flow.cjs +1 -2
- package/dist/dsl/flow.d.cts +0 -2
- package/dist/dsl/flow.d.cts.map +1 -1
- package/dist/dsl/flow.d.mts +0 -2
- package/dist/dsl/flow.d.mts.map +1 -1
- package/dist/dsl/flow.mjs +1 -2
- package/dist/dsl/refs.cjs +1 -2
- package/dist/dsl/refs.d.cts +0 -2
- package/dist/dsl/refs.d.cts.map +1 -1
- package/dist/dsl/refs.d.mts +0 -2
- package/dist/dsl/refs.d.mts.map +1 -1
- package/dist/dsl/refs.mjs +1 -2
- package/dist/dsl/template.cjs +1 -2
- package/dist/dsl/template.d.cts +0 -2
- package/dist/dsl/template.d.cts.map +1 -1
- package/dist/dsl/template.d.mts +0 -2
- package/dist/dsl/template.d.mts.map +1 -1
- package/dist/dsl/template.mjs +1 -2
- package/dist/dsl/trigger.cjs +1 -2
- package/dist/dsl/trigger.d.cts +0 -2
- package/dist/dsl/trigger.d.cts.map +1 -1
- package/dist/dsl/trigger.d.mts +0 -2
- package/dist/dsl/trigger.d.mts.map +1 -1
- package/dist/dsl/trigger.mjs +1 -2
- package/dist/dsl/workflow.cjs +1 -2
- package/dist/dsl/workflow.d.cts +0 -2
- package/dist/dsl/workflow.d.cts.map +1 -1
- package/dist/dsl/workflow.d.mts +0 -2
- package/dist/dsl/workflow.d.mts.map +1 -1
- package/dist/dsl/workflow.mjs +1 -2
- package/dist/email-context.cjs +1 -2
- package/dist/email-context.d.cts +0 -2
- package/dist/email-context.d.cts.map +1 -1
- package/dist/email-context.d.mts +0 -2
- package/dist/email-context.d.mts.map +1 -1
- package/dist/email-context.mjs +1 -2
- package/dist/email-sender.cjs +1 -2
- package/dist/email-sender.d.cts +0 -2
- package/dist/email-sender.d.cts.map +1 -1
- package/dist/email-sender.d.mts +0 -2
- package/dist/email-sender.d.mts.map +1 -1
- package/dist/email-sender.mjs +1 -2
- package/dist/email.cjs +1 -2
- package/dist/email.d.cts +0 -2
- package/dist/email.d.cts.map +1 -1
- package/dist/email.d.mts +0 -2
- package/dist/email.d.mts.map +1 -1
- package/dist/email.mjs +1 -2
- package/dist/engine/actions.cjs +1 -2
- package/dist/engine/actions.d.cts +0 -2
- package/dist/engine/actions.d.cts.map +1 -1
- package/dist/engine/actions.d.mts +0 -2
- package/dist/engine/actions.d.mts.map +1 -1
- package/dist/engine/actions.mjs +1 -2
- package/dist/engine/bucket.cjs +1 -2
- package/dist/engine/bucket.d.cts +0 -2
- package/dist/engine/bucket.d.cts.map +1 -1
- package/dist/engine/bucket.d.mts +0 -2
- package/dist/engine/bucket.d.mts.map +1 -1
- package/dist/engine/bucket.mjs +1 -2
- package/dist/engine/condition.cjs +1 -2
- package/dist/engine/condition.d.cts +0 -2
- package/dist/engine/condition.d.cts.map +1 -1
- package/dist/engine/condition.d.mts +0 -2
- package/dist/engine/condition.d.mts.map +1 -1
- package/dist/engine/condition.mjs +1 -2
- package/dist/engine/duration.cjs +1 -2
- package/dist/engine/duration.d.cts +0 -2
- package/dist/engine/duration.d.cts.map +1 -1
- package/dist/engine/duration.d.mts +0 -2
- package/dist/engine/duration.d.mts.map +1 -1
- package/dist/engine/duration.mjs +1 -2
- package/dist/engine/interpreter.cjs +1 -2
- package/dist/engine/interpreter.d.cts +0 -2
- package/dist/engine/interpreter.d.cts.map +1 -1
- package/dist/engine/interpreter.d.mts +0 -2
- package/dist/engine/interpreter.d.mts.map +1 -1
- package/dist/engine/interpreter.mjs +1 -2
- package/dist/engine/ports.d.cts +0 -2
- package/dist/engine/ports.d.cts.map +1 -1
- package/dist/engine/ports.d.mts +0 -2
- package/dist/engine/ports.d.mts.map +1 -1
- package/dist/engine/recipient.cjs +1 -2
- package/dist/engine/recipient.d.cts +0 -2
- package/dist/engine/recipient.d.cts.map +1 -1
- package/dist/engine/recipient.d.mts +0 -2
- package/dist/engine/recipient.d.mts.map +1 -1
- package/dist/engine/recipient.mjs +1 -2
- package/dist/engine/retry.cjs +1 -2
- package/dist/engine/retry.d.cts +0 -2
- package/dist/engine/retry.d.cts.map +1 -1
- package/dist/engine/retry.d.mts +0 -2
- package/dist/engine/retry.d.mts.map +1 -1
- package/dist/engine/retry.mjs +1 -2
- package/dist/engine/time-scale.cjs +1 -2
- package/dist/engine/time-scale.d.cts +0 -2
- package/dist/engine/time-scale.d.cts.map +1 -1
- package/dist/engine/time-scale.d.mts +0 -2
- package/dist/engine/time-scale.d.mts.map +1 -1
- package/dist/engine/time-scale.mjs +1 -2
- package/dist/engine/time-window.cjs +1 -2
- package/dist/engine/time-window.d.cts +0 -2
- package/dist/engine/time-window.d.cts.map +1 -1
- package/dist/engine/time-window.d.mts +0 -2
- package/dist/engine/time-window.d.mts.map +1 -1
- package/dist/engine/time-window.mjs +1 -2
- package/dist/fcm.cjs +1 -2
- package/dist/fcm.d.cts +0 -2
- package/dist/fcm.d.cts.map +1 -1
- package/dist/fcm.d.mts +0 -2
- package/dist/fcm.d.mts.map +1 -1
- package/dist/fcm.mjs +1 -2
- package/dist/hash.cjs +1 -2
- package/dist/hash.d.cts +0 -2
- package/dist/hash.d.cts.map +1 -1
- package/dist/hash.d.mts +0 -2
- package/dist/hash.d.mts.map +1 -1
- package/dist/hash.mjs +1 -2
- package/dist/host/auth.cjs +1 -2
- package/dist/host/auth.d.cts +0 -2
- package/dist/host/auth.d.cts.map +1 -1
- package/dist/host/auth.d.mts +0 -2
- package/dist/host/auth.d.mts.map +1 -1
- package/dist/host/auth.mjs +1 -2
- package/dist/host/channels.cjs +1 -2
- package/dist/host/channels.d.cts +0 -2
- package/dist/host/channels.d.cts.map +1 -1
- package/dist/host/channels.d.mts +0 -2
- package/dist/host/channels.d.mts.map +1 -1
- package/dist/host/channels.mjs +1 -2
- package/dist/host/execute.cjs +1 -2
- package/dist/host/execute.d.cts +0 -2
- package/dist/host/execute.d.cts.map +1 -1
- package/dist/host/execute.d.mts +0 -2
- package/dist/host/execute.d.mts.map +1 -1
- package/dist/host/execute.mjs +1 -2
- package/dist/host/fresh-read.cjs +1 -2
- package/dist/host/fresh-read.d.cts +0 -2
- package/dist/host/fresh-read.d.cts.map +1 -1
- package/dist/host/fresh-read.d.mts +0 -2
- package/dist/host/fresh-read.d.mts.map +1 -1
- package/dist/host/fresh-read.mjs +1 -2
- package/dist/host/http.cjs +1 -2
- package/dist/host/http.d.cts +0 -2
- package/dist/host/http.d.cts.map +1 -1
- package/dist/host/http.d.mts +0 -2
- package/dist/host/http.d.mts.map +1 -1
- package/dist/host/http.mjs +1 -2
- package/dist/host/ingest.cjs +1 -2
- package/dist/host/ingest.d.cts +0 -2
- package/dist/host/ingest.d.cts.map +1 -1
- package/dist/host/ingest.d.mts +0 -2
- package/dist/host/ingest.d.mts.map +1 -1
- package/dist/host/ingest.mjs +1 -2
- package/dist/host/journey-host.cjs +1 -2
- package/dist/host/journey-host.d.cts +0 -2
- package/dist/host/journey-host.d.cts.map +1 -1
- package/dist/host/journey-host.d.mts +0 -2
- package/dist/host/journey-host.d.mts.map +1 -1
- package/dist/host/journey-host.mjs +1 -2
- package/dist/host/platform.cjs +1 -2
- package/dist/host/platform.d.cts +0 -2
- package/dist/host/platform.d.cts.map +1 -1
- package/dist/host/platform.d.mts +0 -2
- package/dist/host/platform.d.mts.map +1 -1
- package/dist/host/platform.mjs +1 -2
- package/dist/host/senders.cjs +1 -2
- package/dist/host/senders.d.cts +0 -2
- package/dist/host/senders.d.cts.map +1 -1
- package/dist/host/senders.d.mts +0 -2
- package/dist/host/senders.d.mts.map +1 -1
- package/dist/host/senders.mjs +1 -2
- package/dist/http2-client.cjs +1 -2
- package/dist/http2-client.d.cts +0 -2
- package/dist/http2-client.d.cts.map +1 -1
- package/dist/http2-client.d.mts +0 -2
- package/dist/http2-client.d.mts.map +1 -1
- package/dist/http2-client.mjs +1 -2
- package/dist/ir.cjs +1 -2
- package/dist/ir.d.cts +0 -2
- package/dist/ir.d.cts.map +1 -1
- package/dist/ir.d.mts +0 -2
- package/dist/ir.d.mts.map +1 -1
- package/dist/ir.mjs +1 -2
- package/dist/jwt.cjs +1 -2
- package/dist/jwt.d.cts +0 -2
- package/dist/jwt.d.cts.map +1 -1
- package/dist/jwt.d.mts +0 -2
- package/dist/jwt.d.mts.map +1 -1
- package/dist/jwt.mjs +1 -2
- package/dist/plan.cjs +1 -2
- package/dist/plan.d.cts +0 -2
- package/dist/plan.d.cts.map +1 -1
- package/dist/plan.d.mts +0 -2
- package/dist/plan.d.mts.map +1 -1
- package/dist/plan.mjs +1 -2
- package/dist/postgres-js.cjs +1 -2
- package/dist/postgres-js.d.cts +0 -2
- package/dist/postgres-js.d.cts.map +1 -1
- package/dist/postgres-js.d.mts +0 -2
- package/dist/postgres-js.d.mts.map +1 -1
- package/dist/postgres-js.mjs +1 -2
- package/dist/provenance.cjs +1 -2
- package/dist/provenance.d.cts +0 -2
- package/dist/provenance.d.cts.map +1 -1
- package/dist/provenance.d.mts +0 -2
- package/dist/provenance.d.mts.map +1 -1
- package/dist/provenance.mjs +1 -2
- package/dist/push.cjs +1 -2
- package/dist/push.d.cts +0 -2
- package/dist/push.d.cts.map +1 -1
- package/dist/push.d.mts +0 -2
- package/dist/push.d.mts.map +1 -1
- package/dist/push.mjs +1 -2
- package/dist/react-email.cjs +1 -2
- package/dist/react-email.d.cts +0 -2
- package/dist/react-email.d.cts.map +1 -1
- package/dist/react-email.d.mts +0 -2
- package/dist/react-email.d.mts.map +1 -1
- package/dist/react-email.mjs +1 -2
- package/dist/reporting/classify.cjs +1 -2
- package/dist/reporting/classify.d.cts +0 -2
- package/dist/reporting/classify.d.cts.map +1 -1
- package/dist/reporting/classify.d.mts +0 -2
- package/dist/reporting/classify.d.mts.map +1 -1
- package/dist/reporting/classify.mjs +1 -2
- package/dist/reporting/observer.cjs +1 -2
- package/dist/reporting/observer.d.cts +0 -2
- package/dist/reporting/observer.d.cts.map +1 -1
- package/dist/reporting/observer.d.mts +0 -2
- package/dist/reporting/observer.d.mts.map +1 -1
- package/dist/reporting/observer.mjs +1 -2
- package/dist/reporting/tracking.cjs +1 -2
- package/dist/reporting/tracking.d.cts +0 -2
- package/dist/reporting/tracking.d.cts.map +1 -1
- package/dist/reporting/tracking.d.mts +0 -2
- package/dist/reporting/tracking.d.mts.map +1 -1
- package/dist/reporting/tracking.mjs +1 -2
- package/dist/runtime.cjs +1 -2
- package/dist/runtime.d.cts +0 -2
- package/dist/runtime.d.cts.map +1 -1
- package/dist/runtime.d.mts +0 -2
- package/dist/runtime.d.mts.map +1 -1
- package/dist/runtime.mjs +1 -2
- package/dist/store/erasure.cjs +1 -2
- package/dist/store/erasure.d.cts +0 -2
- package/dist/store/erasure.d.cts.map +1 -1
- package/dist/store/erasure.d.mts +0 -2
- package/dist/store/erasure.d.mts.map +1 -1
- package/dist/store/erasure.mjs +1 -2
- package/dist/store/facts.cjs +1 -2
- package/dist/store/facts.d.cts +0 -2
- package/dist/store/facts.d.cts.map +1 -1
- package/dist/store/facts.d.mts +0 -2
- package/dist/store/facts.d.mts.map +1 -1
- package/dist/store/facts.mjs +1 -2
- package/dist/store/index.cjs +1 -2
- package/dist/store/index.d.cts +0 -2
- package/dist/store/index.d.cts.map +1 -1
- package/dist/store/index.d.mts +0 -2
- package/dist/store/index.d.mts.map +1 -1
- package/dist/store/index.mjs +1 -2
- package/dist/store/postgres-reporting.cjs +1 -2
- package/dist/store/postgres-reporting.d.cts +0 -2
- package/dist/store/postgres-reporting.d.cts.map +1 -1
- package/dist/store/postgres-reporting.d.mts +0 -2
- package/dist/store/postgres-reporting.d.mts.map +1 -1
- package/dist/store/postgres-reporting.mjs +1 -2
- package/dist/store/postgres.cjs +1 -2
- package/dist/store/postgres.d.cts +0 -2
- package/dist/store/postgres.d.cts.map +1 -1
- package/dist/store/postgres.d.mts +0 -2
- package/dist/store/postgres.d.mts.map +1 -1
- package/dist/store/postgres.mjs +1 -2
- package/dist/store/sql.cjs +1 -2
- package/dist/store/sql.d.cts +0 -2
- package/dist/store/sql.d.cts.map +1 -1
- package/dist/store/sql.d.mts +0 -2
- package/dist/store/sql.d.mts.map +1 -1
- package/dist/store/sql.mjs +1 -2
- package/dist/store/tables.cjs +1 -2
- package/dist/store/tables.d.cts +0 -2
- package/dist/store/tables.d.cts.map +1 -1
- package/dist/store/tables.d.mts +0 -2
- package/dist/store/tables.d.mts.map +1 -1
- package/dist/store/tables.mjs +1 -2
- package/dist/store/user-lock.cjs +1 -2
- package/dist/store/user-lock.d.cts +0 -2
- package/dist/store/user-lock.d.cts.map +1 -1
- package/dist/store/user-lock.d.mts +0 -2
- package/dist/store/user-lock.d.mts.map +1 -1
- package/dist/store/user-lock.mjs +1 -2
- package/dist/templates.cjs +1 -2
- package/dist/templates.d.cts +0 -2
- package/dist/templates.d.cts.map +1 -1
- package/dist/templates.d.mts +0 -2
- package/dist/templates.d.mts.map +1 -1
- package/dist/templates.mjs +1 -2
- package/dist/transports/cloudflare-email.cjs +1 -2
- package/dist/transports/cloudflare-email.d.cts +0 -2
- package/dist/transports/cloudflare-email.d.cts.map +1 -1
- package/dist/transports/cloudflare-email.d.mts +0 -2
- package/dist/transports/cloudflare-email.d.mts.map +1 -1
- package/dist/transports/cloudflare-email.mjs +1 -2
- package/dist/transports/ses.cjs +1 -2
- package/dist/transports/ses.d.cts +0 -2
- package/dist/transports/ses.d.cts.map +1 -1
- package/dist/transports/ses.d.mts +0 -2
- package/dist/transports/ses.d.mts.map +1 -1
- package/dist/transports/ses.mjs +1 -2
- package/dist/transports/sigv4.cjs +1 -2
- package/dist/transports/sigv4.d.cts +0 -2
- package/dist/transports/sigv4.d.cts.map +1 -1
- package/dist/transports/sigv4.d.mts +0 -2
- package/dist/transports/sigv4.d.mts.map +1 -1
- package/dist/transports/sigv4.mjs +1 -2
- package/dist/webhooks.cjs +1 -2
- package/dist/webhooks.d.cts +0 -2
- package/dist/webhooks.d.cts.map +1 -1
- package/dist/webhooks.d.mts +0 -2
- package/dist/webhooks.d.mts.map +1 -1
- package/dist/webhooks.mjs +1 -2
- package/dist/webpush.cjs +1 -2
- package/dist/webpush.d.cts +0 -2
- package/dist/webpush.d.cts.map +1 -1
- package/dist/webpush.d.mts +0 -2
- package/dist/webpush.d.mts.map +1 -1
- package/dist/webpush.mjs +1 -2
- package/package.json +5 -5
package/dist/provenance.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
|
|
2
|
+
// src/provenance.ts
|
|
3
3
|
/**
|
|
4
4
|
* V8-style frame: `at fn (file:line:col)` / `at file:line:col`, where file may
|
|
5
5
|
* be an absolute path, a file:// URL (Node ESM) or an http(s) URL (Vite dev).
|
|
@@ -60,7 +60,6 @@ function toPosix(path) {
|
|
|
60
60
|
const slashed = path.replaceAll("\\", "/");
|
|
61
61
|
return /^[a-z]:/.test(slashed) ? slashed[0].toUpperCase() + slashed.slice(1) : slashed;
|
|
62
62
|
}
|
|
63
|
-
//#endregion
|
|
64
63
|
exports.captureLoc = captureLoc;
|
|
65
64
|
exports.normalizeFile = normalizeFile;
|
|
66
65
|
|
package/dist/provenance.d.cts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { SourceLocIR } from "./ir.cjs";
|
|
2
|
-
//#region src/provenance.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Provenance — where in source code a definition came from.
|
|
5
4
|
*
|
|
@@ -37,6 +36,5 @@ export declare function captureLoc(boundary: AnyFunction): SourceLocIR | undefin
|
|
|
37
36
|
* line, and the platform it gets wrong is not the one the suite runs on.
|
|
38
37
|
*/
|
|
39
38
|
export declare function normalizeFile(rawFile: string, cwd: string | undefined): string;
|
|
40
|
-
//#endregion
|
|
41
39
|
export {};
|
|
42
40
|
//# sourceMappingURL=provenance.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provenance.d.cts","names":[],"sources":["../src/provenance.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"provenance.d.cts","names":[],"sources":["../src/provenance.ts"],"mappings":";;;;;;;;;;;;;;;;;KAmBK,kBAAkB;;;;;wBAYP,WAAW,UAAU,cAAc;;;;;;;;;;;;;;;wBAyCnC,cAAc,iBAAiB"}
|
package/dist/provenance.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { SourceLocIR } from "./ir.mjs";
|
|
2
|
-
//#region src/provenance.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Provenance — where in source code a definition came from.
|
|
5
4
|
*
|
|
@@ -37,6 +36,5 @@ export declare function captureLoc(boundary: AnyFunction): SourceLocIR | undefin
|
|
|
37
36
|
* line, and the platform it gets wrong is not the one the suite runs on.
|
|
38
37
|
*/
|
|
39
38
|
export declare function normalizeFile(rawFile: string, cwd: string | undefined): string;
|
|
40
|
-
//#endregion
|
|
41
39
|
export {};
|
|
42
40
|
//# sourceMappingURL=provenance.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provenance.d.mts","names":[],"sources":["../src/provenance.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"provenance.d.mts","names":[],"sources":["../src/provenance.ts"],"mappings":";;;;;;;;;;;;;;;;;KAmBK,kBAAkB;;;;;wBAYP,WAAW,UAAU,cAAc;;;;;;;;;;;;;;;wBAyCnC,cAAc,iBAAiB"}
|
package/dist/provenance.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/provenance.ts
|
|
2
2
|
/**
|
|
3
3
|
* V8-style frame: `at fn (file:line:col)` / `at file:line:col`, where file may
|
|
4
4
|
* be an absolute path, a file:// URL (Node ESM) or an http(s) URL (Vite dev).
|
|
@@ -59,7 +59,6 @@ function toPosix(path) {
|
|
|
59
59
|
const slashed = path.replaceAll("\\", "/");
|
|
60
60
|
return /^[a-z]:/.test(slashed) ? slashed[0].toUpperCase() + slashed.slice(1) : slashed;
|
|
61
61
|
}
|
|
62
|
-
//#endregion
|
|
63
62
|
export { captureLoc, normalizeFile };
|
|
64
63
|
|
|
65
64
|
//# sourceMappingURL=provenance.mjs.map
|
package/dist/push.cjs
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_templates = require("./templates.cjs");
|
|
3
|
-
|
|
3
|
+
// src/push.ts
|
|
4
4
|
/** A renderer over the registry, by template id; a TemplateValidationError means nothing may be sent. */
|
|
5
5
|
function registryPushRenderer(pushes) {
|
|
6
6
|
const index = require_templates.indexTemplates("push", pushes);
|
|
7
7
|
return async (id, props) => require_templates.renderPushContent(require_templates.lookupTemplate(index, "push", id), props);
|
|
8
8
|
}
|
|
9
|
-
//#endregion
|
|
10
9
|
exports.registryPushRenderer = registryPushRenderer;
|
|
11
10
|
|
|
12
11
|
//# sourceMappingURL=push.cjs.map
|
package/dist/push.d.cts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ScalarIR } from "./ir.cjs";
|
|
2
2
|
import { PushContent, PushTemplate } from "./templates.cjs";
|
|
3
|
-
//#region src/push.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* `@shware/workflow/push` — push-notification content. A push is data, not a
|
|
6
5
|
* component: a title and a body the OS renders in its own chrome, built by a
|
|
@@ -12,5 +11,4 @@ export type RenderedPush = PushContent;
|
|
|
12
11
|
export type PushRenderer = (template: string, props: Record<string, ScalarIR | undefined>) => Promise<RenderedPush>;
|
|
13
12
|
/** A renderer over the registry, by template id; a TemplateValidationError means nothing may be sent. */
|
|
14
13
|
export declare function registryPushRenderer(pushes: Readonly<Record<string, PushTemplate>>): PushRenderer;
|
|
15
|
-
//#endregion
|
|
16
14
|
//# sourceMappingURL=push.d.cts.map
|
package/dist/push.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"push.d.cts","names":[],"sources":["../src/push.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"push.d.cts","names":[],"sources":["../src/push.ts"],"mappings":";;;;;;;;;YAiBY,eAAe;YAEf,gBACV,kBACA,OAAO,eAAe,0BACnB,QAAQ;;wBAGG,qBAAqB,QAAQ,SAAS,eAAe,iBAAiB"}
|
package/dist/push.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ScalarIR } from "./ir.mjs";
|
|
2
2
|
import { PushContent, PushTemplate } from "./templates.mjs";
|
|
3
|
-
//#region src/push.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* `@shware/workflow/push` — push-notification content. A push is data, not a
|
|
6
5
|
* component: a title and a body the OS renders in its own chrome, built by a
|
|
@@ -12,5 +11,4 @@ export type RenderedPush = PushContent;
|
|
|
12
11
|
export type PushRenderer = (template: string, props: Record<string, ScalarIR | undefined>) => Promise<RenderedPush>;
|
|
13
12
|
/** A renderer over the registry, by template id; a TemplateValidationError means nothing may be sent. */
|
|
14
13
|
export declare function registryPushRenderer(pushes: Readonly<Record<string, PushTemplate>>): PushRenderer;
|
|
15
|
-
//#endregion
|
|
16
14
|
//# sourceMappingURL=push.d.mts.map
|
package/dist/push.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"push.d.mts","names":[],"sources":["../src/push.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"push.d.mts","names":[],"sources":["../src/push.ts"],"mappings":";;;;;;;;;YAiBY,eAAe;YAEf,gBACV,kBACA,OAAO,eAAe,0BACnB,QAAQ;;wBAGG,qBAAqB,QAAQ,SAAS,eAAe,iBAAiB"}
|
package/dist/push.mjs
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { indexTemplates, lookupTemplate, renderPushContent } from "./templates.mjs";
|
|
2
|
-
|
|
2
|
+
// src/push.ts
|
|
3
3
|
/** A renderer over the registry, by template id; a TemplateValidationError means nothing may be sent. */
|
|
4
4
|
function registryPushRenderer(pushes) {
|
|
5
5
|
const index = indexTemplates("push", pushes);
|
|
6
6
|
return async (id, props) => renderPushContent(lookupTemplate(index, "push", id), props);
|
|
7
7
|
}
|
|
8
|
-
//#endregion
|
|
9
8
|
export { registryPushRenderer };
|
|
10
9
|
|
|
11
10
|
//# sourceMappingURL=push.mjs.map
|
package/dist/react-email.cjs
CHANGED
|
@@ -4,7 +4,7 @@ const require_templates = require("./templates.cjs");
|
|
|
4
4
|
const require_email_context = require("./email-context.cjs");
|
|
5
5
|
let react = require("react");
|
|
6
6
|
let react_dom_server = require("react-dom/server");
|
|
7
|
-
|
|
7
|
+
// src/react-email.ts
|
|
8
8
|
/**
|
|
9
9
|
* `@shware/workflow/react-email` — an EmailRenderer over the project's email
|
|
10
10
|
* registry (`react-dom` is an optional peer dependency; import this subpath
|
|
@@ -50,7 +50,6 @@ async function renderToHtml(element) {
|
|
|
50
50
|
if (failure !== void 0) throw failure instanceof Error ? failure : new Error("email render failed", { cause: failure });
|
|
51
51
|
return html.replace(/^<!DOCTYPE html>/i, "").replace(/<link rel="preload" as="image"[^>]*\/>/g, "");
|
|
52
52
|
}
|
|
53
|
-
//#endregion
|
|
54
53
|
exports.registryRenderer = registryRenderer;
|
|
55
54
|
|
|
56
55
|
//# sourceMappingURL=react-email.cjs.map
|
package/dist/react-email.d.cts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { EmailConfig } from "./email.cjs";
|
|
2
2
|
import { EmailTemplate } from "./templates.cjs";
|
|
3
3
|
import { EmailRenderer } from "./email-sender.cjs";
|
|
4
|
-
//#region src/react-email.d.ts
|
|
5
4
|
export declare function registryRenderer(emails: Readonly<Record<string, EmailTemplate>>, config?: EmailConfig): EmailRenderer;
|
|
6
|
-
//#endregion
|
|
7
5
|
//# sourceMappingURL=react-email.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-email.d.cts","names":[],"sources":["../src/react-email.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"react-email.d.cts","names":[],"sources":["../src/react-email.ts"],"mappings":";;;wBAmCgB,iBACd,QAAQ,SAAS,eAAe,iBAChC,SAAS,cACR"}
|
package/dist/react-email.d.mts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { EmailConfig } from "./email.mjs";
|
|
2
2
|
import { EmailTemplate } from "./templates.mjs";
|
|
3
3
|
import { EmailRenderer } from "./email-sender.mjs";
|
|
4
|
-
//#region src/react-email.d.ts
|
|
5
4
|
export declare function registryRenderer(emails: Readonly<Record<string, EmailTemplate>>, config?: EmailConfig): EmailRenderer;
|
|
6
|
-
//#endregion
|
|
7
5
|
//# sourceMappingURL=react-email.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-email.d.mts","names":[],"sources":["../src/react-email.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"react-email.d.mts","names":[],"sources":["../src/react-email.ts"],"mappings":";;;wBAmCgB,iBACd,QAAQ,SAAS,eAAe,iBAChC,SAAS,cACR"}
|
package/dist/react-email.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { indexTemplates, lookupTemplate, parseTemplateProps } from "./templates.
|
|
|
3
3
|
import { EmailProvider } from "./email-context.mjs";
|
|
4
4
|
import { createElement } from "react";
|
|
5
5
|
import { renderToReadableStream } from "react-dom/server";
|
|
6
|
-
|
|
6
|
+
// src/react-email.ts
|
|
7
7
|
/**
|
|
8
8
|
* `@shware/workflow/react-email` — an EmailRenderer over the project's email
|
|
9
9
|
* registry (`react-dom` is an optional peer dependency; import this subpath
|
|
@@ -49,7 +49,6 @@ async function renderToHtml(element) {
|
|
|
49
49
|
if (failure !== void 0) throw failure instanceof Error ? failure : new Error("email render failed", { cause: failure });
|
|
50
50
|
return html.replace(/^<!DOCTYPE html>/i, "").replace(/<link rel="preload" as="image"[^>]*\/>/g, "");
|
|
51
51
|
}
|
|
52
|
-
//#endregion
|
|
53
52
|
export { registryRenderer };
|
|
54
53
|
|
|
55
54
|
//# sourceMappingURL=react-email.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
|
|
2
|
+
// src/reporting/classify.ts
|
|
3
3
|
/** How close together clicks on different links of one message must be to count as one walk. */
|
|
4
4
|
const BURST_WINDOW_MS = 5e3;
|
|
5
5
|
const DEFAULT_QUICK_MS = 1e3;
|
|
@@ -33,7 +33,6 @@ function classifyClick(facts, options = {}) {
|
|
|
33
33
|
if (quick && pair) return machine("quick+link_pair");
|
|
34
34
|
return human;
|
|
35
35
|
}
|
|
36
|
-
//#endregion
|
|
37
36
|
exports.BURST_WINDOW_MS = BURST_WINDOW_MS;
|
|
38
37
|
exports.DEFAULT_QUICK_MS = DEFAULT_QUICK_MS;
|
|
39
38
|
exports.classifyClick = classifyClick;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/reporting/classify.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Who opened or clicked: a person, or a machine acting on the message without one — the split
|
|
4
3
|
* between human and machine engagement that open and click rates are read through. No single
|
|
@@ -56,5 +55,4 @@ export declare const BURST_WINDOW_MS = 5000;
|
|
|
56
55
|
export declare const DEFAULT_QUICK_MS = 1000;
|
|
57
56
|
export declare function classifyOpen(facts: RequestFacts, options?: ClassifyOptions): Verdict;
|
|
58
57
|
export declare function classifyClick(facts: ClickFacts, options?: ClassifyOptions): Verdict;
|
|
59
|
-
//#endregion
|
|
60
58
|
//# sourceMappingURL=classify.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"classify.d.cts","names":[],"sources":["../../src/reporting/classify.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"classify.d.cts","names":[],"sources":["../../src/reporting/classify.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA+BiB;EACf;EACA;;iBAGe;EACf;EACA;;EAEA;;EAEA;;iBAGe;;EAEf;;iBAGe,mBAAmB;;EAElC;;EAEA;;;qBAIW;qBACA;wBAcG,aAAa,OAAO,cAAc,UAAS,kBAAuB;wBAYlE,cAAc,OAAO,YAAY,UAAS,kBAAuB"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/reporting/classify.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Who opened or clicked: a person, or a machine acting on the message without one — the split
|
|
4
3
|
* between human and machine engagement that open and click rates are read through. No single
|
|
@@ -56,5 +55,4 @@ export declare const BURST_WINDOW_MS = 5000;
|
|
|
56
55
|
export declare const DEFAULT_QUICK_MS = 1000;
|
|
57
56
|
export declare function classifyOpen(facts: RequestFacts, options?: ClassifyOptions): Verdict;
|
|
58
57
|
export declare function classifyClick(facts: ClickFacts, options?: ClassifyOptions): Verdict;
|
|
59
|
-
//#endregion
|
|
60
58
|
//# sourceMappingURL=classify.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"classify.d.mts","names":[],"sources":["../../src/reporting/classify.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"classify.d.mts","names":[],"sources":["../../src/reporting/classify.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA+BiB;EACf;EACA;;iBAGe;EACf;EACA;;EAEA;;EAEA;;iBAGe;;EAEf;;iBAGe,mBAAmB;;EAElC;;EAEA;;;qBAIW;qBACA;wBAcG,aAAa,OAAO,cAAc,UAAS,kBAAuB;wBAYlE,cAAc,OAAO,YAAY,UAAS,kBAAuB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/reporting/classify.ts
|
|
2
2
|
/** How close together clicks on different links of one message must be to count as one walk. */
|
|
3
3
|
const BURST_WINDOW_MS = 5e3;
|
|
4
4
|
const DEFAULT_QUICK_MS = 1e3;
|
|
@@ -32,7 +32,6 @@ function classifyClick(facts, options = {}) {
|
|
|
32
32
|
if (quick && pair) return machine("quick+link_pair");
|
|
33
33
|
return human;
|
|
34
34
|
}
|
|
35
|
-
//#endregion
|
|
36
35
|
export { BURST_WINDOW_MS, DEFAULT_QUICK_MS, classifyClick, classifyOpen };
|
|
37
36
|
|
|
38
37
|
//# sourceMappingURL=classify.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
|
|
2
|
+
// src/reporting/observer.ts
|
|
3
3
|
/**
|
|
4
4
|
* The observer journeyWorker installs when the store keeps reporting: every node arrival, copy
|
|
5
5
|
* and outcome recorded through `store.reporting`.
|
|
@@ -59,7 +59,6 @@ function channelOf(message) {
|
|
|
59
59
|
if (message.channel !== "push") return message.channel;
|
|
60
60
|
return `push_${message.device?.platform ?? "unknown"}`;
|
|
61
61
|
}
|
|
62
|
-
//#endregion
|
|
63
62
|
exports.reportingObserver = reportingObserver;
|
|
64
63
|
|
|
65
64
|
//# sourceMappingURL=observer.cjs.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { JourneyObserver } from "../engine/ports.cjs";
|
|
2
2
|
import "../engine/index.cjs";
|
|
3
3
|
import { JourneyReporting } from "../store/index.cjs";
|
|
4
|
-
//#region src/reporting/observer.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* The observer journeyWorker installs when the store keeps reporting: every node arrival, copy
|
|
7
6
|
* and outcome recorded through `store.reporting`.
|
|
@@ -15,5 +14,4 @@ import { JourneyReporting } from "../store/index.cjs";
|
|
|
15
14
|
* The links are recorded when the sender commits the rewritten email, before it goes out.
|
|
16
15
|
*/
|
|
17
16
|
export declare function reportingObserver(reporting: JourneyReporting, origin: string | undefined): JourneyObserver;
|
|
18
|
-
//#endregion
|
|
19
17
|
//# sourceMappingURL=observer.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observer.d.cts","names":[],"sources":["../../src/reporting/observer.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"observer.d.cts","names":[],"sources":["../../src/reporting/observer.ts"],"mappings":";;;;;;;;;;;;;;;wBAegB,kBACd,WAAW,kBACX,6BACC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { JourneyObserver } from "../engine/ports.mjs";
|
|
2
2
|
import "../engine/index.mjs";
|
|
3
3
|
import { JourneyReporting } from "../store/index.mjs";
|
|
4
|
-
//#region src/reporting/observer.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* The observer journeyWorker installs when the store keeps reporting: every node arrival, copy
|
|
7
6
|
* and outcome recorded through `store.reporting`.
|
|
@@ -15,5 +14,4 @@ import { JourneyReporting } from "../store/index.mjs";
|
|
|
15
14
|
* The links are recorded when the sender commits the rewritten email, before it goes out.
|
|
16
15
|
*/
|
|
17
16
|
export declare function reportingObserver(reporting: JourneyReporting, origin: string | undefined): JourneyObserver;
|
|
18
|
-
//#endregion
|
|
19
17
|
//# sourceMappingURL=observer.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observer.d.mts","names":[],"sources":["../../src/reporting/observer.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"observer.d.mts","names":[],"sources":["../../src/reporting/observer.ts"],"mappings":";;;;;;;;;;;;;;;wBAegB,kBACd,WAAW,kBACX,6BACC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/reporting/observer.ts
|
|
2
2
|
/**
|
|
3
3
|
* The observer journeyWorker installs when the store keeps reporting: every node arrival, copy
|
|
4
4
|
* and outcome recorded through `store.reporting`.
|
|
@@ -58,7 +58,6 @@ function channelOf(message) {
|
|
|
58
58
|
if (message.channel !== "push") return message.channel;
|
|
59
59
|
return `push_${message.device?.platform ?? "unknown"}`;
|
|
60
60
|
}
|
|
61
|
-
//#endregion
|
|
62
61
|
export { reportingObserver };
|
|
63
62
|
|
|
64
63
|
//# sourceMappingURL=observer.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_reporting_classify = require("./classify.cjs");
|
|
3
|
-
|
|
3
|
+
// src/reporting/tracking.ts
|
|
4
4
|
const GIF = Uint8Array.from(atob("R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"), (char) => char.charCodeAt(0));
|
|
5
5
|
const UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
6
6
|
function requester(request) {
|
|
@@ -156,7 +156,6 @@ function page(options, message, status = 200, extra = "") {
|
|
|
156
156
|
headers: { "content-type": "text/html; charset=utf-8" }
|
|
157
157
|
});
|
|
158
158
|
}
|
|
159
|
-
//#endregion
|
|
160
159
|
exports.handleTracking = handleTracking;
|
|
161
160
|
exports.recordPushOpen = recordPushOpen;
|
|
162
161
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { JourneyReporting } from "../store/index.cjs";
|
|
2
|
-
//#region src/reporting/tracking.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* The endpoints a journey email's tracking points at (see ./observer.ts), served by journeyWorker
|
|
5
4
|
* without a bearer — recipients open them:
|
|
@@ -52,5 +51,4 @@ export declare function handleTracking(request: Request, reporting: JourneyRepor
|
|
|
52
51
|
* notification. False when the message is unknown or not the user's.
|
|
53
52
|
*/
|
|
54
53
|
export declare function recordPushOpen(reporting: JourneyReporting, userId: string, messageId: string, at?: number): Promise<boolean>;
|
|
55
|
-
//#endregion
|
|
56
54
|
//# sourceMappingURL=tracking.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tracking.d.cts","names":[],"sources":["../../src/reporting/tracking.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tracking.d.cts","names":[],"sources":["../../src/reporting/tracking.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;iBA0BiB;;EAEf;;EAEA;;EAEA,eACM;IAAQ;IAAmB;IAAgB;QAAiB;;;;;;EAOlE,mBACM;IAAe;IAAmB;IAAgB;QAAiB;;;wBAgCrD,eACpB,SAAS,SACT,WAAW,kBACX,UAAS,kBACR,QAAQ;;;;;;wBAoFW,eACpB,WAAW,kBACX,gBACA,mBACA,cACC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { JourneyReporting } from "../store/index.mjs";
|
|
2
|
-
//#region src/reporting/tracking.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* The endpoints a journey email's tracking points at (see ./observer.ts), served by journeyWorker
|
|
5
4
|
* without a bearer — recipients open them:
|
|
@@ -52,5 +51,4 @@ export declare function handleTracking(request: Request, reporting: JourneyRepor
|
|
|
52
51
|
* notification. False when the message is unknown or not the user's.
|
|
53
52
|
*/
|
|
54
53
|
export declare function recordPushOpen(reporting: JourneyReporting, userId: string, messageId: string, at?: number): Promise<boolean>;
|
|
55
|
-
//#endregion
|
|
56
54
|
//# sourceMappingURL=tracking.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tracking.d.mts","names":[],"sources":["../../src/reporting/tracking.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tracking.d.mts","names":[],"sources":["../../src/reporting/tracking.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;iBA0BiB;;EAEf;;EAEA;;EAEA,eACM;IAAQ;IAAmB;IAAgB;QAAiB;;;;;;EAOlE,mBACM;IAAe;IAAmB;IAAgB;QAAiB;;;wBAgCrD,eACpB,SAAS,SACT,WAAW,kBACX,UAAS,kBACR,QAAQ;;;;;;wBAoFW,eACpB,WAAW,kBACX,gBACA,mBACA,cACC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BURST_WINDOW_MS, classifyClick, classifyOpen } from "./classify.mjs";
|
|
2
|
-
|
|
2
|
+
// src/reporting/tracking.ts
|
|
3
3
|
const GIF = Uint8Array.from(atob("R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"), (char) => char.charCodeAt(0));
|
|
4
4
|
const UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
5
5
|
function requester(request) {
|
|
@@ -155,7 +155,6 @@ function page(options, message, status = 200, extra = "") {
|
|
|
155
155
|
headers: { "content-type": "text/html; charset=utf-8" }
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
|
-
//#endregion
|
|
159
158
|
export { handleTracking, recordPushOpen };
|
|
160
159
|
|
|
161
160
|
//# sourceMappingURL=tracking.mjs.map
|
package/dist/runtime.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
|
|
2
|
+
// src/runtime.ts
|
|
3
3
|
const DEFAULTS = {
|
|
4
4
|
timeScale: 1,
|
|
5
5
|
logMessages: false
|
|
@@ -13,7 +13,6 @@ function resolveRuntime(config, mode) {
|
|
|
13
13
|
logMessages: entry.logMessages ?? DEFAULTS.logMessages
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
|
-
//#endregion
|
|
17
16
|
exports.resolveRuntime = resolveRuntime;
|
|
18
17
|
|
|
19
18
|
//# sourceMappingURL=runtime.cjs.map
|
package/dist/runtime.d.cts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/runtime.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Runtime options — how the engine should behave in a given environment, as
|
|
4
3
|
* typed configuration rather than loose environment variables. A project keeps
|
|
@@ -26,5 +25,4 @@ export type JourneyMode = 'development' | 'production' | (string & {});
|
|
|
26
25
|
export type JourneyRuntimeConfig = Partial<Record<JourneyMode, JourneyRuntimeOptions>>;
|
|
27
26
|
/** The options for `mode`, defaults filled in; `config` may be absent altogether. */
|
|
28
27
|
export declare function resolveRuntime(config: JourneyRuntimeConfig | undefined, mode: JourneyMode): Required<JourneyRuntimeOptions>;
|
|
29
|
-
//#endregion
|
|
30
28
|
//# sourceMappingURL=runtime.d.cts.map
|
package/dist/runtime.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.cts","names":[],"sources":["../src/runtime.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"runtime.d.cts","names":[],"sources":["../src/runtime.ts"],"mappings":";;;;;;;;;;iBAWiB;;;;;;;EAOf;;EAEA;;;YAIU;;YAGA,uBAAuB,QAAQ,OAAO,aAAa;;wBAK/C,eACd,QAAQ,kCACR,MAAM,cACL,SAAS"}
|
package/dist/runtime.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/runtime.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Runtime options — how the engine should behave in a given environment, as
|
|
4
3
|
* typed configuration rather than loose environment variables. A project keeps
|
|
@@ -26,5 +25,4 @@ export type JourneyMode = 'development' | 'production' | (string & {});
|
|
|
26
25
|
export type JourneyRuntimeConfig = Partial<Record<JourneyMode, JourneyRuntimeOptions>>;
|
|
27
26
|
/** The options for `mode`, defaults filled in; `config` may be absent altogether. */
|
|
28
27
|
export declare function resolveRuntime(config: JourneyRuntimeConfig | undefined, mode: JourneyMode): Required<JourneyRuntimeOptions>;
|
|
29
|
-
//#endregion
|
|
30
28
|
//# sourceMappingURL=runtime.d.mts.map
|
package/dist/runtime.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.mts","names":[],"sources":["../src/runtime.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"runtime.d.mts","names":[],"sources":["../src/runtime.ts"],"mappings":";;;;;;;;;;iBAWiB;;;;;;;EAOf;;EAEA;;;YAIU;;YAGA,uBAAuB,QAAQ,OAAO,aAAa;;wBAK/C,eACd,QAAQ,kCACR,MAAM,cACL,SAAS"}
|
package/dist/runtime.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/runtime.ts
|
|
2
2
|
const DEFAULTS = {
|
|
3
3
|
timeScale: 1,
|
|
4
4
|
logMessages: false
|
|
@@ -12,7 +12,6 @@ function resolveRuntime(config, mode) {
|
|
|
12
12
|
logMessages: entry.logMessages ?? DEFAULTS.logMessages
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
//#endregion
|
|
16
15
|
export { resolveRuntime };
|
|
17
16
|
|
|
18
17
|
//# sourceMappingURL=runtime.mjs.map
|
package/dist/store/erasure.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
|
|
2
|
+
// src/store/erasure.ts
|
|
3
3
|
/**
|
|
4
4
|
* The user has an erasure tombstone — requested and under way, or carried out — so nothing may
|
|
5
5
|
* be written about them: a write that got through would come back after the erase, or bring an
|
|
@@ -16,7 +16,6 @@ var UserErasedError = class extends Error {
|
|
|
16
16
|
this.userId = userId;
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
|
-
//#endregion
|
|
20
19
|
exports.UserErasedError = UserErasedError;
|
|
21
20
|
|
|
22
21
|
//# sourceMappingURL=erasure.cjs.map
|
package/dist/store/erasure.d.cts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/store/erasure.d.ts
|
|
2
1
|
/** Where a user stands with erasure: see `JourneyStore.erasureState`. */
|
|
3
2
|
export type ErasureState = 'none' | 'erasing' | 'erased';
|
|
4
3
|
/**
|
|
@@ -14,5 +13,4 @@ export declare class UserErasedError extends Error {
|
|
|
14
13
|
readonly retryable = false;
|
|
15
14
|
constructor(userId: string);
|
|
16
15
|
}
|
|
17
|
-
//#endregion
|
|
18
16
|
//# sourceMappingURL=erasure.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"erasure.d.cts","names":[],"sources":["../../src/store/erasure.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"erasure.d.cts","names":[],"sources":["../../src/store/erasure.ts"],"mappings":";YACY;;;;;;;qBAQC,wBAAwB;WAId;WAHH;;WAET;EACT,YAAqB"}
|
package/dist/store/erasure.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/store/erasure.d.ts
|
|
2
1
|
/** Where a user stands with erasure: see `JourneyStore.erasureState`. */
|
|
3
2
|
export type ErasureState = 'none' | 'erasing' | 'erased';
|
|
4
3
|
/**
|
|
@@ -14,5 +13,4 @@ export declare class UserErasedError extends Error {
|
|
|
14
13
|
readonly retryable = false;
|
|
15
14
|
constructor(userId: string);
|
|
16
15
|
}
|
|
17
|
-
//#endregion
|
|
18
16
|
//# sourceMappingURL=erasure.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"erasure.d.mts","names":[],"sources":["../../src/store/erasure.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"erasure.d.mts","names":[],"sources":["../../src/store/erasure.ts"],"mappings":";YACY;;;;;;;qBAQC,wBAAwB;WAId;WAHH;;WAET;EACT,YAAqB"}
|
package/dist/store/erasure.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/store/erasure.ts
|
|
2
2
|
/**
|
|
3
3
|
* The user has an erasure tombstone — requested and under way, or carried out — so nothing may
|
|
4
4
|
* be written about them: a write that got through would come back after the erase, or bring an
|
|
@@ -15,7 +15,6 @@ var UserErasedError = class extends Error {
|
|
|
15
15
|
this.userId = userId;
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
|
-
//#endregion
|
|
19
18
|
export { UserErasedError };
|
|
20
19
|
|
|
21
20
|
//# sourceMappingURL=erasure.mjs.map
|
package/dist/store/facts.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_engine_condition = require("../engine/condition.cjs");
|
|
3
|
-
|
|
3
|
+
// src/store/facts.ts
|
|
4
4
|
/** The profile path that reads the user's own id (`u.userId`). */
|
|
5
5
|
const USER_ID_PROPERTY = "userId";
|
|
6
6
|
/** Single-user fact source over a JourneyStore: evaluation lives in engine/condition.ts, this only reads. */
|
|
@@ -53,7 +53,6 @@ var JourneyFactSource = class {
|
|
|
53
53
|
return this.store.listDevices(this.userId);
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
|
-
//#endregion
|
|
57
56
|
exports.JourneyFactSource = JourneyFactSource;
|
|
58
57
|
exports.USER_ID_PROPERTY = USER_ID_PROPERTY;
|
|
59
58
|
|
package/dist/store/facts.d.cts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ConditionIR, ScalarIR } from "../ir.cjs";
|
|
2
2
|
import { FactSource, PushDevice } from "../engine/ports.cjs";
|
|
3
3
|
import { JourneyStore } from "./index.cjs";
|
|
4
|
-
//#region src/store/facts.d.ts
|
|
5
4
|
/** The profile path that reads the user's own id (`u.userId`). */
|
|
6
5
|
export declare const USER_ID_PROPERTY = "userId";
|
|
7
6
|
/** Single-user fact source over a JourneyStore: evaluation lives in engine/condition.ts, this only reads. */
|
|
@@ -34,5 +33,4 @@ export declare class JourneyFactSource implements FactSource {
|
|
|
34
33
|
isSuppressed(channel: string): Promise<boolean>;
|
|
35
34
|
listDevices(): Promise<PushDevice[]>;
|
|
36
35
|
}
|
|
37
|
-
//#endregion
|
|
38
36
|
//# sourceMappingURL=facts.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"facts.d.cts","names":[],"sources":["../../src/store/facts.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"facts.d.cts","names":[],"sources":["../../src/store/facts.ts"],"mappings":";;;;qBAMa;;qBAGA,6BAA6B;mBAErB;mBACA;EAFnB,YACmB,OAAO,cACP;EAGb,YACJ,eACA;IAAS;IAAkB;IAAkB,QAAQ;MACpD;;;;;;;;;;;;;;;EA2BG,YAAY,eAAe,QAAQ;EAoBzC,oBAAoB,eAAe,QAAQ;;EAKrC,aAAa,kBAAkB;EAIrC,eAAe,QAAQ"}
|
package/dist/store/facts.d.mts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ConditionIR, ScalarIR } from "../ir.mjs";
|
|
2
2
|
import { FactSource, PushDevice } from "../engine/ports.mjs";
|
|
3
3
|
import { JourneyStore } from "./index.mjs";
|
|
4
|
-
//#region src/store/facts.d.ts
|
|
5
4
|
/** The profile path that reads the user's own id (`u.userId`). */
|
|
6
5
|
export declare const USER_ID_PROPERTY = "userId";
|
|
7
6
|
/** Single-user fact source over a JourneyStore: evaluation lives in engine/condition.ts, this only reads. */
|
|
@@ -34,5 +33,4 @@ export declare class JourneyFactSource implements FactSource {
|
|
|
34
33
|
isSuppressed(channel: string): Promise<boolean>;
|
|
35
34
|
listDevices(): Promise<PushDevice[]>;
|
|
36
35
|
}
|
|
37
|
-
//#endregion
|
|
38
36
|
//# sourceMappingURL=facts.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"facts.d.mts","names":[],"sources":["../../src/store/facts.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"facts.d.mts","names":[],"sources":["../../src/store/facts.ts"],"mappings":";;;;qBAMa;;qBAGA,6BAA6B;mBAErB;mBACA;EAFnB,YACmB,OAAO,cACP;EAGb,YACJ,eACA;IAAS;IAAkB;IAAkB,QAAQ;MACpD;;;;;;;;;;;;;;;EA2BG,YAAY,eAAe,QAAQ;EAoBzC,oBAAoB,eAAe,QAAQ;;EAKrC,aAAa,kBAAkB;EAIrC,eAAe,QAAQ"}
|
package/dist/store/facts.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { matchesWhere } from "../engine/condition.mjs";
|
|
2
|
-
|
|
2
|
+
// src/store/facts.ts
|
|
3
3
|
/** The profile path that reads the user's own id (`u.userId`). */
|
|
4
4
|
const USER_ID_PROPERTY = "userId";
|
|
5
5
|
/** Single-user fact source over a JourneyStore: evaluation lives in engine/condition.ts, this only reads. */
|
|
@@ -52,7 +52,6 @@ var JourneyFactSource = class {
|
|
|
52
52
|
return this.store.listDevices(this.userId);
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
|
-
//#endregion
|
|
56
55
|
export { JourneyFactSource, USER_ID_PROPERTY };
|
|
57
56
|
|
|
58
57
|
//# sourceMappingURL=facts.mjs.map
|
package/dist/store/index.cjs
CHANGED
|
@@ -4,7 +4,7 @@ const require_store_postgres_reporting = require("./postgres-reporting.cjs");
|
|
|
4
4
|
const require_store_tables = require("./tables.cjs");
|
|
5
5
|
const require_store_postgres = require("./postgres.cjs");
|
|
6
6
|
const require_store_facts = require("./facts.cjs");
|
|
7
|
-
|
|
7
|
+
// src/store/index.ts
|
|
8
8
|
/**
|
|
9
9
|
* The live database lacks tables or columns the engine reads (an SDK upgrade added them, or the
|
|
10
10
|
* host never ran the migration). Raised before a deploy writes anything.
|
|
@@ -17,7 +17,6 @@ var SchemaMismatchError = class extends Error {
|
|
|
17
17
|
this.problems = problems;
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
-
//#endregion
|
|
21
20
|
exports.DEFAULT_SCHEMA = require_store_tables.DEFAULT_SCHEMA;
|
|
22
21
|
exports.JourneyFactSource = require_store_facts.JourneyFactSource;
|
|
23
22
|
exports.PostgresJourneyStore = require_store_postgres.PostgresJourneyStore;
|