@gitpod/gitpod-protocol 0.1.5-sefftinge-create-feature-flag-for-4354.0 → 0.1.5-server-vscode-oauth2.11
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/data/gitpod-schema.json +4 -22
- package/lib/accounting-protocol.d.ts +3 -5
- package/lib/accounting-protocol.d.ts.map +1 -1
- package/lib/accounting-protocol.js +6 -11
- package/lib/accounting-protocol.js.map +1 -1
- package/lib/admin-protocol.d.ts +9 -4
- package/lib/admin-protocol.d.ts.map +1 -1
- package/lib/admin-protocol.js +2 -13
- package/lib/admin-protocol.js.map +1 -1
- package/lib/analytics.d.ts +44 -0
- package/lib/analytics.d.ts.map +1 -0
- package/lib/{util/without.js → analytics.js} +4 -2
- package/lib/analytics.js.map +1 -0
- package/lib/context-url.d.ts +18 -0
- package/lib/context-url.d.ts.map +1 -0
- package/lib/context-url.js +49 -0
- package/lib/context-url.js.map +1 -0
- package/lib/{util/context-url.spec.d.ts → context-url.spec.d.ts} +2 -0
- package/lib/context-url.spec.d.ts.map +1 -0
- package/lib/context-url.spec.js +73 -0
- package/lib/context-url.spec.js.map +1 -0
- package/lib/email-protocol.d.ts +1 -2
- package/lib/email-protocol.d.ts.map +1 -1
- package/lib/email-protocol.js +3 -3
- package/lib/email-protocol.js.map +1 -1
- package/lib/encryption/container-module.js +4 -4
- package/lib/encryption/container-module.js.map +1 -1
- package/lib/encryption/encryption-engine.js +19 -20
- package/lib/encryption/encryption-engine.js.map +1 -1
- package/lib/encryption/encryption-engine.spec.js +29 -36
- package/lib/encryption/encryption-engine.spec.js.map +1 -1
- package/lib/encryption/encryption-service.js +29 -43
- package/lib/encryption/encryption-service.js.map +1 -1
- package/lib/encryption/key-provider.js +25 -30
- package/lib/encryption/key-provider.js.map +1 -1
- package/lib/env.d.ts +1 -2
- package/lib/env.d.ts.map +1 -1
- package/lib/env.js +20 -21
- package/lib/env.js.map +1 -1
- package/lib/gitpod-file-parser.js +25 -41
- package/lib/gitpod-file-parser.js.map +1 -1
- package/lib/gitpod-file-parser.spec.js +116 -116
- package/lib/gitpod-file-parser.spec.js.map +1 -1
- package/lib/gitpod-service.d.ts +74 -5
- package/lib/gitpod-service.d.ts.map +1 -1
- package/lib/gitpod-service.js +149 -294
- package/lib/gitpod-service.js.map +1 -1
- package/lib/headless-workspace-log.d.ts +8 -11
- package/lib/headless-workspace-log.d.ts.map +1 -1
- package/lib/headless-workspace-log.js +4 -7
- package/lib/headless-workspace-log.js.map +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -1
- package/lib/messaging/browser/connection.d.ts +3 -3
- package/lib/messaging/browser/connection.d.ts.map +1 -1
- package/lib/messaging/browser/connection.js +172 -35
- package/lib/messaging/browser/connection.js.map +1 -1
- package/lib/messaging/browser/window-connection.js +34 -54
- package/lib/messaging/browser/window-connection.js.map +1 -1
- package/lib/messaging/client-call-metrics.d.ts +35 -0
- package/lib/messaging/client-call-metrics.d.ts.map +1 -0
- package/lib/messaging/client-call-metrics.js +83 -0
- package/lib/messaging/client-call-metrics.js.map +1 -0
- package/lib/messaging/connection-error-handler.js +11 -23
- package/lib/messaging/connection-error-handler.js.map +1 -1
- package/lib/messaging/error.d.ts +1 -0
- package/lib/messaging/error.d.ts.map +1 -1
- package/lib/messaging/error.js +2 -0
- package/lib/messaging/error.js.map +1 -1
- package/lib/messaging/handler.d.ts +10 -0
- package/lib/messaging/handler.d.ts.map +1 -1
- package/lib/messaging/node/connection.js +21 -21
- package/lib/messaging/node/connection.js.map +1 -1
- package/lib/messaging/proxy-factory.d.ts +2 -0
- package/lib/messaging/proxy-factory.d.ts.map +1 -1
- package/lib/messaging/proxy-factory.js +74 -159
- package/lib/messaging/proxy-factory.js.map +1 -1
- package/lib/permission.d.ts +1 -2
- package/lib/permission.d.ts.map +1 -1
- package/lib/permission.js +12 -13
- package/lib/permission.js.map +1 -1
- package/lib/plans.js +38 -57
- package/lib/plans.js.map +1 -1
- package/lib/protocol.d.ts +52 -22
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +68 -115
- package/lib/protocol.js.map +1 -1
- package/lib/team-subscription-protocol.d.ts +3 -3
- package/lib/team-subscription-protocol.d.ts.map +1 -1
- package/lib/team-subscription-protocol.js +13 -10
- package/lib/team-subscription-protocol.js.map +1 -1
- package/lib/teams-projects-protocol.d.ts +102 -0
- package/lib/teams-projects-protocol.d.ts.map +1 -0
- package/lib/teams-projects-protocol.js +23 -0
- package/lib/teams-projects-protocol.js.map +1 -0
- package/lib/util/analytics.d.ts +1 -26
- package/lib/util/analytics.d.ts.map +1 -1
- package/lib/util/analytics.js +36 -28
- package/lib/util/analytics.js.map +1 -1
- package/lib/util/async-iterator.js +55 -133
- package/lib/util/async-iterator.js.map +1 -1
- package/lib/util/cancelable.js +17 -59
- package/lib/util/cancelable.js.map +1 -1
- package/lib/util/date-time.js +8 -8
- package/lib/util/date-time.js.map +1 -1
- package/lib/util/deferred.js +10 -12
- package/lib/util/deferred.js.map +1 -1
- package/lib/util/disposable.js +26 -39
- package/lib/util/disposable.js.map +1 -1
- package/lib/util/event.js +58 -74
- package/lib/util/event.js.map +1 -1
- package/lib/util/garbage-collected-cache.js +22 -46
- package/lib/util/garbage-collected-cache.js.map +1 -1
- package/lib/util/generate-workspace-id.d.ts.map +1 -1
- package/lib/util/generate-workspace-id.js +12 -67
- package/lib/util/generate-workspace-id.js.map +1 -1
- package/lib/util/generate-workspace-id.spec.js +34 -79
- package/lib/util/generate-workspace-id.spec.js.map +1 -1
- package/lib/util/gitpod-cookie.d.ts +20 -0
- package/lib/util/gitpod-cookie.d.ts.map +1 -0
- package/lib/util/gitpod-cookie.js +44 -0
- package/lib/util/gitpod-cookie.js.map +1 -0
- package/lib/util/gitpod-host-url.js +93 -103
- package/lib/util/gitpod-host-url.js.map +1 -1
- package/lib/util/gitpod-host-url.spec.d.ts +5 -0
- package/lib/util/gitpod-host-url.spec.d.ts.map +1 -1
- package/lib/util/gitpod-host-url.spec.js +92 -70
- package/lib/util/gitpod-host-url.spec.js.map +1 -1
- package/lib/util/grpc.d.ts +15 -0
- package/lib/util/grpc.d.ts.map +1 -0
- package/lib/util/grpc.js +18 -0
- package/lib/util/grpc.js.map +1 -0
- package/lib/util/logging.d.ts +17 -1
- package/lib/util/logging.d.ts.map +1 -1
- package/lib/util/logging.js +107 -110
- package/lib/util/logging.js.map +1 -1
- package/lib/util/make-link.js +2 -2
- package/lib/util/make-link.js.map +1 -1
- package/lib/util/parse-workspace-id.d.ts +10 -0
- package/lib/util/parse-workspace-id.d.ts.map +1 -1
- package/lib/util/parse-workspace-id.js +31 -7
- package/lib/util/parse-workspace-id.js.map +1 -1
- package/lib/util/parse-workspace-id.spec.d.ts +4 -0
- package/lib/util/parse-workspace-id.spec.d.ts.map +1 -1
- package/lib/util/parse-workspace-id.spec.js +123 -84
- package/lib/util/parse-workspace-id.spec.js.map +1 -1
- package/lib/util/queue.js +16 -55
- package/lib/util/queue.js.map +1 -1
- package/lib/util/queue.spec.js +144 -288
- package/lib/util/queue.spec.js.map +1 -1
- package/lib/util/repeater.js +35 -88
- package/lib/util/repeater.js.map +1 -1
- package/lib/util/safe-promise.js +9 -12
- package/lib/util/safe-promise.js.map +1 -1
- package/lib/util/semaphore.js +15 -46
- package/lib/util/semaphore.js.map +1 -1
- package/lib/util/skip-if.js +6 -6
- package/lib/util/skip-if.js.map +1 -1
- package/lib/util/timeutil.js +16 -16
- package/lib/util/timeutil.js.map +1 -1
- package/lib/util/timeutil.spec.js +21 -24
- package/lib/util/timeutil.spec.js.map +1 -1
- package/lib/util/tracing.js +43 -47
- package/lib/util/tracing.js.map +1 -1
- package/lib/util/workspace-port-authentication.js +2 -2
- package/lib/util/workspace-port-authentication.js.map +1 -1
- package/lib/workspace-cluster.d.ts +12 -3
- package/lib/workspace-cluster.d.ts.map +1 -1
- package/lib/workspace-cluster.js +3 -3
- package/lib/workspace-cluster.js.map +1 -1
- package/lib/workspace-instance.d.ts +3 -0
- package/lib/workspace-instance.d.ts.map +1 -1
- package/lib/wsready.js +1 -1
- package/lib/wsready.js.map +1 -1
- package/package.json +11 -6
- package/pkg-yarn.lock +7 -4
- package/src/accounting-protocol.ts +3 -7
- package/src/admin-protocol.ts +10 -5
- package/src/analytics.ts +52 -0
- package/src/context-url.spec.ts +39 -0
- package/src/context-url.ts +51 -0
- package/src/email-protocol.ts +1 -2
- package/src/env.ts +10 -10
- package/src/gitpod-service.ts +90 -12
- package/src/headless-workspace-log.ts +7 -11
- package/src/index.ts +2 -0
- package/src/messaging/browser/connection.ts +176 -10
- package/src/messaging/client-call-metrics.ts +97 -0
- package/src/messaging/error.ts +3 -0
- package/src/messaging/handler.ts +12 -0
- package/src/messaging/node/connection.ts +2 -2
- package/src/messaging/proxy-factory.ts +13 -5
- package/src/permission.ts +0 -1
- package/src/protocol.ts +73 -28
- package/src/team-subscription-protocol.ts +5 -3
- package/src/teams-projects-protocol.ts +131 -0
- package/src/util/analytics.ts +17 -30
- package/src/util/generate-workspace-id.ts +1 -0
- package/src/util/gitpod-cookie.ts +39 -0
- package/src/util/gitpod-host-url.spec.ts +20 -0
- package/src/util/gitpod-host-url.ts +1 -1
- package/src/util/grpc.ts +15 -0
- package/src/util/logging.ts +70 -6
- package/src/util/parse-workspace-id.spec.ts +21 -1
- package/src/util/parse-workspace-id.ts +32 -6
- package/src/workspace-cluster.ts +9 -3
- package/src/workspace-instance.ts +19 -7
- package/src/wsready.ts +1 -1
- package/lib/util/context-url.d.ts +0 -13
- package/lib/util/context-url.d.ts.map +0 -1
- package/lib/util/context-url.js +0 -26
- package/lib/util/context-url.js.map +0 -1
- package/lib/util/context-url.spec.d.ts.map +0 -1
- package/lib/util/context-url.spec.js +0 -52
- package/lib/util/context-url.spec.js.map +0 -1
- package/lib/util/without.d.ts +0 -7
- package/lib/util/without.d.ts.map +0 -1
- package/lib/util/without.js.map +0 -1
- package/src/util/context-url.spec.ts +0 -25
- package/src/util/context-url.ts +0 -23
- package/src/util/without.ts +0 -8
|
@@ -22,81 +22,103 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
23
23
|
});
|
|
24
24
|
};
|
|
25
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
26
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
27
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
28
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
29
|
-
function step(op) {
|
|
30
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
31
|
-
while (_) try {
|
|
32
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
33
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
34
|
-
switch (op[0]) {
|
|
35
|
-
case 0: case 1: t = op; break;
|
|
36
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
37
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
38
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
39
|
-
default:
|
|
40
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
41
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
42
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
43
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
44
|
-
if (t[2]) _.ops.pop();
|
|
45
|
-
_.trys.pop(); continue;
|
|
46
|
-
}
|
|
47
|
-
op = body.call(thisArg, _);
|
|
48
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
49
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
26
|
exports.GitpodHostUrlTest = void 0;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
GitpodHostUrlTest.prototype.parseWorkspaceId_pathBased = function () {
|
|
62
|
-
var actual = gitpod_host_url_1.GitpodHostUrl.fromWorkspaceUrl("http://35.223.201.195/workspace/bc77e03d-c781-4235-bca0-e24087f5e472/").workspaceId;
|
|
27
|
+
const chai = require("chai");
|
|
28
|
+
const mocha_typescript_1 = require("mocha-typescript");
|
|
29
|
+
const gitpod_host_url_1 = require("./gitpod-host-url");
|
|
30
|
+
const expect = chai.expect;
|
|
31
|
+
let GitpodHostUrlTest = class GitpodHostUrlTest {
|
|
32
|
+
parseWorkspaceId_pathBased() {
|
|
33
|
+
const actual = gitpod_host_url_1.GitpodHostUrl.fromWorkspaceUrl("http://35.223.201.195/workspace/bc77e03d-c781-4235-bca0-e24087f5e472/").workspaceId;
|
|
63
34
|
expect(actual).to.equal("bc77e03d-c781-4235-bca0-e24087f5e472");
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
|
|
35
|
+
}
|
|
36
|
+
parseWorkspaceId_hosts_withEnvVarsInjected() {
|
|
37
|
+
const actual = gitpod_host_url_1.GitpodHostUrl.fromWorkspaceUrl("https://gray-grasshopper-nfbitfia.ws-eu02.gitpod-staging.com/#passedin=test%20value/https://github.com/gitpod-io/gitpod-test-repo").workspaceId;
|
|
67
38
|
expect(actual).to.equal("gray-grasshopper-nfbitfia");
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
39
|
+
}
|
|
40
|
+
testWithoutWorkspacePrefix() {
|
|
41
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
42
|
+
expect(gitpod_host_url_1.GitpodHostUrl.fromWorkspaceUrl("https://3000-moccasin-ferret-155799b3.ws-eu02.gitpod-staging.com/").withoutWorkspacePrefix().toString()).to.equal("https://gitpod-staging.com/");
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
testWithoutWorkspacePrefix2() {
|
|
46
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
47
|
+
expect(gitpod_host_url_1.GitpodHostUrl.fromWorkspaceUrl("https://gitpod-staging.com/").withoutWorkspacePrefix().toString()).to.equal("https://gitpod-staging.com/");
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
testWithoutWorkspacePrefix3() {
|
|
51
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
+
expect(gitpod_host_url_1.GitpodHostUrl.fromWorkspaceUrl("https://gray-rook-5523v5d8.ws-dev.my-branch-1234.staging.gitpod-dev.com/").withoutWorkspacePrefix().toString()).to.equal("https://my-branch-1234.staging.gitpod-dev.com/");
|
|
75
53
|
});
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
54
|
+
}
|
|
55
|
+
testWithoutWorkspacePrefix4() {
|
|
56
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
+
expect(gitpod_host_url_1.GitpodHostUrl.fromWorkspaceUrl("https://my-branch-1234.staging.gitpod-dev.com/").withoutWorkspacePrefix().toString()).to.equal("https://my-branch-1234.staging.gitpod-dev.com/");
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
testWithoutWorkspacePrefix5() {
|
|
61
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
+
expect(gitpod_host_url_1.GitpodHostUrl.fromWorkspaceUrl("https://abc-nice-brunch-4224.staging.gitpod-dev.com/").withoutWorkspacePrefix().toString()).to.equal("https://abc-nice-brunch-4224.staging.gitpod-dev.com/");
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
testWithoutWorkspacePrefix6() {
|
|
66
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
+
expect(gitpod_host_url_1.GitpodHostUrl.fromWorkspaceUrl("https://gray-rook-5523v5d8.ws-dev.abc-nice-brunch-4224.staging.gitpod-dev.com/").withoutWorkspacePrefix().toString()).to.equal("https://abc-nice-brunch-4224.staging.gitpod-dev.com/");
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
__decorate([
|
|
72
|
+
mocha_typescript_1.test,
|
|
73
|
+
__metadata("design:type", Function),
|
|
74
|
+
__metadata("design:paramtypes", []),
|
|
75
|
+
__metadata("design:returntype", void 0)
|
|
76
|
+
], GitpodHostUrlTest.prototype, "parseWorkspaceId_pathBased", null);
|
|
77
|
+
__decorate([
|
|
78
|
+
mocha_typescript_1.test,
|
|
79
|
+
__metadata("design:type", Function),
|
|
80
|
+
__metadata("design:paramtypes", []),
|
|
81
|
+
__metadata("design:returntype", void 0)
|
|
82
|
+
], GitpodHostUrlTest.prototype, "parseWorkspaceId_hosts_withEnvVarsInjected", null);
|
|
83
|
+
__decorate([
|
|
84
|
+
mocha_typescript_1.test,
|
|
85
|
+
__metadata("design:type", Function),
|
|
86
|
+
__metadata("design:paramtypes", []),
|
|
87
|
+
__metadata("design:returntype", Promise)
|
|
88
|
+
], GitpodHostUrlTest.prototype, "testWithoutWorkspacePrefix", null);
|
|
89
|
+
__decorate([
|
|
90
|
+
mocha_typescript_1.test,
|
|
91
|
+
__metadata("design:type", Function),
|
|
92
|
+
__metadata("design:paramtypes", []),
|
|
93
|
+
__metadata("design:returntype", Promise)
|
|
94
|
+
], GitpodHostUrlTest.prototype, "testWithoutWorkspacePrefix2", null);
|
|
95
|
+
__decorate([
|
|
96
|
+
mocha_typescript_1.test,
|
|
97
|
+
__metadata("design:type", Function),
|
|
98
|
+
__metadata("design:paramtypes", []),
|
|
99
|
+
__metadata("design:returntype", Promise)
|
|
100
|
+
], GitpodHostUrlTest.prototype, "testWithoutWorkspacePrefix3", null);
|
|
101
|
+
__decorate([
|
|
102
|
+
mocha_typescript_1.test,
|
|
103
|
+
__metadata("design:type", Function),
|
|
104
|
+
__metadata("design:paramtypes", []),
|
|
105
|
+
__metadata("design:returntype", Promise)
|
|
106
|
+
], GitpodHostUrlTest.prototype, "testWithoutWorkspacePrefix4", null);
|
|
107
|
+
__decorate([
|
|
108
|
+
mocha_typescript_1.test,
|
|
109
|
+
__metadata("design:type", Function),
|
|
110
|
+
__metadata("design:paramtypes", []),
|
|
111
|
+
__metadata("design:returntype", Promise)
|
|
112
|
+
], GitpodHostUrlTest.prototype, "testWithoutWorkspacePrefix5", null);
|
|
113
|
+
__decorate([
|
|
114
|
+
mocha_typescript_1.test,
|
|
115
|
+
__metadata("design:type", Function),
|
|
116
|
+
__metadata("design:paramtypes", []),
|
|
117
|
+
__metadata("design:returntype", Promise)
|
|
118
|
+
], GitpodHostUrlTest.prototype, "testWithoutWorkspacePrefix6", null);
|
|
119
|
+
GitpodHostUrlTest = __decorate([
|
|
120
|
+
mocha_typescript_1.suite
|
|
121
|
+
], GitpodHostUrlTest);
|
|
100
122
|
exports.GitpodHostUrlTest = GitpodHostUrlTest;
|
|
101
123
|
module.exports = new GitpodHostUrlTest();
|
|
102
124
|
//# sourceMappingURL=gitpod-host-url.spec.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gitpod-host-url.spec.js","sourceRoot":"","sources":["../../src/util/gitpod-host-url.spec.ts"],"names":[],"mappings":";AAAA;;;;GAIG
|
|
1
|
+
{"version":3,"file":"gitpod-host-url.spec.js","sourceRoot":"","sources":["../../src/util/gitpod-host-url.spec.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;AAEH,6BAA6B;AAC7B,uDAA+C;AAC/C,uDAAkD;AAClD,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;AAG3B,IAAa,iBAAiB,GAA9B,MAAa,iBAAiB;IAEb,0BAA0B;QACnC,MAAM,MAAM,GAAG,+BAAa,CAAC,gBAAgB,CAAC,uEAAuE,CAAC,CAAC,WAAW,CAAC;QACnI,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,sCAAsC,CAAC,CAAC;IACpE,CAAC;IAEY,0CAA0C;QACnD,MAAM,MAAM,GAAG,+BAAa,CAAC,gBAAgB,CAAC,mIAAmI,CAAC,CAAC,WAAW,CAAC;QAC/L,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,2BAA2B,CAAC,CAAC;IACzD,CAAC;IAEkB,0BAA0B;;YACzC,MAAM,CAAC,+BAAa,CAAC,gBAAgB,CAAC,mEAAmE,CAAC,CAAC,sBAAsB,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC;QAC5L,CAAC;KAAA;IAEkB,2BAA2B;;YAC1C,MAAM,CAAC,+BAAa,CAAC,gBAAgB,CAAC,6BAA6B,CAAC,CAAC,sBAAsB,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC;QACtJ,CAAC;KAAA;IAEkB,2BAA2B;;YAC1C,MAAM,CAAC,+BAAa,CAAC,gBAAgB,CAAC,0EAA0E,CAAC,CAAC,sBAAsB,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,gDAAgD,CAAC,CAAC;QACtN,CAAC;KAAA;IAEkB,2BAA2B;;YAC1C,MAAM,CAAC,+BAAa,CAAC,gBAAgB,CAAC,gDAAgD,CAAC,CAAC,sBAAsB,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,gDAAgD,CAAC,CAAC;QAC5L,CAAC;KAAA;IAEkB,2BAA2B;;YAC1C,MAAM,CAAC,+BAAa,CAAC,gBAAgB,CAAC,sDAAsD,CAAC,CAAC,sBAAsB,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,sDAAsD,CAAC,CAAC;QACxM,CAAC;KAAA;IAEkB,2BAA2B;;YAC1C,MAAM,CAAC,+BAAa,CAAC,gBAAgB,CAAC,gFAAgF,CAAC,CAAC,sBAAsB,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,sDAAsD,CAAC,CAAC;QAClO,CAAC;KAAA;CACJ,CAAA;AAjCS;IAAL,uBAAI;;;;mEAGJ;AAEK;IAAL,uBAAI;;;;mFAGJ;AAEK;IAAL,uBAAI;;;;mEAEJ;AAEK;IAAL,uBAAI;;;;oEAEJ;AAEK;IAAL,uBAAI;;;;oEAEJ;AAEK;IAAL,uBAAI;;;;oEAEJ;AAEK;IAAL,uBAAI;;;;oEAEJ;AAEK;IAAL,uBAAI;;;;oEAEJ;AAlCQ,iBAAiB;IAD7B,wBAAK;GACO,iBAAiB,CAmC7B;AAnCY,8CAAiB;AAoC9B,MAAM,CAAC,OAAO,GAAG,IAAI,iBAAiB,EAAE,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2021 Gitpod GmbH. All rights reserved.
|
|
3
|
+
* Licensed under the GNU Affero General Public License (AGPL).
|
|
4
|
+
* See License-AGPL.txt in the project root for license information.
|
|
5
|
+
*/
|
|
6
|
+
export declare const defaultGRPCOptions: {
|
|
7
|
+
"grpc.keepalive_timeout_ms": number;
|
|
8
|
+
"grpc.keepalive_time_ms": number;
|
|
9
|
+
"grpc.http2.min_time_between_pings_ms": number;
|
|
10
|
+
"grpc.keepalive_permit_without_calls": number;
|
|
11
|
+
"grpc-node.max_session_memory": number;
|
|
12
|
+
"grpc.max_reconnect_backoff_ms": number;
|
|
13
|
+
"grpc.max_receive_message_length": number;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=grpc.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grpc.d.ts","sourceRoot":"","sources":["../../src/util/grpc.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;CAQ/B,CAAC"}
|
package/lib/util/grpc.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) 2021 Gitpod GmbH. All rights reserved.
|
|
4
|
+
* Licensed under the GNU Affero General Public License (AGPL).
|
|
5
|
+
* See License-AGPL.txt in the project root for license information.
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.defaultGRPCOptions = void 0;
|
|
9
|
+
exports.defaultGRPCOptions = {
|
|
10
|
+
"grpc.keepalive_timeout_ms": 10000,
|
|
11
|
+
"grpc.keepalive_time_ms": 60000,
|
|
12
|
+
"grpc.http2.min_time_between_pings_ms": 10000,
|
|
13
|
+
"grpc.keepalive_permit_without_calls": 1,
|
|
14
|
+
"grpc-node.max_session_memory": 50,
|
|
15
|
+
"grpc.max_reconnect_backoff_ms": 5000,
|
|
16
|
+
"grpc.max_receive_message_length": 1024 * 1024 * 16,
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=grpc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grpc.js","sourceRoot":"","sources":["../../src/util/grpc.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEW,QAAA,kBAAkB,GAAG;IAC/B,2BAA2B,EAAE,KAAK;IAClC,wBAAwB,EAAE,KAAK;IAC/B,sCAAsC,EAAE,KAAK;IAC7C,qCAAqC,EAAE,CAAC;IACxC,8BAA8B,EAAE,EAAE;IAClC,+BAA+B,EAAE,IAAI;IACrC,iCAAiC,EAAE,IAAI,GAAG,IAAI,GAAG,EAAE;CACtD,CAAC"}
|
package/lib/util/logging.d.ts
CHANGED
|
@@ -70,7 +70,23 @@ export declare namespace log {
|
|
|
70
70
|
/**
|
|
71
71
|
* Do not use in frontend.
|
|
72
72
|
*/
|
|
73
|
-
function enableJSONLogging(componentArg: string, versionArg: string | undefined): void;
|
|
73
|
+
function enableJSONLogging(componentArg: string, versionArg: string | undefined, logLevel?: LogrusLogLevel): void;
|
|
74
|
+
function setLogLevel(logLevel: LogrusLogLevel | undefined): void;
|
|
74
75
|
function resetToDefaultLogging(): void;
|
|
76
|
+
function setVersion(versionArg: string): void;
|
|
77
|
+
}
|
|
78
|
+
export declare type LogrusLogLevel = keyof (typeof LogrusLogLevels);
|
|
79
|
+
export declare const LogrusLogLevels: {
|
|
80
|
+
trace: boolean;
|
|
81
|
+
debug: boolean;
|
|
82
|
+
info: boolean;
|
|
83
|
+
warning: boolean;
|
|
84
|
+
error: boolean;
|
|
85
|
+
fatal: boolean;
|
|
86
|
+
panic: boolean;
|
|
87
|
+
};
|
|
88
|
+
export declare namespace LogrusLogLevel {
|
|
89
|
+
function isGreatherOrEqual(lvl: LogrusLogLevel | undefined, ref: LogrusLogLevel | undefined): boolean;
|
|
90
|
+
function getFromEnv(): LogrusLogLevel | undefined;
|
|
75
91
|
}
|
|
76
92
|
//# sourceMappingURL=logging.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logging.d.ts","sourceRoot":"","sources":["../../src/util/logging.ts"],"names":[],"mappings":"AAAA;;;;GAI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AC;IAClE,SAAgB,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7C,SAAgB,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,GAAG,IAAI,CAAC;IAC/D,SAAgB,KAAK,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IAK1C;;OAEG;IACH,SAAgB,iBAAiB,CAAC,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,SAAS,EAAE,QAAQ,CAAC,EAAE,cAAc,GAAG,IAAI,CAKvH;IAED,SAAgB,WAAW,CAAC,QAAQ,EAAE,cAAc,GAAG,SAAS,QA6B/D;IAED,SAAgB,qBAAqB,IAAI,IAAI,CAQ5C;IAED,SAAgB,UAAU,CAAC,UAAU,EAAE,MAAM,QAE5C;CACJ;AAyBD,oBAAY,cAAc,GAAG,MAAM,CAAC,OAAO,eAAe,CAAC,CAAC;AAC5D,eAAO,MAAM,eAAe;;;;;;;;CAQ3B,CAAA;AACD,yBAAiB,cAAc,CAAC;IAC5B,SAAgB,iBAAiB,CAAC,GAAG,EAAE,cAAc,GAAG,SAAS,EAAE,GAAG,EAAE,cAAc,GAAG,SAAS,GAAG,OAAO,CAQ3G;IAKD,SAAgB,UAAU,IAAI,cAAc,GAAG,SAAS,CAWvD;CACJ"}
|
package/lib/util/logging.js
CHANGED
|
@@ -4,43 +4,12 @@
|
|
|
4
4
|
* Licensed under the GNU Affero General Public License (AGPL).
|
|
5
5
|
* See License-AGPL.txt in the project root for license information.
|
|
6
6
|
*/
|
|
7
|
-
var __assign = (this && this.__assign) || function () {
|
|
8
|
-
__assign = Object.assign || function(t) {
|
|
9
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
10
|
-
s = arguments[i];
|
|
11
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
12
|
-
t[p] = s[p];
|
|
13
|
-
}
|
|
14
|
-
return t;
|
|
15
|
-
};
|
|
16
|
-
return __assign.apply(this, arguments);
|
|
17
|
-
};
|
|
18
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
19
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
20
|
-
if (!m) return o;
|
|
21
|
-
var i = m.call(o), r, ar = [], e;
|
|
22
|
-
try {
|
|
23
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
24
|
-
}
|
|
25
|
-
catch (error) { e = { error: error }; }
|
|
26
|
-
finally {
|
|
27
|
-
try {
|
|
28
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
29
|
-
}
|
|
30
|
-
finally { if (e) throw e.error; }
|
|
31
|
-
}
|
|
32
|
-
return ar;
|
|
33
|
-
};
|
|
34
|
-
var __spread = (this && this.__spread) || function () {
|
|
35
|
-
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
|
|
36
|
-
return ar;
|
|
37
|
-
};
|
|
38
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.log = exports.LogContext = void 0;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
8
|
+
exports.LogrusLogLevel = exports.LogrusLogLevels = exports.log = exports.LogContext = void 0;
|
|
9
|
+
const inspect = require('util').inspect; // undefined in frontend
|
|
10
|
+
let jsonLogging = false;
|
|
11
|
+
let component;
|
|
12
|
+
let version;
|
|
44
13
|
;
|
|
45
14
|
var LogContext;
|
|
46
15
|
(function (LogContext) {
|
|
@@ -56,77 +25,58 @@ var LogContext;
|
|
|
56
25
|
;
|
|
57
26
|
var log;
|
|
58
27
|
(function (log) {
|
|
59
|
-
function error() {
|
|
60
|
-
var args = [];
|
|
61
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
62
|
-
args[_i] = arguments[_i];
|
|
63
|
-
}
|
|
28
|
+
function error(...args) {
|
|
64
29
|
errorLog(false, args);
|
|
65
30
|
}
|
|
66
31
|
log.error = error;
|
|
67
|
-
function warn() {
|
|
68
|
-
var args = [];
|
|
69
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
70
|
-
args[_i] = arguments[_i];
|
|
71
|
-
}
|
|
32
|
+
function warn(...args) {
|
|
72
33
|
warnLog(false, args);
|
|
73
34
|
}
|
|
74
35
|
log.warn = warn;
|
|
75
|
-
function info() {
|
|
76
|
-
var args = [];
|
|
77
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
78
|
-
args[_i] = arguments[_i];
|
|
79
|
-
}
|
|
36
|
+
function info(...args) {
|
|
80
37
|
infoLog(false, args);
|
|
81
38
|
}
|
|
82
39
|
log.info = info;
|
|
83
|
-
function debug() {
|
|
84
|
-
var args = [];
|
|
85
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
86
|
-
args[_i] = arguments[_i];
|
|
87
|
-
}
|
|
40
|
+
function debug(...args) {
|
|
88
41
|
debugLog(false, args);
|
|
89
42
|
}
|
|
90
43
|
log.debug = debug;
|
|
91
44
|
/**
|
|
92
45
|
* Do not use in frontend.
|
|
93
46
|
*/
|
|
94
|
-
function enableJSONLogging(componentArg, versionArg) {
|
|
47
|
+
function enableJSONLogging(componentArg, versionArg, logLevel) {
|
|
95
48
|
component = componentArg;
|
|
96
49
|
version = versionArg;
|
|
50
|
+
setLogLevel(logLevel);
|
|
51
|
+
}
|
|
52
|
+
log.enableJSONLogging = enableJSONLogging;
|
|
53
|
+
function setLogLevel(logLevel) {
|
|
97
54
|
jsonLogging = true;
|
|
98
|
-
console.error = function () {
|
|
99
|
-
var args = [];
|
|
100
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
101
|
-
args[_i] = arguments[_i];
|
|
102
|
-
}
|
|
55
|
+
console.error = function (...args) {
|
|
103
56
|
errorLog(true, args);
|
|
104
57
|
};
|
|
105
|
-
console.warn = function () {
|
|
106
|
-
var args = [];
|
|
107
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
108
|
-
args[_i] = arguments[_i];
|
|
109
|
-
}
|
|
58
|
+
console.warn = function (...args) {
|
|
110
59
|
warnLog(true, args);
|
|
111
60
|
};
|
|
112
|
-
console.info = function () {
|
|
113
|
-
var args = [];
|
|
114
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
115
|
-
args[_i] = arguments[_i];
|
|
116
|
-
}
|
|
61
|
+
console.info = function (...args) {
|
|
117
62
|
infoLog(true, args);
|
|
118
63
|
};
|
|
119
|
-
console.debug = function () {
|
|
120
|
-
var args = [];
|
|
121
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
122
|
-
args[_i] = arguments[_i];
|
|
123
|
-
}
|
|
64
|
+
console.debug = function (...args) {
|
|
124
65
|
debugLog(true, args);
|
|
125
66
|
};
|
|
126
67
|
console.log = console.info;
|
|
127
68
|
// FIXME wrap also other console methods (e.g. trace())
|
|
69
|
+
// set/unset log functions based on loglevel so we only have to evaluate once, not every call
|
|
70
|
+
const noop = () => { };
|
|
71
|
+
const setLog = (logFunc, funcLevel) => {
|
|
72
|
+
return LogrusLogLevel.isGreatherOrEqual(funcLevel, logLevel) ? logFunc : noop;
|
|
73
|
+
};
|
|
74
|
+
errorLog = setLog(doErrorLog, "error");
|
|
75
|
+
warnLog = setLog(doWarnLog, "warning");
|
|
76
|
+
infoLog = setLog(doInfoLog, "info");
|
|
77
|
+
debugLog = setLog(doDebugLog, "debug");
|
|
128
78
|
}
|
|
129
|
-
log.
|
|
79
|
+
log.setLogLevel = setLogLevel;
|
|
130
80
|
function resetToDefaultLogging() {
|
|
131
81
|
jsonLogging = false;
|
|
132
82
|
console.log = logConsoleLog;
|
|
@@ -136,22 +86,69 @@ var log;
|
|
|
136
86
|
console.debug = debugConsoleLog;
|
|
137
87
|
}
|
|
138
88
|
log.resetToDefaultLogging = resetToDefaultLogging;
|
|
89
|
+
function setVersion(versionArg) {
|
|
90
|
+
version = versionArg;
|
|
91
|
+
}
|
|
92
|
+
log.setVersion = setVersion;
|
|
139
93
|
})(log = exports.log || (exports.log = {}));
|
|
140
|
-
|
|
94
|
+
let errorLog = doErrorLog;
|
|
95
|
+
function doErrorLog(calledViaConsole, args) {
|
|
141
96
|
doLog(calledViaConsole, errorConsoleLog, 'ERROR', args);
|
|
142
97
|
}
|
|
143
|
-
|
|
98
|
+
let warnLog = doWarnLog;
|
|
99
|
+
function doWarnLog(calledViaConsole, args) {
|
|
144
100
|
doLog(calledViaConsole, warnConsoleLog, 'WARNING', args);
|
|
145
101
|
}
|
|
146
|
-
|
|
102
|
+
let infoLog = doInfoLog;
|
|
103
|
+
function doInfoLog(calledViaConsole, args) {
|
|
147
104
|
doLog(calledViaConsole, infoConsoleLog, 'INFO', args);
|
|
148
105
|
}
|
|
149
|
-
|
|
106
|
+
let debugLog = doDebugLog;
|
|
107
|
+
function doDebugLog(calledViaConsole, args) {
|
|
150
108
|
doLog(calledViaConsole, debugConsoleLog, 'DEBUG', args);
|
|
151
109
|
}
|
|
110
|
+
exports.LogrusLogLevels = {
|
|
111
|
+
trace: true,
|
|
112
|
+
debug: true,
|
|
113
|
+
info: true,
|
|
114
|
+
warning: true,
|
|
115
|
+
error: true,
|
|
116
|
+
fatal: true,
|
|
117
|
+
panic: true,
|
|
118
|
+
};
|
|
119
|
+
var LogrusLogLevel;
|
|
120
|
+
(function (LogrusLogLevel) {
|
|
121
|
+
function isGreatherOrEqual(lvl, ref) {
|
|
122
|
+
if (lvl === undefined) {
|
|
123
|
+
return false;
|
|
124
|
+
}
|
|
125
|
+
if (ref === undefined) {
|
|
126
|
+
return true;
|
|
127
|
+
}
|
|
128
|
+
return getLevelArity(lvl) >= getLevelArity(ref);
|
|
129
|
+
}
|
|
130
|
+
LogrusLogLevel.isGreatherOrEqual = isGreatherOrEqual;
|
|
131
|
+
function getLevelArity(lvl) {
|
|
132
|
+
return Object.keys(exports.LogrusLogLevels)
|
|
133
|
+
.findIndex((l) => l === lvl);
|
|
134
|
+
}
|
|
135
|
+
function getFromEnv() {
|
|
136
|
+
const lvlStr = process.env.LOG_LEVEL;
|
|
137
|
+
if (!lvlStr) {
|
|
138
|
+
return undefined;
|
|
139
|
+
}
|
|
140
|
+
const lvl = lvlStr;
|
|
141
|
+
const exists = exports.LogrusLogLevels[lvl];
|
|
142
|
+
if (!exists) {
|
|
143
|
+
return undefined;
|
|
144
|
+
}
|
|
145
|
+
return lvl;
|
|
146
|
+
}
|
|
147
|
+
LogrusLogLevel.getFromEnv = getFromEnv;
|
|
148
|
+
})(LogrusLogLevel = exports.LogrusLogLevel || (exports.LogrusLogLevel = {}));
|
|
152
149
|
var GoogleLogSeverity;
|
|
153
150
|
(function (GoogleLogSeverity) {
|
|
154
|
-
GoogleLogSeverity.isGreaterOrEqualThanWarning =
|
|
151
|
+
GoogleLogSeverity.isGreaterOrEqualThanWarning = (severity) => {
|
|
155
152
|
switch (severity) {
|
|
156
153
|
case 'INFO':
|
|
157
154
|
case 'DEBUG':
|
|
@@ -163,17 +160,17 @@ var GoogleLogSeverity;
|
|
|
163
160
|
})(GoogleLogSeverity || (GoogleLogSeverity = {}));
|
|
164
161
|
function doLog(calledViaConsole, consoleLog, severity, args) {
|
|
165
162
|
if (!jsonLogging) {
|
|
166
|
-
consoleLog
|
|
163
|
+
consoleLog(...args);
|
|
167
164
|
return;
|
|
168
165
|
}
|
|
169
166
|
if (args.length == 0) {
|
|
170
167
|
// console.xyz()
|
|
171
168
|
return;
|
|
172
169
|
}
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
170
|
+
let context;
|
|
171
|
+
let message;
|
|
172
|
+
let error;
|
|
173
|
+
let payloadArgs;
|
|
177
174
|
if (args[0] instanceof Error) {
|
|
178
175
|
// console.xyz(Error, ...any) / log.xyz(Error) / log.xyz(Error, LogPayload)
|
|
179
176
|
error = args[0];
|
|
@@ -221,7 +218,7 @@ function doLog(calledViaConsole, consoleLog, severity, args) {
|
|
|
221
218
|
payloadArgs = args;
|
|
222
219
|
}
|
|
223
220
|
}
|
|
224
|
-
|
|
221
|
+
const logItem = makeLogItem(severity, context, message, error, payloadArgs, calledViaConsole);
|
|
225
222
|
if (logItem !== undefined) {
|
|
226
223
|
consoleLog(logItem);
|
|
227
224
|
}
|
|
@@ -230,20 +227,20 @@ function makeLogItem(severity, context, message, error, payloadArgs, calledViaCo
|
|
|
230
227
|
if (context !== undefined && Object.keys(context).length == 0) {
|
|
231
228
|
context = undefined;
|
|
232
229
|
}
|
|
233
|
-
|
|
230
|
+
let reportedErrorEvent = {};
|
|
234
231
|
if (GoogleLogSeverity.isGreaterOrEqualThanWarning(severity)) {
|
|
235
232
|
reportedErrorEvent = makeReportedErrorEvent(error);
|
|
236
233
|
}
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
severity
|
|
240
|
-
message
|
|
241
|
-
error
|
|
242
|
-
payload
|
|
243
|
-
|
|
234
|
+
const payload = payloadArgs.length == 0 ? undefined : payloadArgs.length == 1 ? payloadArgs[0] : payloadArgs;
|
|
235
|
+
const logItem = Object.assign(Object.assign({}, reportedErrorEvent), { component,
|
|
236
|
+
severity, time: new Date().toISOString(), environment: process.env.KUBE_STAGE, context,
|
|
237
|
+
message,
|
|
238
|
+
error,
|
|
239
|
+
payload, loggedViaConsole: calledViaConsole ? true : undefined });
|
|
240
|
+
let result = stringifyLogItem(logItem);
|
|
244
241
|
if (result.length > maxAllowedLogItemLength && payload !== undefined) {
|
|
245
242
|
delete logItem.payload;
|
|
246
|
-
logItem.payloadStub =
|
|
243
|
+
logItem.payloadStub = `Payload stripped as log item was longer than ${maxAllowedLogItemLength} characters`;
|
|
247
244
|
result = stringifyLogItem(logItem);
|
|
248
245
|
if (result.length <= maxAllowedLogItemLength) {
|
|
249
246
|
log.warn('Log item too large, stripping payload', { logItemStub: makeLogItemStub(logItem) });
|
|
@@ -258,7 +255,7 @@ function makeLogItem(severity, context, message, error, payloadArgs, calledViaCo
|
|
|
258
255
|
// See https://cloud.google.com/error-reporting/docs/formatting-error-messages
|
|
259
256
|
// and https://cloud.google.com/error-reporting/reference/rest/v1beta1/projects.events/report#ReportedErrorEvent
|
|
260
257
|
function makeReportedErrorEvent(error) {
|
|
261
|
-
|
|
258
|
+
const result = {
|
|
262
259
|
// Serves as marker only
|
|
263
260
|
"@type": "type.googleapis.com/google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent",
|
|
264
261
|
// This is useful for filtering in the UI
|
|
@@ -269,7 +266,7 @@ function makeReportedErrorEvent(error) {
|
|
|
269
266
|
};
|
|
270
267
|
if (error) {
|
|
271
268
|
// According to: https://cloud.google.com/error-reporting/docs/formatting-error-messages#json_representation
|
|
272
|
-
|
|
269
|
+
const stackTrace = error.stack;
|
|
273
270
|
if (stackTrace) {
|
|
274
271
|
result.stack_trace = stackTrace;
|
|
275
272
|
}
|
|
@@ -277,7 +274,7 @@ function makeReportedErrorEvent(error) {
|
|
|
277
274
|
return result;
|
|
278
275
|
}
|
|
279
276
|
function makeLogItemStub(logItem) {
|
|
280
|
-
|
|
277
|
+
const result = {
|
|
281
278
|
component: logItem.component,
|
|
282
279
|
severity: logItem.severity,
|
|
283
280
|
time: logItem.time,
|
|
@@ -319,16 +316,16 @@ function stringifyLogItem(logItem) {
|
|
|
319
316
|
* Jsonifies Errors properly, not as {} only.
|
|
320
317
|
*/
|
|
321
318
|
function jsonStringifyWithErrors(value) {
|
|
322
|
-
return JSON.stringify(value,
|
|
319
|
+
return JSON.stringify(value, (key, value) => { return value instanceof Error ? value.stack : value; });
|
|
323
320
|
}
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
321
|
+
const logConsoleLog = console.log;
|
|
322
|
+
const errorConsoleLog = console.error;
|
|
323
|
+
const warnConsoleLog = console.warn;
|
|
324
|
+
const infoConsoleLog = console.info;
|
|
325
|
+
const debugConsoleLog = console.debug;
|
|
329
326
|
// according to https://cloud.google.com/logging/quotas#logging_usage_limits, the log item must fit in 100 KB (internal data
|
|
330
327
|
// size; its relation to the stringified JSON's size is unknown), so let's have a sufficient safe margin
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
328
|
+
const maxAllowedLogItemLength = 32 * 1024;
|
|
329
|
+
const maxMessageStubLength = 1024;
|
|
330
|
+
const maxErrorStubLength = 4096;
|
|
334
331
|
//# sourceMappingURL=logging.js.map
|