@mablhq/mabl-cli 2.51.12 → 2.51.18
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.
|
@@ -84,7 +84,7 @@ exports.builder = (yargs) => {
|
|
|
84
84
|
type: 'string',
|
|
85
85
|
})
|
|
86
86
|
.option(constants_1.CommandArgProject, {
|
|
87
|
-
describe: 'Playwright project to run. This project must have tracing enabled.',
|
|
87
|
+
describe: 'Name of the Playwright project to run. You will find the list of your playwright projects in the playwright.config.ts file under the projects array. This project must have tracing enabled.',
|
|
88
88
|
nargs: 1,
|
|
89
89
|
type: 'string',
|
|
90
90
|
})
|
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.PRE_REQUEST_LISTEN = exports.convertMablAssertionsToExecArray = exports.convertMablVariableAssignmentsToExecArray = exports.createMablGeneratedScripts = exports.insertMablAssertionScripts = exports.toPostmanScript = exports.replaceVariables = exports.getActualValue = exports.readBody = exports.getResponseContentType = exports.valueToUnquotedString = exports.assertionTypeSupportsCaseSensitivity = exports.assertionTargetSupportsCaseSensitivity = exports.humanizeAssertion = exports.getAssertionTargetArgument = exports.assertionHasTest = exports.isValidMablAssertion = exports.normalizeRegExpExpectedValue = exports.normalizeExpectedValue = exports.normalizeAssertionValue = exports.assertionRequiresValue = exports.filterValidMablAssertions = exports.filterValidMablVariableAssignments = exports.isValidMablVariableAssignment = exports.removeMablGeneratedScripts = exports.createEmptyRequestEvent = exports.findFirstMatchingEvent = exports.restoreCustomRequestFields = exports.deduplicateApiTestExecutionResults = exports.createEmptyVariable = exports.createEmptyAssertion = exports.humanizeAssertionType = exports.getAssertionTypesForTarget = exports.caseInsensitiveEquals = exports.compareStringsCaseInsensitive = exports.ASSERT_TYPES = exports.ASSERT_TARGETS = exports.COLLECTION_WITH_FOLDERS_ERROR = exports.HMAC_SHA1_SIGNATURE = exports.DEFAULT_ADD_OAUTH1_TO_HEADER_VALUE = exports.DEFAULT_OAUTH1_VERSION = exports.OAUTH1_AUTH = exports.NO_AUTH = exports.BEARER_TOKEN_AUTH = exports.BASIC_AUTH = exports.API_KEY_AUTH = exports.INHERIT_AUTH_FROM_PARENT_VALUE = exports.MABL_GENERATED_COMMENT = exports.MABL_GENERATED_ASSERTION_TOKEN = exports.TEST_LISTEN = void 0;
|
|
7
|
-
exports.uuid = exports.postmanEventToExecutableSnippets = exports.postmanAuthToApiTestAuth = exports.getValueFromAuthVariables = exports.insertTestConfigurationIntoFlow = exports.createCommentForApiTestSnippet = exports.convertMablSnippetsToExecArray = exports.createPostmanScript = exports.insertMablScriptsIntoCollection = exports.processPostmanItem = exports.replaceRawScriptWithExecArray = exports.removeInvalidHeaders = exports.processItemAuth = exports.mablAuthToPostman = exports.formatContent = exports.getRequestMode = exports.getFormDataArray = exports.isText = exports.isXML = exports.isJson = exports.isSupportedAuthType = exports.isItemDefinition = exports.isCollectionDefinition = exports.isItemGroupDefinition = exports.isFolder = exports.validateCollectionFeaturesForApiTestEditor = exports.generateRawScriptField = exports.processPostmanItems = exports.createEmptyRequest = exports.createEmptyRequestEventArray = exports.splitLines = void 0;
|
|
7
|
+
exports.uuid = exports.postmanEventToExecutableSnippets = exports.postmanAuthToApiTestAuth = exports.getValueFromAuthVariables = exports.executableSnippetToApiTestSnippet = exports.executableSnippetsToPostmanEvent = exports.apiTestAuthToPostmanAuth = exports.insertTestConfigurationIntoFlow = exports.createCommentForApiTestSnippet = exports.convertMablSnippetsToExecArray = exports.createPostmanScript = exports.insertMablScriptsIntoCollection = exports.processPostmanItem = exports.replaceRawScriptWithExecArray = exports.removeInvalidHeaders = exports.processItemAuth = exports.mablAuthToPostman = exports.formatContent = exports.getRequestMode = exports.getFormDataArray = exports.isText = exports.isXML = exports.isJson = exports.isSupportedAuthType = exports.isItemDefinition = exports.isCollectionDefinition = exports.isItemGroupDefinition = exports.isFolder = exports.validateCollectionFeaturesForApiTestEditor = exports.generateRawScriptField = exports.processPostmanItems = exports.createEmptyRequest = exports.createEmptyRequestEventArray = exports.splitLines = void 0;
|
|
8
8
|
const newman_types_1 = require("./newman-types");
|
|
9
9
|
const lodash_1 = __importDefault(require("lodash"));
|
|
10
10
|
const uuid_1 = require("uuid");
|
|
@@ -1130,6 +1130,7 @@ function apiTestAuthToPostmanAuth(apiTestAuth) {
|
|
|
1130
1130
|
}
|
|
1131
1131
|
return postmanAuth;
|
|
1132
1132
|
}
|
|
1133
|
+
exports.apiTestAuthToPostmanAuth = apiTestAuthToPostmanAuth;
|
|
1133
1134
|
function apiKeyAuthenticationToPostman(auth) {
|
|
1134
1135
|
return removeUndefinedValues([
|
|
1135
1136
|
toPostmanConfigurationValue('key', auth === null || auth === void 0 ? void 0 : auth.key),
|
|
@@ -1195,6 +1196,7 @@ function executableSnippetsToPostmanEvent(snippets, type) {
|
|
|
1195
1196
|
},
|
|
1196
1197
|
};
|
|
1197
1198
|
}
|
|
1199
|
+
exports.executableSnippetsToPostmanEvent = executableSnippetsToPostmanEvent;
|
|
1198
1200
|
function executableSnippetToApiTestSnippet(executableSnippet) {
|
|
1199
1201
|
const { invariant_id: invariantId, ...snippet } = { ...executableSnippet };
|
|
1200
1202
|
if (executableSnippet.reusable) {
|
|
@@ -1208,6 +1210,7 @@ function executableSnippetToApiTestSnippet(executableSnippet) {
|
|
|
1208
1210
|
reusable: false,
|
|
1209
1211
|
};
|
|
1210
1212
|
}
|
|
1213
|
+
exports.executableSnippetToApiTestSnippet = executableSnippetToApiTestSnippet;
|
|
1211
1214
|
function getValueFromAuthVariables(authVariables, variableName) {
|
|
1212
1215
|
var _a;
|
|
1213
1216
|
return (_a = authVariables === null || authVariables === void 0 ? void 0 : authVariables.find((variable) => variable.key === variableName)) === null || _a === void 0 ? void 0 : _a.value;
|