🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

dantd

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dantd - npm Package Compare versions

Comparing version
1.0.2
to
1.0.3
+5
dist/components/EmptyLine/index.d.ts
/// <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");
};