simple-rollup-button
Advanced tools
Comparing version 2.0.5 to 2.1.4
@@ -1,12 +0,7 @@ | ||
'use strict'; | ||
import React from 'react'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var React = _interopDefault(require('react')); | ||
function Button(_ref) { | ||
var handlePress = _ref.handlePress, | ||
buttonText = _ref.buttonText; | ||
_ref$buttonText = _ref.buttonText, | ||
buttonText = _ref$buttonText === void 0 ? 'IAmDefaultText' : _ref$buttonText; | ||
return React.createElement("button", { | ||
@@ -17,2 +12,2 @@ onClick: handlePress | ||
exports.Button = Button; | ||
export default Button; |
@@ -1,12 +0,7 @@ | ||
'use strict'; | ||
import React from 'react'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var React = _interopDefault(require('react')); | ||
function Button(_ref) { | ||
var handlePress = _ref.handlePress, | ||
buttonText = _ref.buttonText; | ||
_ref$buttonText = _ref.buttonText, | ||
buttonText = _ref$buttonText === void 0 ? 'IAmDefaultText' : _ref$buttonText; | ||
return React.createElement("button", { | ||
@@ -17,2 +12,2 @@ onClick: handlePress | ||
exports.Button = Button; | ||
export default Button; |
{ | ||
"name": "simple-rollup-button", | ||
"version": "2.0.5", | ||
"version": "2.1.4", | ||
"description": "Moving the super simple button into its own package", | ||
@@ -17,8 +17,3 @@ "main": "./lib/prod.js", | ||
"license": "ISC", | ||
"dependencies": { | ||
"@babel/core": "^7.2.2", | ||
"@babel/preset-env": "^7.3.1", | ||
"@babel/preset-react": "^7.0.0" | ||
}, | ||
"gitHead": "083d83c75f6a79f932ef97cee641964020d349eb" | ||
"gitHead": "eef9c833a86aa3717fe6d71cdd27a715aa5c4488" | ||
} |
import React from 'react'; | ||
export default function Button({handlePress, buttonText}) { | ||
return ( | ||
<button onClick={handlePress}>{buttonText}</button> | ||
) | ||
export default function Button({ handlePress, buttonText = 'IAmDefaultText' }) { | ||
return <button onClick={handlePress}>{buttonText}</button>; | ||
} |
import Button from './components/Button.jsx'; | ||
export { Button }; | ||
export default Button; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
0
1910
26
- Removed@babel/core@^7.2.2
- Removed@babel/preset-env@^7.3.1
- Removed@babel/preset-react@^7.0.0
- Removed@ampproject/remapping@2.3.0(transitive)
- Removed@babel/code-frame@7.26.2(transitive)
- Removed@babel/compat-data@7.26.3(transitive)
- Removed@babel/core@7.26.0(transitive)
- Removed@babel/generator@7.26.3(transitive)
- Removed@babel/helper-annotate-as-pure@7.25.9(transitive)
- Removed@babel/helper-compilation-targets@7.25.9(transitive)
- Removed@babel/helper-create-class-features-plugin@7.25.9(transitive)
- Removed@babel/helper-create-regexp-features-plugin@7.26.3(transitive)
- Removed@babel/helper-define-polyfill-provider@0.6.3(transitive)
- Removed@babel/helper-member-expression-to-functions@7.25.9(transitive)
- Removed@babel/helper-module-imports@7.25.9(transitive)
- Removed@babel/helper-module-transforms@7.26.0(transitive)
- Removed@babel/helper-optimise-call-expression@7.25.9(transitive)
- Removed@babel/helper-plugin-utils@7.25.9(transitive)
- Removed@babel/helper-remap-async-to-generator@7.25.9(transitive)
- Removed@babel/helper-replace-supers@7.25.9(transitive)
- Removed@babel/helper-skip-transparent-expression-wrappers@7.25.9(transitive)
- Removed@babel/helper-string-parser@7.25.9(transitive)
- Removed@babel/helper-validator-identifier@7.25.9(transitive)
- Removed@babel/helper-validator-option@7.25.9(transitive)
- Removed@babel/helper-wrap-function@7.25.9(transitive)
- Removed@babel/helpers@7.26.0(transitive)
- Removed@babel/parser@7.26.3(transitive)
- Removed@babel/plugin-bugfix-firefox-class-in-computed-class-key@7.25.9(transitive)
- Removed@babel/plugin-bugfix-safari-class-field-initializer-scope@7.25.9(transitive)
- Removed@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.25.9(transitive)
- Removed@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.25.9(transitive)
- Removed@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly@7.25.9(transitive)
- Removed@babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2(transitive)
- Removed@babel/plugin-syntax-import-assertions@7.26.0(transitive)
- Removed@babel/plugin-syntax-import-attributes@7.26.0(transitive)
- Removed@babel/plugin-syntax-jsx@7.25.9(transitive)
- Removed@babel/plugin-syntax-unicode-sets-regex@7.18.6(transitive)
- Removed@babel/plugin-transform-arrow-functions@7.25.9(transitive)
- Removed@babel/plugin-transform-async-generator-functions@7.25.9(transitive)
- Removed@babel/plugin-transform-async-to-generator@7.25.9(transitive)
- Removed@babel/plugin-transform-block-scoped-functions@7.25.9(transitive)
- Removed@babel/plugin-transform-block-scoping@7.25.9(transitive)
- Removed@babel/plugin-transform-class-properties@7.25.9(transitive)
- Removed@babel/plugin-transform-class-static-block@7.26.0(transitive)
- Removed@babel/plugin-transform-classes@7.25.9(transitive)
- Removed@babel/plugin-transform-computed-properties@7.25.9(transitive)
- Removed@babel/plugin-transform-destructuring@7.25.9(transitive)
- Removed@babel/plugin-transform-dotall-regex@7.25.9(transitive)
- Removed@babel/plugin-transform-duplicate-keys@7.25.9(transitive)
- Removed@babel/plugin-transform-duplicate-named-capturing-groups-regex@7.25.9(transitive)
- Removed@babel/plugin-transform-dynamic-import@7.25.9(transitive)
- Removed@babel/plugin-transform-exponentiation-operator@7.26.3(transitive)
- Removed@babel/plugin-transform-export-namespace-from@7.25.9(transitive)
- Removed@babel/plugin-transform-for-of@7.25.9(transitive)
- Removed@babel/plugin-transform-function-name@7.25.9(transitive)
- Removed@babel/plugin-transform-json-strings@7.25.9(transitive)
- Removed@babel/plugin-transform-literals@7.25.9(transitive)
- Removed@babel/plugin-transform-logical-assignment-operators@7.25.9(transitive)
- Removed@babel/plugin-transform-member-expression-literals@7.25.9(transitive)
- Removed@babel/plugin-transform-modules-amd@7.25.9(transitive)
- Removed@babel/plugin-transform-modules-commonjs@7.26.3(transitive)
- Removed@babel/plugin-transform-modules-systemjs@7.25.9(transitive)
- Removed@babel/plugin-transform-modules-umd@7.25.9(transitive)
- Removed@babel/plugin-transform-named-capturing-groups-regex@7.25.9(transitive)
- Removed@babel/plugin-transform-new-target@7.25.9(transitive)
- Removed@babel/plugin-transform-nullish-coalescing-operator@7.25.9(transitive)
- Removed@babel/plugin-transform-numeric-separator@7.25.9(transitive)
- Removed@babel/plugin-transform-object-rest-spread@7.25.9(transitive)
- Removed@babel/plugin-transform-object-super@7.25.9(transitive)
- Removed@babel/plugin-transform-optional-catch-binding@7.25.9(transitive)
- Removed@babel/plugin-transform-optional-chaining@7.25.9(transitive)
- Removed@babel/plugin-transform-parameters@7.25.9(transitive)
- Removed@babel/plugin-transform-private-methods@7.25.9(transitive)
- Removed@babel/plugin-transform-private-property-in-object@7.25.9(transitive)
- Removed@babel/plugin-transform-property-literals@7.25.9(transitive)
- Removed@babel/plugin-transform-react-display-name@7.25.9(transitive)
- Removed@babel/plugin-transform-react-jsx@7.25.9(transitive)
- Removed@babel/plugin-transform-react-jsx-development@7.25.9(transitive)
- Removed@babel/plugin-transform-react-pure-annotations@7.25.9(transitive)
- Removed@babel/plugin-transform-regenerator@7.25.9(transitive)
- Removed@babel/plugin-transform-regexp-modifiers@7.26.0(transitive)
- Removed@babel/plugin-transform-reserved-words@7.25.9(transitive)
- Removed@babel/plugin-transform-shorthand-properties@7.25.9(transitive)
- Removed@babel/plugin-transform-spread@7.25.9(transitive)
- Removed@babel/plugin-transform-sticky-regex@7.25.9(transitive)
- Removed@babel/plugin-transform-template-literals@7.25.9(transitive)
- Removed@babel/plugin-transform-typeof-symbol@7.25.9(transitive)
- Removed@babel/plugin-transform-unicode-escapes@7.25.9(transitive)
- Removed@babel/plugin-transform-unicode-property-regex@7.25.9(transitive)
- Removed@babel/plugin-transform-unicode-regex@7.25.9(transitive)
- Removed@babel/plugin-transform-unicode-sets-regex@7.25.9(transitive)
- Removed@babel/preset-env@7.26.0(transitive)
- Removed@babel/preset-modules@0.1.6-no-external-plugins(transitive)
- Removed@babel/preset-react@7.26.3(transitive)
- Removed@babel/runtime@7.26.0(transitive)
- Removed@babel/template@7.25.9(transitive)
- Removed@babel/traverse@7.26.4(transitive)
- Removed@babel/types@7.26.3(transitive)
- Removed@jridgewell/gen-mapping@0.3.8(transitive)
- Removed@jridgewell/resolve-uri@3.1.2(transitive)
- Removed@jridgewell/set-array@1.2.1(transitive)
- Removed@jridgewell/sourcemap-codec@1.5.0(transitive)
- Removed@jridgewell/trace-mapping@0.3.25(transitive)
- Removedbabel-plugin-polyfill-corejs2@0.4.12(transitive)
- Removedbabel-plugin-polyfill-corejs3@0.10.6(transitive)
- Removedbabel-plugin-polyfill-regenerator@0.6.3(transitive)
- Removedbrowserslist@4.24.3(transitive)
- Removedcaniuse-lite@1.0.30001690(transitive)
- Removedconvert-source-map@2.0.0(transitive)
- Removedcore-js-compat@3.39.0(transitive)
- Removeddebug@4.4.0(transitive)
- Removedelectron-to-chromium@1.5.76(transitive)
- Removedescalade@3.2.0(transitive)
- Removedesutils@2.0.3(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedgensync@1.0.0-beta.2(transitive)
- Removedglobals@11.12.0(transitive)
- Removedhasown@2.0.2(transitive)
- Removedis-core-module@2.16.1(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedjsesc@3.0.23.1.0(transitive)
- Removedjson5@2.2.3(transitive)
- Removedlodash.debounce@4.0.8(transitive)
- Removedlru-cache@5.1.1(transitive)
- Removedms@2.1.3(transitive)
- Removednode-releases@2.0.19(transitive)
- Removedpath-parse@1.0.7(transitive)
- Removedpicocolors@1.1.1(transitive)
- Removedregenerate@1.4.2(transitive)
- Removedregenerate-unicode-properties@10.2.0(transitive)
- Removedregenerator-runtime@0.14.1(transitive)
- Removedregenerator-transform@0.15.2(transitive)
- Removedregexpu-core@6.2.0(transitive)
- Removedregjsgen@0.8.0(transitive)
- Removedregjsparser@0.12.0(transitive)
- Removedresolve@1.22.10(transitive)
- Removedsemver@6.3.1(transitive)
- Removedsupports-preserve-symlinks-flag@1.0.0(transitive)
- Removedunicode-canonical-property-names-ecmascript@2.0.1(transitive)
- Removedunicode-match-property-ecmascript@2.0.0(transitive)
- Removedunicode-match-property-value-ecmascript@2.2.0(transitive)
- Removedunicode-property-aliases-ecmascript@2.1.0(transitive)
- Removedupdate-browserslist-db@1.1.1(transitive)
- Removedyallist@3.1.1(transitive)