@bone-ui/utils
Advanced tools
Comparing version 0.1.0 to 0.3.0
@@ -0,1 +1,2 @@ | ||
import React from 'react'; | ||
export * from './array'; | ||
@@ -6,1 +7,2 @@ export declare const __DEV__: boolean; | ||
export declare const guid: () => string; | ||
export declare function forwardRef(component: React.ForwardRefRenderFunction<any, any>): any; |
@@ -5,2 +5,6 @@ 'use strict'; | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var React = _interopDefault(require('react')); | ||
function first(array) { | ||
@@ -44,2 +48,5 @@ return array != null && array.length ? array[0] : undefined; | ||
}; | ||
function forwardRef(component) { | ||
return React.forwardRef(component); | ||
} | ||
@@ -50,2 +57,3 @@ exports.__DEV__ = __DEV__; | ||
exports.first = first; | ||
exports.forwardRef = forwardRef; | ||
exports.fromEntries = fromEntries; | ||
@@ -52,0 +60,0 @@ exports.guid = guid; |
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.__DEV__=!1,exports.chunk=function(r,t){return r.reduce((function(r,n,e){return e%t==0?r.push([n]):r[r.length-1].push(n),r}),[])},exports.cx=function(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")},exports.first=function(r){return null!=r&&r.length?r[0]:void 0},exports.fromEntries=function(r){return r.reduce((function(r,t){return r[t[0]]=t[1],r}),{})},exports.guid=function(){return String.fromCharCode(Math.floor(26*Math.random())+97)+Math.random().toString(16).slice(2)+Date.now().toString(16).slice(4)},exports.last=function(r){var t=null==r?0:r.length;return t?r[t-1]:void 0}; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r,t=(r=require("react"))&&"object"==typeof r&&"default"in r?r.default:r;exports.__DEV__=!1,exports.chunk=function(r,t){return r.reduce((function(r,e,n){return n%t==0?r.push([e]):r[r.length-1].push(e),r}),[])},exports.cx=function(){for(var r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];return t.filter(Boolean).join(" ")},exports.first=function(r){return null!=r&&r.length?r[0]:void 0},exports.forwardRef=function(r){return t.forwardRef(r)},exports.fromEntries=function(r){return r.reduce((function(r,t){return r[t[0]]=t[1],r}),{})},exports.guid=function(){return String.fromCharCode(Math.floor(26*Math.random())+97)+Math.random().toString(16).slice(2)+Date.now().toString(16).slice(4)},exports.last=function(r){var t=null==r?0:r.length;return t?r[t-1]:void 0}; | ||
//# sourceMappingURL=utils.cjs.production.min.js.map |
@@ -0,1 +1,3 @@ | ||
import React from 'react'; | ||
function first(array) { | ||
@@ -39,4 +41,7 @@ return array != null && array.length ? array[0] : undefined; | ||
}; | ||
function forwardRef(component) { | ||
return React.forwardRef(component); | ||
} | ||
export { __DEV__, chunk, cx, first, fromEntries, guid, last }; | ||
export { __DEV__, chunk, cx, first, forwardRef, fromEntries, guid, last }; | ||
//# sourceMappingURL=utils.esm.js.map |
{ | ||
"name": "@bone-ui/utils", | ||
"version": "0.1.0", | ||
"version": "0.3.0", | ||
"license": "MIT", | ||
@@ -23,5 +23,5 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@fower/react": "^1.15.0" | ||
"@fower/react": "^1.16.0" | ||
}, | ||
"gitHead": "f19fa98b7d073c40c2f4e96264518bd0c5f615fa" | ||
"gitHead": "68bca94ef3ed9572f4e47fbd939e93c9514765ee" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15951
149
3
3
Updated@fower/react@^1.16.0