Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fontfaceobserver

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fontfaceobserver - npm Package Compare versions

Comparing version 1.6.0 to 1.6.1

11

package.json
{
"name": "fontfaceobserver",
"version": "1.6.0",
"version": "1.6.1",
"description": "Detect if web fonts are available",

@@ -27,7 +27,6 @@ "directories": {

"license": "BSD",
"dependencies": {
"dependencies": {},
"devDependencies": {
"promis": "=1.1.4",
"closure-dom": "=0.1.1"
},
"devDependencies": {
"closure-dom": "=0.1.1",
"extend": "^2.0.0",

@@ -39,5 +38,5 @@ "grunt": "^0.4.5",

"grunt-contrib-jshint": "^0.11.1",
"mocha-phantomjs-core": "^1.0.1",
"grunt-exec": "~0.4.6",
"mocha": "=2.2.1",
"mocha-phantomjs-core": "^1.0.1",
"sinon": "=1.14.1",

@@ -44,0 +43,0 @@ "unexpected": "^6.4.0"

@@ -21,3 +21,3 @@ # Font Face Observer [![Build Status](https://travis-ci.org/bramstein/fontfaceobserver.png?branch=master)](https://travis-ci.org/bramstein/fontfaceobserver)

The `FontFaceObserver` constructor takes two arguments: the font family name (required) and an object describing the variation (optional). The object can contain `weight`, `style`, `stretch`, `variant`, and `featureSettings` properties. If a property is not present it will default to `normal`. To start observing font loads, call the `check` method. It'll immediately return a new Promise that resolves when the font is available and rejected when the font is not available.
The `FontFaceObserver` constructor takes two arguments: the font family name (required) and an object describing the variation (optional). The object can contain `weight`, `style`, and `stretch` properties. If a property is not present it will default to `normal`. To start observing font loads, call the `check` method. It'll immediately return a new Promise that resolves when the font is available and rejected when the font is not available.

@@ -24,0 +24,0 @@ If your font doesn't contain latin characters you can pass a custom test string to the `check` method.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc