You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
509 B
JavaScript
21 lines
509 B
JavaScript
"use strict";
|
|
|
|
const htmlEntities = require("html-entities");
|
|
const createDatasheet = require("../../shared/create-datasheet");
|
|
|
|
module.exports = function normalizeProduct() {
|
|
return async function (api) {
|
|
let { data } = api;
|
|
|
|
createDatasheet(api, {
|
|
priority: 0.8,
|
|
source: "st",
|
|
manufacturer: "STMicroelectronics",
|
|
productID: data.productId,
|
|
name: data.cellData["XJE010_VT-007"],
|
|
description: htmlEntities.decode(data.cellData["XJE014_VT-007"]),
|
|
url: data.datasheetLink
|
|
});
|
|
};
|
|
};
|