Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@flakiness/sdk

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flakiness/sdk - npm Package Compare versions

Comparing version
1.0.0
to
1.0.1
+134
-135
lib/browser.js

@@ -7,136 +7,2 @@ var __defProp = Object.defineProperty;

// node_modules/.pnpm/@flakiness+flakiness-report@0.22.0/node_modules/@flakiness/flakiness-report/lib/flakinessReport.js
var FlakinessReport;
((FlakinessReport22) => {
FlakinessReport22.CATEGORY_PLAYWRIGHT = "playwright";
FlakinessReport22.CATEGORY_PYTEST = "pytest";
FlakinessReport22.CATEGORY_JUNIT = "junit";
})(FlakinessReport || (FlakinessReport = {}));
// node_modules/.pnpm/@flakiness+flakiness-report@0.22.0/node_modules/@flakiness/flakiness-report/lib/schema.js
import z from "zod/v4";
var Schema;
((Schema2) => {
Schema2.CommitId = z.string().min(40).max(40);
Schema2.AttachmentId = z.string().min(1).max(1024);
Schema2.UnixTimestampMS = z.number().min(0);
Schema2.DurationMS = z.number().min(0);
Schema2.Number1Based = z.number();
Schema2.GitFilePath = z.string().min(0);
Schema2.Location = z.object({
file: Schema2.GitFilePath,
line: Schema2.Number1Based,
// Note: Locations for file suites are (0, 0).
column: Schema2.Number1Based
});
Schema2.TestStatus = z.enum(["passed", "failed", "timedOut", "skipped", "interrupted"]);
Schema2.Environment = z.object({
name: z.string().min(1).max(512),
systemData: z.object({
osName: z.string().optional(),
osVersion: z.string().optional(),
osArch: z.string().optional()
}).optional(),
metadata: z.any().optional(),
userSuppliedData: z.any().optional()
});
Schema2.STDIOEntry = z.union([
z.object({ text: z.string() }),
z.object({ buffer: z.string() })
]);
Schema2.ReportError = z.object({
location: Schema2.Location.optional(),
message: z.string().optional(),
stack: z.string().optional(),
snippet: z.string().optional(),
value: z.string().optional()
});
Schema2.SuiteType = z.enum(["file", "anonymous suite", "suite"]);
Schema2.TestStep = z.object({
title: z.string(),
duration: Schema2.DurationMS.optional(),
location: Schema2.Location.optional(),
snippet: z.string().optional(),
error: Schema2.ReportError.optional(),
get steps() {
return z.array(Schema2.TestStep).optional();
}
});
Schema2.Attachment = z.object({
name: z.string(),
contentType: z.string(),
id: Schema2.AttachmentId
});
Schema2.Annotation = z.object({
type: z.string(),
description: z.string().optional(),
location: Schema2.Location.optional()
});
Schema2.RunAttempt = z.object({
// Index of the environment in the environments array (must be >= 0).
environmentIdx: z.number().min(0).optional(),
expectedStatus: Schema2.TestStatus.optional(),
status: Schema2.TestStatus.optional(),
startTimestamp: Schema2.UnixTimestampMS,
duration: Schema2.DurationMS.optional(),
timeout: Schema2.DurationMS.optional(),
annotations: z.array(Schema2.Annotation).optional(),
errors: z.array(Schema2.ReportError).optional(),
parallelIndex: z.number().optional(),
steps: z.array(Schema2.TestStep).optional(),
stdout: z.array(Schema2.STDIOEntry).optional(),
stderr: z.array(Schema2.STDIOEntry).optional(),
attachments: z.array(Schema2.Attachment).optional()
});
Schema2.Suite = z.object({
type: Schema2.SuiteType,
title: z.string(),
location: Schema2.Location.optional(),
get suites() {
return z.array(Schema2.Suite).optional();
},
get tests() {
return z.array(Schema2.Test).optional();
}
});
Schema2.Test = z.object({
title: z.string(),
location: Schema2.Location.optional(),
tags: z.array(z.string()).optional(),
attempts: z.array(Schema2.RunAttempt)
});
Schema2.SystemUtilizationSample = z.object({
dts: Schema2.DurationMS,
// Must be between 0 and 100 (inclusive). Can be a rational number.
cpuUtilization: z.number().min(0).max(100),
// Must be between 0 and 100 (inclusive). Can be a rational number.
memoryUtilization: z.number().min(0).max(100)
});
Schema2.SystemUtilization = z.object({
totalMemoryBytes: z.number().min(0),
startTimestamp: Schema2.UnixTimestampMS,
samples: z.array(Schema2.SystemUtilizationSample)
});
Schema2.UtilizationTelemetry = z.tuple([Schema2.DurationMS, z.number().min(0).max(100)]);
Schema2.Report = z.object({
category: z.string().min(1).max(100),
commitId: Schema2.CommitId,
relatedCommitIds: z.array(Schema2.CommitId).optional(),
configPath: Schema2.GitFilePath.optional(),
url: z.string().optional(),
environments: z.array(Schema2.Environment).min(1),
suites: z.array(Schema2.Suite).optional(),
tests: z.array(Schema2.Test).optional(),
unattributedErrors: z.array(Schema2.ReportError).optional(),
startTimestamp: Schema2.UnixTimestampMS,
duration: Schema2.DurationMS,
systemUtilization: z.optional(Schema2.SystemUtilization),
cpuCount: z.number().min(0).optional(),
cpuAvg: z.array(Schema2.UtilizationTelemetry).optional(),
cpuMax: z.array(Schema2.UtilizationTelemetry).optional(),
ram: z.array(Schema2.UtilizationTelemetry).optional(),
ramBytes: z.number().min(0).optional()
});
})(Schema || (Schema = {}));
// src/reportUtilsBrowser.ts

@@ -309,2 +175,136 @@ var reportUtilsBrowser_exports = {};

// node_modules/.pnpm/@flakiness+flakiness-report@0.22.0/node_modules/@flakiness/flakiness-report/lib/flakinessReport.js
var FlakinessReport;
((FlakinessReport22) => {
FlakinessReport22.CATEGORY_PLAYWRIGHT = "playwright";
FlakinessReport22.CATEGORY_PYTEST = "pytest";
FlakinessReport22.CATEGORY_JUNIT = "junit";
})(FlakinessReport || (FlakinessReport = {}));
// node_modules/.pnpm/@flakiness+flakiness-report@0.22.0/node_modules/@flakiness/flakiness-report/lib/schema.js
import z from "zod/v4";
var Schema;
((Schema2) => {
Schema2.CommitId = z.string().min(40).max(40);
Schema2.AttachmentId = z.string().min(1).max(1024);
Schema2.UnixTimestampMS = z.number().min(0);
Schema2.DurationMS = z.number().min(0);
Schema2.Number1Based = z.number();
Schema2.GitFilePath = z.string().min(0);
Schema2.Location = z.object({
file: Schema2.GitFilePath,
line: Schema2.Number1Based,
// Note: Locations for file suites are (0, 0).
column: Schema2.Number1Based
});
Schema2.TestStatus = z.enum(["passed", "failed", "timedOut", "skipped", "interrupted"]);
Schema2.Environment = z.object({
name: z.string().min(1).max(512),
systemData: z.object({
osName: z.string().optional(),
osVersion: z.string().optional(),
osArch: z.string().optional()
}).optional(),
metadata: z.any().optional(),
userSuppliedData: z.any().optional()
});
Schema2.STDIOEntry = z.union([
z.object({ text: z.string() }),
z.object({ buffer: z.string() })
]);
Schema2.ReportError = z.object({
location: Schema2.Location.optional(),
message: z.string().optional(),
stack: z.string().optional(),
snippet: z.string().optional(),
value: z.string().optional()
});
Schema2.SuiteType = z.enum(["file", "anonymous suite", "suite"]);
Schema2.TestStep = z.object({
title: z.string(),
duration: Schema2.DurationMS.optional(),
location: Schema2.Location.optional(),
snippet: z.string().optional(),
error: Schema2.ReportError.optional(),
get steps() {
return z.array(Schema2.TestStep).optional();
}
});
Schema2.Attachment = z.object({
name: z.string(),
contentType: z.string(),
id: Schema2.AttachmentId
});
Schema2.Annotation = z.object({
type: z.string(),
description: z.string().optional(),
location: Schema2.Location.optional()
});
Schema2.RunAttempt = z.object({
// Index of the environment in the environments array (must be >= 0).
environmentIdx: z.number().min(0).optional(),
expectedStatus: Schema2.TestStatus.optional(),
status: Schema2.TestStatus.optional(),
startTimestamp: Schema2.UnixTimestampMS,
duration: Schema2.DurationMS.optional(),
timeout: Schema2.DurationMS.optional(),
annotations: z.array(Schema2.Annotation).optional(),
errors: z.array(Schema2.ReportError).optional(),
parallelIndex: z.number().optional(),
steps: z.array(Schema2.TestStep).optional(),
stdout: z.array(Schema2.STDIOEntry).optional(),
stderr: z.array(Schema2.STDIOEntry).optional(),
attachments: z.array(Schema2.Attachment).optional()
});
Schema2.Suite = z.object({
type: Schema2.SuiteType,
title: z.string(),
location: Schema2.Location.optional(),
get suites() {
return z.array(Schema2.Suite).optional();
},
get tests() {
return z.array(Schema2.Test).optional();
}
});
Schema2.Test = z.object({
title: z.string(),
location: Schema2.Location.optional(),
tags: z.array(z.string()).optional(),
attempts: z.array(Schema2.RunAttempt)
});
Schema2.SystemUtilizationSample = z.object({
dts: Schema2.DurationMS,
// Must be between 0 and 100 (inclusive). Can be a rational number.
cpuUtilization: z.number().min(0).max(100),
// Must be between 0 and 100 (inclusive). Can be a rational number.
memoryUtilization: z.number().min(0).max(100)
});
Schema2.SystemUtilization = z.object({
totalMemoryBytes: z.number().min(0),
startTimestamp: Schema2.UnixTimestampMS,
samples: z.array(Schema2.SystemUtilizationSample)
});
Schema2.UtilizationTelemetry = z.tuple([Schema2.DurationMS, z.number().min(0).max(100)]);
Schema2.Report = z.object({
category: z.string().min(1).max(100),
commitId: Schema2.CommitId,
relatedCommitIds: z.array(Schema2.CommitId).optional(),
configPath: Schema2.GitFilePath.optional(),
url: z.string().optional(),
environments: z.array(Schema2.Environment).min(1),
suites: z.array(Schema2.Suite).optional(),
tests: z.array(Schema2.Test).optional(),
unattributedErrors: z.array(Schema2.ReportError).optional(),
startTimestamp: Schema2.UnixTimestampMS,
duration: Schema2.DurationMS,
systemUtilization: z.optional(Schema2.SystemUtilization),
cpuCount: z.number().min(0).optional(),
cpuAvg: z.array(Schema2.UtilizationTelemetry).optional(),
cpuMax: z.array(Schema2.UtilizationTelemetry).optional(),
ram: z.array(Schema2.UtilizationTelemetry).optional(),
ramBytes: z.number().min(0).optional()
});
})(Schema || (Schema = {}));
// src/validateReport.ts

@@ -349,5 +349,4 @@ import z2 from "zod/v4";

export {
FlakinessReport,
reportUtilsBrowser_exports as ReportUtils
};
//# sourceMappingURL=browser.js.map
{
"name": "@flakiness/sdk",
"version": "1.0.0",
"version": "1.0.1",
"private": false,

@@ -5,0 +5,0 @@ "repository": {

@@ -1,3 +0,2 @@

export { FlakinessReport } from '@flakiness/flakiness-report';
export * as ReportUtils from './reportUtilsBrowser.js';
//# sourceMappingURL=browser.d.ts.map

@@ -1,1 +0,1 @@

{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../src/browser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE9D,OAAO,KAAK,WAAW,MAAM,yBAAyB,CAAC"}
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../src/browser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,yBAAyB,CAAC"}