@slack/cli-test
Advanced tools
Comparing version 1.3.1-powershell.4 to 1.3.1-powershell.5
@@ -14,2 +14,5 @@ "use strict"; | ||
const cli_process_1 = require("../cli-process"); | ||
function escapeJSON(obj) { | ||
return `"${JSON.stringify(obj).replace(/"/g, '\\"')}"`; | ||
} | ||
/** | ||
@@ -25,3 +28,3 @@ * `slack datastore get` | ||
}; | ||
const cmd = new cli_process_1.SlackCLIProcess(['datastore', 'get', JSON.stringify(getQueryObj)], args); | ||
const cmd = new cli_process_1.SlackCLIProcess(['datastore', 'get', escapeJSON(getQueryObj)], args); | ||
const proc = yield cmd.execAsync({ | ||
@@ -44,3 +47,3 @@ cwd: args.appPath, | ||
}; | ||
const cmd = new cli_process_1.SlackCLIProcess(['datastore', 'delete', JSON.stringify(deleteQueryObj)], args); | ||
const cmd = new cli_process_1.SlackCLIProcess(['datastore', 'delete', escapeJSON(deleteQueryObj)], args); | ||
const proc = yield cmd.execAsync({ | ||
@@ -63,3 +66,3 @@ cwd: args.appPath, | ||
}; | ||
const cmd = new cli_process_1.SlackCLIProcess(['datastore', 'put', JSON.stringify(putQueryObj)], args); | ||
const cmd = new cli_process_1.SlackCLIProcess(['datastore', 'put', escapeJSON(putQueryObj)], args); | ||
const proc = yield cmd.execAsync({ | ||
@@ -83,3 +86,3 @@ cwd: args.appPath, | ||
}; | ||
const cmd = new cli_process_1.SlackCLIProcess(['datastore', 'query', JSON.stringify(queryObj)], args); | ||
const cmd = new cli_process_1.SlackCLIProcess(['datastore', 'query', escapeJSON(queryObj)], args); | ||
const proc = yield cmd.execAsync({ | ||
@@ -86,0 +89,0 @@ cwd: args.appPath, |
{ | ||
"name": "@slack/cli-test", | ||
"version": "1.3.1-powershell.4+cli.2.29.2", | ||
"version": "1.3.1-powershell.5+cli.2.29.2", | ||
"description": "Node.js bindings for the Slack CLI for use in automated testing", | ||
@@ -5,0 +5,0 @@ "author": "Salesforce, Inc.", |
Sorry, the diff of this file is not supported yet
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
153791
2297