@vonage/vvd-fonts
Advanced tools
Comparing version 0.6.0 to 0.7.0
@@ -1,9 +0,4 @@ | ||
# 0.6.0 (2020-09-08) | ||
# 0.7.0 (2020-09-15) | ||
### Features | ||
* **textarea:** textarea form association ([#300](https://github.com/vonage/vivid/issues/300)) ([19ebd4e](https://github.com/vonage/vivid/commit/19ebd4e5f694738d2687f2a9d2a24ef2fa9beb4b)) | ||
{ | ||
"name": "@vonage/vvd-fonts", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"description": "Vivid fonts initialisation service", | ||
@@ -30,7 +30,7 @@ "homepage": "https://github.com/Vonage/vivid/tree/master/common/fonts", | ||
"devDependencies": { | ||
"@vonage/vvd-foundation": "^0.6.0", | ||
"@vonage/vvd-foundation": "^0.7.0", | ||
"fs-extra": "^9.0.1", | ||
"lit-element": "^2.4.0" | ||
}, | ||
"gitHead": "d55fb00c43d48e3f8b0f3de170e4cb6949acbfd8" | ||
"gitHead": "7ea075c26f7d4224be96ce96efd8ad6d6f210cd3" | ||
} |
@@ -14,3 +14,3 @@ export default Object.freeze({ | ||
import('./vvd-fonts.css.js') | ||
.then(cssDefs => { | ||
.then((cssDefs) => { | ||
const cssText = cssDefs.style.cssText; | ||
@@ -37,3 +37,4 @@ const finalCSS = cssText.replace(new RegExp(FONTS_BASE_URL_TOKEN, 'g'), CDN_BASE_URL); | ||
result.textContent = 'wwwiii'; | ||
result.style.cssText = 'position:absolute;top:-1000px;font-family:var(--vvd-font-family-spezia),monospace;visibility:hidden'; | ||
result.style.cssText = | ||
'position:absolute;top:-1000px;font-family:var(--vvd-font-family-spezia),monospace;visibility:hidden'; | ||
document.body.appendChild(result); | ||
@@ -43,3 +44,3 @@ return result; | ||
async function ensureInit(testElement, initialWidth) { | ||
return new Promise(resolve => { | ||
return new Promise((resolve) => { | ||
function innerTest() { | ||
@@ -46,0 +47,0 @@ if (testElement.offsetWidth === initialWidth) { |
Sorry, the diff of this file is not supported yet
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
120
0
24971