@litert/televoke 0.4.12 → 0.4.13
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.
- package/CHANGES.md +4 -0
- package/lib/Client/Common.d.ts +1 -1
- package/lib/Client/Common.js +1 -1
- package/lib/Client/Errors.d.ts +1 -1
- package/lib/Client/Errors.js +1 -1
- package/lib/Client/HttpClient.d.ts +1 -1
- package/lib/Client/HttpClient.js +1 -1
- package/lib/Client/HttpsClient.d.ts +1 -1
- package/lib/Client/HttpsClient.js +1 -1
- package/lib/Client/TCPClient.d.ts +1 -1
- package/lib/Client/TCPClient.js +1 -1
- package/lib/Client/TLSClient.d.ts +1 -1
- package/lib/Client/TLSClient.js +1 -1
- package/lib/Client/index.d.ts +1 -1
- package/lib/Client/index.js +1 -1
- package/lib/Common/API.d.ts +1 -1
- package/lib/Common/API.js +1 -1
- package/lib/Common/Encoding.d.ts +1 -1
- package/lib/Common/Encoding.js +1 -1
- package/lib/Common/Request.d.ts +1 -1
- package/lib/Common/Request.js +1 -1
- package/lib/Common/Response.d.ts +1 -1
- package/lib/Common/Response.js +1 -1
- package/lib/Common/index.d.ts +1 -1
- package/lib/Common/index.js +1 -1
- package/lib/Encoder/Decoder.d.ts +1 -1
- package/lib/Encoder/Decoder.js +1 -1
- package/lib/Encoder/Encoder.d.ts +1 -1
- package/lib/Encoder/Encoder.js +1 -1
- package/lib/Encoder/Errors.d.ts +1 -1
- package/lib/Encoder/Errors.js +1 -1
- package/lib/Errors.d.ts +1 -1
- package/lib/Errors.js +1 -1
- package/lib/Server/Common/Gateway.d.ts +1 -1
- package/lib/Server/Common/Gateway.js +1 -1
- package/lib/Server/Common/Request.d.ts +1 -1
- package/lib/Server/Common/Request.js +1 -1
- package/lib/Server/Common/Router.d.ts +1 -1
- package/lib/Server/Common/Router.js +1 -1
- package/lib/Server/Common/Server.d.ts +1 -1
- package/lib/Server/Common/Server.js +1 -1
- package/lib/Server/Common/index.d.ts +1 -1
- package/lib/Server/Common/index.js +1 -1
- package/lib/Server/Errors.d.ts +1 -1
- package/lib/Server/Errors.js +1 -1
- package/lib/Server/Gateways/Http.d.ts +1 -1
- package/lib/Server/Gateways/Http.js +2 -2
- package/lib/Server/Gateways/Http.js.map +1 -1
- package/lib/Server/Gateways/TCP.d.ts +1 -1
- package/lib/Server/Gateways/TCP.js +1 -1
- package/lib/Server/Server.d.ts +1 -1
- package/lib/Server/Server.js +1 -1
- package/lib/Server/SimpleRouter.d.ts +1 -1
- package/lib/Server/SimpleRouter.js +1 -1
- package/lib/Server/index.d.ts +1 -1
- package/lib/Server/index.js +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/src/lib/Client/Common.ts +1 -1
- package/src/lib/Client/Errors.ts +1 -1
- package/src/lib/Client/HttpClient.ts +1 -1
- package/src/lib/Client/HttpsClient.ts +1 -1
- package/src/lib/Client/TCPClient.ts +1 -1
- package/src/lib/Client/TLSClient.ts +1 -1
- package/src/lib/Client/index.ts +1 -1
- package/src/lib/Common/API.ts +1 -1
- package/src/lib/Common/Encoding.ts +1 -1
- package/src/lib/Common/Request.ts +1 -1
- package/src/lib/Common/Response.ts +1 -1
- package/src/lib/Common/index.ts +1 -1
- package/src/lib/Encoder/Decoder.ts +1 -1
- package/src/lib/Encoder/Encoder.ts +1 -1
- package/src/lib/Encoder/Errors.ts +1 -1
- package/src/lib/Errors.ts +1 -1
- package/src/lib/Server/Common/Gateway.ts +1 -1
- package/src/lib/Server/Common/Request.ts +1 -1
- package/src/lib/Server/Common/Router.ts +1 -1
- package/src/lib/Server/Common/Server.ts +1 -1
- package/src/lib/Server/Common/index.ts +1 -1
- package/src/lib/Server/Errors.ts +1 -1
- package/src/lib/Server/Gateways/Http.ts +2 -2
- package/src/lib/Server/Gateways/TCP.ts +1 -1
- package/src/lib/Server/Server.ts +1 -1
- package/src/lib/Server/SimpleRouter.ts +1 -1
- package/src/lib/Server/index.ts +1 -1
- package/src/lib/index.ts +1 -1
package/CHANGES.md
CHANGED
package/lib/Client/Common.d.ts
CHANGED
package/lib/Client/Common.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright 2024 Angus.Fenying <fenying@litert.org>
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
package/lib/Client/Errors.d.ts
CHANGED
package/lib/Client/Errors.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright 2024 Angus.Fenying <fenying@litert.org>
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
package/lib/Client/HttpClient.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright 2024 Angus.Fenying <fenying@litert.org>
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright 2024 Angus.Fenying <fenying@litert.org>
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
package/lib/Client/TCPClient.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright 2024 Angus.Fenying <fenying@litert.org>
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
package/lib/Client/TLSClient.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright 2024 Angus.Fenying <fenying@litert.org>
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
package/lib/Client/index.d.ts
CHANGED
package/lib/Client/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright 2024 Angus.Fenying <fenying@litert.org>
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
package/lib/Common/API.d.ts
CHANGED
package/lib/Common/API.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright 2024 Angus.Fenying <fenying@litert.org>
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
package/lib/Common/Encoding.d.ts
CHANGED
package/lib/Common/Encoding.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright 2024 Angus.Fenying <fenying@litert.org>
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
package/lib/Common/Request.d.ts
CHANGED
package/lib/Common/Request.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright 2024 Angus.Fenying <fenying@litert.org>
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
package/lib/Common/Response.d.ts
CHANGED
package/lib/Common/Response.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright 2024 Angus.Fenying <fenying@litert.org>
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
package/lib/Common/index.d.ts
CHANGED
package/lib/Common/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright 2024 Angus.Fenying <fenying@litert.org>
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
package/lib/Encoder/Decoder.d.ts
CHANGED
package/lib/Encoder/Decoder.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright 2024 Angus.Fenying <fenying@litert.org>
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
package/lib/Encoder/Encoder.d.ts
CHANGED
package/lib/Encoder/Encoder.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright 2024 Angus.Fenying <fenying@litert.org>
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
package/lib/Encoder/Errors.d.ts
CHANGED
package/lib/Encoder/Errors.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright 2024 Angus.Fenying <fenying@litert.org>
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
package/lib/Errors.d.ts
CHANGED
package/lib/Errors.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright 2024 Angus.Fenying <fenying@litert.org>
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright 2024 Angus.Fenying <fenying@litert.org>
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright 2024 Angus.Fenying <fenying@litert.org>
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright 2024 Angus.Fenying <fenying@litert.org>
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright 2024 Angus.Fenying <fenying@litert.org>
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright 2024 Angus.Fenying <fenying@litert.org>
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
package/lib/Server/Errors.d.ts
CHANGED
package/lib/Server/Errors.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright 2024 Angus.Fenying <fenying@litert.org>
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright 2024 Angus.Fenying <fenying@litert.org>
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
|
@@ -73,7 +73,7 @@ class HttpGateway {
|
|
|
73
73
|
chunk.copy(buf, index);
|
|
74
74
|
}).on('end', () => {
|
|
75
75
|
let input;
|
|
76
|
-
if (offset !== length
|
|
76
|
+
if (offset !== length) {
|
|
77
77
|
refuseBadRequest(resp);
|
|
78
78
|
return;
|
|
79
79
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Http.js","sourceRoot":"","sources":["../../../src/lib/Server/Gateways/Http.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,kCAAkC;AAClC,+BAA+B;AAC/B,8BAA8B;AAE9B,IAAK,OAMJ;AAND,WAAK,OAAO;IA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AC,IAAI,CAAC;wBAC5B,MAAM,CAAC,CAAC,CAAC,CAAC;oBACd,CAAC,CAAC,CAAC;gBACX,CAAC,CAAC,CAAC;YAEP,KAAK,OAAO,CAAC,QAAQ;gBACjB,MAAM,IAAI,CAAC,CAAC,kBAAkB,EAAE,CAAC;YACrC,KAAK,OAAO,CAAC,OAAO;gBAChB,MAAM,IAAI,CAAC,CAAC,iBAAiB,EAAE,CAAC;YACpC,KAAK,OAAO,CAAC,OAAO;gBAChB,OAAO;QACf,CAAC;IACL,CAAC;IAEM,KAAK,CAAC,KAAK;QAEd,QAAQ,IAAI,CAAC,OAAO,EAAE,CAAC;YAEnB,KAAK,OAAO,CAAC,IAAI;gBACb,OAAO;YACX,KAAK,OAAO,CAAC,QAAQ;gBACjB,MAAM,IAAI,CAAC,CAAC,kBAAkB,EAAE,CAAC;YACrC,KAAK,OAAO,CAAC,OAAO;gBAChB,MAAM,IAAI,CAAC,CAAC,iBAAiB,EAAE,CAAC;YACpC,KAAK,OAAO,CAAC,OAAO;gBAChB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;oBAE3B,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;gBAC7C,CAAC,CAAC,CAAC;QACX,CAAC;IACL,CAAC;CACJ;AAED,SAAgB,iBAAiB,CAAC,IAAY,EAAE,IAAY,EAAE,OAAgB;IAE1E,OAAO,IAAI,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;AAChD,CAAC;AAHD,8CAGC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright 2024 Angus.Fenying <fenying@litert.org>
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
package/lib/Server/Server.d.ts
CHANGED
package/lib/Server/Server.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright 2024 Angus.Fenying <fenying@litert.org>
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright 2024 Angus.Fenying <fenying@litert.org>
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
package/lib/Server/index.d.ts
CHANGED
package/lib/Server/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright 2024 Angus.Fenying <fenying@litert.org>
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright 2024 Angus.Fenying <fenying@litert.org>
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
package/package.json
CHANGED
package/src/lib/Client/Common.ts
CHANGED
package/src/lib/Client/Errors.ts
CHANGED
package/src/lib/Client/index.ts
CHANGED
package/src/lib/Common/API.ts
CHANGED
package/src/lib/Common/index.ts
CHANGED
package/src/lib/Errors.ts
CHANGED
package/src/lib/Server/Errors.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2024 Angus.Fenying <fenying@litert.org>
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -107,7 +107,7 @@ class HttpGateway implements C.IGateway {
|
|
|
107
107
|
|
|
108
108
|
let input: any;
|
|
109
109
|
|
|
110
|
-
if (offset !== length
|
|
110
|
+
if (offset !== length) {
|
|
111
111
|
|
|
112
112
|
refuseBadRequest(resp);
|
|
113
113
|
return;
|
package/src/lib/Server/Server.ts
CHANGED
package/src/lib/Server/index.ts
CHANGED
package/src/lib/index.ts
CHANGED