Skip to content

Commit

Permalink
Version 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Nagel committed Oct 16, 2016
1 parent 27adc9f commit 19f4a11
Show file tree
Hide file tree
Showing 5 changed files with 106 additions and 69 deletions.
163 changes: 100 additions & 63 deletions dist/react-duotone.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ return /******/ (function(modules) { // webpackBootstrap
var undefined;

/** Used as the semantic version number. */
var VERSION = '4.16.2';
var VERSION = '4.16.4';

/** Used as the size to enable large array optimizations. */
var LARGE_ARRAY_SIZE = 200;
Expand Down Expand Up @@ -399,6 +399,7 @@ return /******/ (function(modules) { // webpackBootstrap
numberTag = '[object Number]',
objectTag = '[object Object]',
promiseTag = '[object Promise]',
proxyTag = '[object Proxy]',
regexpTag = '[object RegExp]',
setTag = '[object Set]',
stringTag = '[object String]',
Expand Down Expand Up @@ -1773,14 +1774,21 @@ return /******/ (function(modules) { // webpackBootstrap
Symbol = context.Symbol,
Uint8Array = context.Uint8Array,
allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,
defineProperty = Object.defineProperty,
getPrototype = overArg(Object.getPrototypeOf, Object),
iteratorSymbol = Symbol ? Symbol.iterator : undefined,
objectCreate = Object.create,
propertyIsEnumerable = objectProto.propertyIsEnumerable,
splice = arrayProto.splice,
spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;

var defineProperty = (function() {
try {
var func = getNative(Object, 'defineProperty');
func({}, '', {});
return func;
} catch (e) {}
}());

/** Mocked built-ins. */
var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout,
ctxNow = Date && Date.now !== root.Date.now && Date.now,
Expand All @@ -1807,8 +1815,7 @@ return /******/ (function(modules) { // webpackBootstrap
Promise = getNative(context, 'Promise'),
Set = getNative(context, 'Set'),
WeakMap = getNative(context, 'WeakMap'),
nativeCreate = getNative(Object, 'create'),
nativeDefineProperty = getNative(Object, 'defineProperty');
nativeCreate = getNative(Object, 'create');

/** Used to store function metadata. */
var metaMap = WeakMap && new WeakMap;
Expand Down Expand Up @@ -1976,7 +1983,7 @@ return /******/ (function(modules) { // webpackBootstrap
if (objectCreate) {
return objectCreate(proto);
}
object.prototype = prototype;
object.prototype = proto;
var result = new object;
object.prototype = undefined;
return result;
Expand Down Expand Up @@ -2684,18 +2691,26 @@ return /******/ (function(modules) { // webpackBootstrap
* @returns {Array} Returns the array of property names.
*/
function arrayLikeKeys(value, inherited) {
// Safari 8.1 makes `arguments.callee` enumerable in strict mode.
// Safari 9 makes `arguments.length` enumerable in strict mode.
var result = (isArray(value) || isArguments(value))
? baseTimes(value.length, String)
: [];

var length = result.length,
skipIndexes = !!length;
var isArr = isArray(value),
isArg = !isArr && isArguments(value),
isBuff = !isArr && !isArg && isBuffer(value),
isType = !isArr && !isArg && !isBuff && isTypedArray(value),
skipIndexes = isArr || isArg || isBuff || isType,
result = skipIndexes ? baseTimes(value.length, String) : [],
length = result.length;

for (var key in value) {
if ((inherited || hasOwnProperty.call(value, key)) &&
!(skipIndexes && (key == 'length' || isIndex(key, length)))) {
!(skipIndexes && (
// Safari 9 has enumerable `arguments.length` in strict mode.
key == 'length' ||
// Node.js 0.10 has enumerable non-index properties on buffers.
(isBuff && (key == 'offset' || key == 'parent')) ||
// PhantomJS 2 has enumerable non-index properties on typed arrays.
(isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
// Skip index properties.
isIndex(key, length)
))) {
result.push(key);
}
}
Expand Down Expand Up @@ -2723,7 +2738,7 @@ return /******/ (function(modules) { // webpackBootstrap
* @returns {Array} Returns the random elements.
*/
function arraySampleSize(array, n) {
return shuffleSelf(copyArray(array), n);
return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));
}

/**
Expand Down Expand Up @@ -2766,7 +2781,7 @@ return /******/ (function(modules) { // webpackBootstrap
*/
function assignMergeValue(object, key, value) {
if ((value !== undefined && !eq(object[key], value)) ||
(typeof key == 'number' && value === undefined && !(key in object))) {
(value === undefined && !(key in object))) {
baseAssignValue(object, key, value);
}
}
Expand Down Expand Up @@ -2959,9 +2974,7 @@ return /******/ (function(modules) { // webpackBootstrap
}
stack.set(value, result);

if (!isArr) {
var props = isFull ? getAllKeys(value) : keys(value);
}
var props = isArr ? undefined : (isFull ? getAllKeys : keys)(value);
arrayEach(props || value, function(subValue, key) {
if (props) {
key = subValue;
Expand Down Expand Up @@ -3495,6 +3508,17 @@ return /******/ (function(modules) { // webpackBootstrap
return func == null ? undefined : apply(func, object, args);
}

/**
* The base implementation of `_.isArguments`.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
*/
function baseIsArguments(value) {
return isObjectLike(value) && objectToString.call(value) == argsTag;
}

/**
* The base implementation of `_.isArrayBuffer` without Node.js optimizations.
*
Expand Down Expand Up @@ -3575,6 +3599,13 @@ return /******/ (function(modules) { // webpackBootstrap
othIsObj = othTag == objectTag,
isSameTag = objTag == othTag;

if (isSameTag && isBuffer(object)) {
if (!isBuffer(other)) {
return false;
}
objIsArr = true;
objIsObj = false;
}
if (isSameTag && !objIsObj) {
stack || (stack = new Stack);
return (objIsArr || isTypedArray(object))
Expand Down Expand Up @@ -3864,14 +3895,7 @@ return /******/ (function(modules) { // webpackBootstrap
if (object === source) {
return;
}
if (!(isArray(source) || isTypedArray(source))) {
var props = baseKeysIn(source);
}
arrayEach(props || source, function(srcValue, key) {
if (props) {
key = srcValue;
srcValue = source[key];
}
baseFor(source, function(srcValue, key) {
if (isObject(srcValue)) {
stack || (stack = new Stack);
baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
Expand All @@ -3886,7 +3910,7 @@ return /******/ (function(modules) { // webpackBootstrap
}
assignMergeValue(object, key, newValue);
}
});
}, keysIn);
}

/**
Expand Down Expand Up @@ -3920,29 +3944,37 @@ return /******/ (function(modules) { // webpackBootstrap
var isCommon = newValue === undefined;

if (isCommon) {
var isArr = isArray(srcValue),
isBuff = !isArr && isBuffer(srcValue),
isTyped = !isArr && !isBuff && isTypedArray(srcValue);

newValue = srcValue;
if (isArray(srcValue) || isTypedArray(srcValue)) {
if (isArr || isBuff || isTyped) {
if (isArray(objValue)) {
newValue = objValue;
}
else if (isArrayLikeObject(objValue)) {
newValue = copyArray(objValue);
}
else {
else if (isBuff) {
isCommon = false;
newValue = baseClone(srcValue, true);
newValue = cloneBuffer(srcValue, true);
}
else if (isTyped) {
isCommon = false;
newValue = cloneTypedArray(srcValue, true);
}
else {
newValue = [];
}
}
else if (isPlainObject(srcValue) || isArguments(srcValue)) {
newValue = objValue;
if (isArguments(objValue)) {
newValue = toPlainObject(objValue);
}
else if (!isObject(objValue) || (srcIndex && isFunction(objValue))) {
isCommon = false;
newValue = baseClone(srcValue, true);
}
else {
newValue = objValue;
newValue = initCloneObject(srcValue);
}
}
else {
Expand Down Expand Up @@ -4224,7 +4256,8 @@ return /******/ (function(modules) { // webpackBootstrap
* @returns {Array} Returns the random elements.
*/
function baseSampleSize(collection, n) {
return shuffleSelf(values(collection), n);
var array = values(collection);
return shuffleSelf(array, baseClamp(n, 0, array.length));
}

/**
Expand Down Expand Up @@ -4288,8 +4321,8 @@ return /******/ (function(modules) { // webpackBootstrap
* @param {Function} string The `toString` result.
* @returns {Function} Returns `func`.
*/
var baseSetToString = !nativeDefineProperty ? identity : function(func, string) {
return nativeDefineProperty(func, 'toString', {
var baseSetToString = !defineProperty ? identity : function(func, string) {
return defineProperty(func, 'toString', {
'configurable': true,
'enumerable': false,
'value': constant(string),
Expand Down Expand Up @@ -4501,6 +4534,10 @@ return /******/ (function(modules) { // webpackBootstrap
if (typeof value == 'string') {
return value;
}
if (isArray(value)) {
// Recursively convert values (susceptible to call stack limits).
return arrayMap(value, baseToString) + '';
}
if (isSymbol(value)) {
return symbolToString ? symbolToString.call(value) : '';
}
Expand Down Expand Up @@ -6896,7 +6933,7 @@ return /******/ (function(modules) { // webpackBootstrap
length = array.length,
lastIndex = length - 1;

size = size === undefined ? length : baseClamp(size, 0, length);
size = size === undefined ? length : size;
while (++index < size) {
var rand = baseRandom(index, lastIndex),
value = array[rand];
Expand Down Expand Up @@ -11469,11 +11506,10 @@ return /******/ (function(modules) { // webpackBootstrap
* _.isArguments([1, 2, 3]);
* // => false
*/
function isArguments(value) {
// Safari 8.1 makes `arguments.callee` enumerable in strict mode.
return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') &&
(!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);
}
var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
!propertyIsEnumerable.call(value, 'callee');
};

/**
* Checks if `value` is classified as an `Array` object.
Expand Down Expand Up @@ -11693,16 +11729,16 @@ return /******/ (function(modules) { // webpackBootstrap
*/
function isEmpty(value) {
if (isArrayLike(value) &&
(isArray(value) || typeof value == 'string' ||
typeof value.splice == 'function' || isBuffer(value) || isArguments(value))) {
(isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
isBuffer(value) || isTypedArray(value) || isArguments(value))) {
return !value.length;
}
var tag = getTag(value);
if (tag == mapTag || tag == setTag) {
return !value.size;
}
if (isPrototype(value)) {
return !nativeKeys(value).length;
return !baseKeys(value).length;
}
for (var key in value) {
if (hasOwnProperty.call(value, key)) {
Expand Down Expand Up @@ -11857,9 +11893,9 @@ return /******/ (function(modules) { // webpackBootstrap
*/
function isFunction(value) {
// The use of `Object#toString` avoids issues with the `typeof` operator
// in Safari 8-9 which returns 'object' for typed array and other constructors.
// in Safari 9 which returns 'object' for typed array and other constructors.
var tag = isObject(value) ? objectToString.call(value) : '';
return tag == funcTag || tag == genTag;
return tag == funcTag || tag == genTag || tag == proxyTag;
}

/**
Expand Down Expand Up @@ -12747,8 +12783,8 @@ return /******/ (function(modules) { // webpackBootstrap
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to process.
* @returns {string} Returns the string.
* @param {*} value The value to convert.
* @returns {string} Returns the converted string.
* @example
*
* _.toString(null);
Expand Down Expand Up @@ -13932,22 +13968,23 @@ return /******/ (function(modules) { // webpackBootstrap
* // => { '1': ['a', 'c'], '2': ['b'] }
*/
function transform(object, iteratee, accumulator) {
var isArr = isArray(object) || isTypedArray(object);
iteratee = getIteratee(iteratee, 4);
var isArr = isArray(object),
isArrLike = isArr || isBuffer(object) || isTypedArray(object);

iteratee = getIteratee(iteratee, 4);
if (accumulator == null) {
if (isArr || isObject(object)) {
var Ctor = object.constructor;
if (isArr) {
accumulator = isArray(object) ? new Ctor : [];
} else {
accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};
}
} else {
var Ctor = object && object.constructor;
if (isArrLike) {
accumulator = isArr ? new Ctor : [];
}
else if (isObject(object)) {
accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};
}
else {
accumulator = {};
}
}
(isArr ? arrayEach : baseForOwn)(object, function(value, index, object) {
(isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {
return iteratee(accumulator, value, index, object);
});
return accumulator;
Expand Down
2 changes: 1 addition & 1 deletion dist/react-duotone.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/react-duotone.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/react-duotone.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-duotone",
"version": "1.0.0",
"version": "1.0.1",
"description": "React Duotone Component",
"main": "lib/main.js",
"files": [
Expand Down

0 comments on commit 19f4a11

Please sign in to comment.