slnodejs 6.2.59 → 6.2.63
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/README.md +24 -0
- package/browser-agent/dist/browser-agent-all.js +5 -5
- package/browser-agent/dist/browser-agent-all.min.js +3 -3
- package/package.json +4 -2
- package/tsOutputs/cli-parse/agent-time-synchronizer.js +2 -2
- package/tsOutputs/cli-parse/agent-time-synchronizer.js.map +1 -1
- package/tsOutputs/common/agent-time.js +5 -1
- package/tsOutputs/common/agent-time.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/collection-interval.js +7 -1
- package/tsOutputs/common/footprints-process-v6/collection-interval.js.map +1 -1
- package/tsOutputs/common/scm/git-format-builder.js +9 -1
- package/tsOutputs/common/scm/git-format-builder.js.map +1 -1
- package/tsOutputs/common/scm/git.js +4 -29
- package/tsOutputs/common/scm/git.js.map +1 -1
- package/tsOutputs/messages/message-keys.generated.js +1 -1
package/README.md
CHANGED
|
@@ -159,3 +159,27 @@ If you encounter issues:
|
|
|
159
159
|
- You're working in a dedicated development environment
|
|
160
160
|
- You want to reduce command verbosity
|
|
161
161
|
- You're setting up CI/CD pipelines where all Node.js executions should include the preloader and Sealights Agent
|
|
162
|
+
|
|
163
|
+
---
|
|
164
|
+
|
|
165
|
+
## Integration Tests
|
|
166
|
+
|
|
167
|
+
PRs to `main` automatically trigger the JS Agent Integration Tests, which validate the agent works correctly with the plugins and example apps across Node.js 18, 20, and 22.
|
|
168
|
+
|
|
169
|
+
The tests are defined in [`SL.JavaScript.AgentTests`](https://github.com/Sealights/SL.JavaScript.AgentTests) and run via a reusable workflow (`validate-agent.yml`).
|
|
170
|
+
|
|
171
|
+
### Cross-Repo Branch Resolution
|
|
172
|
+
|
|
173
|
+
When working on a feature that spans multiple repos, create branches with the **same name** across repos. The CI automatically detects matching branches and tests them together.
|
|
174
|
+
|
|
175
|
+
For example, if your PR branch is `feature/new-scanner` and a branch with the same name exists in the Plugins or ExampleApps repos, the integration tests will use those branches instead of the defaults.
|
|
176
|
+
|
|
177
|
+
This is handled via the `feature-branch` input — see the [AgentTests README](https://github.com/Sealights/SL.JavaScript.AgentTests#cross-repo-branch-resolution) for details.
|
|
178
|
+
|
|
179
|
+
### Manual Dispatch
|
|
180
|
+
|
|
181
|
+
You can also trigger integration tests manually via the **Actions** tab → **JS Agent Integration Tests** → **Run workflow**, with options for:
|
|
182
|
+
|
|
183
|
+
- `plugins-branch` — test against a specific plugins branch
|
|
184
|
+
- `feature-branch` — try this branch in every repo (falls back to defaults where not found)
|
|
185
|
+
- `node-versions` — JSON array of Node.js versions to test
|
|
@@ -416,7 +416,7 @@ var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, gene
|
|
|
416
416
|
this.backendProxy = backendProxy;
|
|
417
417
|
}
|
|
418
418
|
static getCreateAgentTimeSynchronizer(syncIntervalSec, logger, backendProxy) {
|
|
419
|
-
return
|
|
419
|
+
return agent_time_1.AgentTime._instance || (agent_time_1.AgentTime._instance = new this(syncIntervalSec, logger, backendProxy));
|
|
420
420
|
}
|
|
421
421
|
getSynchronizationTime() {
|
|
422
422
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1093,7 +1093,7 @@ var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, gene
|
|
|
1093
1093
|
value: true
|
|
1094
1094
|
});
|
|
1095
1095
|
exports.SL_AGENT_TYPE = exports.SL_AGENT_VERSION = void 0;
|
|
1096
|
-
exports.SL_AGENT_VERSION = '6.2.
|
|
1096
|
+
exports.SL_AGENT_VERSION = '6.2.63';
|
|
1097
1097
|
exports.SL_AGENT_TYPE = 'browser';
|
|
1098
1098
|
});
|
|
1099
1099
|
|
|
@@ -3306,7 +3306,7 @@ var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, gene
|
|
|
3306
3306
|
this.agentInstanceData = agentInstanceData;
|
|
3307
3307
|
}
|
|
3308
3308
|
static getCreateAgentTimeSynchronizer(syncIntervalSec, logger, agentBaseData, agentInstanceData) {
|
|
3309
|
-
return
|
|
3309
|
+
return agent_time_1.AgentTime._instance || (agent_time_1.AgentTime._instance = new this(syncIntervalSec, logger, agentBaseData, agentInstanceData));
|
|
3310
3310
|
}
|
|
3311
3311
|
getSynchronizationTime() {
|
|
3312
3312
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -4438,7 +4438,7 @@ var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, gene
|
|
|
4438
4438
|
}
|
|
4439
4439
|
static getOffset() {
|
|
4440
4440
|
var _a, _b;
|
|
4441
|
-
return (_b = (_a =
|
|
4441
|
+
return (_b = (_a = AgentTime._instance) === null || _a === void 0 ? void 0 : _a.timeSyncOffset) !== null && _b !== void 0 ? _b : 0;
|
|
4442
4442
|
}
|
|
4443
4443
|
initiateClockSync() {
|
|
4444
4444
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -6654,7 +6654,7 @@ var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, gene
|
|
|
6654
6654
|
this.start = this.end;
|
|
6655
6655
|
}
|
|
6656
6656
|
this.end = this.toSeconds((0, system_date_1.getSystemDateValueOf)());
|
|
6657
|
-
if (this.end - this.start > this.intervalInSeconds) {
|
|
6657
|
+
if (this.end <= this.start || this.end - this.start > this.intervalInSeconds) {
|
|
6658
6658
|
this.start = this.end - this.intervalInSeconds;
|
|
6659
6659
|
}
|
|
6660
6660
|
}
|