New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fast-animations

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-animations - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

7

lib/capabilities.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const hasDom = !!(typeof window !== 'undefined' &&
window.document &&
window.document.createElement);
exports.capabilities = {
workletSupported: !!window && ('animationWorklet' in CSS),
waapiSupported: !!window && ('animate' in document.createElement('div'))
workletSupported: hasDom && ('animationWorklet' in CSS),
waapiSupported: hasDom && ('animate' in document.createElement('div'))
};
//# sourceMappingURL=capabilities.js.map

@@ -0,4 +1,8 @@

const hasDom = !!(typeof window !== 'undefined' &&
window.document &&
window.document.createElement);
export const capabilities = {
workletSupported: !!window && ('animationWorklet' in CSS),
waapiSupported: !!window && ('animate' in document.createElement('div'))
workletSupported: hasDom && ('animationWorklet' in CSS),
waapiSupported: hasDom && ('animate' in document.createElement('div'))
};
{
"name": "fast-animations",
"version": "1.0.1",
"version": "1.0.2",
"main": "lib/index.js",

@@ -5,0 +5,0 @@ "types": "lib/index.d.ts",

Sorry, the diff of this file is not supported yet

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