| /// <reference types="react" /> | ||
| declare const EmptyLine: ({ height }: { | ||
| height?: number; | ||
| }) => JSX.Element; | ||
| export default EmptyLine; |
| export { default as EmptyLine } from "./components/EmptyLine"; | ||
| declare const _default: {}; | ||
| export default _default; |
| import { createElement } from 'react'; | ||
| var EmptyLine = function (_a) { | ||
| var _b = _a.height, height = _b === void 0 ? 10 : _b; | ||
| return createElement("div", { style: { height: height } }); | ||
| }; | ||
| var index = {}; | ||
| export default index; | ||
| export { EmptyLine }; | ||
| //# sourceMappingURL=index.es.js.map |
| {"version":3,"file":"index.es.js","sources":["../src/components/EmptyLine/index.tsx","../src/index.tsx"],"sourcesContent":["import * as React from \"react\";\n\nconst EmptyLine = ({ height = 10 }) => {\n return <div style={{ height: height }} />;\n};\n\nexport default EmptyLine;\n","export { default as EmptyLine } from \"./components/EmptyLine\";\n\nexport default {};\n"],"names":["React.createElement"],"mappings":";;AAEA,IAAM,SAAS,GAAG,UAAC,EAAe;QAAb,cAAW,EAAX,gCAAW;IAC9B,OAAOA,uBAAK,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,GAAI,CAAC;CAC3C,CAAC;;ACFF,YAAe,EAAE,CAAC;;;;;"} |
| 'use strict'; | ||
| Object.defineProperty(exports, '__esModule', { value: true }); | ||
| var React = require('react'); | ||
| var EmptyLine = function (_a) { | ||
| var _b = _a.height, height = _b === void 0 ? 10 : _b; | ||
| return React.createElement("div", { style: { height: height } }); | ||
| }; | ||
| var index = {}; | ||
| exports.default = index; | ||
| exports.EmptyLine = EmptyLine; | ||
| //# sourceMappingURL=index.js.map |
| {"version":3,"file":"index.js","sources":["../src/components/EmptyLine/index.tsx","../src/index.tsx"],"sourcesContent":["import * as React from \"react\";\n\nconst EmptyLine = ({ height = 10 }) => {\n return <div style={{ height: height }} />;\n};\n\nexport default EmptyLine;\n","export { default as EmptyLine } from \"./components/EmptyLine\";\n\nexport default {};\n"],"names":["React.createElement"],"mappings":";;;;;;AAEA,IAAM,SAAS,GAAG,UAAC,EAAe;QAAb,cAAW,EAAX,gCAAW;IAC9B,OAAOA,6BAAK,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,GAAI,CAAC;CAC3C,CAAC;;ACFF,YAAe,EAAE,CAAC;;;;;"} |
| export {}; |
+60
-9
| { | ||
| "name": "dantd", | ||
| "version": "1.0.2", | ||
| "description": "", | ||
| "main": "index.js", | ||
| "scripts": { | ||
| "test": "echo \"Error: no test specified\" && exit 1" | ||
| }, | ||
| "version": "1.0.3", | ||
| "description": "react components", | ||
| "author": "joking_zhang <496691544@qq.com> (jokingzhang.com)", | ||
| "license": "MIT", | ||
| "main": "dist/index.js", | ||
| "module": "dist/index.es.js", | ||
| "jsnext:main": "dist/index.es.js", | ||
| "keywords": [ | ||
| "component", | ||
| "components", | ||
| "framework", | ||
| "frontend", | ||
| "react", | ||
| "react-component", | ||
| "ui" | ||
| ], | ||
| "repository": { | ||
@@ -13,5 +23,46 @@ "type": "git", | ||
| }, | ||
| "keywords": [], | ||
| "author": "joking_zhang <496691544@qq.com> (jokingzhang.com)", | ||
| "license": "MIT" | ||
| "engines": { | ||
| "node": ">=8", | ||
| "npm": ">=5" | ||
| }, | ||
| "scripts": { | ||
| "test": "cross-env CI=1 react-scripts-ts test --env=jsdom", | ||
| "test:watch": "react-scripts-ts test --env=jsdom", | ||
| "build": "rollup -c", | ||
| "start": "rollup -c -w", | ||
| "prepare": "npm run build", | ||
| "predeploy": "cd example && npm install && npm run build", | ||
| "deploy": "gh-pages -d example/build" | ||
| }, | ||
| "dependencies": {}, | ||
| "peerDependencies": { | ||
| "prop-types": "^15.5.4", | ||
| "react": "^15.0.0 || ^16.0.0", | ||
| "react-dom": "^15.0.0 || ^16.0.0" | ||
| }, | ||
| "devDependencies": { | ||
| "@svgr/rollup": "^2.4.1", | ||
| "@types/jest": "^23.1.5", | ||
| "@types/react": "^16.3.13", | ||
| "@types/react-dom": "^16.0.5", | ||
| "babel-core": "^6.26.3", | ||
| "babel-runtime": "^6.26.0", | ||
| "cross-env": "^5.1.4", | ||
| "gh-pages": "^1.2.0", | ||
| "react": "^16.4.1", | ||
| "react-dom": "^16.4.1", | ||
| "react-scripts-ts": "^2.16.0", | ||
| "rollup": "^0.62.0", | ||
| "rollup-plugin-babel": "^3.0.7", | ||
| "rollup-plugin-commonjs": "^9.1.3", | ||
| "rollup-plugin-node-resolve": "^3.3.0", | ||
| "rollup-plugin-peer-deps-external": "^2.2.0", | ||
| "rollup-plugin-postcss": "^1.6.2", | ||
| "rollup-plugin-typescript2": "^0.17.0", | ||
| "rollup-plugin-url": "^1.4.0", | ||
| "typescript": "^2.8.3" | ||
| }, | ||
| "files": [ | ||
| "dist" | ||
| ] | ||
| } |
-3
| exports.printMsg = function() { | ||
| console.log("This is a message from the demo package"); | ||
| }; |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
4117
675.33%9
200%29
1350%1
-50%0
-100%3
Infinity%20
Infinity%