datastar-ssegen 0.1.1 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +1 -3
  2. package/package.json +3 -10
package/index.js CHANGED
@@ -339,9 +339,7 @@ export function ServerSentEventGenerator(request, response) {
339
339
 
340
340
  // Join the result and ensure it ends with a semicolon if not empty
341
341
  const codePart = result.join("").trim();
342
- return codePart && !codePart.endsWith(";")
343
- ? `${codePart};`
344
- : codePart;
342
+ return codePart;
345
343
  })
346
344
  .filter((line) => line.length > 0);
347
345
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastar-ssegen",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Datastar Server-Sent Event generator",
5
5
  "author": "John Cudd",
6
6
  "type": "module",
@@ -27,19 +27,12 @@
27
27
  "bugs": {
28
28
  "url": "https://github.com/jmcudd/datastar-ssegen/issues"
29
29
  },
30
- "devdependencies": {
30
+ "devDependencies": {
31
31
  "concurrently": "^9.1.0",
32
32
  "express": "^4.21.2",
33
33
  "hyper-express": "^6.17.3",
34
34
  "nodemon": "^3.1.9",
35
- "npm-run-all": "^4.1.5"
36
- },
37
- "devDependencies": {
38
- "concurrently": "^9.1.0",
35
+ "npm-run-all": "^4.1.5",
39
36
  "typescript": "^5.7.2"
40
- },
41
- "dependencies": {
42
- "express": "^4.21.2",
43
- "hyper-express": "^6.17.3"
44
37
  }
45
38
  }