streamby-core 0.10.13 → 0.11.0

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.
@@ -125,7 +125,7 @@ function createStreamByRouter(config) {
125
125
  description: description || '',
126
126
  members: [{ userId: auth.userId, role: "admin" }]
127
127
  });
128
- res.status(201).json(newProject);
128
+ res.status(201).json({ project: newProject });
129
129
  }
130
130
  catch (err) {
131
131
  res.status(500).json({ error: 'Failed to create project', details: err.message });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "streamby-core",
3
- "version": "0.10.13",
3
+ "version": "0.11.0",
4
4
  "description": "StreamBy middleware framework for media storage management",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -38,9 +38,11 @@
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/bcrypt": "^5.0.2",
41
+ "@types/cors": "^2.8.18",
41
42
  "@types/express": "^4.17.17",
42
43
  "@types/node": "^22.15.21",
43
44
  "@types/supertest": "^6.0.3",
45
+ "cors": "^2.8.5",
44
46
  "supertest": "^7.1.0",
45
47
  "ts-node-dev": "^2.0.0",
46
48
  "typescript": "^5.8.3",