testcafe-browser-tools
Advanced tools
Comparing version 2.0.6 to 2.0.7
@@ -23,10 +23,12 @@ "use strict"; | ||
const WINDOWS_DIR = get_environment_variable_1.default('SystemRoot') || 'C:\\Windows'; | ||
const POWERSHELL_DIR = path_1.default.join(WINDOWS_DIR, 'System32\\WindowsPowerShell\\v1.0'); | ||
const SYSTEM32_DIR = path_1.default.join(WINDOWS_DIR, 'System32'); | ||
const CHCP_COM = path_1.default.join(SYSTEM32_DIR, 'chcp.com'); | ||
const POWERSHELL_DIR = path_1.default.join(SYSTEM32_DIR, 'WindowsPowerShell\\v1.0'); | ||
const POWERSHELL_BINARY = path_1.default.join(POWERSHELL_DIR, 'powershell.exe'); | ||
const POWERSHELL_ARGS = ['-NoLogo', '-NonInteractive', '-Command']; | ||
const POWERSHELL_COMMAND_WRAPPER = command => flatten_whitespace_1.default ` | ||
$cp = (chcp | Select-String '\\d+').Matches.Value; | ||
$cp = (${CHCP_COM} | Select-String '\\d+').Matches.Value; | ||
Try | ||
{ | ||
chcp 65001; | ||
${CHCP_COM} 65001; | ||
${command}; | ||
@@ -36,3 +38,3 @@ } | ||
{ | ||
chcp $cp; | ||
${CHCP_COM} $cp; | ||
} | ||
@@ -117,2 +119,2 @@ `; | ||
exports.execPowershell = execPowershell; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhlYy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlscy9leGVjLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsa0VBQXNDO0FBQ3RDLDRDQUFvQjtBQUNwQiw0Q0FBb0I7QUFDcEIsZ0RBQXdCO0FBQ3hCLDhDQUFzQjtBQUN0QixrREFBMEI7QUFDMUIsMERBQTJCO0FBQzNCLG9EQUE0QjtBQUM1Qiw0REFBb0M7QUFDcEMsMkRBQW1DO0FBQ25DLDhFQUFxRDtBQUNyRCwwR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0.7", | ||
"description": "An utility library for performing platform-dependent actions on browsers.", | ||
@@ -43,3 +43,2 @@ "homepage": "https://github.com/DevExpress/testcafe-browser-tools", | ||
"gulp": "^4.0.2", | ||
"gulp-changed": "^1.3.0", | ||
"gulp-chmod": "^1.3.0", | ||
@@ -50,3 +49,2 @@ "gulp-eslint": "^1.0.0", | ||
"gulp-msbuild": "^0.5.2", | ||
"gulp-remote-src": "^0.4.1", | ||
"hogan-express": "^0.5.2", | ||
@@ -58,4 +56,3 @@ "jsdoc-to-markdown": "^5.0.2", | ||
"tmp": "0.0.33", | ||
"typescript": "^3.6.4", | ||
"viewportsizes": "^0.1.2" | ||
"typescript": "^3.6.4" | ||
}, | ||
@@ -62,0 +59,0 @@ "scripts": { |
@@ -11,5 +11,5 @@ # testcafe-browser-tools | ||
``` | ||
'build-win' | ||
'build-mac' | ||
'build-linux' | ||
'buildWin' | ||
'buildMac' | ||
'buildLinux' | ||
``` | ||
@@ -47,5 +47,5 @@ Note that the application for a particular platform must be built on a machine with the same platform. | ||
``` | ||
$ gulp run-playground-win | ||
$ gulp run-playground-mac | ||
$ gulp run-playground-linux | ||
$ gulp runPlaygroundWin | ||
$ gulp runPlaygroundMac | ||
$ gulp runPlaygroundLinux | ||
``` | ||
@@ -52,0 +52,0 @@ This will open the Playground web page at [http://localhost:1334/](http://localhost:1334/), where you can manually check if the functions work correctly. |
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
1775529
20
1234