Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@replayio/replay

Package Overview
Dependencies
Maintainers
8
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@replayio/replay - npm Package Compare versions

Comparing version 0.9.6 to 0.10.0

38

metadata/test.js

@@ -5,20 +5,32 @@ "use strict";

const env_1 = require("./env");
const { array, create, defaulted, enums, number, object, optional, string, define, } = require("superstruct");
const superstruct_1 = require("superstruct");
const isUuid = require("is-uuid");
const VERSION = 1;
const versions = {
1: object({
file: optional((0, env_1.envString)("RECORD_REPLAY_METADATA_TEST_FILE")),
path: optional(array(string())),
result: defaulted(enums(["passed", "failed", "timedOut"]), (0, env_1.firstEnvValueOf)("RECORD_REPLAY_METADATA_TEST_RESULT")),
runner: optional(defaulted(object({
name: optional((0, env_1.envString)("RECORD_REPLAY_METADATA_TEST_RUNNER_NAME")),
version: optional((0, env_1.envString)("RECORD_REPLAY_METADATA_TEST_RUNNER_VERSION")),
1: (0, superstruct_1.object)({
file: (0, superstruct_1.optional)((0, env_1.envString)("RECORD_REPLAY_METADATA_TEST_FILE")),
path: (0, superstruct_1.optional)((0, superstruct_1.array)((0, superstruct_1.string)())),
result: (0, superstruct_1.defaulted)((0, superstruct_1.enums)(["passed", "failed", "timedOut"]), (0, env_1.firstEnvValueOf)("RECORD_REPLAY_METADATA_TEST_RESULT")),
tests: (0, superstruct_1.optional)((0, superstruct_1.array)((0, superstruct_1.object)({
id: (0, superstruct_1.optional)((0, superstruct_1.string)()),
title: (0, superstruct_1.string)(),
path: (0, superstruct_1.optional)((0, superstruct_1.array)((0, superstruct_1.string)())),
relativePath: (0, superstruct_1.optional)((0, superstruct_1.string)()),
result: (0, superstruct_1.enums)(["passed", "failed", "timedOut"]),
error: (0, superstruct_1.optional)((0, superstruct_1.object)({
message: (0, superstruct_1.string)(),
line: (0, superstruct_1.optional)((0, superstruct_1.number)()),
column: (0, superstruct_1.optional)((0, superstruct_1.number)()),
})),
}))),
run: optional(defaulted(object({
id: defaulted(define("uuid", (v) => isUuid.v4(v)), (0, env_1.firstEnvValueOf)("RECORD_REPLAY_METADATA_TEST_RUN_ID", "RECORD_REPLAY_TEST_RUN_ID")),
title: optional((0, env_1.envString)("RECORD_REPLAY_METADATA_TEST_RUN_TITLE")),
runner: (0, superstruct_1.optional)((0, superstruct_1.defaulted)((0, superstruct_1.object)({
name: (0, superstruct_1.optional)((0, env_1.envString)("RECORD_REPLAY_METADATA_TEST_RUNNER_NAME")),
version: (0, superstruct_1.optional)((0, env_1.envString)("RECORD_REPLAY_METADATA_TEST_RUNNER_VERSION")),
}), {})),
run: (0, superstruct_1.optional)((0, superstruct_1.defaulted)((0, superstruct_1.object)({
id: (0, superstruct_1.defaulted)((0, superstruct_1.define)("uuid", (v) => isUuid.v4(v)), (0, env_1.firstEnvValueOf)("RECORD_REPLAY_METADATA_TEST_RUN_ID", "RECORD_REPLAY_TEST_RUN_ID")),
title: (0, superstruct_1.optional)((0, env_1.envString)("RECORD_REPLAY_METADATA_TEST_RUN_TITLE")),
}), {})),
title: (0, env_1.envString)("RECORD_REPLAY_METADATA_TEST_TITLE"),
version: defaulted(number(), () => 1),
version: (0, superstruct_1.defaulted)((0, superstruct_1.number)(), () => 1),
}),

@@ -37,3 +49,3 @@ };

return {
test: create(data, versions[version]),
test: (0, superstruct_1.create)(data, versions[version]),
};

@@ -40,0 +52,0 @@ }

{
"name": "@replayio/replay",
"version": "0.9.6",
"version": "0.10.0",
"description": "CLI tool for uploading and managing recordings",

@@ -41,3 +41,3 @@ "bin": {

},
"gitHead": "ac84e71748bf27811e593d74364483bf2f83876a",
"gitHead": "4686d71622bca27c1f36a60fbfb9e44ce595cfac",
"devDependencies": {

@@ -44,0 +44,0 @@ "@types/jest": "^28.1.5",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc