@celljs/rpc 3.0.0 → 3.1.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.
- package/lib/common/annotation/detached/index.js +2 -15
- package/lib/common/annotation/detached/index.js.map +1 -1
- package/lib/common/annotation/index.js +3 -16
- package/lib/common/annotation/index.js.map +1 -1
- package/lib/common/channal/index.js +3 -16
- package/lib/common/channal/index.js.map +1 -1
- package/lib/common/converter/index.js +2 -15
- package/lib/common/converter/index.js.map +1 -1
- package/lib/common/endpoint/endpoint-resolver.js +10 -18
- package/lib/common/endpoint/endpoint-resolver.js.map +1 -1
- package/lib/common/endpoint/index.js +3 -16
- package/lib/common/endpoint/index.js.map +1 -1
- package/lib/common/error/index.js +2 -15
- package/lib/common/error/index.js.map +1 -1
- package/lib/common/factory/connection-factory.js +2 -7
- package/lib/common/factory/connection-factory.js.map +1 -1
- package/lib/common/factory/index.js +5 -18
- package/lib/common/factory/index.js.map +1 -1
- package/lib/common/handler/index.js +3 -16
- package/lib/common/handler/index.js.map +1 -1
- package/lib/common/index.js +12 -25
- package/lib/common/index.js.map +1 -1
- package/lib/common/processor/client-config-processor.js +2 -7
- package/lib/common/processor/client-config-processor.js.map +1 -1
- package/lib/common/processor/index.js +3 -16
- package/lib/common/processor/index.js.map +1 -1
- package/lib/common/proxy/delegating-http-proxy-creator.js +24 -32
- package/lib/common/proxy/delegating-http-proxy-creator.js.map +1 -1
- package/lib/common/proxy/http-proxy-creator.js +9 -3
- package/lib/common/proxy/http-proxy-creator.js.map +1 -1
- package/lib/common/proxy/index.js +5 -18
- package/lib/common/proxy/index.js.map +1 -1
- package/lib/common/proxy/proxy-provider.js +5 -16
- package/lib/common/proxy/proxy-provider.js.map +1 -1
- package/lib/common/utils/index.js +4 -17
- package/lib/common/utils/index.js.map +1 -1
- package/lib/common/utils/rpc-util.js +2 -2
- package/lib/common/utils/rpc-util.js.map +1 -1
- package/lib/node/channel/channel-manager.js +6 -17
- package/lib/node/channel/channel-manager.js.map +1 -1
- package/lib/node/channel/channel-middleware.js +4 -12
- package/lib/node/channel/channel-middleware.js.map +1 -1
- package/lib/node/channel/channel-strategy.js +2 -7
- package/lib/node/channel/channel-strategy.js.map +1 -1
- package/lib/node/channel/index.js +5 -18
- package/lib/node/channel/index.js.map +1 -1
- package/lib/node/handler/handler-adapter.js +10 -18
- package/lib/node/handler/handler-adapter.js.map +1 -1
- package/lib/node/handler/index.js +3 -16
- package/lib/node/handler/index.js.map +1 -1
- package/lib/node/index.js +3 -16
- package/lib/node/index.js.map +1 -1
- package/package.json +6 -6
|
@@ -1,18 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./autorpc"), exports);
|
|
18
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/annotation/detached/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/annotation/detached/index.ts"],"names":[],"mappings":";;;AAAA,oDAA0B"}
|
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("./
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./rpc"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./autorpc"), exports);
|
|
19
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/annotation/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/annotation/index.ts"],"names":[],"mappings":";;;AAAA,gDAAsB;AACtB,oDAA0B"}
|
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("./channel
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./http-channel"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./channel-protocol"), exports);
|
|
19
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/channal/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/channal/index.ts"],"names":[],"mappings":";;;AAAA,yDAA+B;AAC/B,6DAAmC"}
|
|
@@ -1,18 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./converter-protocol"), exports);
|
|
18
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/converter/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/converter/index.ts"],"names":[],"mappings":";;;AAAA,+DAAqC"}
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.EndpointResolverImpl = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
13
5
|
const core_1 = require("@celljs/core");
|
|
14
6
|
const constants_1 = require("../constants");
|
|
15
7
|
const web_1 = require("@celljs/web");
|
|
@@ -38,23 +30,23 @@ let EndpointResolverImpl = class EndpointResolverImpl {
|
|
|
38
30
|
.replace(/{serviceIdentifier}/g, serviceIdentifier);
|
|
39
31
|
}
|
|
40
32
|
};
|
|
41
|
-
__decorate([
|
|
33
|
+
tslib_1.__decorate([
|
|
42
34
|
(0, core_1.Value)('cell.rpc.endpoint'),
|
|
43
|
-
__metadata("design:type", Object)
|
|
35
|
+
tslib_1.__metadata("design:type", Object)
|
|
44
36
|
], EndpointResolverImpl.prototype, "endpoint", void 0);
|
|
45
|
-
__decorate([
|
|
37
|
+
tslib_1.__decorate([
|
|
46
38
|
(0, core_1.Value)('cell.rpc.defaultEndpoint'),
|
|
47
|
-
__metadata("design:type", String)
|
|
39
|
+
tslib_1.__metadata("design:type", String)
|
|
48
40
|
], EndpointResolverImpl.prototype, "defaultEndpoint", void 0);
|
|
49
|
-
__decorate([
|
|
41
|
+
tslib_1.__decorate([
|
|
50
42
|
(0, core_1.Value)(constants_1.RPC_PATH),
|
|
51
|
-
__metadata("design:type", String)
|
|
43
|
+
tslib_1.__metadata("design:type", String)
|
|
52
44
|
], EndpointResolverImpl.prototype, "rpcPath", void 0);
|
|
53
|
-
__decorate([
|
|
45
|
+
tslib_1.__decorate([
|
|
54
46
|
(0, core_1.Autowired)(web_1.PathResolver),
|
|
55
|
-
__metadata("design:type", Object)
|
|
47
|
+
tslib_1.__metadata("design:type", Object)
|
|
56
48
|
], EndpointResolverImpl.prototype, "pathResolver", void 0);
|
|
57
|
-
EndpointResolverImpl = __decorate([
|
|
49
|
+
EndpointResolverImpl = tslib_1.__decorate([
|
|
58
50
|
(0, core_1.Component)(endpoint_protocol_1.EndpointResolver)
|
|
59
51
|
], EndpointResolverImpl);
|
|
60
52
|
exports.EndpointResolverImpl = EndpointResolverImpl;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoint-resolver.js","sourceRoot":"","sources":["../../../src/common/endpoint/endpoint-resolver.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"endpoint-resolver.js","sourceRoot":"","sources":["../../../src/common/endpoint/endpoint-resolver.ts"],"names":[],"mappings":";;;;AAAA,uCAA2D;AAC3D,4CAAwC;AACxC,qCAA2C;AAC3C,oCAAiD;AACjD,2DAAuD;AAGhD,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAgB7B,KAAK,CAAC,OAAO,CAAC,iBAAyB;QACnC,IAAI,MAA0B,CAAC;QAC/B,IAAI,IAAI,CAAC,QAAQ,EAAE;YACf,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC;SAC7C;QACD,IAAI,WAAW,CAAC,IAAI,CAAC,iBAAiB,CAAC,EAAE;YACrC,MAAM,GAAG,iBAAiB,CAAC;SAC9B;QACD,IAAI,CAAC,MAAM,EAAE;YACT,MAAM,GAAG,IAAI,CAAC,eAAe,CAAC;SACjC;QACD,IAAI,CAAC,MAAM,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE;YAC5C,MAAM,GAAG,GAAG,QAAQ,CAAC,QAAQ,KAAK,QAAQ,CAAC,IAAI,+BAA+B,CAAC;SAClF;QACD,IAAI,CAAC,MAAM,EAAE;YACT,MAAM,IAAI,6BAAqB,CAAC,iBAAiB,CAAC,CAAC;SACtD;QACD,OAAO,MAAM;aACR,OAAO,CAAC,YAAY,EAAE,MAAM,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;aACpE,OAAO,CAAC,sBAAsB,EAAE,iBAAiB,CAAC,CAAC;IAC5D,CAAC;CAEJ,CAAA;AApCG;IAAC,IAAA,YAAK,EAAC,mBAAmB,CAAC;;sDAC4B;AAEvD;IAAC,IAAA,YAAK,EAAC,0BAA0B,CAAC;;6DACU;AAE5C;IAAC,IAAA,YAAK,EAAC,oBAAQ,CAAC;;qDACmB;AAEnC;IAAC,IAAA,gBAAS,EAAC,kBAAY,CAAC;;0DACa;AAZ5B,oBAAoB;IADhC,IAAA,gBAAS,EAAC,oCAAgB,CAAC;GACf,oBAAoB,CAsChC;AAtCY,oDAAoB"}
|
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("./endpoint-
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./endpoint-protocol"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./endpoint-resolver"), exports);
|
|
19
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/endpoint/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/endpoint/index.ts"],"names":[],"mappings":";;;AAAA,8DAAoC;AACpC,8DAAoC"}
|
|
@@ -1,18 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./error"), exports);
|
|
18
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/error/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/error/index.ts"],"names":[],"mappings":";;;AAAA,kDAAwB"}
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
3
|
exports.ConnnectionFactoryImpl = exports.ConnnectionFactory = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
10
5
|
const vscode_jsonrpc_1 = require("vscode-jsonrpc");
|
|
11
6
|
const reader_1 = require("./reader");
|
|
12
7
|
const writer_1 = require("./writer");
|
|
@@ -21,7 +16,7 @@ let ConnnectionFactoryImpl = class ConnnectionFactoryImpl {
|
|
|
21
16
|
return connection;
|
|
22
17
|
}
|
|
23
18
|
};
|
|
24
|
-
ConnnectionFactoryImpl = __decorate([
|
|
19
|
+
ConnnectionFactoryImpl = tslib_1.__decorate([
|
|
25
20
|
(0, core_1.Component)(exports.ConnnectionFactory)
|
|
26
21
|
], ConnnectionFactoryImpl);
|
|
27
22
|
exports.ConnnectionFactoryImpl = ConnnectionFactoryImpl;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connection-factory.js","sourceRoot":"","sources":["../../../src/common/factory/connection-factory.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"connection-factory.js","sourceRoot":"","sources":["../../../src/common/factory/connection-factory.ts"],"names":[],"mappings":";;;;AAAA,mDAAoF;AAEpF,qCAAgD;AAChD,qCAAgD;AAChD,uCAAyC;AAE5B,QAAA,kBAAkB,GAAG,MAAM,CAAC,oBAAoB,CAAC,CAAC;AAMxD,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAC/B,MAAM,CAAC,OAAgB,EAAE,MAAc;QACnC,MAAM,aAAa,GAAG,IAAI,6BAAoB,CAAC,OAAO,CAAC,CAAC;QACxD,MAAM,aAAa,GAAG,IAAI,6BAAoB,CAAC,OAAO,CAAC,CAAC;QACxD,MAAM,UAAU,GAAG,IAAA,wCAAuB,EAAC,aAAa,EAAE,aAAa,EAAE,MAAM,CAAC,CAAC;QACjF,UAAU,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC,CAAC;QAC/C,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ,CAAA;AARY,sBAAsB;IADlC,IAAA,gBAAS,EAAC,0BAAkB,CAAC;GACjB,sBAAsB,CAQlC;AARY,wDAAsB"}
|
|
@@ -1,21 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("./
|
|
19
|
-
__exportStar(require("./
|
|
20
|
-
__exportStar(require("./
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./proxy-factory"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./connection-factory"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./reader"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./writer"), exports);
|
|
21
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/factory/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/factory/index.ts"],"names":[],"mappings":";;;AAAA,0DAAgC;AAChC,+DAAqC;AACrC,mDAAyB;AACzB,mDAAyB"}
|
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("./handler
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./connection-handler"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./handler-protocol"), exports);
|
|
19
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/handler/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/handler/index.ts"],"names":[],"mappings":";;;AAAA,+DAAqC;AACrC,6DAAmC"}
|
package/lib/common/index.js
CHANGED
|
@@ -1,28 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("./
|
|
19
|
-
__exportStar(require("./
|
|
20
|
-
__exportStar(require("./
|
|
21
|
-
__exportStar(require("./
|
|
22
|
-
__exportStar(require("./
|
|
23
|
-
__exportStar(require("./
|
|
24
|
-
__exportStar(require("./
|
|
25
|
-
__exportStar(require("./
|
|
26
|
-
__exportStar(require("./
|
|
27
|
-
__exportStar(require("./
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./annotation"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./channal"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./endpoint"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./error"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./factory"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./handler"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./proxy"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./utils"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./constants"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./converter"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./processor"), exports);
|
|
28
15
|
//# sourceMappingURL=index.js.map
|
package/lib/common/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":";;;AAAA,uDAA6B;AAC7B,oDAA0B;AAC1B,qDAA2B;AAC3B,kDAAwB;AACxB,oDAA0B;AAC1B,oDAA0B;AAC1B,kDAAwB;AACxB,kDAAwB;AACxB,sDAA4B;AAC5B,sDAA4B;AAC5B,sDAA4B"}
|
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
3
|
exports.NoOpClientConfigProcessor = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
10
5
|
const core_1 = require("@celljs/core");
|
|
11
6
|
const processor_protocol_1 = require("./processor-protocol");
|
|
12
7
|
let NoOpClientConfigProcessor = class NoOpClientConfigProcessor {
|
|
13
8
|
async process(config) {
|
|
14
9
|
}
|
|
15
10
|
};
|
|
16
|
-
NoOpClientConfigProcessor = __decorate([
|
|
11
|
+
NoOpClientConfigProcessor = tslib_1.__decorate([
|
|
17
12
|
(0, core_1.Component)(processor_protocol_1.ClientConfigProcessor)
|
|
18
13
|
], NoOpClientConfigProcessor);
|
|
19
14
|
exports.NoOpClientConfigProcessor = NoOpClientConfigProcessor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-config-processor.js","sourceRoot":"","sources":["../../../src/common/processor/client-config-processor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"client-config-processor.js","sourceRoot":"","sources":["../../../src/common/processor/client-config-processor.ts"],"names":[],"mappings":";;;;AAAA,uCAAyC;AACzC,6DAA6D;AAItD,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IAElC,KAAK,CAAC,OAAO,CAAC,MAA0B;IAExC,CAAC;CAEJ,CAAA;AANY,yBAAyB;IADrC,IAAA,gBAAS,EAAC,0CAAqB,CAAC;GACpB,yBAAyB,CAMrC;AANY,8DAAyB"}
|
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("./
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./processor-protocol"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./client-config-processor"), exports);
|
|
19
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/processor/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/processor/index.ts"],"names":[],"mappings":";;;AAAA,+DAAqC;AACrC,oEAA0C"}
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.DelegatingHttpProxyCreator = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
13
5
|
const core_1 = require("@celljs/core");
|
|
14
6
|
const http_1 = require("@celljs/http");
|
|
15
7
|
const proxy_protocol_1 = require("./proxy-protocol");
|
|
@@ -40,49 +32,49 @@ let DelegatingHttpProxyCreator = class DelegatingHttpProxyCreator {
|
|
|
40
32
|
return this.delegate.support(path);
|
|
41
33
|
}
|
|
42
34
|
};
|
|
43
|
-
__decorate([
|
|
35
|
+
tslib_1.__decorate([
|
|
44
36
|
(0, core_1.Autowired)(factory_1.ConnnectionFactory),
|
|
45
|
-
__metadata("design:type", Object)
|
|
37
|
+
tslib_1.__metadata("design:type", Object)
|
|
46
38
|
], DelegatingHttpProxyCreator.prototype, "connnectionFactory", void 0);
|
|
47
|
-
__decorate([
|
|
39
|
+
tslib_1.__decorate([
|
|
48
40
|
(0, core_1.Autowired)(endpoint_1.EndpointResolver),
|
|
49
|
-
__metadata("design:type", Object)
|
|
41
|
+
tslib_1.__metadata("design:type", Object)
|
|
50
42
|
], DelegatingHttpProxyCreator.prototype, "endpointResolver", void 0);
|
|
51
|
-
__decorate([
|
|
43
|
+
tslib_1.__decorate([
|
|
52
44
|
(0, core_1.Autowired)(http_1.RestOperations),
|
|
53
|
-
__metadata("design:type", Function)
|
|
45
|
+
tslib_1.__metadata("design:type", Function)
|
|
54
46
|
], DelegatingHttpProxyCreator.prototype, "restOperations", void 0);
|
|
55
|
-
__decorate([
|
|
47
|
+
tslib_1.__decorate([
|
|
56
48
|
(0, core_1.Autowired)(processor_1.ClientConfigProcessor),
|
|
57
|
-
__metadata("design:type", Object)
|
|
49
|
+
tslib_1.__metadata("design:type", Object)
|
|
58
50
|
], DelegatingHttpProxyCreator.prototype, "clientConfigProcessor", void 0);
|
|
59
|
-
__decorate([
|
|
51
|
+
tslib_1.__decorate([
|
|
60
52
|
(0, core_1.Value)('cell.rpc.client.config'),
|
|
61
|
-
__metadata("design:type", Object)
|
|
53
|
+
tslib_1.__metadata("design:type", Object)
|
|
62
54
|
], DelegatingHttpProxyCreator.prototype, "clientConfig", void 0);
|
|
63
|
-
__decorate([
|
|
55
|
+
tslib_1.__decorate([
|
|
64
56
|
(0, core_1.Value)('cell.rpc.merge.maxCount'),
|
|
65
|
-
__metadata("design:type", Number)
|
|
57
|
+
tslib_1.__metadata("design:type", Number)
|
|
66
58
|
], DelegatingHttpProxyCreator.prototype, "maxCount", void 0);
|
|
67
|
-
__decorate([
|
|
59
|
+
tslib_1.__decorate([
|
|
68
60
|
(0, core_1.Value)('cell.rpc.merge.maxLength'),
|
|
69
|
-
__metadata("design:type", Number)
|
|
61
|
+
tslib_1.__metadata("design:type", Number)
|
|
70
62
|
], DelegatingHttpProxyCreator.prototype, "maxLength", void 0);
|
|
71
|
-
__decorate([
|
|
63
|
+
tslib_1.__decorate([
|
|
72
64
|
(0, core_1.Value)('cell.rpc.merge.timerDelay'),
|
|
73
|
-
__metadata("design:type", Number)
|
|
65
|
+
tslib_1.__metadata("design:type", Number)
|
|
74
66
|
], DelegatingHttpProxyCreator.prototype, "timerDelay", void 0);
|
|
75
|
-
__decorate([
|
|
67
|
+
tslib_1.__decorate([
|
|
76
68
|
(0, core_1.Value)('cell.rpc.merge.enabled'),
|
|
77
|
-
__metadata("design:type", Boolean)
|
|
69
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
78
70
|
], DelegatingHttpProxyCreator.prototype, "enabled", void 0);
|
|
79
|
-
__decorate([
|
|
71
|
+
tslib_1.__decorate([
|
|
80
72
|
(0, core_1.PostConstruct)(),
|
|
81
|
-
__metadata("design:type", Function),
|
|
82
|
-
__metadata("design:paramtypes", []),
|
|
83
|
-
__metadata("design:returntype", void 0)
|
|
73
|
+
tslib_1.__metadata("design:type", Function),
|
|
74
|
+
tslib_1.__metadata("design:paramtypes", []),
|
|
75
|
+
tslib_1.__metadata("design:returntype", void 0)
|
|
84
76
|
], DelegatingHttpProxyCreator.prototype, "init", null);
|
|
85
|
-
DelegatingHttpProxyCreator = __decorate([
|
|
77
|
+
DelegatingHttpProxyCreator = tslib_1.__decorate([
|
|
86
78
|
(0, core_1.Component)(proxy_protocol_1.ProxyCreator)
|
|
87
79
|
], DelegatingHttpProxyCreator);
|
|
88
80
|
exports.DelegatingHttpProxyCreator = DelegatingHttpProxyCreator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delegating-http-proxy-creator.js","sourceRoot":"","sources":["../../../src/common/proxy/delegating-http-proxy-creator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"delegating-http-proxy-creator.js","sourceRoot":"","sources":["../../../src/common/proxy/delegating-http-proxy-creator.ts"],"names":[],"mappings":";;;;AAAA,uCAA0E;AAC1E,uCAA8C;AAC9C,qDAAgD;AAChD,0CAA+C;AAC/C,wCAA8D;AAI9D,4CAAqD;AACrD,6DAAwD;AAGjD,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IAgCzB,IAAI;QACV,IAAI,CAAC,QAAQ,GAAG,IAAI,qCAAgB,CAAC;YACjC,kBAAkB,EAAE,IAAI,CAAC,kBAAkB;YAC3C,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;YACvC,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,qBAAqB,EAAE,IAAI,CAAC,qBAAqB;YACjD,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,KAAK,EAAE;gBACH,QAAQ,EAAE,IAAI,CAAC,QAAQ;gBACvB,SAAS,EAAE,IAAI,CAAC,SAAS;gBACzB,UAAU,EAAE,IAAI,CAAC,UAAU;gBAC3B,OAAO,EAAE,IAAI,CAAC,OAAO;aACxB;SACJ,CAAC,CAAC;IACP,CAAC;IAED,MAAM,CAAmB,IAAY,EAAE,eAAkC,EAAE,MAA2B;QAClG,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,eAAe,EAAE,MAAM,CAAC,CAAC;IAC/D,CAAC;IAED,OAAO,CAAC,IAAY;QAChB,OAAO,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;CACJ,CAAA;AArDG;IAAC,IAAA,gBAAS,EAAC,4BAAkB,CAAC;;sEAC4B;AAE1D;IAAC,IAAA,gBAAS,EAAC,2BAAgB,CAAC;;oEACiB;AAE7C;IAAC,IAAA,gBAAS,EAAC,qBAAc,CAAC;;kEACe;AAEzC;IAAC,IAAA,gBAAS,EAAC,iCAAqB,CAAC;;yEACsB;AAEvD;IAAC,IAAA,YAAK,EAAC,wBAAwB,CAAC;;gEACoB;AAEpD;IAAC,IAAA,YAAK,EAAC,yBAAyB,CAAC;;4DACG;AAEpC;IAAC,IAAA,YAAK,EAAC,0BAA0B,CAAC;;6DACG;AAErC;IAAC,IAAA,YAAK,EAAC,2BAA2B,CAAC;;8DACG;AAEtC;IAAC,IAAA,YAAK,EAAC,wBAAwB,CAAC;;2DACI;AAIpC;IAAC,IAAA,oBAAa,GAAE;;;;sDAef;AA9CQ,0BAA0B;IADtC,IAAA,gBAAS,EAAC,6BAAY,CAAC;GACX,0BAA0B,CAuDtC;AAvDY,gEAA0B"}
|
|
@@ -21,7 +21,7 @@ class HttpProxyCreator {
|
|
|
21
21
|
this.channelIdSeq = 0;
|
|
22
22
|
this.requestMap = new Map();
|
|
23
23
|
this.channelMap = new Map();
|
|
24
|
-
this.options =
|
|
24
|
+
this.options = { ...DEFAULT_OPTIONS, ...options, merge: { ...DEFAULT_OPTIONS.merge, ...options.merge } };
|
|
25
25
|
}
|
|
26
26
|
create(path, errorConverters, target) {
|
|
27
27
|
const factory = new factory_1.JsonRpcProxyFactory(target, errorConverters);
|
|
@@ -112,10 +112,16 @@ class HttpProxyCreator {
|
|
|
112
112
|
clearTimeout(meta.id);
|
|
113
113
|
const contents = meta.contents;
|
|
114
114
|
this.requestMap.delete(endpoint);
|
|
115
|
-
const config =
|
|
115
|
+
const config = {
|
|
116
|
+
url: endpoint,
|
|
117
|
+
method: http_1.HttpMethod.POST,
|
|
118
|
+
data: contents.length > 1 ? JSON.stringify(contents) : contents[0],
|
|
119
|
+
headers: {
|
|
116
120
|
[http_1.HttpHeaders.CONTENT_TYPE]: http_1.MediaType.APPLICATION_JSON_UTF8,
|
|
117
121
|
[http_1.HttpHeaders.X_REQUESTED_WITH]: http_1.XML_HTTP_REQUEST
|
|
118
|
-
}
|
|
122
|
+
},
|
|
123
|
+
...this.options.clientConfig
|
|
124
|
+
};
|
|
119
125
|
await ((_a = this.options.clientConfigProcessor) === null || _a === void 0 ? void 0 : _a.process(config));
|
|
120
126
|
const { data } = await this.options.restOperations.request(config);
|
|
121
127
|
if (Array.isArray(data)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-proxy-creator.js","sourceRoot":"","sources":["../../../src/common/proxy/http-proxy-creator.ts"],"names":[],"mappings":";;;AAAA,uCAAkI;AAIlI,wCAA2G;AAC3G,wCAAkD;AAKlD,oCAAyC;AAmBzC,MAAM,eAAe,GAAoE;IACrF,kBAAkB,EAAE,IAAI,gCAAsB,EAAE;IAChD,cAAc,EAAE,IAAI,mCAA4B,EAAE,CAAC,MAAM,EAAE;IAC3D,YAAY,EAAE,EAAE;IAChB,KAAK,EAAE;QACH,QAAQ,EAAE,GAAG;QACb,SAAS,EAAE,OAAO;QAClB,UAAU,EAAE,EAAE;QACd,OAAO,EAAE,KAAK;KACjB;CAEJ,CAAC;AAEF,MAAa,gBAAgB;IAQzB,YACI,OAAqK;QAP/J,iBAAY,GAAG,CAAC,CAAC;QAEjB,eAAU,GAAG,IAAI,GAAG,EAA2B,CAAC;QAChD,eAAU,GAAG,IAAI,GAAG,EAAmB,CAAC;QAK9C,IAAI,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"http-proxy-creator.js","sourceRoot":"","sources":["../../../src/common/proxy/http-proxy-creator.ts"],"names":[],"mappings":";;;AAAA,uCAAkI;AAIlI,wCAA2G;AAC3G,wCAAkD;AAKlD,oCAAyC;AAmBzC,MAAM,eAAe,GAAoE;IACrF,kBAAkB,EAAE,IAAI,gCAAsB,EAAE;IAChD,cAAc,EAAE,IAAI,mCAA4B,EAAE,CAAC,MAAM,EAAE;IAC3D,YAAY,EAAE,EAAE;IAChB,KAAK,EAAE;QACH,QAAQ,EAAE,GAAG;QACb,SAAS,EAAE,OAAO;QAClB,UAAU,EAAE,EAAE;QACd,OAAO,EAAE,KAAK;KACjB;CAEJ,CAAC;AAEF,MAAa,gBAAgB;IAQzB,YACI,OAAqK;QAP/J,iB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AAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;aACrD;QACL,CAAC,CAAC;IACN,CAAC;IAES,YAAY;QAClB,OAAO,IAAI,qBAAa,EAAE,CAAC;IAC/B,CAAC;CAEJ;AAxID,4CAwIC"}
|
|
@@ -1,21 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("./proxy-
|
|
19
|
-
__exportStar(require("./
|
|
20
|
-
__exportStar(require("./
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./proxy-provider"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./proxy-protocol"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./http-proxy-creator"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./delegating-http-proxy-creator"), exports);
|
|
21
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/proxy/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/proxy/index.ts"],"names":[],"mappings":";;;AAAA,2DAAiC;AACjC,2DAAiC;AACjC,+DAAqC;AACrC,0EAAgD"}
|
|
@@ -1,18 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
3
|
exports.ProxyProviderImpl = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
16
5
|
const core_1 = require("@celljs/core");
|
|
17
6
|
const proxy_protocol_1 = require("./proxy-protocol");
|
|
18
7
|
let ProxyProviderImpl = class ProxyProviderImpl {
|
|
@@ -27,17 +16,17 @@ let ProxyProviderImpl = class ProxyProviderImpl {
|
|
|
27
16
|
try {
|
|
28
17
|
return proxyCreator.support(path);
|
|
29
18
|
}
|
|
30
|
-
catch
|
|
19
|
+
catch {
|
|
31
20
|
return 0;
|
|
32
21
|
}
|
|
33
22
|
});
|
|
34
23
|
return prioritized.map(p => p.value);
|
|
35
24
|
}
|
|
36
25
|
};
|
|
37
|
-
ProxyProviderImpl = __decorate([
|
|
26
|
+
ProxyProviderImpl = tslib_1.__decorate([
|
|
38
27
|
(0, core_1.Component)(proxy_protocol_1.ProxyProvider),
|
|
39
|
-
__param(0, (0, core_1.Autowired)(proxy_protocol_1.ProxyCreator)),
|
|
40
|
-
__metadata("design:paramtypes", [Array])
|
|
28
|
+
tslib_1.__param(0, (0, core_1.Autowired)(proxy_protocol_1.ProxyCreator)),
|
|
29
|
+
tslib_1.__metadata("design:paramtypes", [Array])
|
|
41
30
|
], ProxyProviderImpl);
|
|
42
31
|
exports.ProxyProviderImpl = ProxyProviderImpl;
|
|
43
32
|
//# sourceMappingURL=proxy-provider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proxy-provider.js","sourceRoot":"","sources":["../../../src/common/proxy/proxy-provider.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"proxy-provider.js","sourceRoot":"","sources":["../../../src/common/proxy/proxy-provider.ts"],"names":[],"mappings":";;;;AAAA,uCAAoE;AAGpE,qDAA+D;AAGxD,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAE1B,YAEuB,aAA6B;QAA7B,kBAAa,GAAb,aAAa,CAAgB;IAChD,CAAC;IAEL,OAAO,CAAmB,IAAY,EAAE,eAAkC,EAAE,MAAe;QACvF,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,eAAe,EAAE,MAAM,CAAC,CAAC;IAC1E,CAAC;IAES,UAAU,CAAC,IAAY;QAC7B,MAAM,WAAW,GAAG,qBAAc,CAAC,iBAAiB,CAAC,IAAI,CAAC,aAAa,EAAE,YAAY,CAAC,EAAE;YACpF,IAAI;gBACA,OAAO,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;aACrC;YAAC,MAAM;gBACJ,OAAO,CAAC,CAAC;aACZ;QACL,CAAC,CAAC,CAAC;QACH,OAAO,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IACzC,CAAC;CAEJ,CAAA;AAtBY,iBAAiB;IAD7B,IAAA,gBAAS,EAAC,8BAAa,CAAC;IAIhB,mBAAA,IAAA,gBAAS,EAAC,6BAAY,CAAC,CAAA;;GAHnB,iBAAiB,CAsB7B;AAtBY,8CAAiB"}
|
|
@@ -1,20 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("./
|
|
19
|
-
__exportStar(require("./
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./rpc-util"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./converter-util"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./logger"), exports);
|
|
20
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/utils/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/utils/index.ts"],"names":[],"mappings":";;;AAAA,qDAA2B;AAC3B,2DAAiC;AACjC,mDAAyB"}
|
|
@@ -23,11 +23,11 @@ var RpcUtil;
|
|
|
23
23
|
}
|
|
24
24
|
RpcUtil.setDefaultProxyCreator = setDefaultProxyCreator;
|
|
25
25
|
function createProxyCreator(endpoint, options) {
|
|
26
|
-
return new http_proxy_creator_1.HttpProxyCreator(
|
|
26
|
+
return new http_proxy_creator_1.HttpProxyCreator({ ...options, endpointResolver: {
|
|
27
27
|
resolve(serviceIdentifier) {
|
|
28
28
|
return Promise.resolve(core_1.UrlUtil.join(endpoint, serviceIdentifier));
|
|
29
29
|
}
|
|
30
|
-
} })
|
|
30
|
+
} });
|
|
31
31
|
}
|
|
32
32
|
RpcUtil.createProxyCreator = createProxyCreator;
|
|
33
33
|
function create(endpoint, rpcServiceIdentifier, options) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rpc-util.js","sourceRoot":"","sources":["../../../src/common/utils/rpc-util.ts"],"names":[],"mappings":";;;AAAA,uCAAmE;AACnE,8CAA4C;AAC5C,oEAAsG;AAGtG,IAAI,mBAA6C,CAAC;AAElD,IAAiB,OAAO,CAsCvB;AAtCD,WAAiB,OAAO;IACpB,SAAgB,GAAG,CAAmB,oBAAoC;QACtE,IAAI,mBAAmB,EAAE;YACrB,OAAO,mBAAmB,CAAC,MAAM,CAAI,MAAM,CAAC,oBAAoB,CAAC,CAAC,CAAC;SACtE;QACD,OAAO,oBAAa,CAAC,SAAS,CAAC,gBAAG,EAAE,mBAAM,EAAE,oBAAoB,CAAC,CAAC;IACtE,CAAC;IALe,WAAG,MAKlB,CAAA;IAED,SAAgB,sBAAsB,CAAC,QAAgB,EAAE,OAAiE;QACtH,OAAO,mBAAmB,CAAC;IAC/B,CAAC;IAFe,8BAAsB,yBAErC,CA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aACJ,EAAC,CAAC,CAAC;IACR,CAAC;IANe,0BAAkB,qBAMjC,CAAA;IAED,SAAgB,MAAM,CAAmB,QAAgB,EAAE,oBAAoC,EAC3F,OAAiE;QACjE,OAAO,kBAAkB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,MAAM,CAAI,MAAM,CAAC,oBAAoB,CAAC,CAAC,CAAC;IACzF,CAAC;IAHe,cAAM,SAGrB,CAAA;IAED,SAAgB,MAAM,CAAC,iBAAsB;QACzC,OAAO,OAAO,iBAAiB,KAAK,UAAU,CAAC,CAAC,CAAC,iBAAiB,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,iBAAiB,CAAC,IAAI,IAAI,iBAAiB,CAAC,QAAQ,EAAE,CAAC;IAE3I,CAAC;IAHe,cAAM,SAGrB,CAAA;IAED,SAAgB,MAAM,CAAC,iBAAsB;QACzC,OAAO,OAAO,iBAAiB,KAAK,UAAU,CAAC,CAAC,CAAkB,iBAAiB,CAAC,CAAC,CAAC,iBAAiB,CAAC,IAAI,IAAI,iBAAiB,CAAC,QAAQ,EAAE,CAAC;IAEjJ,CAAC;IAHe,cAAM,SAGrB,CAAA;AACL,CAAC,EAtCgB,OAAO,GAAP,eAAO,KAAP,eAAO,QAsCvB"}
|
|
@@ -1,18 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
3
|
exports.ChannelManager = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
16
5
|
const node_1 = require("@celljs/web/lib/node");
|
|
17
6
|
const common_1 = require("../../common");
|
|
18
7
|
const core_1 = require("@celljs/core");
|
|
@@ -48,12 +37,12 @@ let ChannelManager = class ChannelManager {
|
|
|
48
37
|
return path.split(':').pop();
|
|
49
38
|
}
|
|
50
39
|
};
|
|
51
|
-
ChannelManager = __decorate([
|
|
40
|
+
ChannelManager = tslib_1.__decorate([
|
|
52
41
|
(0, core_1.Component)(),
|
|
53
|
-
__param(0, (0, core_1.Autowired)(common_1.ConnectionHandler)),
|
|
54
|
-
__param(0, (0, core_1.Optional)()),
|
|
55
|
-
__param(1, (0, core_1.Autowired)(common_1.ConnnectionFactory)),
|
|
56
|
-
__metadata("design:paramtypes", [Array, Object])
|
|
42
|
+
tslib_1.__param(0, (0, core_1.Autowired)(common_1.ConnectionHandler)),
|
|
43
|
+
tslib_1.__param(0, (0, core_1.Optional)()),
|
|
44
|
+
tslib_1.__param(1, (0, core_1.Autowired)(common_1.ConnnectionFactory)),
|
|
45
|
+
tslib_1.__metadata("design:paramtypes", [Array, Object])
|
|
57
46
|
], ChannelManager);
|
|
58
47
|
exports.ChannelManager = ChannelManager;
|
|
59
48
|
//# sourceMappingURL=channel-manager.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel-manager.js","sourceRoot":"","sources":["../../../src/node/channel/channel-manager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"channel-manager.js","sourceRoot":"","sources":["../../../src/node/channel/channel-manager.ts"],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AW,CAAC,IAAY;QAC9B,OAAe,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC;IACzC,CAAC;CAEJ,CAAA;AApCY,cAAc;IAD1B,IAAA,gBAAS,GAAE;IAMH,mBAAA,IAAA,gBAAS,EAAC,0BAAiB,CAAC,CAAA;IAAE,mBAAA,IAAA,eAAQ,GAAE,CAAA;IAExC,mBAAA,IAAA,gBAAS,EAAC,2BAAkB,CAAC,CAAA;;GAPzB,cAAc,CAoC1B;AApCY,wCAAc"}
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.ChannelMiddleware = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
13
5
|
const node_1 = require("@celljs/web/lib/node");
|
|
14
6
|
const core_1 = require("@celljs/core");
|
|
15
7
|
const channel_protocol_1 = require("./channel-protocol");
|
|
@@ -29,11 +21,11 @@ let ChannelMiddleware = class ChannelMiddleware {
|
|
|
29
21
|
await next();
|
|
30
22
|
}
|
|
31
23
|
};
|
|
32
|
-
__decorate([
|
|
24
|
+
tslib_1.__decorate([
|
|
33
25
|
(0, core_1.Autowired)(channel_protocol_1.ChannelStrategy),
|
|
34
|
-
__metadata("design:type", Array)
|
|
26
|
+
tslib_1.__metadata("design:type", Array)
|
|
35
27
|
], ChannelMiddleware.prototype, "channelStrategies", void 0);
|
|
36
|
-
ChannelMiddleware = __decorate([
|
|
28
|
+
ChannelMiddleware = tslib_1.__decorate([
|
|
37
29
|
(0, core_1.Component)(node_1.Middleware)
|
|
38
30
|
], ChannelMiddleware);
|
|
39
31
|
exports.ChannelMiddleware = ChannelMiddleware;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel-middleware.js","sourceRoot":"","sources":["../../../src/node/channel/channel-middleware.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"channel-middleware.js","sourceRoot":"","sources":["../../../src/node/channel/channel-middleware.ts"],"names":[],"mappings":";;;;AAAA,+CAA2D;AAC3D,uCAAoD;AACpD,yDAAwH;AACxH,uCAAsD;AAG/C,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAAvB;QAkBM,aAAQ,GAAG,8CAA2B,CAAC;IAEpD,CAAC;IAfG,KAAK,CAAC,MAAM,CAAC,GAAY,EAAE,IAAyB;QAChD,KAAK,MAAM,eAAe,IAAI,IAAI,CAAC,iBAAiB,EAAE;YAClD,IAAI,MAAM,eAAe,CAAC,OAAO,EAAE,EAAE;gBACjC,cAAO,CAAC,OAAO,CAAC,uDAAoC,EAAE,eAAe,CAAC,CAAC;gBACvE,MAAM;aACT;SACJ;QAED,GAAG,CAAC,QAAQ,CAAC,SAAS,CAAC,kBAAW,CAAC,YAAY,EAAE,gBAAS,CAAC,qBAAqB,CAAC,CAAC;QAElF,MAAM,IAAI,EAAE,CAAC;IACjB,CAAC;CAIJ,CAAA;AAlBG;IAAC,IAAA,gBAAS,EAAC,kCAAe,CAAC;;4DAC6B;AAH/C,iBAAiB;IAD7B,IAAA,gBAAS,EAAC,iBAAU,CAAC;GACT,iBAAiB,CAoB7B;AApBY,8CAAiB"}
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
3
|
exports.HttpChannelStrategy = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
10
5
|
const channal_1 = require("../../common/channal");
|
|
11
6
|
const channel_protocol_1 = require("./channel-protocol");
|
|
12
7
|
const core_1 = require("@celljs/core");
|
|
@@ -57,7 +52,7 @@ let HttpChannelStrategy = class HttpChannelStrategy {
|
|
|
57
52
|
return node_1.Context.getCurrent() instanceof node_1.Context;
|
|
58
53
|
}
|
|
59
54
|
};
|
|
60
|
-
HttpChannelStrategy = __decorate([
|
|
55
|
+
HttpChannelStrategy = tslib_1.__decorate([
|
|
61
56
|
(0, core_1.Component)(channel_protocol_1.ChannelStrategy)
|
|
62
57
|
], HttpChannelStrategy);
|
|
63
58
|
exports.HttpChannelStrategy = HttpChannelStrategy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel-strategy.js","sourceRoot":"","sources":["../../../src/node/channel/channel-strategy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"channel-strategy.js","sourceRoot":"","sources":["../../../src/node/channel/channel-strategy.ts"],"names":[],"mappings":";;;;AAAA,kDAA4D;AAC5D,yDAA8H;AAC9H,uCAAyC;AACzC,+CAA+C;AAGxC,IAAM,mB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C,CAAC;QAChF,cAAO,CAAC,OAAO,CAAC,oDAAiC,EAAE,YAAY,GAAG,CAAC,CAAC,CAAC;QACrE,IAAI,QAAQ,GAAG,cAAO,CAAC,OAAO,CAAW,uDAAoC,CAAC,CAAC;QAC/E,IAAI,CAAC,QAAQ,EAAE;YACX,QAAQ,GAAG,EAAE,CAAC;YACd,cAAO,CAAC,OAAO,CAAC,uDAAoC,EAAE,QAAQ,CAAC,CAAC;SACnE;QACD,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvB,IAAI,YAAY,GAAG,CAAC,IAAI,CAAC,EAAE;YACvB,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,KAAK,CAAC,OAAO;QACT,OAAO,cAAO,CAAC,UAAU,EAAE,YAAY,cAAO,CAAC;IACnD,CAAC;CAEJ,CAAA;AAjDY,mBAAmB;IAD/B,IAAA,gBAAS,EAAC,kCAAe,CAAC;GACd,mBAAmB,CAiD/B;AAjDY,kDAAmB"}
|
|
@@ -1,21 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("./channel-
|
|
19
|
-
__exportStar(require("./channel-
|
|
20
|
-
__exportStar(require("./channel-
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./channel-manager"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./channel-protocol"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./channel-strategy"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./channel-middleware"), exports);
|
|
21
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/channel/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/channel/index.ts"],"names":[],"mappings":";;;AAAA,4DAAkC;AAClC,6DAAmC;AACnC,6DAAmC;AACnC,+DAAqC"}
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.RpcHandlerAdapter = exports.PATH_PARMAS_ATTR = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
13
5
|
const core_1 = require("@celljs/core");
|
|
14
6
|
const channel_1 = require("../channel");
|
|
15
7
|
const handler_protocol_1 = require("./handler-protocol");
|
|
@@ -32,23 +24,23 @@ let RpcHandlerAdapter = class RpcHandlerAdapter {
|
|
|
32
24
|
return this.requestMatcher.match(await this.pathResolver.resolve(this.rpcPath));
|
|
33
25
|
}
|
|
34
26
|
};
|
|
35
|
-
__decorate([
|
|
27
|
+
tslib_1.__decorate([
|
|
36
28
|
(0, core_1.Autowired)(channel_1.ChannelManager),
|
|
37
|
-
__metadata("design:type", channel_1.ChannelManager)
|
|
29
|
+
tslib_1.__metadata("design:type", channel_1.ChannelManager)
|
|
38
30
|
], RpcHandlerAdapter.prototype, "channelManager", void 0);
|
|
39
|
-
__decorate([
|
|
31
|
+
tslib_1.__decorate([
|
|
40
32
|
(0, core_1.Autowired)(node_1.RequestMatcher),
|
|
41
|
-
__metadata("design:type", Object)
|
|
33
|
+
tslib_1.__metadata("design:type", Object)
|
|
42
34
|
], RpcHandlerAdapter.prototype, "requestMatcher", void 0);
|
|
43
|
-
__decorate([
|
|
35
|
+
tslib_1.__decorate([
|
|
44
36
|
(0, core_1.Autowired)(web_1.PathResolver),
|
|
45
|
-
__metadata("design:type", Object)
|
|
37
|
+
tslib_1.__metadata("design:type", Object)
|
|
46
38
|
], RpcHandlerAdapter.prototype, "pathResolver", void 0);
|
|
47
|
-
__decorate([
|
|
39
|
+
tslib_1.__decorate([
|
|
48
40
|
(0, core_1.Value)(common_1.RPC_PATH),
|
|
49
|
-
__metadata("design:type", String)
|
|
41
|
+
tslib_1.__metadata("design:type", String)
|
|
50
42
|
], RpcHandlerAdapter.prototype, "rpcPath", void 0);
|
|
51
|
-
RpcHandlerAdapter = __decorate([
|
|
43
|
+
RpcHandlerAdapter = tslib_1.__decorate([
|
|
52
44
|
(0, core_1.Component)(node_1.HandlerAdapter)
|
|
53
45
|
], RpcHandlerAdapter);
|
|
54
46
|
exports.RpcHandlerAdapter = RpcHandlerAdapter;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handler-adapter.js","sourceRoot":"","sources":["../../../src/node/handler/handler-adapter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"handler-adapter.js","sourceRoot":"","sources":["../../../src/node/handler/handler-adapter.ts"],"names":[],"mappings":";;;;AAAA,uCAAqE;AACrE,wCAA4C;AAC5C,yDAAkE;AAClE,+CAA+E;AAC/E,qCAA2C;AAC3C,yCAAwC;AAE3B,QAAA,gBAAgB,GAAG,YAAY,CAAC;AAGtC,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAAvB;QACM,aAAQ,GAAG,+CAA4B,CAAC;IA0BrD,CAAC;IAZG,KAAK,CAAC,MAAM;QACR,MAAM,IAAI,CAAC,cAAc,CAAC,cAAc,EAAE,CAAC;QAC3C,MAAM,QAAQ,GAAG,cAAO,CAAC,WAAW,EAAE,CAAC;QACvC,IAAI,QAAQ,CAAC,IAAI,YAAY,eAAQ,EAAE;YACnC,QAAQ,CAAC,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC;SAC/C;IACL,CAAC;IAED,KAAK,CAAC,SAAS;QACX,OAAO,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,MAAM,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IACpF,CAAC;CAEJ,CAAA;AAxBG;IAAC,IAAA,gBAAS,EAAC,wBAAc,CAAC;sCACS,wBAAc;yDAAC;AAElD;IAAC,IAAA,gBAAS,EAAC,qBAAc,CAAC;;yDACwB;AAElD;IAAC,IAAA,gBAAS,EAAC,kBAAY,CAAC;;uDACsB;AAE9C;IAAC,IAAA,YAAK,EAAC,iBAAQ,CAAC;;kDACmB;AAb1B,iBAAiB;IAD7B,IAAA,gBAAS,EAAC,qBAAc,CAAC;GACb,iBAAiB,CA2B7B;AA3BY,8CAAiB"}
|
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("./handler-
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./handler-adapter"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./handler-protocol"), exports);
|
|
19
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/handler/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/handler/index.ts"],"names":[],"mappings":";;;AAAA,4DAAkC;AAClC,6DAAmC"}
|
package/lib/node/index.js
CHANGED
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("./
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./channel"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./handler"), exports);
|
|
19
6
|
//# sourceMappingURL=index.js.map
|
package/lib/node/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/node/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/node/index.ts"],"names":[],"mappings":";;;AAAA,oDAA0B;AAC1B,oDAA0B"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/rpc",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/common/index.js",
|
|
6
6
|
"typings": "lib/common/index.d.ts",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@celljs/core": "3.
|
|
9
|
-
"@celljs/http": "3.
|
|
10
|
-
"@celljs/web": "3.
|
|
8
|
+
"@celljs/core": "3.1.0",
|
|
9
|
+
"@celljs/http": "3.1.0",
|
|
10
|
+
"@celljs/web": "3.1.0",
|
|
11
11
|
"axios": "^0.26.1",
|
|
12
12
|
"vscode-jsonrpc": "^6.0.0"
|
|
13
13
|
},
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"test": "cell-component test:js"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@celljs/component": "3.
|
|
42
|
+
"@celljs/component": "3.1.0"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "6bb7168beaf93b3c54ef92ce51775e9603163444"
|
|
45
45
|
}
|