Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rc-progress

Package Overview
Dependencies
Maintainers
5
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-progress - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0

es/Circle.d.ts

39

es/Circle.js

@@ -1,21 +0,4 @@

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
/* eslint react/prop-types: 0 */
import React, { useMemo } from 'react';
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import * as React from 'react';
import classNames from 'classnames';

@@ -71,4 +54,3 @@ import { useTransitionDuration, defaultProps } from './common';

strokeDashoffset: "-".concat(gapDegree / 2 + offset / 100 * (len - gapDegree), "px"),
transition: 'stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s' // eslint-disable-line
transition: 'stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s'
};

@@ -95,3 +77,3 @@ return {

var gradientId = useMemo(function () {
var gradientId = React.useMemo(function () {
gradientSeed += 1;

@@ -122,3 +104,3 @@ return gradientSeed;

stackPtg += ptg;
return /*#__PURE__*/React.createElement("path", {
return React.createElement("path", {
key: index,

@@ -138,7 +120,7 @@ className: "".concat(prefixCls, "-circle-path"),

return /*#__PURE__*/React.createElement("svg", _extends({
return React.createElement("svg", Object.assign({
className: classNames("".concat(prefixCls, "-circle"), className),
viewBox: "0 0 100 100",
style: style
}, restProps), gradient && /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
}, restProps), gradient && React.createElement("defs", null, React.createElement("linearGradient", {
id: "".concat(prefixCls, "-gradient-").concat(gradientId),

@@ -152,3 +134,3 @@ x1: "100%",

}).map(function (key, index) {
return /*#__PURE__*/React.createElement("stop", {
return React.createElement("stop", {
key: index,

@@ -158,3 +140,3 @@ offset: key,

});
}))), /*#__PURE__*/React.createElement("path", {
}))), React.createElement("path", {
className: "".concat(prefixCls, "-circle-trail"),

@@ -171,2 +153,3 @@ d: pathString,

Circle.defaultProps = defaultProps;
Circle.displayName = 'Circle';
export default Circle;

@@ -14,6 +14,7 @@ import { useRef, useEffect } from 'react';

export var useTransitionDuration = function useTransitionDuration(percentList) {
// eslint-disable-next-line react-hooks/rules-of-hooks
var paths = percentList.map(function () {
return useRef();
});
var prevTimeStamp = useRef();
var prevTimeStamp = useRef(null);
useEffect(function () {

@@ -20,0 +21,0 @@ var now = Date.now();

@@ -1,21 +0,4 @@

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
/* eslint react/prop-types: 0 */
import React from 'react';
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import * as React from 'react';
import classNames from 'classnames';

@@ -37,2 +20,3 @@ import { useTransitionDuration, defaultProps } from './common';

// eslint-disable-next-line no-param-reassign
delete restProps.gapPosition;

@@ -51,3 +35,3 @@ var percentList = Array.isArray(percent) ? percent : [percent];

var stackPtg = 0;
return /*#__PURE__*/React.createElement("svg", _extends({
return React.createElement("svg", Object.assign({
className: classNames("".concat(prefixCls, "-line"), className),

@@ -57,3 +41,3 @@ viewBox: viewBoxString,

style: style
}, restProps), /*#__PURE__*/React.createElement("path", {
}, restProps), React.createElement("path", {
className: "".concat(prefixCls, "-line-trail"),

@@ -73,3 +57,3 @@ d: pathString,

stackPtg += ptg;
return /*#__PURE__*/React.createElement("path", {
return React.createElement("path", {
key: index,

@@ -89,2 +73,3 @@ className: "".concat(prefixCls, "-line-path"),

Line.defaultProps = defaultProps;
Line.displayName = 'Line';
export default Line;
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
exports.default = void 0;
var _react = _interopRequireWildcard(require("react"));
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
var React = _interopRequireWildcard(require("react"));
var _classnames = _interopRequireDefault(require("classnames"));

@@ -14,26 +22,2 @@

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
var gradientSeed = 0;

@@ -87,4 +71,3 @@

strokeDashoffset: "-".concat(gapDegree / 2 + offset / 100 * (len - gapDegree), "px"),
transition: 'stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s' // eslint-disable-line
transition: 'stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s'
};

@@ -109,5 +92,4 @@ return {

percent = _ref.percent,
restProps = _objectWithoutProperties(_ref, ["prefixCls", "strokeWidth", "trailWidth", "gapDegree", "gapPosition", "trailColor", "strokeLinecap", "style", "className", "strokeColor", "percent"]);
var gradientId = (0, _react.useMemo)(function () {
restProps = (0, _objectWithoutProperties2.default)(_ref, ["prefixCls", "strokeWidth", "trailWidth", "gapDegree", "gapPosition", "trailColor", "strokeLinecap", "style", "className", "strokeColor", "percent"]);
var gradientId = React.useMemo(function () {
gradientSeed += 1;

@@ -128,3 +110,3 @@ return gradientSeed;

var _useTransitionDuratio = (0, _common.useTransitionDuration)(percentList),
_useTransitionDuratio2 = _slicedToArray(_useTransitionDuratio, 1),
_useTransitionDuratio2 = (0, _slicedToArray2.default)(_useTransitionDuratio, 1),
paths = _useTransitionDuratio2[0];

@@ -139,3 +121,3 @@

stackPtg += ptg;
return /*#__PURE__*/_react["default"].createElement("path", {
return React.createElement("path", {
key: index,

@@ -155,7 +137,7 @@ className: "".concat(prefixCls, "-circle-path"),

return /*#__PURE__*/_react["default"].createElement("svg", _extends({
className: (0, _classnames["default"])("".concat(prefixCls, "-circle"), className),
return React.createElement("svg", Object.assign({
className: (0, _classnames.default)("".concat(prefixCls, "-circle"), className),
viewBox: "0 0 100 100",
style: style
}, restProps), gradient && /*#__PURE__*/_react["default"].createElement("defs", null, /*#__PURE__*/_react["default"].createElement("linearGradient", {
}, restProps), gradient && React.createElement("defs", null, React.createElement("linearGradient", {
id: "".concat(prefixCls, "-gradient-").concat(gradientId),

@@ -169,3 +151,3 @@ x1: "100%",

}).map(function (key, index) {
return /*#__PURE__*/_react["default"].createElement("stop", {
return React.createElement("stop", {
key: index,

@@ -175,3 +157,3 @@ offset: key,

});
}))), /*#__PURE__*/_react["default"].createElement("path", {
}))), React.createElement("path", {
className: "".concat(prefixCls, "-circle-trail"),

@@ -188,3 +170,4 @@ d: pathString,

Circle.defaultProps = _common.defaultProps;
Circle.displayName = 'Circle';
var _default = Circle;
exports["default"] = _default;
exports.default = _default;

@@ -24,6 +24,7 @@ "use strict";

var useTransitionDuration = function useTransitionDuration(percentList) {
// eslint-disable-next-line react-hooks/rules-of-hooks
var paths = percentList.map(function () {
return (0, _react.useRef)();
});
var prevTimeStamp = (0, _react.useRef)();
var prevTimeStamp = (0, _react.useRef)(null);
(0, _react.useEffect)(function () {

@@ -30,0 +31,0 @@ var now = Date.now();

"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {

@@ -9,3 +11,3 @@ value: true

get: function get() {
return _Line["default"];
return _Line.default;
}

@@ -16,6 +18,6 @@ });

get: function get() {
return _Circle["default"];
return _Circle.default;
}
});
exports["default"] = void 0;
exports.default = void 0;

@@ -26,8 +28,6 @@ var _Line = _interopRequireDefault(require("./Line"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var _default = {
Line: _Line["default"],
Circle: _Circle["default"]
Line: _Line.default,
Circle: _Circle.default
};
exports["default"] = _default;
exports.default = _default;
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
var React = _interopRequireWildcard(require("react"));
var _classnames = _interopRequireDefault(require("classnames"));

@@ -14,22 +22,2 @@

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
var Line = function Line(_ref) {

@@ -46,4 +34,4 @@ var className = _ref.className,

transition = _ref.transition,
restProps = _objectWithoutProperties(_ref, ["className", "percent", "prefixCls", "strokeColor", "strokeLinecap", "strokeWidth", "style", "trailColor", "trailWidth", "transition"]);
restProps = (0, _objectWithoutProperties2.default)(_ref, ["className", "percent", "prefixCls", "strokeColor", "strokeLinecap", "strokeWidth", "style", "trailColor", "trailWidth", "transition"]);
// eslint-disable-next-line no-param-reassign
delete restProps.gapPosition;

@@ -54,3 +42,3 @@ var percentList = Array.isArray(percent) ? percent : [percent];

var _useTransitionDuratio = (0, _common.useTransitionDuration)(percentList),
_useTransitionDuratio2 = _slicedToArray(_useTransitionDuratio, 1),
_useTransitionDuratio2 = (0, _slicedToArray2.default)(_useTransitionDuratio, 1),
paths = _useTransitionDuratio2[0];

@@ -63,8 +51,8 @@

var stackPtg = 0;
return /*#__PURE__*/_react["default"].createElement("svg", _extends({
className: (0, _classnames["default"])("".concat(prefixCls, "-line"), className),
return React.createElement("svg", Object.assign({
className: (0, _classnames.default)("".concat(prefixCls, "-line"), className),
viewBox: viewBoxString,
preserveAspectRatio: "none",
style: style
}, restProps), /*#__PURE__*/_react["default"].createElement("path", {
}, restProps), React.createElement("path", {
className: "".concat(prefixCls, "-line-trail"),

@@ -84,3 +72,3 @@ d: pathString,

stackPtg += ptg;
return /*#__PURE__*/_react["default"].createElement("path", {
return React.createElement("path", {
key: index,

@@ -100,3 +88,4 @@ className: "".concat(prefixCls, "-line-path"),

Line.defaultProps = _common.defaultProps;
Line.displayName = 'Line';
var _default = Line;
exports["default"] = _default;
exports.default = _default;
{
"name": "rc-progress",
"version": "3.0.0",
"version": "3.1.0",
"description": "progress ui component for react",

@@ -20,55 +20,45 @@ "keywords": [

"license": "MIT",
"main": "lib/index",
"module": "es/index",
"types": "./typings/index.d.ts",
"main": "./lib/index",
"module": "./es/index",
"files": [
"dist",
"lib",
"assets/*.css",
"es",
"typings/index.d.ts"
"es"
],
"config": {
"port": 8000,
"entry": {
"rc-progress": [
"./src/index.js",
"./assets/index.less"
]
}
},
"scripts": {
"dist": "rc-tools run dist",
"build": "rc-tools run build",
"gh-pages": "rc-tools run gh-pages",
"start": "rc-tools run server",
"compile": "rc-tools run compile",
"pub": "rc-tools run pub",
"lint": "rc-tools run lint",
"lint:fix": "rc-tools run lint --fix",
"prettier": "rc-tools run prettier",
"test": "rc-tools run test",
"prepublish": "rc-tools run guard",
"coverage": "rc-tools run test --coverage",
"pre-commit": "rc-tools run pre-commit",
"lint-staged": "lint-staged"
"start": "cross-env NODE_ENV=development father doc dev --storybook",
"build": "father doc build --storybook",
"compile": "father build",
"gh-pages": "npm run build && father doc deploy",
"prepublishOnly": "npm run compile && np --yolo --no-publish",
"lint": "eslint src/ --ext .ts,.tsx,.jsx,.js,.md",
"prettier": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"",
"test": "father test",
"coverage": "father test --coverage"
},
"devDependencies": {
"lint-staged": "^10.0.1",
"pre-commit": "1.x",
"rc-tools": "9.x",
"peerDependencies": {
"react": "^16.0.0",
"react-dom": "^16.0.0"
},
"pre-commit": [
"lint-staged"
],
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"npm run pre-commit"
]
},
"dependencies": {
"@babel/runtime": "^7.10.1",
"classnames": "^2.2.6"
},
"devDependencies": {
"@types/classnames": "^2.2.9",
"@types/jest": "^26.0.0",
"@types/react": "^16.9.2",
"@types/react-dom": "^16.9.0",
"@umijs/fabric": "^2.0.0",
"cross-env": "^7.0.0",
"enzyme": "^3.1.1",
"enzyme-adapter-react-16": "^1.0.1",
"enzyme-to-json": "^3.1.2",
"eslint": "^7.6.0",
"father": "^2.29.6",
"np": "^6.5.0",
"prettier": "^2.1.1",
"react": "^16.9.0",
"react-dom": "^16.9.0",
"typescript": "^4.0.2"
}
}
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