Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const chain_able_boost_1 = require("chain-able-boost");
/**
 * @class sameas JsonLd, but creating a factory is faster
 *
 * const script = React.createFactory('script')
 * const JsonLdAttributes = {type: 'application/ld+json'}
 * const JsonLd = props => script(JSON.stringify(props.data), JsonLdAttributes)
 */
/**
 * @description ensure we have valid json data
 */
function validateSchema(data) {
    // @todo
    return false;
}
exports.validateSchema = validateSchema;
/**
 * simply create __html obj
 */
function toInnerHTML(html) {
    return { __html: html };
}
exports.toInnerHTML = toInnerHTML;
/**
 * turn props into innerHTML
 */
function toStringifiedInnerHTML(props) {
    const stringified = chain_able_boost_1.stringify(props.data || props);
    const html = toInnerHTML(stringified);
    return html;
}
exports.toStringifiedInnerHTML = toStringifiedInnerHTML;
//# sourceMappingURL=deps.js.map