react-responsive-carousel
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -1,2 +0,2 @@ | ||
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o;"undefined"!=typeof window?o=window:"undefined"!=typeof global?o=global:"undefined"!=typeof self&&(o=self),(o.Carousel||(o.Carousel={})).js=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){ | ||
(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){ | ||
/** @jsx React.DOM */ | ||
@@ -736,3 +736,2 @@ var React = require('react'); | ||
},{}]},{},[1])(1) | ||
}); | ||
},{}]},{},[1]); |
@@ -1,2 +0,2 @@ | ||
!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.ImageGallery||(f.ImageGallery={})).js=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){ | ||
(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){ | ||
/** @jsx React.DOM */ | ||
@@ -41,3 +41,3 @@ var React = require('react'); | ||
},{"./Carousel":4,"react":3}],2:[function(require,module,exports){ | ||
},{"./Carousel":9,"react":8}],2:[function(require,module,exports){ | ||
var RequestFrame = require('raf') | ||
@@ -363,6 +363,262 @@ var Dimensions = require('ainojs-dimensions') | ||
module.exports = Finger | ||
},{}],3:[function(require,module,exports){ | ||
},{"ainojs-dimensions":3,"ainojs-events":4,"raf":5}],3:[function(require,module,exports){ | ||
var comp = window.getComputedStyle | ||
var getValue = function(elem, what) { | ||
var low = what.toLowerCase() | ||
var val = Math.ceil( ("getBoundingClientRect" in elem) ? | ||
elem.getBoundingClientRect()[ low ] : | ||
elem[ 'offset'+what ] | ||
) | ||
if ( (typeof val == 'undefined' || isNaN(val)) && comp ) | ||
val = comp(elem, null)[ low ].replace('px','') | ||
return parseInt(val, 10) | ||
} | ||
module.exports = function(elem) { | ||
return { | ||
width: getValue(elem, 'Width'), | ||
height: getValue(elem, 'Height') | ||
} | ||
} | ||
},{}],4:[function(require,module,exports){ | ||
var Events = function() { | ||
var handlers = [] | ||
this.on = function( type, handler ) { | ||
handlers.push({ | ||
type: type, | ||
handler: handler | ||
}) | ||
return this | ||
} | ||
this.off = function( type, handler ) { | ||
var i = handlers.length | ||
var ev | ||
while ( i-- ) { | ||
ev = handlers[i] | ||
if ( ev === undefined || ( ev.type == type && ( !handler || handler == ev.handler ) ) ) | ||
handlers.splice(i, 1) | ||
} | ||
return this | ||
} | ||
this.once = function( type, handler ) { | ||
var fn = function() { | ||
handler.call( this ) | ||
this.off( type, fn ) | ||
}.bind(this) | ||
return this.on( type, fn ) | ||
} | ||
this.trigger = function( type, params, context ) { | ||
context = context || this | ||
var i = 0 | ||
var len = handlers.length | ||
var ev | ||
var obj = { type: type } | ||
if ( typeof params == 'object' ) { | ||
for( var prop in params ) | ||
obj[prop] = params[prop] | ||
} | ||
for ( ; i < len; i++ ) { | ||
ev = handlers[i] | ||
if ( ev && ev.type == type ) | ||
ev.handler.call(context, obj) | ||
} | ||
return this | ||
} | ||
return this | ||
} | ||
module.exports = Events | ||
},{}],5:[function(require,module,exports){ | ||
var now = require('performance-now') | ||
, global = typeof window === 'undefined' ? {} : window | ||
, vendors = ['moz', 'webkit'] | ||
, suffix = 'AnimationFrame' | ||
, raf = global['request' + suffix] | ||
, caf = global['cancel' + suffix] || global['cancelRequest' + suffix] | ||
, isNative = true | ||
for(var i = 0; i < vendors.length && !raf; i++) { | ||
raf = global[vendors[i] + 'Request' + suffix] | ||
caf = global[vendors[i] + 'Cancel' + suffix] | ||
|| global[vendors[i] + 'CancelRequest' + suffix] | ||
} | ||
// Some versions of FF have rAF but not cAF | ||
if(!raf || !caf) { | ||
isNative = false | ||
var last = 0 | ||
, id = 0 | ||
, queue = [] | ||
, frameDuration = 1000 / 60 | ||
raf = function(callback) { | ||
if(queue.length === 0) { | ||
var _now = now() | ||
, next = Math.max(0, frameDuration - (_now - last)) | ||
last = next + _now | ||
setTimeout(function() { | ||
var cp = queue.slice(0) | ||
// Clear queue here to prevent | ||
// callbacks from appending listeners | ||
// to the current frame's queue | ||
queue.length = 0 | ||
for(var i = 0; i < cp.length; i++) { | ||
if(!cp[i].cancelled) { | ||
try{ | ||
cp[i].callback(last) | ||
} catch(e) { | ||
setTimeout(function() { throw e }, 0) | ||
} | ||
} | ||
} | ||
}, Math.round(next)) | ||
} | ||
queue.push({ | ||
handle: ++id, | ||
callback: callback, | ||
cancelled: false | ||
}) | ||
return id | ||
} | ||
caf = function(handle) { | ||
for(var i = 0; i < queue.length; i++) { | ||
if(queue[i].handle === handle) { | ||
queue[i].cancelled = true | ||
} | ||
} | ||
} | ||
} | ||
module.exports = function(fn) { | ||
// Wrap in a new function to prevent | ||
// `cancel` potentially being assigned | ||
// to the native rAF function | ||
if(!isNative) { | ||
return raf.call(global, fn) | ||
} | ||
return raf.call(global, function() { | ||
try{ | ||
fn.apply(this, arguments) | ||
} catch(e) { | ||
setTimeout(function() { throw e }, 0) | ||
} | ||
}) | ||
} | ||
module.exports.cancel = function() { | ||
caf.apply(global, arguments) | ||
} | ||
},{"performance-now":6}],6:[function(require,module,exports){ | ||
(function (process){ | ||
// Generated by CoffeeScript 1.6.3 | ||
(function() { | ||
var getNanoSeconds, hrtime, loadTime; | ||
if ((typeof performance !== "undefined" && performance !== null) && performance.now) { | ||
module.exports = function() { | ||
return performance.now(); | ||
}; | ||
} else if ((typeof process !== "undefined" && process !== null) && process.hrtime) { | ||
module.exports = function() { | ||
return (getNanoSeconds() - loadTime) / 1e6; | ||
}; | ||
hrtime = process.hrtime; | ||
getNanoSeconds = function() { | ||
var hr; | ||
hr = hrtime(); | ||
return hr[0] * 1e9 + hr[1]; | ||
}; | ||
loadTime = getNanoSeconds(); | ||
} else if (Date.now) { | ||
module.exports = function() { | ||
return Date.now() - loadTime; | ||
}; | ||
loadTime = Date.now(); | ||
} else { | ||
module.exports = function() { | ||
return new Date().getTime() - loadTime; | ||
}; | ||
loadTime = new Date().getTime(); | ||
} | ||
}).call(this); | ||
/* | ||
//@ sourceMappingURL=performance-now.map | ||
*/ | ||
}).call(this,require('_process')) | ||
},{"_process":7}],7:[function(require,module,exports){ | ||
// shim for using process in browser | ||
var process = module.exports = {}; | ||
var queue = []; | ||
var draining = false; | ||
function drainQueue() { | ||
if (draining) { | ||
return; | ||
} | ||
draining = true; | ||
var currentQueue; | ||
var len = queue.length; | ||
while(len) { | ||
currentQueue = queue; | ||
queue = []; | ||
var i = -1; | ||
while (++i < len) { | ||
currentQueue[i](); | ||
} | ||
len = queue.length; | ||
} | ||
draining = false; | ||
} | ||
process.nextTick = function (fun) { | ||
queue.push(fun); | ||
if (!draining) { | ||
setTimeout(drainQueue, 0); | ||
} | ||
}; | ||
process.title = 'browser'; | ||
process.browser = true; | ||
process.env = {}; | ||
process.argv = []; | ||
process.version = ''; // empty string to avoid regexp issues | ||
function noop() {} | ||
process.on = noop; | ||
process.addListener = noop; | ||
process.once = noop; | ||
process.off = noop; | ||
process.removeListener = noop; | ||
process.removeAllListeners = noop; | ||
process.emit = noop; | ||
process.binding = function (name) { | ||
throw new Error('process.binding is not supported'); | ||
}; | ||
// TODO(shtylman) | ||
process.cwd = function () { return '/' }; | ||
process.chdir = function (dir) { | ||
throw new Error('process.chdir is not supported'); | ||
}; | ||
process.umask = function() { return 0; }; | ||
},{}],8:[function(require,module,exports){ | ||
module.exports = require('./lib/React'); | ||
},{}],4:[function(require,module,exports){ | ||
},{}],9:[function(require,module,exports){ | ||
/** @jsx React.DOM */ | ||
@@ -778,3 +1034,2 @@ var React = require('react'); | ||
},{"ainojs-finger":2,"react":3}]},{},[1])(1) | ||
}); | ||
},{"ainojs-finger":2,"react":8}]},{},[1]); |
{ | ||
"name": "react-responsive-carousel", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "React Responsive Carousel", | ||
@@ -8,2 +8,6 @@ "author": "Leandro Augusto Lemos (leandrowd@gmail.com)", | ||
"dependencies": { | ||
"react": "~0.12.2", | ||
"ainojs-finger": "^1.1.2" | ||
}, | ||
"peerDependencies": { | ||
"ainojs-finger": "^1.1.2", | ||
@@ -15,3 +19,5 @@ "react": "~0.12.2", | ||
"devDependencies": { | ||
"browserify": "^6.2.0", | ||
"react-addons": "^0.9.0", | ||
"react-tools": "^0.12.2", | ||
"browserify": "^8.1.3", | ||
"glob": "^4.0.6", | ||
@@ -18,0 +24,0 @@ "gulp": "^3.8.9", |
@@ -27,17 +27,15 @@ var gulp = require('gulp'); | ||
if (!isDevelopment) { | ||
var bPackage = browserify({ | ||
entries: [ | ||
configs.paths.source + '/components/Carousel.js', | ||
configs.paths.source + '/components/ImageGallery.js' | ||
], | ||
transform: [["reactify", {"es6": true}]], | ||
debug: false, | ||
fullPaths: false, | ||
extension: ['js'], | ||
noParse: [ | ||
require.resolve('react'), | ||
require.resolve('react/addons'), | ||
require.resolve('ainojs-finger') | ||
] | ||
}); | ||
// var bPackage = browserify({ | ||
// entries: [ | ||
// configs.paths.source + '/components/Carousel.js', | ||
// configs.paths.source + '/components/ImageGallery.js' | ||
// ], | ||
// transform: [["reactify", {"es6": true}]], | ||
// debug: false, | ||
// fullPaths: false, | ||
// extension: ['js'], | ||
// noParse: [ | ||
// require.resolve('react') | ||
// ] | ||
// }); | ||
@@ -50,6 +48,4 @@ var carouselBundler = browserify({ | ||
extension: ['js'], | ||
standalone: 'Carousel.js', | ||
noParse: [ | ||
require.resolve('react'), | ||
require.resolve('react/addons'), | ||
require.resolve('ainojs-finger') | ||
@@ -65,7 +61,4 @@ ] | ||
extension: ['js'], | ||
standalone: 'ImageGallery.js', | ||
noParse: [ | ||
require.resolve('react'), | ||
require.resolve('react/addons'), | ||
require.resolve('ainojs-finger') | ||
require.resolve('react') | ||
] | ||
@@ -109,2 +102,3 @@ }); | ||
fullPaths: isDevelopment, | ||
paths: ['./node_modules','./src'], | ||
extension: ['js'] | ||
@@ -111,0 +105,0 @@ }); |
Sorry, the diff of this file is too big to display
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
10
3999715
6
25
67
48441
- Removedreact-addons@^0.9.0
- Removedreact-tools@^0.12.2