Skip to content

Commit 36775e6

Browse files
Merge pull request #6 from edgee-cloud/wit-update
Wit update
2 parents a8d8f69 + 36dd8a0 commit 36775e6

File tree

9 files changed

+15
-15
lines changed

9 files changed

+15
-15
lines changed

src/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import {
2-
EdgeeProtocolsDataCollection,
2+
EdgeeComponentsDataCollection,
33
EdgeeRequest,
44
Dict,
55
Event,
66
PageData,
77
TrackData,
88
UserData,
99
Context
10-
} from "../types/interfaces/edgee-protocols-data-collection";
10+
} from "../types/interfaces/edgee-components-data-collection";
1111

1212
const API_ENDPOINT = "https://your-endpoint.com/path";
1313

@@ -78,7 +78,7 @@ const buildUserPayload = (data: UserData, context: Context): JSONObject => {
7878
};
7979
};
8080

81-
export const dataCollection: typeof EdgeeProtocolsDataCollection = {
81+
export const dataCollection: typeof EdgeeComponentsDataCollection = {
8282

8383
page(e: Event, settings: Dict) {
8484
if (e.data.tag != 'page') {

test/index.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { assert } from "chai";
22
import { describe, it } from "mocha";
33
import { dataCollection} from '../src/index';
4-
import { EdgeeRequest, Dict, Event } from "../types/interfaces/edgee-protocols-data-collection";
4+
import { EdgeeRequest, Dict, Event } from "../types/interfaces/edgee-components-data-collection";
55

66
describe('data collection component', function () {
77

types/interfaces/edgee-protocols-data-collection.d.ts renamed to types/interfaces/edgee-components-data-collection.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export namespace EdgeeProtocolsDataCollection {
1+
export namespace EdgeeComponentsDataCollection {
22
export function page(e: Event, settings: Dict): EdgeeRequest;
33
export function track(e: Event, settings: Dict): EdgeeRequest;
44
export function user(e: Event, settings: Dict): EdgeeRequest;

types/wit.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
import { EdgeeProtocolsDataCollection } from './interfaces/edgee-protocols-data-collection.js';
2-
export const dataCollection: typeof EdgeeProtocolsDataCollection;
1+
import { EdgeeComponentsDataCollection } from './interfaces/edgee-components-data-collection.js';
2+
export const dataCollection: typeof EdgeeComponentsDataCollection;

wit/deps.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[protocols]
2-
url = "https://github.com/edgee-cloud/edgee-wit/archive/refs/tags/v0.4.0.tar.gz"
3-
sha256 = "8b5c8ea97c81d1d6cf4f227e75afb8c4dc5c0a411c3a0401fb7e4f7b745e21ba"
4-
sha512 = "16771cd12095409e7c4857a8f5c0b4ad680959e3c35dcd7999e11131bcce05d3b1a1b829daefceabbd853ae5b7f6453e3e359ddfbdebd6e2a94db6c55780368f"
1+
[edgee]
2+
url = "https://github.com/edgee-cloud/edgee-wit/archive/refs/tags/v0.5.0.tar.gz"
3+
sha256 = "f6e11c5cde39ec04b024b1181f45e896f154f7677ff5a904c99f6af5224dc371"
4+
sha512 = "21b045d0fb82a793a6176f6d9e98dab868563ab7906e3762601e14f06a715e36c965e83e6f5c76cf016af03df48d219b86165a7c18d14284e967d0b837bf99e4"

wit/deps.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
protocols="https://github.com/edgee-cloud/edgee-wit/archive/refs/tags/v0.4.0.tar.gz"
1+
edgee = "https://github.com/edgee-cloud/edgee-wit/archive/refs/tags/v0.5.0.tar.gz"

wit/deps/protocols/consent-mapping.wit renamed to wit/deps/edgee/consent-mapping.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package edgee:protocols;
1+
package edgee:components;
22

33
interface consent-mapping {
44
type dict = list<tuple<string,string>>;

wit/deps/protocols/data-collection.wit renamed to wit/deps/edgee/data-collection.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package edgee:protocols;
1+
package edgee:components;
22

33
interface data-collection {
44
type dict = list<tuple<string,string>>;

wit/world.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package edgee:native;
22

33
world data-collection {
4-
export edgee:protocols/data-collection;
4+
export edgee:components/data-collection;
55
}

0 commit comments

Comments
 (0)