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/dist/bundle.js +1 -1
- package/package.json +1 -1
- package/src/index.js +0 -5
package/package.json
CHANGED
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}`;
|