Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename manifest version #9

Merged
merged 3 commits into from
Feb 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions edgee-component.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
manifest_version = 1
manifest-version = 1

[package]
[component]
name = "example-js-component"
version = "1.0.0"
category = "data-collection"
Expand All @@ -10,6 +10,10 @@ documentation = "https://github.com/edgee-cloud/example-js-component"
repository = "https://github.com/edgee-cloud/example-js-component"
wit-world-version = "0.4.0"

[package.build]
[component.build]
command = "npm install && npm run generate && npm run build"
output_path = "./example-js-component.wasm"

[component.settings.example]
title = "Example Config Field"
type = "string"
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export const dataCollection = {
const payload = buildPagePayload(e.data.val, e.context);

// build and return EdgeeRequest
return buildEdgeeRequest(payload, settings['your_api_key']);
return buildEdgeeRequest(payload, settings['example']);
},

/**
Expand All @@ -135,7 +135,7 @@ export const dataCollection = {
const payload = buildTrackPayload(e.data.val, e.context);

// build and return EdgeeRequest
return buildEdgeeRequest(payload, settings['your_api_key']);
return buildEdgeeRequest(payload, settings['example']);
},

/**
Expand All @@ -154,6 +154,6 @@ export const dataCollection = {
const payload = buildUserPayload(e.data.val, e.context);

// build and return EdgeeRequest
return buildEdgeeRequest(payload, settings['your_api_key']);
return buildEdgeeRequest(payload, settings['example']);
},
};
Loading