@based/server 7.0.2 → 7.1.0-alpha

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 (109) hide show
  1. package/dist/auth/defaultConfig.js.map +1 -1
  2. package/dist/auth/index.js.map +1 -1
  3. package/dist/auth/parseAuthState.js.map +1 -1
  4. package/dist/auth/parseJSONAuthState.js.map +1 -1
  5. package/dist/authorize.js +1 -1
  6. package/dist/authorize.js.map +1 -1
  7. package/dist/channel/cleanup.js.map +1 -1
  8. package/dist/channel/create.js.map +1 -1
  9. package/dist/channel/destroy.js.map +1 -1
  10. package/dist/channel/extend.js.map +1 -1
  11. package/dist/channel/start.js +2 -1
  12. package/dist/channel/start.js.map +1 -1
  13. package/dist/channel/subscribe.js.map +1 -1
  14. package/dist/channel/unsub.js.map +1 -1
  15. package/dist/compress.js.map +1 -1
  16. package/dist/error/index.d.ts +1 -13
  17. package/dist/error/index.js +2 -25
  18. package/dist/error/index.js.map +1 -1
  19. package/dist/functionApi/callFunction.js +2 -1
  20. package/dist/functionApi/callFunction.js.map +1 -1
  21. package/dist/functionApi/channelSubscribe.js +2 -1
  22. package/dist/functionApi/channelSubscribe.js.map +1 -1
  23. package/dist/functionApi/client/channel.js.map +1 -1
  24. package/dist/functionApi/client/index.js.map +1 -1
  25. package/dist/functionApi/client/query.js.map +1 -1
  26. package/dist/functionApi/get.js +2 -1
  27. package/dist/functionApi/get.js.map +1 -1
  28. package/dist/functionApi/observe.js +2 -1
  29. package/dist/functionApi/observe.js.map +1 -1
  30. package/dist/functionApi/publish.js +2 -1
  31. package/dist/functionApi/publish.js.map +1 -1
  32. package/dist/functionApi/stream.js +2 -1
  33. package/dist/functionApi/stream.js.map +1 -1
  34. package/dist/functions/genVersion.js.map +1 -1
  35. package/dist/functions/index.js +1 -1
  36. package/dist/functions/index.js.map +1 -1
  37. package/dist/functions/timeout.js.map +1 -1
  38. package/dist/incoming/http/function.js +1 -1
  39. package/dist/incoming/http/function.js.map +1 -1
  40. package/dist/incoming/http/handleRequest.js.map +1 -1
  41. package/dist/incoming/http/index.js +1 -1
  42. package/dist/incoming/http/index.js.map +1 -1
  43. package/dist/incoming/http/parseQuery.js.map +1 -1
  44. package/dist/incoming/http/publish.js +1 -1
  45. package/dist/incoming/http/publish.js.map +1 -1
  46. package/dist/incoming/http/query.js +1 -1
  47. package/dist/incoming/http/query.js.map +1 -1
  48. package/dist/incoming/http/readBody.js +13 -1
  49. package/dist/incoming/http/readBody.js.map +1 -1
  50. package/dist/incoming/http/streamFunction/getExtension.js.map +1 -1
  51. package/dist/incoming/http/streamFunction/index.js +1 -1
  52. package/dist/incoming/http/streamFunction/index.js.map +1 -1
  53. package/dist/incoming/http/streamFunction/multiPart/index.js +1 -1
  54. package/dist/incoming/http/streamFunction/multiPart/index.js.map +1 -1
  55. package/dist/incoming/http/streamFunction/multiPart/readFormData.js +1 -1
  56. package/dist/incoming/http/streamFunction/multiPart/readFormData.js.map +1 -1
  57. package/dist/incoming/http/streamFunction/stream/createStream.js +1 -1
  58. package/dist/incoming/http/streamFunction/stream/createStream.js.map +1 -1
  59. package/dist/incoming/http/streamFunction/stream/index.js +1 -1
  60. package/dist/incoming/http/streamFunction/stream/index.js.map +1 -1
  61. package/dist/incoming/index.js +1 -1
  62. package/dist/incoming/index.js.map +1 -1
  63. package/dist/incoming/upgrade.js.map +1 -1
  64. package/dist/incoming/ws/auth.js.map +1 -1
  65. package/dist/incoming/ws/channelPublish.js +1 -1
  66. package/dist/incoming/ws/channelPublish.js.map +1 -1
  67. package/dist/incoming/ws/channelSubscribe.js +1 -1
  68. package/dist/incoming/ws/channelSubscribe.js.map +1 -1
  69. package/dist/incoming/ws/function.js +1 -1
  70. package/dist/incoming/ws/function.js.map +1 -1
  71. package/dist/incoming/ws/get.js +1 -1
  72. package/dist/incoming/ws/get.js.map +1 -1
  73. package/dist/incoming/ws/index.js +2 -1
  74. package/dist/incoming/ws/index.js.map +1 -1
  75. package/dist/incoming/ws/query.js +1 -1
  76. package/dist/incoming/ws/query.js.map +1 -1
  77. package/dist/installFn.js +1 -1
  78. package/dist/installFn.js.map +1 -1
  79. package/dist/protocol.js.map +1 -1
  80. package/dist/query/cleanup.js.map +1 -1
  81. package/dist/query/create.js.map +1 -1
  82. package/dist/query/destroy.js.map +1 -1
  83. package/dist/query/extendCache.js.map +1 -1
  84. package/dist/query/genObservableId.js.map +1 -1
  85. package/dist/query/send.js.map +1 -1
  86. package/dist/query/start/error.js +2 -1
  87. package/dist/query/start/error.js.map +1 -1
  88. package/dist/query/start/index.js.map +1 -1
  89. package/dist/query/start/update.js.map +1 -1
  90. package/dist/query/subscribe.d.ts +1 -1
  91. package/dist/query/subscribe.js.map +1 -1
  92. package/dist/query/types.d.ts +1 -1
  93. package/dist/query/unsub.js.map +1 -1
  94. package/dist/security.js +1 -1
  95. package/dist/security.js.map +1 -1
  96. package/dist/sendError.d.ts +1 -1
  97. package/dist/sendError.js.map +1 -1
  98. package/dist/sendHttpResponse.js.map +1 -1
  99. package/dist/server.d.ts +1 -1
  100. package/dist/server.js.map +1 -1
  101. package/dist/verifyRoute.js +2 -1
  102. package/dist/verifyRoute.js.map +1 -1
  103. package/package.json +3 -4
  104. package/dist/error/errorTypeHandlers.d.ts +0 -6
  105. package/dist/error/errorTypeHandlers.js +0 -121
  106. package/dist/error/errorTypeHandlers.js.map +0 -1
  107. package/dist/error/types.d.ts +0 -95
  108. package/dist/error/types.js +0 -27
  109. package/dist/error/types.js.map +0 -1
@@ -1,27 +0,0 @@
1
- export const EMPTY_ROUTE = {
2
- name: 'no-route',
3
- path: '',
4
- type: 'function',
5
- };
6
- export var BasedErrorCode;
7
- (function (BasedErrorCode) {
8
- BasedErrorCode[BasedErrorCode["FunctionError"] = 50001] = "FunctionError";
9
- BasedErrorCode[BasedErrorCode["AuthorizeFunctionError"] = 50002] = "AuthorizeFunctionError";
10
- BasedErrorCode[BasedErrorCode["NoOservableCacheAvailable"] = 50003] = "NoOservableCacheAvailable";
11
- BasedErrorCode[BasedErrorCode["ObserveCallbackError"] = 50005] = "ObserveCallbackError";
12
- BasedErrorCode[BasedErrorCode["FunctionNotFound"] = 40401] = "FunctionNotFound";
13
- BasedErrorCode[BasedErrorCode["FunctionIsWrongType"] = 40402] = "FunctionIsWrongType";
14
- BasedErrorCode[BasedErrorCode["AuthorizeRejectedError"] = 40301] = "AuthorizeRejectedError";
15
- BasedErrorCode[BasedErrorCode["InvalidPayload"] = 40001] = "InvalidPayload";
16
- BasedErrorCode[BasedErrorCode["PayloadTooLarge"] = 40002] = "PayloadTooLarge";
17
- BasedErrorCode[BasedErrorCode["ChunkTooLarge"] = 40003] = "ChunkTooLarge";
18
- BasedErrorCode[BasedErrorCode["UnsupportedContentEncoding"] = 40004] = "UnsupportedContentEncoding";
19
- BasedErrorCode[BasedErrorCode["NoBinaryProtocol"] = 40005] = "NoBinaryProtocol";
20
- BasedErrorCode[BasedErrorCode["LengthRequired"] = 41101] = "LengthRequired";
21
- BasedErrorCode[BasedErrorCode["MethodNotAllowed"] = 40501] = "MethodNotAllowed";
22
- BasedErrorCode[BasedErrorCode["RateLimit"] = 40029] = "RateLimit";
23
- BasedErrorCode[BasedErrorCode["MissingAuthStateProtocolHeader"] = 40030] = "MissingAuthStateProtocolHeader";
24
- BasedErrorCode[BasedErrorCode["IncorrectAccessKey"] = 40031] = "IncorrectAccessKey";
25
- BasedErrorCode[BasedErrorCode["Block"] = 90001] = "Block";
26
- })(BasedErrorCode || (BasedErrorCode = {}));
27
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/error/types.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAe;IACrC,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,EAAE;IACR,IAAI,EAAE,UAAU;CACjB,CAAA;AAED,MAAM,CAAN,IAAY,cAmBX;AAnBD,WAAY,cAAc;IACxB,yEAAqB,CAAA;IACrB,2FAA8B,CAAA;IAC9B,iGAAiC,CAAA;IACjC,uFAA4B,CAAA;IAC5B,+EAAwB,CAAA;IACxB,qFAA2B,CAAA;IAC3B,2FAA8B,CAAA;IAC9B,2EAAsB,CAAA;IACtB,6EAAuB,CAAA;IACvB,yEAAqB,CAAA;IACrB,mGAAkC,CAAA;IAClC,+EAAwB,CAAA;IACxB,2EAAsB,CAAA;IACtB,+EAAwB,CAAA;IACxB,iEAAiB,CAAA;IACjB,2GAAsC,CAAA;IACtC,mFAA0B,CAAA;IAC1B,yDAAa,CAAA;AACf,CAAC,EAnBW,cAAc,KAAd,cAAc,QAmBzB"}