@alwaysmeticulous/cli
Advanced tools
Comparing version 1.2.11 to 1.2.12
@@ -6,3 +6,3 @@ import { CommandModule } from "yargs"; | ||
} | ||
export declare const downloadReplay: CommandModule<{}, Options>; | ||
export declare const downloadReplay: CommandModule<unknown, Options>; | ||
export {}; |
@@ -6,3 +6,3 @@ import { CommandModule } from "yargs"; | ||
} | ||
export declare const downloadSession: CommandModule<{}, Options>; | ||
export declare const downloadSession: CommandModule<unknown, Options>; | ||
export {}; |
@@ -9,4 +9,5 @@ import { CommandModule } from "yargs"; | ||
uploadIntervalMs?: number | null | undefined; | ||
incognito?: boolean | null | undefined; | ||
} | ||
export declare const record: CommandModule<{}, Options>; | ||
export declare const record: CommandModule<unknown, Options>; | ||
export {}; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.record = void 0; | ||
const path_1 = require("path"); | ||
const client_1 = require("../../api/client"); | ||
const project_api_1 = require("../../api/project.api"); | ||
const session_api_1 = require("../../api/session.api"); | ||
const local_data_1 = require("../../local-data/local-data"); | ||
const replay_assets_1 = require("../../local-data/replay-assets"); | ||
const commit_sha_utils_1 = require("../../utils/commit-sha.utils"); | ||
const handler = async ({ apiToken, commitSha: commitSha_, devTools, width, height, uploadIntervalMs, }) => { | ||
const handler = async ({ apiToken, commitSha: commitSha_, devTools, width, height, uploadIntervalMs, incognito, }) => { | ||
// 1. Fetch the recording token | ||
@@ -39,2 +41,3 @@ const client = (0, client_1.createClient)({ apiToken }); | ||
} | ||
const cookieDir = (0, path_1.join)((0, local_data_1.getMeticulousLocalDataDir)(), "cookies"); | ||
// Report recording start | ||
@@ -53,2 +56,4 @@ const recordingCommandId = await (0, session_api_1.getRecordingCommandId)(client); | ||
uploadIntervalMs, | ||
incognito, | ||
cookieDir, | ||
onDetectedSession: (sessionId) => { | ||
@@ -87,4 +92,9 @@ (0, session_api_1.postSessionIdNotification)(client, sessionId, recordingCommandId).catch((error) => { | ||
}, | ||
incognito: { | ||
boolean: true, | ||
description: "Use an incognito browsing context", | ||
default: true, | ||
}, | ||
}, | ||
handler, | ||
}; |
@@ -11,3 +11,3 @@ import { CommandModule } from "yargs"; | ||
} | ||
export declare const replay: CommandModule<{}, Options>; | ||
export declare const replay: CommandModule<unknown, Options>; | ||
export {}; |
@@ -8,3 +8,3 @@ import { CommandModule } from "yargs"; | ||
} | ||
export declare const screenshotDiff: CommandModule<{}, Options>; | ||
export declare const screenshotDiff: CommandModule<unknown, Options>; | ||
export {}; |
@@ -5,3 +5,3 @@ import { CommandModule } from "yargs"; | ||
} | ||
export declare const showProject: CommandModule<{}, Options>; | ||
export declare const showProject: CommandModule<unknown, Options>; | ||
export {}; |
@@ -7,3 +7,3 @@ import { CommandModule } from "yargs"; | ||
} | ||
export declare const uploadBuild: CommandModule<{}, Options>; | ||
export declare const uploadBuild: CommandModule<unknown, Options>; | ||
export {}; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.writePng = exports.readPng = void 0; | ||
const fs_1 = require("fs"); | ||
const pngjs_1 = require("pngjs"); | ||
const fs_1 = require("fs"); | ||
const readPng = async (path) => { | ||
@@ -7,0 +7,0 @@ return new Promise((resolve, reject) => { |
{ | ||
"name": "@alwaysmeticulous/cli", | ||
"version": "1.2.11", | ||
"version": "1.2.12", | ||
"description": "The Meticulous CLI", | ||
@@ -20,2 +20,5 @@ "license": "ISC", | ||
"format": "prettier --write src", | ||
"lint": "eslint src --ext=ts,tsx,js --cache", | ||
"lint:commit": "eslint --cache $(git diff --relative --name-only --diff-filter=ACMRTUXB master | grep -E \"(.js$|.ts$|.tsx$)\")", | ||
"lint:fix": "eslint src --ext=ts,tsx,js --cache --fix", | ||
"cli": "node dist/main.js", | ||
@@ -22,0 +25,0 @@ "cli:dev": "ts-node src/main.ts" |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
83945
1339