@walkeros/web-destination-api 0.0.0-next-20251219153324

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.
@@ -0,0 +1,45 @@
1
+ import { Mapping as Mapping$1 } from '@walkeros/core';
2
+ import { DestinationWeb, sendWeb } from '@walkeros/web-core';
3
+
4
+ interface Mapping {
5
+ }
6
+ interface Env extends DestinationWeb.Env {
7
+ sendWeb?: typeof sendWeb;
8
+ }
9
+ type Rule = Mapping$1.Rule<Mapping>;
10
+
11
+ declare const init: Env | undefined;
12
+ declare const push: Env;
13
+ /**
14
+ * Simulation tracking paths
15
+ * Specifies which function calls to track during simulation
16
+ */
17
+ declare const simulation: string[];
18
+
19
+ declare const env_init: typeof init;
20
+ declare const env_push: typeof push;
21
+ declare const env_simulation: typeof simulation;
22
+ declare namespace env {
23
+ export { env_init as init, env_push as push, env_simulation as simulation };
24
+ }
25
+
26
+ declare function entity_action$1(): string;
27
+
28
+ declare namespace events {
29
+ export { entity_action$1 as entity_action };
30
+ }
31
+
32
+ declare const entity_action: Rule;
33
+ declare const config: {
34
+ entity: {
35
+ action: Rule;
36
+ };
37
+ };
38
+
39
+ declare const mapping_config: typeof config;
40
+ declare const mapping_entity_action: typeof entity_action;
41
+ declare namespace mapping {
42
+ export { mapping_config as config, mapping_entity_action as entity_action };
43
+ }
44
+
45
+ export { env, events, mapping };
@@ -0,0 +1,45 @@
1
+ import { Mapping as Mapping$1 } from '@walkeros/core';
2
+ import { DestinationWeb, sendWeb } from '@walkeros/web-core';
3
+
4
+ interface Mapping {
5
+ }
6
+ interface Env extends DestinationWeb.Env {
7
+ sendWeb?: typeof sendWeb;
8
+ }
9
+ type Rule = Mapping$1.Rule<Mapping>;
10
+
11
+ declare const init: Env | undefined;
12
+ declare const push: Env;
13
+ /**
14
+ * Simulation tracking paths
15
+ * Specifies which function calls to track during simulation
16
+ */
17
+ declare const simulation: string[];
18
+
19
+ declare const env_init: typeof init;
20
+ declare const env_push: typeof push;
21
+ declare const env_simulation: typeof simulation;
22
+ declare namespace env {
23
+ export { env_init as init, env_push as push, env_simulation as simulation };
24
+ }
25
+
26
+ declare function entity_action$1(): string;
27
+
28
+ declare namespace events {
29
+ export { entity_action$1 as entity_action };
30
+ }
31
+
32
+ declare const entity_action: Rule;
33
+ declare const config: {
34
+ entity: {
35
+ action: Rule;
36
+ };
37
+ };
38
+
39
+ declare const mapping_config: typeof config;
40
+ declare const mapping_entity_action: typeof entity_action;
41
+ declare namespace mapping {
42
+ export { mapping_config as config, mapping_entity_action as entity_action };
43
+ }
44
+
45
+ export { env, events, mapping };
@@ -0,0 +1,112 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/examples/index.ts
21
+ var examples_exports = {};
22
+ __export(examples_exports, {
23
+ env: () => env_exports,
24
+ events: () => events_exports,
25
+ mapping: () => mapping_exports
26
+ });
27
+ module.exports = __toCommonJS(examples_exports);
28
+
29
+ // src/examples/env.ts
30
+ var env_exports = {};
31
+ __export(env_exports, {
32
+ init: () => init,
33
+ push: () => push,
34
+ simulation: () => simulation
35
+ });
36
+ var noop = () => {
37
+ };
38
+ var init = {
39
+ // Environment before initialization (sendWeb not configured yet)
40
+ sendWeb: void 0
41
+ };
42
+ var push = {
43
+ // Standard mock environment for testing
44
+ sendWeb: Object.assign(noop, {
45
+ // Add any specific properties if needed for sendWeb
46
+ })
47
+ };
48
+ var simulation = [
49
+ "call:sendWeb"
50
+ // Track sendWeb function calls
51
+ ];
52
+
53
+ // src/examples/events.ts
54
+ var events_exports = {};
55
+ __export(events_exports, {
56
+ entity_action: () => entity_action
57
+ });
58
+
59
+ // ../../../core/dist/index.mjs
60
+ var e = Object.defineProperty;
61
+ var c = {};
62
+ ((t, n) => {
63
+ for (var r in n) e(t, r, { get: n[r], enumerable: true });
64
+ })(c, { Level: () => a });
65
+ var a = ((e2) => (e2[e2.ERROR = 0] = "ERROR", e2[e2.INFO = 1] = "INFO", e2[e2.DEBUG = 2] = "DEBUG", e2))(a || {});
66
+ var E = { merge: true, shallow: true, extend: true };
67
+ function S(e2, t = {}, n = {}) {
68
+ n = { ...E, ...n };
69
+ const r = Object.entries(t).reduce((t2, [r2, o]) => {
70
+ const i = e2[r2];
71
+ return n.merge && Array.isArray(i) && Array.isArray(o) ? t2[r2] = o.reduce((e3, t3) => e3.includes(t3) ? e3 : [...e3, t3], [...i]) : (n.extend || r2 in e2) && (t2[r2] = o), t2;
72
+ }, {});
73
+ return n.shallow ? { ...e2, ...r } : (Object.assign(e2, r), e2);
74
+ }
75
+ function W(e2 = {}) {
76
+ var _a;
77
+ const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = e2.group || "gr0up", r = e2.count || 1, o = S({ name: "entity action", data: { string: "foo", number: 1, boolean: true, array: [0, "text", false], not: void 0 }, context: { dev: ["test", 1] }, globals: { lang: "elb" }, custom: { completely: "random" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n" }, nested: [{ entity: "child", data: { is: "subordinated" }, nested: [], context: { element: ["child", 0] } }], consent: { functional: true }, id: `${t}-${n}-${r}`, trigger: "test", entity: "entity", action: "action", timestamp: t, timing: 3.14, group: n, count: r, version: { source: "0.5.1-next.0", tagging: 1 }, source: { type: "web", id: "https://localhost:80", previous_id: "http://remotehost:9001" } }, e2, { merge: false });
78
+ if (e2.name) {
79
+ const [t2, n2] = (_a = e2.name.split(" ")) != null ? _a : [];
80
+ t2 && n2 && (o.entity = t2, o.action = n2);
81
+ }
82
+ return o;
83
+ }
84
+ function B(e2 = "entity action", t = {}) {
85
+ const n = t.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), r = { data: { id: "ers", name: "Everyday Ruck Snack", color: "black", size: "l", price: 420 } }, o = { data: { id: "cc", name: "Cool Cap", size: "one size", price: 42 } };
86
+ return W({ ...{ "cart view": { data: { currency: "EUR", value: 2 * r.data.price }, context: { shopping: ["cart", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", data: { ...r.data, quantity: 2 }, context: { shopping: ["cart", 0] }, nested: [] }], trigger: "load" }, "checkout view": { data: { step: "payment", currency: "EUR", value: r.data.price + o.data.price }, context: { shopping: ["checkout", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", ...r, context: { shopping: ["checkout", 0] }, nested: [] }, { entity: "product", ...o, context: { shopping: ["checkout", 0] }, nested: [] }], trigger: "load" }, "order complete": { data: { id: "0rd3r1d", currency: "EUR", shipping: 5.22, taxes: 73.76, total: 555 }, context: { shopping: ["complete", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", ...r, context: { shopping: ["complete", 0] }, nested: [] }, { entity: "product", ...o, context: { shopping: ["complete", 0] }, nested: [] }, { entity: "gift", data: { name: "Surprise" }, context: { shopping: ["complete", 0] }, nested: [] }], trigger: "load" }, "page view": { data: { domain: "www.example.com", title: "walkerOS documentation", referrer: "https://www.walkeros.io/", search: "?foo=bar", hash: "#hash", id: "/docs/" }, globals: { pagegroup: "docs" }, trigger: "load" }, "product add": { ...r, context: { shopping: ["intent", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "click" }, "product view": { ...r, context: { shopping: ["detail", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "load" }, "product visible": { data: { ...r.data, position: 3, promo: true }, context: { shopping: ["discover", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "load" }, "promotion visible": { data: { name: "Setting up tracking easily", position: "hero" }, context: { ab_test: ["engagement", 0] }, globals: { pagegroup: "homepage" }, trigger: "visible" }, "session start": { data: { id: "s3ss10n", start: n, isNew: true, count: 1, runs: 1, isStart: true, storage: true, referrer: "", device: "c00k13" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n", hash: "h4sh", address: "street number", email: "user@example.com", phone: "+49 123 456 789", userAgent: "Mozilla...", browser: "Chrome", browserVersion: "90", deviceType: "desktop", language: "de-DE", country: "DE", region: "HH", city: "Hamburg", zip: "20354", timezone: "Berlin", os: "walkerOS", osVersion: "1.0", screenSize: "1337x420", ip: "127.0.0.0", internal: true, custom: "value" } } }[e2], ...t, name: e2 });
87
+ }
88
+
89
+ // src/examples/events.ts
90
+ function entity_action() {
91
+ const event = B("entity action");
92
+ return JSON.stringify(event.data);
93
+ }
94
+
95
+ // src/examples/mapping.ts
96
+ var mapping_exports = {};
97
+ __export(mapping_exports, {
98
+ config: () => config,
99
+ entity_action: () => entity_action2
100
+ });
101
+ var entity_action2 = {
102
+ data: "data"
103
+ };
104
+ var config = {
105
+ entity: { action: entity_action2 }
106
+ };
107
+ // Annotate the CommonJS export names for ESM import in node:
108
+ 0 && (module.exports = {
109
+ env,
110
+ events,
111
+ mapping
112
+ });
@@ -0,0 +1,89 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __export = (target, all) => {
3
+ for (var name in all)
4
+ __defProp(target, name, { get: all[name], enumerable: true });
5
+ };
6
+
7
+ // src/examples/env.ts
8
+ var env_exports = {};
9
+ __export(env_exports, {
10
+ init: () => init,
11
+ push: () => push,
12
+ simulation: () => simulation
13
+ });
14
+ var noop = () => {
15
+ };
16
+ var init = {
17
+ // Environment before initialization (sendWeb not configured yet)
18
+ sendWeb: void 0
19
+ };
20
+ var push = {
21
+ // Standard mock environment for testing
22
+ sendWeb: Object.assign(noop, {
23
+ // Add any specific properties if needed for sendWeb
24
+ })
25
+ };
26
+ var simulation = [
27
+ "call:sendWeb"
28
+ // Track sendWeb function calls
29
+ ];
30
+
31
+ // src/examples/events.ts
32
+ var events_exports = {};
33
+ __export(events_exports, {
34
+ entity_action: () => entity_action
35
+ });
36
+
37
+ // ../../../core/dist/index.mjs
38
+ var e = Object.defineProperty;
39
+ var c = {};
40
+ ((t, n) => {
41
+ for (var r in n) e(t, r, { get: n[r], enumerable: true });
42
+ })(c, { Level: () => a });
43
+ var a = ((e2) => (e2[e2.ERROR = 0] = "ERROR", e2[e2.INFO = 1] = "INFO", e2[e2.DEBUG = 2] = "DEBUG", e2))(a || {});
44
+ var E = { merge: true, shallow: true, extend: true };
45
+ function S(e2, t = {}, n = {}) {
46
+ n = { ...E, ...n };
47
+ const r = Object.entries(t).reduce((t2, [r2, o]) => {
48
+ const i = e2[r2];
49
+ return n.merge && Array.isArray(i) && Array.isArray(o) ? t2[r2] = o.reduce((e3, t3) => e3.includes(t3) ? e3 : [...e3, t3], [...i]) : (n.extend || r2 in e2) && (t2[r2] = o), t2;
50
+ }, {});
51
+ return n.shallow ? { ...e2, ...r } : (Object.assign(e2, r), e2);
52
+ }
53
+ function W(e2 = {}) {
54
+ var _a;
55
+ const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = e2.group || "gr0up", r = e2.count || 1, o = S({ name: "entity action", data: { string: "foo", number: 1, boolean: true, array: [0, "text", false], not: void 0 }, context: { dev: ["test", 1] }, globals: { lang: "elb" }, custom: { completely: "random" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n" }, nested: [{ entity: "child", data: { is: "subordinated" }, nested: [], context: { element: ["child", 0] } }], consent: { functional: true }, id: `${t}-${n}-${r}`, trigger: "test", entity: "entity", action: "action", timestamp: t, timing: 3.14, group: n, count: r, version: { source: "0.5.1-next.0", tagging: 1 }, source: { type: "web", id: "https://localhost:80", previous_id: "http://remotehost:9001" } }, e2, { merge: false });
56
+ if (e2.name) {
57
+ const [t2, n2] = (_a = e2.name.split(" ")) != null ? _a : [];
58
+ t2 && n2 && (o.entity = t2, o.action = n2);
59
+ }
60
+ return o;
61
+ }
62
+ function B(e2 = "entity action", t = {}) {
63
+ const n = t.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), r = { data: { id: "ers", name: "Everyday Ruck Snack", color: "black", size: "l", price: 420 } }, o = { data: { id: "cc", name: "Cool Cap", size: "one size", price: 42 } };
64
+ return W({ ...{ "cart view": { data: { currency: "EUR", value: 2 * r.data.price }, context: { shopping: ["cart", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", data: { ...r.data, quantity: 2 }, context: { shopping: ["cart", 0] }, nested: [] }], trigger: "load" }, "checkout view": { data: { step: "payment", currency: "EUR", value: r.data.price + o.data.price }, context: { shopping: ["checkout", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", ...r, context: { shopping: ["checkout", 0] }, nested: [] }, { entity: "product", ...o, context: { shopping: ["checkout", 0] }, nested: [] }], trigger: "load" }, "order complete": { data: { id: "0rd3r1d", currency: "EUR", shipping: 5.22, taxes: 73.76, total: 555 }, context: { shopping: ["complete", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", ...r, context: { shopping: ["complete", 0] }, nested: [] }, { entity: "product", ...o, context: { shopping: ["complete", 0] }, nested: [] }, { entity: "gift", data: { name: "Surprise" }, context: { shopping: ["complete", 0] }, nested: [] }], trigger: "load" }, "page view": { data: { domain: "www.example.com", title: "walkerOS documentation", referrer: "https://www.walkeros.io/", search: "?foo=bar", hash: "#hash", id: "/docs/" }, globals: { pagegroup: "docs" }, trigger: "load" }, "product add": { ...r, context: { shopping: ["intent", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "click" }, "product view": { ...r, context: { shopping: ["detail", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "load" }, "product visible": { data: { ...r.data, position: 3, promo: true }, context: { shopping: ["discover", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "load" }, "promotion visible": { data: { name: "Setting up tracking easily", position: "hero" }, context: { ab_test: ["engagement", 0] }, globals: { pagegroup: "homepage" }, trigger: "visible" }, "session start": { data: { id: "s3ss10n", start: n, isNew: true, count: 1, runs: 1, isStart: true, storage: true, referrer: "", device: "c00k13" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n", hash: "h4sh", address: "street number", email: "user@example.com", phone: "+49 123 456 789", userAgent: "Mozilla...", browser: "Chrome", browserVersion: "90", deviceType: "desktop", language: "de-DE", country: "DE", region: "HH", city: "Hamburg", zip: "20354", timezone: "Berlin", os: "walkerOS", osVersion: "1.0", screenSize: "1337x420", ip: "127.0.0.0", internal: true, custom: "value" } } }[e2], ...t, name: e2 });
65
+ }
66
+
67
+ // src/examples/events.ts
68
+ function entity_action() {
69
+ const event = B("entity action");
70
+ return JSON.stringify(event.data);
71
+ }
72
+
73
+ // src/examples/mapping.ts
74
+ var mapping_exports = {};
75
+ __export(mapping_exports, {
76
+ config: () => config,
77
+ entity_action: () => entity_action2
78
+ });
79
+ var entity_action2 = {
80
+ data: "data"
81
+ };
82
+ var config = {
83
+ entity: { action: entity_action2 }
84
+ };
85
+ export {
86
+ env_exports as env,
87
+ events_exports as events,
88
+ mapping_exports as mapping
89
+ };
@@ -0,0 +1 @@
1
+ "use strict";var Walkerjs=(()=>{var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,o={};((t,r)=>{for(var n in r)e(t,n,{get:r[n],enumerable:!0})})(o,{DestinationAPI:()=>y,default:()=>g,destinationAPI:()=>h});var s=Object.defineProperty;((e,t)=>{for(var r in t)s(e,r,{get:t[r],enumerable:!0})})({},{Level:()=>i});var a,i=((a=i||{})[a.ERROR=0]="ERROR",a[a.INFO=1]="INFO",a[a.DEBUG=2]="DEBUG",a),c={merge:!0,shallow:!0,extend:!0};function u(e,t,r){return function(...n){try{return e(...n)}catch(e){if(!t)return;return t(e)}finally{null==r||r()}}}function f(e){return void 0===e||function(e,t){return typeof e==typeof t}(e,"")?e:JSON.stringify(e)}function d(e={}){return function(e,t={},r={}){r={...c,...r};const n=Object.entries(t).reduce((t,[n,o])=>{const s=e[n];return r.merge&&Array.isArray(s)&&Array.isArray(o)?t[n]=o.reduce((e,t)=>e.includes(t)?e:[...e,t],[...s]):(r.extend||n in e)&&(t[n]=o),t},{});return r.shallow?{...e,...n}:(Object.assign(e,n),e)}({"Content-Type":"application/json; charset=utf-8"},e)}function l(e,t,r={transport:"fetch"}){switch(r.transport||"fetch"){case"beacon":return function(e,t){const r=f(t),n=navigator.sendBeacon(e,r);return{ok:n,error:n?void 0:"Failed to send beacon"}}(e,t);case"xhr":return function(e,t,r={}){const n=d(r.headers),o=r.method||"POST",s=f(t);return u(()=>{const t=new XMLHttpRequest;t.open(o,e,!1);for(const e in n)t.setRequestHeader(e,n[e]);t.send(s);const r=t.status>=200&&t.status<300;return{ok:r,data:u(JSON.parse,()=>t.response)(t.response),error:r?void 0:`${t.status} ${t.statusText}`}},e=>({ok:!1,error:e.message}))()}(e,t,r);default:return async function(e,t,r={}){const n=d(r.headers),o=f(t);return function(e,t,r){return async function(...n){try{return await e(...n)}catch(e){if(!t)return;return await t(e)}finally{await(null==r?void 0:r())}}}(async()=>{const t=await fetch(e,{method:r.method||"POST",headers:n,keepalive:!0,credentials:r.credentials||"same-origin",mode:r.noCors?"no-cors":"cors",body:o}),s=r.noCors?"":await t.text();return{ok:t.ok,data:s,error:t.ok?void 0:t.statusText}},e=>({ok:!1,error:e.message}))()}(e,t,r)}}var p,y={},h={type:"api",config:{},push(e,{config:t,mapping:r,data:n,env:o,logger:s}){const{settings:a}=t,{url:i,headers:c,method:u,transform:f,transport:d="fetch"}=a||{};i||s.throw("Config settings url missing");const p=function(e){return void 0!==e}(n)?n:e,y=f?f(p,t,r):JSON.stringify(p);((null==o?void 0:o.sendWeb)||l)(i,y,{headers:c,method:u,transport:d})}},g=h;return p=o,((o,s,a,i)=>{if(s&&"object"==typeof s||"function"==typeof s)for(let c of r(s))n.call(o,c)||c===a||e(o,c,{get:()=>s[c],enumerable:!(i=t(s,c))||i.enumerable});return o})(e({},"__esModule",{value:!0}),p)})();
@@ -0,0 +1,40 @@
1
+ import { Destination as Destination$1, SendHeaders, Mapping as Mapping$1, SendDataValue } from '@walkeros/core';
2
+ import { DestinationWeb, SendWebTransport, sendWeb } from '@walkeros/web-core';
3
+
4
+ interface Settings {
5
+ url: string;
6
+ headers?: SendHeaders;
7
+ method?: string;
8
+ transform?: Transform;
9
+ transport?: SendWebTransport;
10
+ }
11
+ type InitSettings = Partial<Settings>;
12
+ interface Mapping {
13
+ }
14
+ interface Env extends DestinationWeb.Env {
15
+ sendWeb?: typeof sendWeb;
16
+ }
17
+ type Types = Destination$1.Types<Settings, Mapping, Env, InitSettings>;
18
+ type Destination = DestinationWeb.Destination<Types>;
19
+ type Config = DestinationWeb.Config<Types>;
20
+ type Rule = Mapping$1.Rule<Mapping>;
21
+ type Rules = Mapping$1.Rules<Rule>;
22
+ type Transform = (data?: unknown, config?: Config, mapping?: Mapping$1.Rule<Mapping>) => SendDataValue;
23
+
24
+ type index_Config = Config;
25
+ type index_Destination = Destination;
26
+ type index_Env = Env;
27
+ type index_InitSettings = InitSettings;
28
+ type index_Mapping = Mapping;
29
+ type index_Rule = Rule;
30
+ type index_Rules = Rules;
31
+ type index_Settings = Settings;
32
+ type index_Transform = Transform;
33
+ type index_Types = Types;
34
+ declare namespace index {
35
+ export type { index_Config as Config, index_Destination as Destination, index_Env as Env, index_InitSettings as InitSettings, index_Mapping as Mapping, index_Rule as Rule, index_Rules as Rules, index_Settings as Settings, index_Transform as Transform, index_Types as Types };
36
+ }
37
+
38
+ declare const destinationAPI: Destination;
39
+
40
+ export { index as DestinationAPI, destinationAPI as default, destinationAPI };
@@ -0,0 +1,40 @@
1
+ import { Destination as Destination$1, SendHeaders, Mapping as Mapping$1, SendDataValue } from '@walkeros/core';
2
+ import { DestinationWeb, SendWebTransport, sendWeb } from '@walkeros/web-core';
3
+
4
+ interface Settings {
5
+ url: string;
6
+ headers?: SendHeaders;
7
+ method?: string;
8
+ transform?: Transform;
9
+ transport?: SendWebTransport;
10
+ }
11
+ type InitSettings = Partial<Settings>;
12
+ interface Mapping {
13
+ }
14
+ interface Env extends DestinationWeb.Env {
15
+ sendWeb?: typeof sendWeb;
16
+ }
17
+ type Types = Destination$1.Types<Settings, Mapping, Env, InitSettings>;
18
+ type Destination = DestinationWeb.Destination<Types>;
19
+ type Config = DestinationWeb.Config<Types>;
20
+ type Rule = Mapping$1.Rule<Mapping>;
21
+ type Rules = Mapping$1.Rules<Rule>;
22
+ type Transform = (data?: unknown, config?: Config, mapping?: Mapping$1.Rule<Mapping>) => SendDataValue;
23
+
24
+ type index_Config = Config;
25
+ type index_Destination = Destination;
26
+ type index_Env = Env;
27
+ type index_InitSettings = InitSettings;
28
+ type index_Mapping = Mapping;
29
+ type index_Rule = Rule;
30
+ type index_Rules = Rules;
31
+ type index_Settings = Settings;
32
+ type index_Transform = Transform;
33
+ type index_Types = Types;
34
+ declare namespace index {
35
+ export type { index_Config as Config, index_Destination as Destination, index_Env as Env, index_InitSettings as InitSettings, index_Mapping as Mapping, index_Rule as Rule, index_Rules as Rules, index_Settings as Settings, index_Transform as Transform, index_Types as Types };
36
+ }
37
+
38
+ declare const destinationAPI: Destination;
39
+
40
+ export { index as DestinationAPI, destinationAPI as default, destinationAPI };
@@ -0,0 +1 @@
1
+ "use strict";function _array_like_to_array(r,e){(null==e||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}function _array_with_holes(r){if(Array.isArray(r))return r}function _array_without_holes(r){if(Array.isArray(r))return _array_like_to_array(r)}function asyncGeneratorStep(r,e,t,n,o,a,i){try{var u=r[a](i),c=u.value}catch(r){return void t(r)}u.done?e(c):Promise.resolve(c).then(n,o)}function _async_to_generator(r){return function(){var e=this,t=arguments;return new Promise(function(n,o){var a=r.apply(e,t);function i(r){asyncGeneratorStep(a,n,o,i,u,"next",r)}function u(r){asyncGeneratorStep(a,n,o,i,u,"throw",r)}i(void 0)})}}function _define_property(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function _iterable_to_array(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}function _iterable_to_array_limit(r,e){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var n,o,a=[],i=!0,u=!1;try{for(t=t.call(r);!(i=(n=t.next()).done)&&(a.push(n.value),!e||a.length!==e);i=!0);}catch(r){u=!0,o=r}finally{try{i||null==t.return||t.return()}finally{if(u)throw o}}return a}}function _non_iterable_rest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _non_iterable_spread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _object_spread(r){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{},n=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),n.forEach(function(e){_define_property(r,e,t[e])})}return r}function _sliced_to_array(r,e){return _array_with_holes(r)||_iterable_to_array_limit(r,e)||_unsupported_iterable_to_array(r,e)||_non_iterable_rest()}function _to_consumable_array(r){return _array_without_holes(r)||_iterable_to_array(r)||_unsupported_iterable_to_array(r)||_non_iterable_spread()}function _type_of(r){return r&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r}function _unsupported_iterable_to_array(r,e){if(r){if("string"==typeof r)return _array_like_to_array(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_array_like_to_array(r,e):void 0}}function _ts_generator(r,e){var t,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),u=Object.defineProperty;return u(i,"next",{value:c(0)}),u(i,"throw",{value:c(1)}),u(i,"return",{value:c(2)}),"function"==typeof Symbol&&u(i,Symbol.iterator,{value:function(){return this}}),i;function c(u){return function(c){return function(u){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(t=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=e.call(r,a)}catch(r){u=[6,r],n=0}finally{t=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}}var Walkerjs=function(){var r=function(r,e,t){return function(){for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];try{return r.apply(void 0,_to_consumable_array(o))}catch(r){if(!e)return;return e(r)}finally{null==t||t()}}},e=function(r,e,t){return function(){for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return _async_to_generator(function(){var n;return _ts_generator(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,4,6]),[4,r.apply(void 0,_to_consumable_array(o))];case 1:case 3:return[2,a.sent()];case 2:return n=a.sent(),e?[4,e(n)]:[2];case 4:return[4,null==t?void 0:t()];case 5:return a.sent(),[7];case 6:return[2]}})})()}},t=function(r){return void 0===r||function(r,e){return(void 0===r?"undefined":_type_of(r))==(void 0===e?"undefined":_type_of(e))}(r,"")?r:JSON.stringify(r)},n=function(){return function(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t=_object_spread({},v,t);var n=Object.entries(e).reduce(function(e,n){var o=_sliced_to_array(n,2),a=o[0],i=o[1],u=r[a];return t.merge&&Array.isArray(u)&&Array.isArray(i)?e[a]=i.reduce(function(r,e){return r.includes(e)?r:_to_consumable_array(r).concat([e])},_to_consumable_array(u)):(t.extend||a in r)&&(e[a]=i),e},{});return t.shallow?_object_spread({},r,n):(Object.assign(r,n),r)}({"Content-Type":"application/json; charset=utf-8"},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})},o=function(r,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{transport:"fetch"};switch(t.transport||"fetch"){case"beacon":return i(r,e);case"xhr":return u(r,e,t);default:return a(r,e,t)}},a=function(r,o){return _async_to_generator(function(r,o){var a,i,u,c=arguments;return _ts_generator(this,function(l){return i=n((a=c.length>2&&void 0!==c[2]?c[2]:{}).headers),u=t(o),[2,e(function(){return _async_to_generator(function(){var e,t,n;return _ts_generator(this,function(o){switch(o.label){case 0:return[4,fetch(r,{method:a.method||"POST",headers:i,keepalive:!0,credentials:a.credentials||"same-origin",mode:a.noCors?"no-cors":"cors",body:u})];case 1:return e=o.sent(),a.noCors?(n="",[3,4]):[3,2];case 2:return[4,e.text()];case 3:n=o.sent(),o.label=4;case 4:return t=n,[2,{ok:e.ok,data:t,error:e.ok?void 0:e.statusText}]}})})()},function(r){return{ok:!1,error:r.message}})()]})}).apply(this,arguments)},i=function(r,e){var n=t(e),o=navigator.sendBeacon(r,n);return{ok:o,error:o?void 0:"Failed to send beacon"}},u=function(e,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n(a.headers),u=a.method||"POST",c=t(o);return r(function(){var t=new XMLHttpRequest;for(var n in t.open(u,e,!1),i)t.setRequestHeader(n,i[n]);t.send(c);var o=t.status>=200&&t.status<300;return{ok:o,data:r(JSON.parse,function(){return t.response})(t.response),error:o?void 0:"".concat(t.status," ").concat(t.statusText)}},function(r){return{ok:!1,error:r.message}})()},c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,_={};!function(r,e){for(var t in e)c(r,t,{get:e[t],enumerable:!0})}(_,{DestinationAPI:function(){return h},default:function(){return g},destinationAPI:function(){return m}});var y=Object.defineProperty;!function(r,e){for(var t in e)y(r,t,{get:e[t],enumerable:!0})}({},{Level:function(){return b}});var d,p,b=((d=b||{})[d.ERROR=0]="ERROR",d[d.INFO=1]="INFO",d[d.DEBUG=2]="DEBUG",d),v={merge:!0,shallow:!0,extend:!0},h={},m={type:"api",config:{},push:function(r,e){var t=e.config,n=e.mapping,a=e.data,i=e.env,u=e.logger,c=t.settings||{},l=c.url,s=c.headers,f=c.method,_=c.transform,y=c.transport,d=void 0===y?"fetch":y;l||u.throw("Config settings url missing");var p=function(r){return void 0!==r}(a)?a:r,b=_?_(p,t,n):JSON.stringify(p);((null==i?void 0:i.sendWeb)||o)(l,b,{headers:s,method:f,transport:d})}},g=m;return p=_,function(r,e,t,n){if(e&&"object"===(void 0===e?"undefined":_type_of(e))||"function"==typeof e){var o=!0,a=!1,i=void 0;try{for(var u,_=function(){var o=u.value;f.call(r,o)||o===t||c(r,o,{get:function(){return e[o]},enumerable:!(n=l(e,o))||n.enumerable})},y=s(e)[Symbol.iterator]();!(o=(u=y.next()).done);o=!0)_()}catch(r){a=!0,i=r}finally{try{o||null==y.return||y.return()}finally{if(a)throw i}}}return r}(c({},"__esModule",{value:!0}),p)}();
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";var e,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,a={};((e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:!0})})(a,{DestinationAPI:()=>p,default:()=>c,destinationAPI:()=>u}),module.exports=(e=a,((e,a,i,s)=>{if(a&&"object"==typeof a||"function"==typeof a)for(let f of n(a))o.call(e,f)||f===i||t(e,f,{get:()=>a[f],enumerable:!(s=r(a,f))||s.enumerable});return e})(t({},"__esModule",{value:!0}),e));var i=Object.defineProperty;((e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})})({},{Level:()=>f});var s,f=((s=f||{})[s.ERROR=0]="ERROR",s[s.INFO=1]="INFO",s[s.DEBUG=2]="DEBUG",s);var l=require("@walkeros/web-core"),p={},u={type:"api",config:{},push(e,{config:t,mapping:r,data:n,env:o,logger:a}){const{settings:i}=t,{url:s,headers:f,method:p,transform:u,transport:c="fetch"}=i||{};s||a.throw("Config settings url missing");const d=function(e){return void 0!==e}(n)?n:e,g=u?u(d,t,r):JSON.stringify(d);((null==o?void 0:o.sendWeb)||l.sendWeb)(s,g,{headers:f,method:p,transport:c})}},c=u;//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts","../src/types/index.ts"],"sourcesContent":["import type { Settings, Destination, Env } from './types';\nimport { isDefined } from '@walkeros/core';\nimport { getEnv, sendWeb } from '@walkeros/web-core';\n\n// Types\nexport * as DestinationAPI from './types';\n\nexport const destinationAPI: Destination = {\n type: 'api',\n\n config: {},\n\n push(event, { config, mapping, data, env, logger }) {\n const { settings } = config;\n const {\n url,\n headers,\n method,\n transform,\n transport = 'fetch',\n } = settings || {};\n\n if (!url) logger.throw('Config settings url missing');\n\n const eventData = isDefined(data) ? data : event;\n const body = transform\n ? transform(eventData, config, mapping) // Transform event data\n : JSON.stringify(eventData);\n\n const sendWebFn = (env as Env)?.sendWeb || sendWeb;\n sendWebFn(url!, body, { headers, method, transport });\n },\n};\n\nexport default destinationAPI;\n","import type {\n Mapping as WalkerOSMapping,\n SendDataValue,\n SendHeaders,\n Destination as CoreDestination,\n} from '@walkeros/core';\nimport type { DestinationWeb, sendWeb } from '@walkeros/web-core';\nimport type { SendWebTransport } from '@walkeros/web-core';\n\nexport interface Settings {\n url: string;\n headers?: SendHeaders;\n method?: string;\n transform?: Transform;\n transport?: SendWebTransport;\n}\n\n// InitSettings: user input (all optional)\nexport type InitSettings = Partial<Settings>;\n\nexport interface Mapping {}\n\nexport interface Env extends DestinationWeb.Env {\n sendWeb?: typeof sendWeb;\n}\n\nexport type Types = CoreDestination.Types<Settings, Mapping, Env, InitSettings>;\n\nexport type Destination = DestinationWeb.Destination<Types>;\nexport type Config = DestinationWeb.Config<Types>;\n\nexport type Rule = WalkerOSMapping.Rule<Mapping>;\nexport type Rules = WalkerOSMapping.Rules<Rule>;\n\nexport type Transform = (\n data?: unknown,\n config?: Config,\n mapping?: WalkerOSMapping.Rule<Mapping>,\n) => SendDataValue;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;A;;;;;;;;;;;;;AAEA,sBAAgC;;;ACFhC;;;ADOO,IAAM,iBAA8B;AAAA,EACzC,MAAM;AAAA,EAEN,QAAQ,CAAC;AAAA,EAET,KAAK,OAAO,EAAE,QAAQ,SAAS,MAAM,KAAK,OAAO,GAAG;AAClD,UAAM,EAAE,SAAS,IAAI;AACrB,UAAM;AAAA,MACJ;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,YAAY;AAAA,IACd,IAAI,YAAY,CAAC;AAEjB,QAAI,CAAC,IAAK,QAAO,MAAM,6BAA6B;AAEpD,UAAM,YAAY,EAAU,IAAI,IAAI,OAAO;AAC3C,UAAM,OAAO,YACT,UAAU,WAAW,QAAQ,OAAO,IACpC,KAAK,UAAU,SAAS;AAE5B,UAAM,aAAa,2BAAa,YAAW;AAC3C,cAAU,KAAM,MAAM,EAAE,SAAS,QAAQ,UAAU,CAAC;AAAA,EACtD;AACF;AAEA,IAAO,gBAAQ;","names":[]}
package/dist/index.mjs ADDED
@@ -0,0 +1 @@
1
+ var e=Object.defineProperty;((t,r)=>{for(var n in r)e(t,n,{get:r[n],enumerable:!0})})({},{Level:()=>r});var t,r=((t=r||{})[t.ERROR=0]="ERROR",t[t.INFO=1]="INFO",t[t.DEBUG=2]="DEBUG",t),n={merge:!0,shallow:!0,extend:!0};function o(e,t,r){return function(...n){try{return e(...n)}catch(e){if(!t)return;return t(e)}finally{null==r||r()}}}function s(e){return void 0===e||function(e,t){return typeof e==typeof t}(e,"")?e:JSON.stringify(e)}function a(e={}){return function(e,t={},r={}){r={...n,...r};const o=Object.entries(t).reduce((t,[n,o])=>{const s=e[n];return r.merge&&Array.isArray(s)&&Array.isArray(o)?t[n]=o.reduce((e,t)=>e.includes(t)?e:[...e,t],[...s]):(r.extend||n in e)&&(t[n]=o),t},{});return r.shallow?{...e,...o}:(Object.assign(e,o),e)}({"Content-Type":"application/json; charset=utf-8"},e)}function i(e,t,r={transport:"fetch"}){switch(r.transport||"fetch"){case"beacon":return function(e,t){const r=s(t),n=navigator.sendBeacon(e,r);return{ok:n,error:n?void 0:"Failed to send beacon"}}(e,t);case"xhr":return function(e,t,r={}){const n=a(r.headers),i=r.method||"POST",c=s(t);return o(()=>{const t=new XMLHttpRequest;t.open(i,e,!1);for(const e in n)t.setRequestHeader(e,n[e]);t.send(c);const r=t.status>=200&&t.status<300;return{ok:r,data:o(JSON.parse,()=>t.response)(t.response),error:r?void 0:`${t.status} ${t.statusText}`}},e=>({ok:!1,error:e.message}))()}(e,t,r);default:return async function(e,t,r={}){const n=a(r.headers),o=s(t);return function(e,t,r){return async function(...n){try{return await e(...n)}catch(e){if(!t)return;return await t(e)}finally{await(null==r?void 0:r())}}}(async()=>{const t=await fetch(e,{method:r.method||"POST",headers:n,keepalive:!0,credentials:r.credentials||"same-origin",mode:r.noCors?"no-cors":"cors",body:o}),s=r.noCors?"":await t.text();return{ok:t.ok,data:s,error:t.ok?void 0:t.statusText}},e=>({ok:!1,error:e.message}))()}(e,t,r)}}var c={},u={type:"api",config:{},push(e,{config:t,mapping:r,data:n,env:o,logger:s}){const{settings:a}=t,{url:c,headers:u,method:d,transform:f,transport:l="fetch"}=a||{};c||s.throw("Config settings url missing");const h=function(e){return void 0!==e}(n)?n:e,p=f?f(h,t,r):JSON.stringify(h);((null==o?void 0:o.sendWeb)||i)(c,p,{headers:u,method:d,transport:l})}},d=u;export{c as DestinationAPI,d as default,u as destinationAPI};//# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/types/index.ts","../src/index.ts"],"sourcesContent":["import type {\n Mapping as WalkerOSMapping,\n SendDataValue,\n SendHeaders,\n Destination as CoreDestination,\n} from '@walkeros/core';\nimport type { DestinationWeb, sendWeb } from '@walkeros/web-core';\nimport type { SendWebTransport } from '@walkeros/web-core';\n\nexport interface Settings {\n url: string;\n headers?: SendHeaders;\n method?: string;\n transform?: Transform;\n transport?: SendWebTransport;\n}\n\n// InitSettings: user input (all optional)\nexport type InitSettings = Partial<Settings>;\n\nexport interface Mapping {}\n\nexport interface Env extends DestinationWeb.Env {\n sendWeb?: typeof sendWeb;\n}\n\nexport type Types = CoreDestination.Types<Settings, Mapping, Env, InitSettings>;\n\nexport type Destination = DestinationWeb.Destination<Types>;\nexport type Config = DestinationWeb.Config<Types>;\n\nexport type Rule = WalkerOSMapping.Rule<Mapping>;\nexport type Rules = WalkerOSMapping.Rules<Rule>;\n\nexport type Transform = (\n data?: unknown,\n config?: Config,\n mapping?: WalkerOSMapping.Rule<Mapping>,\n) => SendDataValue;\n","import type { Settings, Destination, Env } from './types';\nimport { isDefined } from '@walkeros/core';\nimport { getEnv, sendWeb } from '@walkeros/web-core';\n\n// Types\nexport * as DestinationAPI from './types';\n\nexport const destinationAPI: Destination = {\n type: 'api',\n\n config: {},\n\n push(event, { config, mapping, data, env, logger }) {\n const { settings } = config;\n const {\n url,\n headers,\n method,\n transform,\n transport = 'fetch',\n } = settings || {};\n\n if (!url) logger.throw('Config settings url missing');\n\n const eventData = isDefined(data) ? data : event;\n const body = transform\n ? transform(eventData, config, mapping) // Transform event data\n : JSON.stringify(eventData);\n\n const sendWebFn = (env as Env)?.sendWeb || sendWeb;\n sendWebFn(url!, body, { headers, method, transport });\n },\n};\n\nexport default destinationAPI;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;ACOO,IAAM,iBAA8B;AAAA,EACzC,MAAM;AAAA,EAEN,QAAQ,CAAC;AAAA,EAET,KAAK,OAAO,EAAE,QAAQ,SAAS,MAAM,KAAK,OAAO,GAAG;AAClD,UAAM,EAAE,SAAS,IAAI;AACrB,UAAM;AAAA,MACJ;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,YAAY;AAAA,IACd,IAAI,YAAY,CAAC;AAEjB,QAAI,CAAC,IAAK,QAAO,MAAM,6BAA6B;AAEpD,UAAM,YAAY,EAAU,IAAI,IAAI,OAAO;AAC3C,UAAM,OAAO,YACT,UAAU,WAAW,QAAQ,OAAO,IACpC,KAAK,UAAU,SAAS;AAE5B,UAAM,aAAa,2BAAa,YAAWA;AAC3C,cAAU,KAAM,MAAM,EAAE,SAAS,QAAQ,UAAU,CAAC;AAAA,EACtD;AACF;AAEA,IAAO,gBAAQ;","names":["S"]}
package/package.json ADDED
@@ -0,0 +1,63 @@
1
+ {
2
+ "name": "@walkeros/web-destination-api",
3
+ "description": "Web API destination for walkerOS",
4
+ "version": "0.0.0-next-20251219153324",
5
+ "license": "MIT",
6
+ "main": "./dist/index.js",
7
+ "module": "./dist/index.mjs",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.mjs",
13
+ "require": "./dist/index.js"
14
+ },
15
+ "./examples": {
16
+ "types": "./dist/examples/index.d.ts",
17
+ "import": "./dist/examples/index.mjs",
18
+ "require": "./dist/examples/index.js"
19
+ },
20
+ "./dev": {
21
+ "types": "./dist/dev.d.ts",
22
+ "import": "./dist/dev.mjs",
23
+ "require": "./dist/dev.js"
24
+ }
25
+ },
26
+ "files": [
27
+ "dist/**"
28
+ ],
29
+ "scripts": {
30
+ "build": "tsup --silent",
31
+ "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
32
+ "dev": "jest --watchAll --colors",
33
+ "lint": "tsc && eslint \"**/*.ts*\"",
34
+ "test": "jest",
35
+ "update": "npx npm-check-updates -u && npm update"
36
+ },
37
+ "dependencies": {
38
+ "@walkeros/web-core": "0.0.0-next-20251219153324"
39
+ },
40
+ "devDependencies": {},
41
+ "repository": {
42
+ "url": "git+https://github.com/elbwalker/walkerOS.git",
43
+ "directory": "packages/web/destinations/api"
44
+ },
45
+ "author": "elbwalker <hello@elbwalker.com>",
46
+ "homepage": "https://github.com/elbwalker/walkerOS#readme",
47
+ "bugs": {
48
+ "url": "https://github.com/elbwalker/walkerOS/issues"
49
+ },
50
+ "keywords": [
51
+ "walker",
52
+ "walkerOS",
53
+ "destination",
54
+ "web",
55
+ "api"
56
+ ],
57
+ "funding": [
58
+ {
59
+ "type": "GitHub Sponsors",
60
+ "url": "https://github.com/sponsors/elbwalker"
61
+ }
62
+ ]
63
+ }