@parcel/transformer-html
Advanced tools
Comparing version 2.0.0-alpha.3.1 to 2.0.0-nightly.65
@@ -31,5 +31,6 @@ "use strict"; | ||
// - https://msdn.microsoft.com/en-us/library/dn255024.aspx | ||
// - https://vk.com/dev/publications | ||
const META = { | ||
property: ['og:image', 'og:image:url', 'og:image:secure_url', 'og:audio', 'og:audio:secure_url', 'og:video', 'og:video:secure_url'], | ||
property: ['og:image', 'og:image:url', 'og:image:secure_url', 'og:audio', 'og:audio:secure_url', 'og:video', 'og:video:secure_url', 'vk:image'], | ||
name: ['twitter:image', 'msapplication-square150x150logo', 'msapplication-square310x310logo', 'msapplication-square70x70logo', 'msapplication-wide310x150logo', 'msapplication-TileImage', 'msapplication-config'], | ||
@@ -36,0 +37,0 @@ itemprop: ['image', 'logo', 'screenshot', 'thumbnailUrl', 'contentUrl', 'downloadUrl'] |
{ | ||
"name": "@parcel/transformer-html", | ||
"version": "2.0.0-alpha.3.1", | ||
"version": "2.0.0-nightly.65+53632227", | ||
"license": "MIT", | ||
@@ -19,4 +19,4 @@ "publishConfig": { | ||
"dependencies": { | ||
"@parcel/plugin": "^2.0.0-alpha.3.1", | ||
"@parcel/utils": "^2.0.0-alpha.3.1", | ||
"@parcel/plugin": "^2.0.0-nightly.65+53632227", | ||
"@parcel/utils": "^2.0.0-nightly.65+53632227", | ||
"nullthrows": "^1.1.1", | ||
@@ -28,3 +28,3 @@ "posthtml": "^0.11.3", | ||
}, | ||
"gitHead": "291f3e6815a1a857a6165fafb1691ceeb878b8f6" | ||
"gitHead": "53632227bab3382066ed9c40456f54af9fa5614c" | ||
} |
@@ -19,3 +19,3 @@ // @flow | ||
'iframe', | ||
'embed' | ||
'embed', | ||
], | ||
@@ -28,3 +28,3 @@ // Using href with <script> is described here: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/script | ||
content: ['meta'], | ||
data: ['object'] | ||
data: ['object'], | ||
}; | ||
@@ -38,2 +38,3 @@ | ||
// - https://msdn.microsoft.com/en-us/library/dn255024.aspx | ||
// - https://vk.com/dev/publications | ||
const META = { | ||
@@ -47,3 +48,4 @@ property: [ | ||
'og:video', | ||
'og:video:secure_url' | ||
'og:video:secure_url', | ||
'vk:image', | ||
], | ||
@@ -57,3 +59,3 @@ name: [ | ||
'msapplication-TileImage', | ||
'msapplication-config' | ||
'msapplication-config', | ||
], | ||
@@ -66,4 +68,4 @@ itemprop: [ | ||
'contentUrl', | ||
'downloadUrl' | ||
] | ||
'downloadUrl', | ||
], | ||
}; | ||
@@ -74,6 +76,6 @@ | ||
a: { | ||
href: {isEntry: true} | ||
href: {isEntry: true}, | ||
}, | ||
iframe: { | ||
src: {isEntry: true} | ||
src: {isEntry: true}, | ||
}, | ||
@@ -84,6 +86,8 @@ script(attrs, options: PluginOptions) { | ||
outputFormat: | ||
attrs.type === 'module' && options.scopeHoist ? 'esmodule' : undefined | ||
} | ||
attrs.type === 'module' && options.scopeHoist | ||
? 'esmodule' | ||
: undefined, | ||
}, | ||
}; | ||
} | ||
}, | ||
}; | ||
@@ -116,3 +120,3 @@ | ||
asset: MutableAsset, | ||
options: PluginOptions | ||
options: PluginOptions, | ||
) { | ||
@@ -141,3 +145,3 @@ let ast = nullthrows(asset.ast); | ||
attrs.href = asset.addURLDependency(attrs.href, { | ||
isEntry: true | ||
isEntry: true, | ||
}); | ||
@@ -144,0 +148,0 @@ ast.isDirty = true; |
@@ -21,4 +21,4 @@ // @flow | ||
program: parse(await asset.getCode(), { | ||
lowerCaseAttributeNames: true | ||
}) | ||
lowerCaseAttributeNames: true, | ||
}), | ||
}; | ||
@@ -36,5 +36,5 @@ }, | ||
return { | ||
code: render(nullthrows(asset.ast).program) | ||
code: render(nullthrows(asset.ast).program), | ||
}; | ||
} | ||
}, | ||
}); |
@@ -15,7 +15,7 @@ // @flow strict-local | ||
'application/ld+json': 'jsonld', | ||
'text/html': false | ||
'text/html': false, | ||
}; | ||
export default function extractInlineAssets( | ||
asset: MutableAsset | ||
asset: MutableAsset, | ||
): Array<TransformerResult> { | ||
@@ -86,4 +86,4 @@ let ast = nullthrows(asset.ast); | ||
type: 'tag', | ||
node | ||
} | ||
node, | ||
}, | ||
}); | ||
@@ -103,4 +103,4 @@ } | ||
type: 'attr', | ||
node | ||
} | ||
node, | ||
}, | ||
}); | ||
@@ -107,0 +107,0 @@ } |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
17558
516
8
1