@magusn/components
Advanced tools
+21
| function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
| var React = require('react'); | ||
| var React__default = _interopDefault(React); | ||
| function Button(props) { | ||
| return /*#__PURE__*/React.createElement("button", null, props.children); | ||
| } | ||
| var styles = {"test":"_3RkHN"}; | ||
| function ExampleComponent(_ref) { | ||
| var text = _ref.text; | ||
| return /*#__PURE__*/React__default.createElement("div", { | ||
| className: styles.test | ||
| }, "Example Component: ", text); | ||
| } | ||
| exports.Button = Button; | ||
| exports.ExampleComponent = ExampleComponent; | ||
| //# sourceMappingURL=index.js.map |
+3
-3
| { | ||
| "name": "@magusn/components", | ||
| "version": "0.0.2-alpha.1+65ea944", | ||
| "version": "0.1.1-alpha.0+fc410e6", | ||
| "description": "common components", | ||
@@ -8,3 +8,3 @@ "author": "magus", | ||
| "repository": "magus/@magusn/components", | ||
| "main": "dist/index.js", | ||
| "main": "src/index.js", | ||
| "module": "dist/index.modern.js", | ||
@@ -54,3 +54,3 @@ "source": "src/index.js", | ||
| ], | ||
| "gitHead": "65ea9448a18aebe1e7b95dc58b2d47ac7c91fd19" | ||
| "gitHead": "fc410e68327fc6595fa99aaa36b79bf642ad7846" | ||
| } |
| /* add css module styles here (optional) */ | ||
| ._3RkHN { | ||
| margin: 2em; | ||
| padding: 0.5em; | ||
| border: 2px solid #000; | ||
| font-size: 2em; | ||
| text-align: center; | ||
| } |
| function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
| var React = require('react'); | ||
| var React__default = _interopDefault(React); | ||
| function Button(props) { | ||
| return /*#__PURE__*/React.createElement("button", null, props.children); | ||
| } | ||
| var styles = {"test":"_3RkHN"}; | ||
| function ExampleComponent(_ref) { | ||
| var text = _ref.text; | ||
| return /*#__PURE__*/React__default.createElement("div", { | ||
| className: styles.test | ||
| }, "Example Component: ", text); | ||
| } | ||
| exports.Button = Button; | ||
| exports.ExampleComponent = ExampleComponent; | ||
| //# sourceMappingURL=index.js.map |
| {"version":3,"file":"index.js","sources":["../src/Button.js","../src/ExampleComponent/ExampleComponent.js"],"sourcesContent":["import * as React from 'react';\n\nexport function Button(props) {\n return <button>{props.children}</button>;\n}\n","import React from 'react';\nimport styles from './styles.module.css';\n\nexport function ExampleComponent({ text }) {\n return <div className={styles.test}>Example Component: {text}</div>;\n}\n"],"names":["Button","props","React.createElement","children","ExampleComponent","text","React","styles","test"],"mappings":";;;;;AAEO,SAASA,MAAT,CAAgBC,KAAhB,EAAuB;AAC5B,sBAAOC,oCAASD,KAAK,CAACE,QAAf,CAAP;AACD;;;;ACDM,SAASC,gBAAT,OAAoC;AAAA,MAARC,IAAQ,QAARA,IAAQ;AACzC,sBAAOC;AAAK,IAAA,SAAS,EAAEC,MAAM,CAACC;AAAvB,4BAAiDH,IAAjD,CAAP;AACD;;;;;"} |
| import React__default, { createElement } from 'react'; | ||
| function Button(props) { | ||
| return /*#__PURE__*/createElement("button", null, props.children); | ||
| } | ||
| var styles = {"test":"_3RkHN"}; | ||
| function ExampleComponent(_ref) { | ||
| var text = _ref.text; | ||
| return /*#__PURE__*/React__default.createElement("div", { | ||
| className: styles.test | ||
| }, "Example Component: ", text); | ||
| } | ||
| export { Button, ExampleComponent }; | ||
| //# sourceMappingURL=index.modern.js.map |
| {"version":3,"file":"index.modern.js","sources":["../src/Button.js","../src/ExampleComponent/ExampleComponent.js"],"sourcesContent":["import * as React from 'react';\n\nexport function Button(props) {\n return <button>{props.children}</button>;\n}\n","import React from 'react';\nimport styles from './styles.module.css';\n\nexport function ExampleComponent({ text }) {\n return <div className={styles.test}>Example Component: {text}</div>;\n}\n"],"names":["Button","props","React.createElement","children","ExampleComponent","text","React","styles","test"],"mappings":";;AAEO,SAASA,MAAT,CAAgBC,KAAhB,EAAuB;AAC5B,sBAAOC,8BAASD,KAAK,CAACE,QAAf,CAAP;AACD;;;;ACDM,SAASC,gBAAT,OAAoC;AAAA,MAARC,IAAQ,QAARA,IAAQ;AACzC,sBAAOC;AAAK,IAAA,SAAS,EAAEC,MAAM,CAACC;AAAvB,4BAAiDH,IAAjD,CAAP;AACD;;;;"} |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
2874
-43.1%3
-57.14%16
-56.76%