@asphalt-react/loader
Advanced tools
+1
-1
@@ -59,4 +59,4 @@ 'use strict'; | ||
| const Loader=({size,...props})=>{context.sendStyles(stylesheet);const{style,className,...rest}=props;const dotClass=cn(styles.dot,styles[sizeClass(size)]);const isAriaBusy=typeof rest["aria-busy"]!=="undefined"?rest["aria-busy"]:true;return React.createElement("span",_extends({role:"progressbar",className:cn(styles.Loader)},rest,{"aria-busy":isAriaBusy}),[...Array(count)].map((_,i)=>React.createElement("span",{key:i,className:dotClass,"data-testid":`loader-dot_${i}`})))};Loader.displayName="Loader";Loader.propTypes={size:PropTypes.oneOf(["s","m","l"])};Loader.defaultProps={size:"m"}; | ||
| const Loader=({size,...props})=>{context.sendStyles(stylesheet);const{style,className,...rest}=props;const dotClass=cn(styles.dot,styles[sizeClass(size)]);const isAriaBusy=typeof rest["aria-busy"]!=="undefined"?rest["aria-busy"]:true;return React.createElement("span",_extends({},rest,{role:"progressbar",className:cn(styles.Loader),"aria-busy":isAriaBusy}),[...Array(count)].map((_,i)=>React.createElement("span",{key:i,className:dotClass,"data-testid":`loader-dot_${i}`})))};Loader.displayName="Loader";Loader.propTypes={size:PropTypes.oneOf(["s","m","l"])};Loader.defaultProps={size:"m"}; | ||
| exports.Loader = Loader; |
+1
-1
@@ -57,4 +57,4 @@ import React from 'react'; | ||
| const Loader=({size,...props})=>{sendStyles(stylesheet);const{style,className,...rest}=props;const dotClass=cn(styles.dot,styles[sizeClass(size)]);const isAriaBusy=typeof rest["aria-busy"]!=="undefined"?rest["aria-busy"]:true;return React.createElement("span",_extends({role:"progressbar",className:cn(styles.Loader)},rest,{"aria-busy":isAriaBusy}),[...Array(count)].map((_,i)=>React.createElement("span",{key:i,className:dotClass,"data-testid":`loader-dot_${i}`})))};Loader.displayName="Loader";Loader.propTypes={size:PropTypes.oneOf(["s","m","l"])};Loader.defaultProps={size:"m"}; | ||
| const Loader=({size,...props})=>{sendStyles(stylesheet);const{style,className,...rest}=props;const dotClass=cn(styles.dot,styles[sizeClass(size)]);const isAriaBusy=typeof rest["aria-busy"]!=="undefined"?rest["aria-busy"]:true;return React.createElement("span",_extends({},rest,{role:"progressbar",className:cn(styles.Loader),"aria-busy":isAriaBusy}),[...Array(count)].map((_,i)=>React.createElement("span",{key:i,className:dotClass,"data-testid":`loader-dot_${i}`})))};Loader.displayName="Loader";Loader.propTypes={size:PropTypes.oneOf(["s","m","l"])};Loader.defaultProps={size:"m"}; | ||
| export { Loader }; |
+6
-5
| { | ||
| "name": "@asphalt-react/loader", | ||
| "version": "2.0.0-alpha.28", | ||
| "version": "2.0.0-rc.0", | ||
| "description": "Loader", | ||
@@ -40,11 +40,12 @@ "keywords": [ | ||
| "devDependencies": { | ||
| "@asphalt-react/build": "^2.0.0-rc.0", | ||
| "@testing-library/react": "^11.2.7" | ||
| }, | ||
| "dependencies": { | ||
| "@asphalt-react/context": "^2.0.0-alpha.28", | ||
| "classnames": "^2.3.1", | ||
| "prop-types": "^15.7.2" | ||
| "@asphalt-react/context": "^2.0.0-rc.0", | ||
| "classnames": "^2.5.1", | ||
| "prop-types": "^15.8.1" | ||
| }, | ||
| "license": "UNLICENSED", | ||
| "gitHead": "8182ccd435d7586c15535446b2b4cc624b2b90fe" | ||
| "gitHead": "0a2be217d9bbadcc6038c32860c6c7ee0e848894" | ||
| } |
Explicitly Unlicensed Item
LicenseSomething was found which is explicitly marked as unlicensed.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Explicitly Unlicensed Item
LicenseSomething was found which is explicitly marked as unlicensed.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
17810
0.21%0
-100%2
100%Updated
Updated