@based/server 2.8.5 → 2.8.6

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 (149) hide show
  1. package/.turbo/turbo-build.log +5 -5
  2. package/dist/BasedServerClient.d.ts +0 -0
  3. package/dist/BasedServerClient.js +0 -0
  4. package/dist/BasedServerClient.js.map +0 -0
  5. package/dist/Client.d.ts +0 -0
  6. package/dist/Client.js +0 -0
  7. package/dist/Client.js.map +0 -0
  8. package/dist/Params.d.ts +0 -0
  9. package/dist/Params.js +0 -0
  10. package/dist/Params.js.map +0 -0
  11. package/dist/closeListener.d.ts +0 -0
  12. package/dist/closeListener.js +0 -0
  13. package/dist/closeListener.js.map +0 -0
  14. package/dist/findPrefix.d.ts +0 -0
  15. package/dist/findPrefix.js +0 -0
  16. package/dist/findPrefix.js.map +0 -0
  17. package/dist/getFromConfig.d.ts +0 -0
  18. package/dist/getFromConfig.js +0 -0
  19. package/dist/getFromConfig.js.map +0 -0
  20. package/dist/handlers/authorize.d.ts +0 -0
  21. package/dist/handlers/authorize.js +0 -0
  22. package/dist/handlers/authorize.js.map +0 -0
  23. package/dist/handlers/configuration/index.d.ts +0 -0
  24. package/dist/handlers/configuration/index.js +0 -0
  25. package/dist/handlers/configuration/index.js.map +0 -0
  26. package/dist/handlers/configuration/observable/index.d.ts +0 -0
  27. package/dist/handlers/configuration/observable/index.js +0 -0
  28. package/dist/handlers/configuration/observable/index.js.map +0 -0
  29. package/dist/handlers/configure/index.d.ts +0 -0
  30. package/dist/handlers/configure/index.js +0 -0
  31. package/dist/handlers/configure/index.js.map +0 -0
  32. package/dist/handlers/copy/index.d.ts +0 -0
  33. package/dist/handlers/copy/index.js +0 -0
  34. package/dist/handlers/copy/index.js.map +0 -0
  35. package/dist/handlers/delete/index.d.ts +0 -0
  36. package/dist/handlers/delete/index.js +0 -0
  37. package/dist/handlers/delete/index.js.map +0 -0
  38. package/dist/handlers/digest/index.d.ts +0 -0
  39. package/dist/handlers/digest/index.js +0 -0
  40. package/dist/handlers/digest/index.js.map +0 -0
  41. package/dist/handlers/functions/call.d.ts +0 -0
  42. package/dist/handlers/functions/call.js +0 -0
  43. package/dist/handlers/functions/call.js.map +0 -0
  44. package/dist/handlers/functions/observable/Observable.d.ts +0 -0
  45. package/dist/handlers/functions/observable/Observable.js +0 -0
  46. package/dist/handlers/functions/observable/Observable.js.map +0 -0
  47. package/dist/handlers/functions/observable/SharedObservable.d.ts +0 -0
  48. package/dist/handlers/functions/observable/SharedObservable.js +0 -0
  49. package/dist/handlers/functions/observable/SharedObservable.js.map +0 -0
  50. package/dist/handlers/functions/observable/index.d.ts +0 -0
  51. package/dist/handlers/functions/observable/index.js +0 -0
  52. package/dist/handlers/functions/observable/index.js.map +0 -0
  53. package/dist/handlers/get/index.d.ts +0 -0
  54. package/dist/handlers/get/index.js +0 -0
  55. package/dist/handlers/get/index.js.map +0 -0
  56. package/dist/handlers/getConfig/index.d.ts +0 -0
  57. package/dist/handlers/getConfig/index.js +0 -0
  58. package/dist/handlers/getConfig/index.js.map +0 -0
  59. package/dist/handlers/handleRequests.d.ts +0 -0
  60. package/dist/handlers/handleRequests.js +0 -0
  61. package/dist/handlers/handleRequests.js.map +0 -0
  62. package/dist/handlers/index.d.ts +0 -0
  63. package/dist/handlers/index.js +0 -0
  64. package/dist/handlers/index.js.map +0 -0
  65. package/dist/handlers/messageParser.d.ts +0 -0
  66. package/dist/handlers/messageParser.js +0 -0
  67. package/dist/handlers/messageParser.js.map +0 -0
  68. package/dist/handlers/removeField/index.d.ts +0 -0
  69. package/dist/handlers/removeField/index.js +0 -0
  70. package/dist/handlers/removeField/index.js.map +0 -0
  71. package/dist/handlers/removeType/index.d.ts +0 -0
  72. package/dist/handlers/removeType/index.js +0 -0
  73. package/dist/handlers/removeType/index.js.map +0 -0
  74. package/dist/handlers/rest/file/DataStream.d.ts +0 -0
  75. package/dist/handlers/rest/file/DataStream.js +0 -0
  76. package/dist/handlers/rest/file/DataStream.js.map +0 -0
  77. package/dist/handlers/rest/file/formStream.d.ts +0 -0
  78. package/dist/handlers/rest/file/formStream.js +0 -0
  79. package/dist/handlers/rest/file/formStream.js.map +0 -0
  80. package/dist/handlers/rest/file/getExtenstion.d.ts +0 -0
  81. package/dist/handlers/rest/file/getExtenstion.js +0 -0
  82. package/dist/handlers/rest/file/getExtenstion.js.map +0 -0
  83. package/dist/handlers/rest/file/index.d.ts +0 -0
  84. package/dist/handlers/rest/file/index.js +0 -0
  85. package/dist/handlers/rest/file/index.js.map +0 -0
  86. package/dist/handlers/rest/file/storeFile.d.ts +0 -0
  87. package/dist/handlers/rest/file/storeFile.js +0 -0
  88. package/dist/handlers/rest/file/storeFile.js.map +0 -0
  89. package/dist/handlers/rest/file/stream.d.ts +0 -0
  90. package/dist/handlers/rest/file/stream.js +8 -0
  91. package/dist/handlers/rest/file/stream.js.map +1 -1
  92. package/dist/handlers/rest/file/types.d.ts +0 -0
  93. package/dist/handlers/rest/file/types.js +0 -0
  94. package/dist/handlers/rest/file/types.js.map +0 -0
  95. package/dist/handlers/rest/getReqMessage.d.ts +0 -0
  96. package/dist/handlers/rest/getReqMessage.js +0 -0
  97. package/dist/handlers/rest/getReqMessage.js.map +0 -0
  98. package/dist/handlers/rest/index.d.ts +0 -0
  99. package/dist/handlers/rest/index.js +0 -0
  100. package/dist/handlers/rest/index.js.map +0 -0
  101. package/dist/handlers/rest/invalidReq.d.ts +0 -0
  102. package/dist/handlers/rest/invalidReq.js +0 -0
  103. package/dist/handlers/rest/invalidReq.js.map +0 -0
  104. package/dist/handlers/rest/parseResponse.d.ts +0 -0
  105. package/dist/handlers/rest/parseResponse.js +0 -0
  106. package/dist/handlers/rest/parseResponse.js.map +0 -0
  107. package/dist/handlers/rest/playground/index.d.ts +0 -0
  108. package/dist/handlers/rest/playground/index.js +0 -0
  109. package/dist/handlers/rest/playground/index.js.map +0 -0
  110. package/dist/handlers/rest/readBody.d.ts +0 -0
  111. package/dist/handlers/rest/readBody.js +0 -0
  112. package/dist/handlers/rest/readBody.js.map +0 -0
  113. package/dist/handlers/set/index.d.ts +0 -0
  114. package/dist/handlers/set/index.js +0 -0
  115. package/dist/handlers/set/index.js.map +0 -0
  116. package/dist/handlers/subscription/index.d.ts +0 -0
  117. package/dist/handlers/subscription/index.js +0 -0
  118. package/dist/handlers/subscription/index.js.map +0 -0
  119. package/dist/handlers/token.d.ts +0 -0
  120. package/dist/handlers/token.js +0 -0
  121. package/dist/handlers/token.js.map +0 -0
  122. package/dist/handlers/track/index.d.ts +0 -0
  123. package/dist/handlers/track/index.js +0 -0
  124. package/dist/handlers/track/index.js.map +0 -0
  125. package/dist/handlers/userAuth/index.d.ts +0 -0
  126. package/dist/handlers/userAuth/index.js +1 -1
  127. package/dist/handlers/userAuth/index.js.map +0 -0
  128. package/dist/index.d.ts +0 -0
  129. package/dist/index.js +0 -0
  130. package/dist/index.js.map +0 -0
  131. package/dist/openListener.d.ts +0 -0
  132. package/dist/openListener.js +0 -0
  133. package/dist/openListener.js.map +0 -0
  134. package/dist/secrets.d.ts +0 -0
  135. package/dist/secrets.js +0 -0
  136. package/dist/secrets.js.map +0 -0
  137. package/dist/types.d.ts +2 -0
  138. package/dist/types.js +0 -0
  139. package/dist/types.js.map +0 -0
  140. package/dist/upgradeListener.d.ts +0 -0
  141. package/dist/upgradeListener.js +0 -0
  142. package/dist/upgradeListener.js.map +0 -0
  143. package/dist/workers/index.d.ts +0 -0
  144. package/dist/workers/index.js +0 -0
  145. package/dist/workers/index.js.map +0 -0
  146. package/dist/workers/workerCode.d.ts +0 -0
  147. package/dist/workers/workerCode.js +0 -0
  148. package/dist/workers/workerCode.js.map +0 -0
  149. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- @based/server:build: cache hit, replaying output 46410b2eea4ade50
2
- @based/server:build: 
3
- @based/server:build: > @based/server@2.8.4 build
4
- @based/server:build: > npx tsc
5
- @based/server:build: 
1
+ @based/server:build: cache hit, replaying output 7353e0ab6ed11741
2
+ @based/server:build: 
3
+ @based/server:build: > @based/server@2.8.5 build
4
+ @based/server:build: > npx tsc
5
+ @based/server:build: 
File without changes
File without changes
File without changes
package/dist/Client.d.ts CHANGED
File without changes
package/dist/Client.js CHANGED
File without changes
File without changes
package/dist/Params.d.ts CHANGED
File without changes
package/dist/Params.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -16,6 +16,8 @@ const smallFile = (server, res, stream, opts) => {
16
16
  $id: opts.id,
17
17
  progress: 1,
18
18
  size: opts.size,
19
+ status: 3,
20
+ statusText: 'ready',
19
21
  };
20
22
  if (opts.name) {
21
23
  payload.name = opts.name;
@@ -35,6 +37,8 @@ const largeFile = (server, res, stream, opts) => {
35
37
  $id: opts.id,
36
38
  progress: 0,
37
39
  size: opts.size,
40
+ status: 1,
41
+ statusText: 'uploading',
38
42
  };
39
43
  if (opts.name) {
40
44
  payload.name = opts.name;
@@ -48,6 +52,10 @@ const largeFile = (server, res, stream, opts) => {
48
52
  $id: opts.id,
49
53
  progress,
50
54
  };
55
+ if (progress === 1) {
56
+ payload.status = 3;
57
+ payload.statusText = 'ready';
58
+ }
51
59
  server.based.set(payload);
52
60
  setInProgress = false;
53
61
  }, 250);
@@ -1 +1 @@
1
- {"version":3,"file":"stream.js","sourceRoot":"","sources":["../../../../src/handlers/rest/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AAA;KACrC;IAED,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,YAAY,CAAC,CAAA;IAE3C,MAAM,MAAM,GAAG,IAAI,CAAC,YAAY,CAAA;IAEhC,IAAI,MAAM,EAAE;QACV,IAAI;YACF,MAAM,EAAE,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,CAAA;YAC3C,IAAI,EAAE,CAAC,UAAU,KAAK,KAAK,EAAE;gBAC3B,IAAI,GAAG,CAAC,MAAM,EAAE;oBACd,GAAG,CAAC,MAAM,GAAG,IAAI,eAAM,CAAC,MAAM,EAAE,SAAS,EAAE,GAAG,CAAC,CAAA;iBAChD;gBAED,MAAM,EAAE,CAAC,QAAQ,CACf,IAAI,eAAM,CACR,MAAM,EACN,IAAI,EACJ,GAAG,CAAC,MAAM,EACV,EAAE,EACF,SAAS,EACT,MAAM,EACN,aAAa,EACb,KAAK,EACL,MAAM,CACP,CACF,CAAA;aACF;iBAAM;gBACL,MAAM,IAAI,KAAK,CACb,iDAAiD,GAAG,MAAM,CAC3D,CAAA;aACF;SACF;QAAC,OAAO,GAAG,EAAE,GAAE;KACjB;SAAM;QACL,MAAM,IAAA,mBAAS,EAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,CAAA;KACtC;AACH,CAAC,CAAA"}
1
+ {"version":3,"file":"stream.js","sourceRoot":"","sources":["../../../../src/handlers/rest/file/stream.ts"],"names":[],"mappings":";;;;;AAAA,6CAAyC;AACzC,4DAAmC;AAInC,4CAAwC;AACxC,4CAAwC;AAExC,MAAM,SAAS,GAAG,CAChB,MAAmB,EACnB,GAAqB,EACrB,MAAkB,EAClB,IAAiB,EACjB,EAAE;IACF,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;QACjC,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAC9B,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,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;IAEhC,IAAI,MAAM,EAAE;QACV,IAAI;YACF,MAAM,EAAE,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,CAAA;YAC3C,IAAI,EAAE,CAAC,UAAU,KAAK,KAAK,EAAE;gBAC3B,IAAI,GAAG,CAAC,MAAM,EAAE;oBACd,GAAG,CAAC,MAAM,GAAG,IAAI,eAAM,CAAC,MAAM,EAAE,SAAS,EAAE,GAAG,CAAC,CAAA;iBAChD;gBAED,MAAM,EAAE,CAAC,QAAQ,CACf,IAAI,eAAM,CACR,MAAM,EACN,IAAI,EACJ,GAAG,CAAC,MAAM,EACV,EAAE,EACF,SAAS,EACT,MAAM,EACN,aAAa,EACb,KAAK,EACL,MAAM,CACP,CACF,CAAA;aACF;iBAAM;gBACL,MAAM,IAAI,KAAK,CACb,iDAAiD,GAAG,MAAM,CAC3D,CAAA;aACF;SACF;QAAC,OAAO,GAAG,EAAE,GAAE;KACjB;SAAM;QACL,MAAM,IAAA,mBAAS,EAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,CAAA;KACtC;AACH,CAAC,CAAA"}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -55,7 +55,7 @@ exports.default = async (server, client, [, authRequestType, reqId, payload]) =>
55
55
  try {
56
56
  const { function: fn } = (await (0, getFromConfig_1.getFunction)(server, 'renewToken')) || {};
57
57
  if (!fn) {
58
- throw new Error('renewToken function is not implemented');
58
+ throw new Error('Token expired and needs to be renewed.');
59
59
  }
60
60
  const result = await fn(new Params_1.Params(server, payload, client, ['renewToken']));
61
61
  client.send([client_1.RequestTypes.Auth, reqId, result]);
File without changes
package/dist/index.d.ts CHANGED
File without changes
package/dist/index.js CHANGED
File without changes
package/dist/index.js.map CHANGED
File without changes
File without changes
File without changes
File without changes
package/dist/secrets.d.ts CHANGED
File without changes
package/dist/secrets.js CHANGED
File without changes
File without changes
package/dist/types.d.ts CHANGED
@@ -52,6 +52,8 @@ export declare type Config = {
52
52
  storeFile?: (opts: FileOpts) => Promise<{
53
53
  src: string;
54
54
  origin: string;
55
+ status: number;
56
+ statusText?: string;
55
57
  thumb?: string;
56
58
  version?: string;
57
59
  mimeType?: string;
package/dist/types.js CHANGED
File without changes
package/dist/types.js.map CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@based/server",
3
- "version": "2.8.5",
3
+ "version": "2.8.6",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "module": "src/index.ts",