@puppeteer/browsers
Advanced tools
Comparing version 2.4.1 to 2.5.0
@@ -23,9 +23,19 @@ "use strict"; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __importStar = (this && this.__importStar) || (function () { | ||
var ownKeys = function(o) { | ||
ownKeys = Object.getOwnPropertyNames || function (o) { | ||
var ar = []; | ||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; | ||
return ar; | ||
}; | ||
return ownKeys(o); | ||
}; | ||
return function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -32,0 +42,0 @@ exports.ChromeReleaseChannel = exports.BrowserPlatform = exports.Browser = exports.versionComparators = exports.executablePathByBrowser = exports.downloadPaths = exports.downloadUrls = void 0; |
@@ -122,2 +122,4 @@ "use strict"; | ||
return '/opt/google/chrome-beta/chrome'; | ||
case types_js_1.ChromeReleaseChannel.CANARY: | ||
return '/opt/google/chrome-canary/chrome'; | ||
case types_js_1.ChromeReleaseChannel.DEV: | ||
@@ -127,3 +129,2 @@ return '/opt/google/chrome-unstable/chrome'; | ||
} | ||
throw new Error(`Unable to detect browser executable path for '${channel}' on ${platform}.`); | ||
} | ||
@@ -130,0 +131,0 @@ function compareVersions(a, b) { |
@@ -23,9 +23,19 @@ "use strict"; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __importStar = (this && this.__importStar) || (function () { | ||
var ownKeys = function(o) { | ||
ownKeys = Object.getOwnPropertyNames || function (o) { | ||
var ar = []; | ||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; | ||
return ar; | ||
}; | ||
return ownKeys(o); | ||
}; | ||
return function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
})(); | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
@@ -32,0 +42,0 @@ return (mod && mod.__esModule) ? mod : { "default": mod }; |
@@ -23,9 +23,19 @@ "use strict"; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __importStar = (this && this.__importStar) || (function () { | ||
var ownKeys = function(o) { | ||
ownKeys = Object.getOwnPropertyNames || function (o) { | ||
var ar = []; | ||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; | ||
return ar; | ||
}; | ||
return ownKeys(o); | ||
}; | ||
return function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
})(); | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
@@ -32,0 +42,0 @@ return (mod && mod.__esModule) ? mod : { "default": mod }; |
@@ -23,9 +23,19 @@ "use strict"; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __importStar = (this && this.__importStar) || (function () { | ||
var ownKeys = function(o) { | ||
ownKeys = Object.getOwnPropertyNames || function (o) { | ||
var ar = []; | ||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; | ||
return ar; | ||
}; | ||
return ownKeys(o); | ||
}; | ||
return function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -32,0 +42,0 @@ exports.headHttpRequest = headHttpRequest; |
@@ -108,2 +108,4 @@ /** | ||
return '/opt/google/chrome-beta/chrome'; | ||
case ChromeReleaseChannel.CANARY: | ||
return '/opt/google/chrome-canary/chrome'; | ||
case ChromeReleaseChannel.DEV: | ||
@@ -113,3 +115,2 @@ return '/opt/google/chrome-unstable/chrome'; | ||
} | ||
throw new Error(`Unable to detect browser executable path for '${channel}' on ${platform}.`); | ||
} | ||
@@ -116,0 +117,0 @@ export function compareVersions(a, b) { |
{ | ||
"name": "@puppeteer/browsers", | ||
"version": "2.4.1", | ||
"version": "2.5.0", | ||
"description": "Download and launch browsers", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -10,2 +10,5 @@ # @puppeteer/browsers | ||
```bash | ||
# This will install and run the @puppeteer/browsers package. | ||
# If it is already installed in the current directory, the installed | ||
# version will be used. | ||
npx @puppeteer/browsers --help | ||
@@ -22,2 +25,14 @@ ``` | ||
You can specify the version of the `@puppeteer/browsers` when using | ||
`npx`: | ||
```bash | ||
# Always install and use the latest version from the registry. | ||
npx @puppeteer/browsers@latest --help | ||
# Always use a specifc version. | ||
npx @puppeteer/browsers@2.4.1 --help | ||
# Always install the latest version and automatically confirm the installation. | ||
npx --yes @puppeteer/browsers@latest --help | ||
``` | ||
Some example to give an idea of what the CLI looks like (use the `--help` command for more examples): | ||
@@ -24,0 +39,0 @@ |
@@ -189,2 +189,4 @@ /** | ||
return '/opt/google/chrome-beta/chrome'; | ||
case ChromeReleaseChannel.CANARY: | ||
return '/opt/google/chrome-canary/chrome'; | ||
case ChromeReleaseChannel.DEV: | ||
@@ -194,6 +196,2 @@ return '/opt/google/chrome-unstable/chrome'; | ||
} | ||
throw new Error( | ||
`Unable to detect browser executable path for '${channel}' on ${platform}.`, | ||
); | ||
} | ||
@@ -200,0 +198,0 @@ |
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
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
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
503090
9260
62