@ampproject/toolbox-runtime-version
Advanced tools
Comparing version 2.9.0 to 2.10.0
@@ -18,5 +18,6 @@ /** | ||
const {DEFAULT_AMP_CACHE_HOST} = require('../../optimizer/lib/AmpConstants'); | ||
const log = require('@ampproject/toolbox-core').log.tag('AMP Runtime Version'); | ||
const AMP_CACHE_HOST = 'https://cdn.ampproject.org'; | ||
const RUNTIME_METADATA_PATH = '/rtv/metadata'; | ||
@@ -100,3 +101,5 @@ const VERSION_TXT_PATH = '/version.txt'; | ||
const host = options.ampUrlPrefix ? options.ampUrlPrefix.replace(/\/$/, '') : AMP_CACHE_HOST; | ||
const host = options.ampUrlPrefix | ||
? options.ampUrlPrefix.replace(/\/$/, '') | ||
: DEFAULT_AMP_CACHE_HOST; | ||
@@ -103,0 +106,0 @@ let rtv = await this.getVersionFromRuntimeMetadata_(host, releaseType); |
{ | ||
"name": "@ampproject/toolbox-runtime-version", | ||
"version": "2.9.0", | ||
"version": "2.10.0", | ||
"description": "AMP Runtime versions", | ||
@@ -21,3 +21,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"@ampproject/toolbox-core": "2.9.0" | ||
"@ampproject/toolbox-core": "2.10.0" | ||
}, | ||
@@ -28,3 +28,3 @@ "bugs": { | ||
"homepage": "https://github.com/ampproject/amp-toolbox/tree/main/packages/runtime-version", | ||
"gitHead": "0826825fd8c5f3abac821ebe87a318e70f33c9dd" | ||
"gitHead": "6103eb57765445355421826791361ac9ed9cf4d8" | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a 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
239
10220
4
2
+ Added@ampproject/toolbox-core@2.10.0(transitive)
- Removed@ampproject/toolbox-core@2.9.0(transitive)