@downcity/city 0.2.127 → 0.2.130

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 (50) hide show
  1. package/README.md +32 -1
  2. package/bin/client/types.d.ts +6 -2
  3. package/bin/client/types.d.ts.map +1 -1
  4. package/bin/federation/auth/authenticator.d.ts +9 -0
  5. package/bin/federation/auth/authenticator.d.ts.map +1 -1
  6. package/bin/federation/auth/authenticator.js +17 -0
  7. package/bin/federation/auth/authenticator.js.map +1 -1
  8. package/bin/federation/federation-middleware.d.ts +17 -0
  9. package/bin/federation/federation-middleware.d.ts.map +1 -0
  10. package/bin/federation/federation-middleware.js +41 -0
  11. package/bin/federation/federation-middleware.js.map +1 -0
  12. package/bin/federation/federation-router.d.ts.map +1 -1
  13. package/bin/federation/federation-router.js +20 -4
  14. package/bin/federation/federation-router.js.map +1 -1
  15. package/bin/federation/federation.d.ts +13 -11
  16. package/bin/federation/federation.d.ts.map +1 -1
  17. package/bin/federation/federation.js +26 -18
  18. package/bin/federation/federation.js.map +1 -1
  19. package/bin/federation/types.d.ts +32 -2
  20. package/bin/federation/types.d.ts.map +1 -1
  21. package/bin/index.d.ts +2 -1
  22. package/bin/index.d.ts.map +1 -1
  23. package/bin/index.js.map +1 -1
  24. package/bin/pact/admin/index.d.ts +1 -1
  25. package/bin/pact/admin/index.d.ts.map +1 -1
  26. package/bin/pact/admin/index.js +21 -15
  27. package/bin/pact/admin/index.js.map +1 -1
  28. package/bin/pact/admin/types.d.ts +2 -2
  29. package/bin/pact/admin/types.d.ts.map +1 -1
  30. package/bin/pact/requester.d.ts +47 -0
  31. package/bin/pact/requester.d.ts.map +1 -0
  32. package/bin/pact/requester.js +93 -0
  33. package/bin/pact/requester.js.map +1 -0
  34. package/bin/pact/rpc-client.d.ts +30 -0
  35. package/bin/pact/rpc-client.d.ts.map +1 -0
  36. package/bin/pact/rpc-client.js +99 -0
  37. package/bin/pact/rpc-client.js.map +1 -0
  38. package/bin/pact/user/index.d.ts +1 -1
  39. package/bin/pact/user/index.d.ts.map +1 -1
  40. package/bin/pact/user/index.js +21 -15
  41. package/bin/pact/user/index.js.map +1 -1
  42. package/bin/pact/user/types.d.ts +2 -2
  43. package/bin/pact/user/types.d.ts.map +1 -1
  44. package/bin/service/instruction.js +1 -1
  45. package/bin/service/instruction.js.map +1 -1
  46. package/bin/types/FederationMiddleware.d.ts +50 -0
  47. package/bin/types/FederationMiddleware.d.ts.map +1 -0
  48. package/bin/types/FederationMiddleware.js +9 -0
  49. package/bin/types/FederationMiddleware.js.map +1 -0
  50. package/package.json +2 -2
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Federation HTTP Middleware 类型模块。
3
+ *
4
+ * 定义 `fed.middle()` 使用的中间件上下文与 next 函数。该层只约束
5
+ * Federation 级 HTTP middleware 的接入接口,具体 CORS、安全响应头、
6
+ * 限流、超时等策略实现由调用方按自己的运行环境提供。
7
+ */
8
+ export {};
9
+ //# sourceMappingURL=FederationMiddleware.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FederationMiddleware.js","sourceRoot":"","sources":["../../src/types/FederationMiddleware.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@downcity/city",
3
- "version": "0.2.127",
3
+ "version": "0.2.130",
4
4
  "description": "Downcity City runtime and City access SDK for services, actions, auth, env, and cities.",
5
5
  "type": "module",
6
6
  "main": "./bin/index.js",
@@ -41,7 +41,7 @@
41
41
  "typescript": "^6.0.3"
42
42
  },
43
43
  "dependencies": {
44
- "@downcity/type": "0.1.84",
44
+ "@downcity/type": "0.1.86",
45
45
  "ai": "^6.0.193",
46
46
  "drizzle-orm": "^0.45.2",
47
47
  "hono": "^4.12.23"