New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@replayio/replay

Package Overview
Dependencies
Maintainers
7
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.0.0-experimental-6ca7d6b6 to 0.0.0-experimental-6d2f8c30

5

metadata/source.js

@@ -14,2 +14,7 @@ "use strict";

}),
trigger: optional(object({
user: optional(string()),
name: string(),
workflow: optional(string()),
})),
merge: optional(object({

@@ -16,0 +21,0 @@ id: string(),

5

package.json
{
"name": "@replayio/replay",
"version": "0.0.0-experimental-6ca7d6b6",
"version": "0.0.0-experimental-6d2f8c30",
"description": "CLI tool for uploading and managing recordings",

@@ -29,2 +29,3 @@ "bin": {

"dependencies": {
"@replayio/sourcemap-upload": "^1.0.1",
"commander": "^7.2.0",

@@ -38,3 +39,3 @@ "is-uuid": "^1.0.2",

},
"gitHead": "6ca7d6b62051ae3c3f4e0f62c4a530650453207b",
"gitHead": "6d2f8c30e64432c896657d04badfa369db5979af",
"devDependencies": {

@@ -41,0 +42,0 @@ "@types/ws": "^8.5.3",

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const sourcemap_upload_1 = require("@replayio/sourcemap-upload");
const commander_1 = require("commander");

@@ -61,2 +62,14 @@ const main_1 = require("./main");

commander_1.program
.command("upload-sourcemaps")
.requiredOption("-g, --group <name>", "The name to group this sourcemap into, e.g. A commit SHA or release version.")
.option("--api-key <key>", "Authentication API Key")
.option("--dry-run", "Perform all of the usual CLI logic, but the final sourcemap upload.")
.option("-x, --extensions <exts>", "A comma-separated list of extensions to process. Defaults to '.js,.map'.", collectExtensions)
.option("-i, --ignore <pattern>", "Ignore files that match this pattern", collectIgnorePatterns)
.option("-q, --quiet", "Silence all stdout logging.")
.option("-v, --verbose", "Output extra data to stdout when processing files.")
.option("--root <dirname>", "The base directory to use when computing relative paths")
.arguments("<paths...>")
.action((filepaths, opts) => commandUploadSourcemaps(filepaths, opts));
commander_1.program
.parseAsync()

@@ -67,2 +80,8 @@ .catch((err) => {

});
function collectExtensions(value) {
return value.split(",");
}
function collectIgnorePatterns(value, previous = []) {
return previous.concat([value]);
}
function commandListAllRecordings(opts) {

@@ -105,2 +124,26 @@ const recordings = (0, main_1.listAllRecordings)({ ...opts, verbose: true });

}
async function commandUploadSourcemaps(filepaths, cliOpts) {
const { quiet, verbose, apiKey, ...uploadOpts } = cliOpts;
let log;
if (!quiet) {
if (verbose) {
log = (_level, message) => {
console.log(message);
};
}
else {
log = (level, message) => {
if (level === "normal") {
console.log(message);
}
};
}
}
await (0, sourcemap_upload_1.uploadSourceMaps)({
filepaths,
key: apiKey,
...uploadOpts,
log,
});
}
//# sourceMappingURL=bin.js.map

@@ -20,2 +20,11 @@ export interface CommandLineOptions {

export declare type Options = CommandLineOptions & NodeOptions;
export interface SourcemapUploadOptions {
group: string;
dryRun?: boolean;
extensions?: Array<string>;
ignore?: Array<string>;
quiet?: boolean;
verbose?: boolean;
root?: string;
}
/**

@@ -22,0 +31,0 @@ * Supported replay browsers

metadata/source.d.ts.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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