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.3 to 0.2.4

2

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

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

@@ -55,23 +55,27 @@ !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 = ''
var jsCssMap = {
Webkit: '-webkit-',
Moz: '-moz-',
// IE did it wrong again ...
ms: '-ms-',
O: '-o-'
}
// We should not do anything if required serverside.
if (typeof document != 'undefined') {
/**
* Export javascript style and css style vendor prefixes.
* Based on "transform" support test.
*/
var style = document.createElement('p').style
var testProp = 'Transform'
var jsCssMap = {
Webkit: '-webkit-',
Moz: '-moz-',
// IE did it wrong again ...
ms: '-ms-',
O: '-o-'
}
var style = document.createElement('p').style
var testProp = 'Transform'
for (var js in jsCssMap) {
if ((js + testProp) in style) {
exports.js = js
exports.css = jsCssMap[js]
break
for (var js in jsCssMap) {
if ((js + testProp) in style) {
exports.js = js
exports.css = jsCssMap[js]
break
}
}

@@ -78,0 +82,0 @@ }

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

## 0.2.4 / 2014-21-09
- make it requirable serverside
## 0.2.3 / 2014-02-08

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

@@ -8,19 +8,23 @@ 'use strict'

var jsCssMap = {
Webkit: '-webkit-',
Moz: '-moz-',
// IE did it wrong again ...
ms: '-ms-',
O: '-o-'
}
exports.js = exports.css = ''
var style = document.createElement('p').style
var testProp = 'Transform'
// We should not do anything if required serverside.
if (typeof document != 'undefined') {
var jsCssMap = {
Webkit: '-webkit-',
Moz: '-moz-',
// IE did it wrong again ...
ms: '-ms-',
O: '-o-'
}
var style = document.createElement('p').style
var testProp = 'Transform'
for (var js in jsCssMap) {
if ((js + testProp) in style) {
exports.js = js
exports.css = jsCssMap[js]
break
for (var js in jsCssMap) {
if ((js + testProp) in style) {
exports.js = js
exports.css = jsCssMap[js]
break
}
}
}
{
"name": "css-vendor",
"description": "CSS vendor prefix detection and property feature testing.",
"version": "0.2.3",
"version": "0.2.4",
"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