Comparing version 6.1.5 to 6.1.6
@@ -254,2 +254,3 @@ # API | ||
|'player_loc:autoplay'|string - optional|'ap=1'|a string the search engine can append as a query param to enable automatic playback| | ||
|'player_loc:allow_embed'|boolean - optional|'yes'|Whether the search engine can embed the video in search results. Allowed values are yes or no.| | ||
|duration|number - optional| 600| duration of video in seconds| | ||
@@ -256,0 +257,0 @@ |expiration_date| string - optional|"2012-07-16T19:20:30+08:00"|The date after which the video will no longer be available| |
# Changelog | ||
## 6.1.6 | ||
- support allow_embed #314 | ||
- bump dependencies | ||
## 6.1.5 | ||
@@ -4,0 +9,0 @@ |
@@ -68,3 +68,6 @@ "use strict"; | ||
if (video.player_loc) { | ||
this.push(sitemap_xml_1.element(types_1.TagNames['video:player_loc'], attrBuilder(video, 'player_loc:autoplay'), video.player_loc)); | ||
this.push(sitemap_xml_1.element(types_1.TagNames['video:player_loc'], attrBuilder(video, [ | ||
'player_loc:autoplay', | ||
'player_loc:allow_embed', | ||
]), video.player_loc)); | ||
} | ||
@@ -71,0 +74,0 @@ if (video.duration) { |
@@ -340,2 +340,5 @@ "use strict"; | ||
} | ||
else if (attr.name === 'allow_embed' && types_1.isValidYesNo(attr.value)) { | ||
currentVideo['player_loc:allow_embed'] = attr.value; | ||
} | ||
else { | ||
@@ -342,0 +345,0 @@ console.log('unhandled attr for video:player_loc', attr.name); |
@@ -143,2 +143,6 @@ /// <reference types="node" /> | ||
/** | ||
* Whether the search engine can embed the video in search results. Allowed values are yes or no. | ||
*/ | ||
'player_loc:allow_embed'?: EnumYesNo; | ||
/** | ||
* The length of the video in seconds | ||
@@ -145,0 +149,0 @@ * @example 600 |
{ | ||
"name": "sitemap", | ||
"version": "6.1.5", | ||
"version": "6.1.6", | ||
"description": "Sitemap-generating lib/cli", | ||
@@ -152,3 +152,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@types/node": "^14.0.5", | ||
"@types/node": "^14.0.13", | ||
"@types/sax": "^1.2.1", | ||
@@ -159,25 +159,25 @@ "arg": "^4.1.3", | ||
"devDependencies": { | ||
"@babel/core": "^7.10.0", | ||
"@babel/plugin-proposal-class-properties": "^7.8.3", | ||
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.8.3", | ||
"@babel/plugin-proposal-optional-chaining": "^7.10.0", | ||
"@babel/plugin-transform-typescript": "^7.10.0", | ||
"@babel/preset-env": "^7.10.0", | ||
"@babel/preset-typescript": "^7.9.0", | ||
"@babel/core": "^7.10.3", | ||
"@babel/plugin-proposal-class-properties": "^7.10.1", | ||
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.10.1", | ||
"@babel/plugin-proposal-optional-chaining": "^7.10.3", | ||
"@babel/plugin-transform-typescript": "^7.10.3", | ||
"@babel/preset-env": "^7.10.3", | ||
"@babel/preset-typescript": "^7.10.1", | ||
"@types/jest": "^25.2.3", | ||
"@typescript-eslint/eslint-plugin": "^3.0.1", | ||
"@typescript-eslint/parser": "^3.0.1", | ||
"@typescript-eslint/eslint-plugin": "^3.3.0", | ||
"@typescript-eslint/parser": "^3.3.0", | ||
"babel-eslint": "^10.1.0", | ||
"babel-polyfill": "^6.26.0", | ||
"concurrently": "^5.2.0", | ||
"eslint": "^7.1.0", | ||
"eslint": "^7.3.0", | ||
"eslint-config-prettier": "^6.11.0", | ||
"eslint-plugin-jest": "^23.13.2", | ||
"eslint-plugin-prettier": "^3.1.3", | ||
"eslint-plugin-jest": "^23.16.0", | ||
"eslint-plugin-prettier": "^3.1.4", | ||
"express": "^4.17.1", | ||
"husky": "^4.2.5", | ||
"jest": "^26.0.1", | ||
"lint-staged": "^10.2.6", | ||
"lint-staged": "^10.2.11", | ||
"prettier": "^2.0.5", | ||
"sort-package-json": "^1.42.3", | ||
"sort-package-json": "^1.44.0", | ||
"source-map": "~0.7.3", | ||
@@ -187,3 +187,3 @@ "stats-lite": "^2.2.0", | ||
"through2-map": "^3.0.0", | ||
"typescript": "^3.9.3" | ||
"typescript": "^3.9.5" | ||
}, | ||
@@ -190,0 +190,0 @@ "engines": { |
@@ -212,3 +212,4 @@ # sitemap ![MIT License](https://img.shields.io/npm/l/sitemap)[![Build Status](https://travis-ci.org/ekalinin/sitemap.js.svg?branch=master)](https://travis-ci.org/ekalinin/sitemap.js)![Monthly Downloads](https://img.shields.io/npm/dm/sitemap) | ||
'player_loc': 'http://www.example.com/videoplayer.mp4?video=123', | ||
'player_loc:autoplay': 'ap=1' | ||
'player_loc:autoplay': 'ap=1', | ||
'player_loc:allow_embed': 'yes' | ||
} | ||
@@ -215,0 +216,0 @@ ], |
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
145687
2650
248
Updated@types/node@^14.0.13