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

css-vendor

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-vendor - npm Package Compare versions

Comparing version 0.2.4 to 0.2.5

2

bower.json
{
"name": "css-vendor",
"description": "CSS vendor prefix detection and property feature testing.",
"version": "0.2.4",
"version": "0.2.5",
"author": {

@@ -6,0 +6,0 @@ "name": "Oleg Slobodskoi",

@@ -55,2 +55,7 @@ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.cssVendor=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){

/**
* Export javascript style and css style vendor prefixes.
* Based on "transform" support test.
*/
exports.js = exports.css = ''

@@ -60,7 +65,2 @@

if (typeof document != 'undefined') {
/**
* Export javascript style and css style vendor prefixes.
* Based on "transform" support test.
*/
var jsCssMap = {

@@ -91,24 +91,29 @@ Webkit: '-webkit-',

var el = document.createElement('p')
var el
var cache = {}
/**
* We test every property on vendor prefix requirement.
* Once tested, result is cached. It gives us up to 70% perf boost.
* http://jsperf.com/element-style-object-access-vs-plain-object
*
* Prefill cache with known css properties to reduce amount of
* properties we need to feature test at runtime.
* http://davidwalsh.name/vendor-prefix
*/
var cache = (function() {
var computed = window.getComputedStyle(document.documentElement, '')
var cache = {}
if (typeof document != 'undefined') {
el = document.createElement('p')
for (var key in computed) {
cache[computed[key]] = computed[key]
}
/**
* We test every property on vendor prefix requirement.
* Once tested, result is cached. It gives us up to 70% perf boost.
* http://jsperf.com/element-style-object-access-vs-plain-object
*
* Prefill cache with known css properties to reduce amount of
* properties we need to feature test at runtime.
* http://davidwalsh.name/vendor-prefix
*/
cache = (function() {
var computed = window.getComputedStyle(document.documentElement, '')
var cache = {}
return cache
}())
for (var key in computed) {
cache[computed[key]] = computed[key]
}
return cache
}())
}
/**

@@ -148,4 +153,6 @@ * Test if a property is supported, returns supported property with vendor

var el = document.createElement('p')
var el
if (typeof document != 'undefined') el = document.createElement('p')
/**

@@ -152,0 +159,0 @@ * Returns prefixed value if needed. Returns `false` if value is not supported.

@@ -0,1 +1,5 @@

## 0.2.5 / 2014-22-09
- make it requirable serverside
## 0.2.4 / 2014-21-09

@@ -2,0 +6,0 @@

@@ -6,24 +6,29 @@ 'use strict'

var el = document.createElement('p')
var el
var cache = {}
/**
* We test every property on vendor prefix requirement.
* Once tested, result is cached. It gives us up to 70% perf boost.
* http://jsperf.com/element-style-object-access-vs-plain-object
*
* Prefill cache with known css properties to reduce amount of
* properties we need to feature test at runtime.
* http://davidwalsh.name/vendor-prefix
*/
var cache = (function() {
var computed = window.getComputedStyle(document.documentElement, '')
var cache = {}
if (typeof document != 'undefined') {
el = document.createElement('p')
for (var key in computed) {
cache[computed[key]] = computed[key]
}
/**
* We test every property on vendor prefix requirement.
* Once tested, result is cached. It gives us up to 70% perf boost.
* http://jsperf.com/element-style-object-access-vs-plain-object
*
* Prefill cache with known css properties to reduce amount of
* properties we need to feature test at runtime.
* http://davidwalsh.name/vendor-prefix
*/
cache = (function() {
var computed = window.getComputedStyle(document.documentElement, '')
var cache = {}
return cache
}())
for (var key in computed) {
cache[computed[key]] = computed[key]
}
return cache
}())
}
/**

@@ -30,0 +35,0 @@ * Test if a property is supported, returns supported property with vendor

@@ -7,4 +7,6 @@ 'use strict'

var el = document.createElement('p')
var el
if (typeof document != 'undefined') el = document.createElement('p')
/**

@@ -11,0 +13,0 @@ * Returns prefixed value if needed. Returns `false` if value is not supported.

{
"name": "css-vendor",
"description": "CSS vendor prefix detection and property feature testing.",
"version": "0.2.4",
"version": "0.2.5",
"author": {

@@ -6,0 +6,0 @@ "name": "Oleg Slobodskoi",

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