mjml-head-font
Advanced tools
Comparing version 3.3.0 to 4.0.0-alpha.1
@@ -1,2 +0,2 @@ | ||
"use strict"; | ||
'use strict'; | ||
@@ -7,22 +7,13 @@ Object.defineProperty(exports, "__esModule", { | ||
var _find = require("lodash/find"); | ||
var _createComponent = require('mjml-core/lib/createComponent'); | ||
var _find2 = _interopRequireDefault(_find); | ||
exports.default = (0, _createComponent.createHeadComponent)('mj-font', { | ||
tagOmission: true, | ||
handler: function handler() { | ||
var add = this.context.add; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
exports.default = { | ||
name: "mj-font", | ||
endingTag: true, | ||
handler: function handler(_ref, globalAttributes) { | ||
var attributes = _ref.attributes; | ||
var font = (0, _find2.default)(globalAttributes.fonts, ['name', attributes.name]); | ||
if (font) { | ||
font.url = attributes.href; | ||
} else { | ||
globalAttributes.fonts.push({ name: attributes.name, url: attributes.href }); | ||
} | ||
add('fonts', this.getMjAttribute('name'), this.getMjAttribute('href')); | ||
} | ||
}; | ||
}); | ||
module.exports = exports['default']; |
{ | ||
"name": "mjml-head-font", | ||
"description": "mjml-head-font", | ||
"version": "3.3.0", | ||
"version": "4.0.0-alpha.1", | ||
"main": "lib/index.js", | ||
@@ -15,5 +15,10 @@ "repository": { | ||
"homepage": "https://mjml.io", | ||
"scripts": { | ||
"clean": "../../node_modules/.bin/rimraf lib", | ||
"build": "../../node_modules/.bin/babel src --out-dir lib" | ||
}, | ||
"dependencies": { | ||
"lodash": "^4.17.4" | ||
"lodash": "^4.17.2", | ||
"mjml-core": "^4.0.0-alpha.1" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
28712
2
4
12
1
1
0
1
+ Addedmjml-core@^4.0.0-alpha.1
+ Added@babel/runtime@7.25.6(transitive)
+ Added@isaacs/cliui@8.0.2(transitive)
+ Added@one-ini/wasm@0.1.1(transitive)
+ Added@pkgjs/parseargs@0.11.0(transitive)
+ Addedabbrev@2.0.0(transitive)
+ Addedansi-colors@4.1.3(transitive)
+ Addedansi-regex@5.0.16.1.0(transitive)
+ Addedansi-styles@4.3.06.2.1(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedboolbase@1.0.0(transitive)
+ Addedbrace-expansion@2.0.1(transitive)
+ Addedcamel-case@3.0.0(transitive)
+ Addedcheerio@1.0.0-rc.12(transitive)
+ Addedcheerio-select@2.1.0(transitive)
+ Addedclean-css@4.2.4(transitive)
+ Addedcliui@8.0.1(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedcommander@10.0.12.20.36.2.1(transitive)
+ Addedconfig-chain@1.1.13(transitive)
+ Addedcross-spawn@7.0.3(transitive)
+ Addedcss-select@5.1.0(transitive)
+ Addedcss-what@6.1.0(transitive)
+ Addeddetect-node@2.1.0(transitive)
+ Addeddom-serializer@1.4.12.0.0(transitive)
+ Addeddomelementtype@2.3.0(transitive)
+ Addeddomhandler@3.3.04.3.15.0.3(transitive)
+ Addeddomutils@2.8.03.1.0(transitive)
+ Addedeastasianwidth@0.2.0(transitive)
+ Addededitorconfig@1.0.4(transitive)
+ Addedemoji-regex@8.0.09.2.2(transitive)
+ Addedentities@2.2.04.5.0(transitive)
+ Addedescalade@3.2.0(transitive)
+ Addedescape-goat@3.0.0(transitive)
+ Addedforeground-child@3.3.0(transitive)
+ Addedget-caller-file@2.0.5(transitive)
+ Addedglob@10.4.5(transitive)
+ Addedhe@1.2.0(transitive)
+ Addedhtml-minifier@4.0.0(transitive)
+ Addedhtmlparser2@5.0.18.0.29.1.0(transitive)
+ Addedini@1.3.8(transitive)
+ Addedis-fullwidth-code-point@3.0.0(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedjackspeak@3.4.3(transitive)
+ Addedjs-beautify@1.15.1(transitive)
+ Addedjs-cookie@3.0.5(transitive)
+ Addedjuice@10.0.1(transitive)
+ Addedlower-case@1.1.4(transitive)
+ Addedlru-cache@10.4.3(transitive)
+ Addedmensch@0.3.4(transitive)
+ Addedmime@2.6.0(transitive)
+ Addedminimatch@9.0.19.0.5(transitive)
+ Addedminipass@7.1.2(transitive)
+ Addedmjml-core@4.15.3(transitive)
+ Addedmjml-migrate@4.15.3(transitive)
+ Addedmjml-parser-xml@4.15.3(transitive)
+ Addedmjml-validator@4.15.3(transitive)
+ Addedno-case@2.3.2(transitive)
+ Addednode-fetch@2.7.0(transitive)
+ Addednopt@7.2.1(transitive)
+ Addednth-check@2.1.1(transitive)
+ Addedpackage-json-from-dist@1.0.1(transitive)
+ Addedparam-case@2.1.1(transitive)
+ Addedparse5@7.1.2(transitive)
+ Addedparse5-htmlparser2-tree-adapter@7.0.0(transitive)
+ Addedpath-key@3.1.1(transitive)
+ Addedpath-scurry@1.11.1(transitive)
+ Addedproto-list@1.2.4(transitive)
+ Addedregenerator-runtime@0.14.1(transitive)
+ Addedrelateurl@0.2.7(transitive)
+ Addedrequire-directory@2.1.1(transitive)
+ Addedsemver@7.6.3(transitive)
+ Addedshebang-command@2.0.0(transitive)
+ Addedshebang-regex@3.0.0(transitive)
+ Addedsignal-exit@4.1.0(transitive)
+ Addedslick@1.12.2(transitive)
+ Addedsource-map@0.6.1(transitive)
+ Addedstring-width@4.2.35.1.2(transitive)
+ Addedstrip-ansi@6.0.17.1.0(transitive)
+ Addedtr46@0.0.3(transitive)
+ Addeduglify-js@3.19.3(transitive)
+ Addedupper-case@1.1.3(transitive)
+ Addedvalid-data-url@3.0.1(transitive)
+ Addedweb-resource-inliner@6.0.1(transitive)
+ Addedwebidl-conversions@3.0.1(transitive)
+ Addedwhatwg-url@5.0.0(transitive)
+ Addedwhich@2.0.2(transitive)
+ Addedwrap-ansi@7.0.08.1.0(transitive)
+ Addedy18n@5.0.8(transitive)
+ Addedyargs@17.7.2(transitive)
+ Addedyargs-parser@21.1.1(transitive)
Updatedlodash@^4.17.2