wgt-node-utils 1.2.67 → 1.2.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wgt-node-utils",
3
- "version": "1.2.67",
3
+ "version": "1.2.68",
4
4
  "description": "WGT工具类包",
5
5
  "main": "dist/bundle.js",
6
6
  "scripts": {
package/src/index.js CHANGED
@@ -912,11 +912,6 @@ class wgtNodeUtils {
912
912
  * @param genre: 游戏所属分类
913
913
  */
914
914
  renderLdJson = ({ url, name, image, author, aggregateRating, description, hostname, type, languageList, applicationCategory, genre, time }) => {
915
- if (!url || !name) {
916
- console.warn('renderLdJson: missing required fields (url, name)');
917
- return null;
918
- }
919
-
920
915
  const currentType = type || 'WebApplication';
921
916
  const inLanguage = languageList ? languageList.map(item => item.code) : [];
922
917
  const organizationUrl = `https://${hostname}`;