@jamwidgets/core 0.5.1 → 0.5.2

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +5 -3
package/dist/index.js CHANGED
@@ -476,7 +476,7 @@ export async function votePoll(options) {
476
476
  ...getHeaders(siteKey),
477
477
  "Content-Type": "application/json",
478
478
  },
479
- body: JSON.stringify({ selected_options: selectedOptions }),
479
+ body: JSON.stringify({ selectedOptions }),
480
480
  });
481
481
  if (!response.ok) {
482
482
  throw new Error(`Failed to vote: ${response.statusText}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jamwidgets/core",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Framework-agnostic API client and types for Jamwidgets",
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,7 +29,8 @@
29
29
  ],
30
30
  "scripts": {
31
31
  "build": "tsc",
32
- "dev": "tsc --watch"
32
+ "dev": "tsc --watch",
33
+ "test": "vitest run"
33
34
  },
34
35
  "keywords": [
35
36
  "jamwidgets",
@@ -43,6 +44,7 @@
43
44
  ],
44
45
  "license": "MIT",
45
46
  "devDependencies": {
46
- "typescript": "^5.9.3"
47
+ "typescript": "^5.9.3",
48
+ "vitest": "^4.1.10"
47
49
  }
48
50
  }