New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@govuk-frederic/remove-button

Package Overview
Dependencies
Maintainers
4
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@govuk-frederic/remove-button - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

11

es/index.js
import React from 'react';
import styled from 'react-emotion';
import styled from 'styled-components';
import { NTA_LIGHT } from '@govuk-react/constants';
var RemoveButtonInner =
/*#__PURE__*/
styled('button', {
target: "e4u1u2g0",
label: "RemoveButtonInner"
})({
var RemoveButtonInner = styled('button')({
'&:first-child': {

@@ -33,3 +28,3 @@ margin: 0

* ```
*
*
* Next to some text

@@ -36,0 +31,0 @@ * ```jsx

import React from 'react';
import { mount, shallow } from 'enzyme';
import { createMatchers } from 'jest-emotion';
import * as emotion from 'emotion';
import RemoveButton from '.';
expect.extend(createMatchers(emotion));
describe('RemoveButton', function () {

@@ -8,0 +5,0 @@ it('renders without crashing', function () {

@@ -8,3 +8,3 @@ "use strict";

var _reactEmotion = _interopRequireDefault(require("react-emotion"));
var _styledComponents = _interopRequireDefault(require("styled-components"));

@@ -15,8 +15,3 @@ var _constants = require("@govuk-react/constants");

var RemoveButtonInner =
/*#__PURE__*/
(0, _reactEmotion.default)('button', {
target: "e4u1u2g0",
label: "RemoveButtonInner"
})({
var RemoveButtonInner = (0, _styledComponents.default)('button')({
'&:first-child': {

@@ -45,3 +40,3 @@ margin: 0

* ```
*
*
* Next to some text

@@ -59,3 +54,3 @@ * ```jsx

exports.default = _default;
module.exports = exports["default"];
module.exports = exports.default;
//# sourceMappingURL=index.js.map

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

var _jestEmotion = require("jest-emotion");
var emotion = _interopRequireWildcard(require("emotion"));
var _ = _interopRequireDefault(require("."));
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
expect.extend((0, _jestEmotion.createMatchers)(emotion));
describe('RemoveButton', function () {

@@ -20,0 +13,0 @@ it('renders without crashing', function () {

{
"name": "@govuk-frederic/remove-button",
"version": "0.1.1",
"version": "0.2.0",
"dependencies": {
"@govuk-react/constants": "^0.2.7"
"@govuk-react/constants": "^0.6.0-alpha.1"
},
"devDependencies": {
"@govuk-react/storybook-components": "^0.2.4",
"@storybook/addon-knobs": "^3.4.2"
},
"peerDependencies": {
"emotion": ">=9",
"prop-types": ">=15",
"react": ">=16.2.0",
"react-emotion": ">=9"
"styled-components": ">=4"
},
"scripts": {
"build": "npm run build:lib && npm run build:es",
"build:lib": "rimraf lib && babel src -d lib --source-maps",
"build:es": "rimraf es && cross-env BABEL_ENV=es babel src -d es --source-maps",
"build": "yarn build:lib && yarn build:es",
"build:lib": "rimraf lib && babel src -d lib --source-maps --config-file ../../babel.config.js",
"build:es": "rimraf es && cross-env BABEL_ENV=es babel src -d es --source-maps --config-file ../../babel.config.js",
"docs": "doc-component ./lib/index.js ./README.md"

@@ -22,0 +16,0 @@ },

import React from 'react';
import styled from 'react-emotion';
import styled from 'styled-components';
import { NTA_LIGHT } from '@govuk-react/constants';

@@ -31,3 +31,3 @@

* ```
*
*
* Next to some text

@@ -34,0 +34,0 @@ * ```jsx

import React from 'react';
import { mount, shallow } from 'enzyme';
import { createMatchers } from 'jest-emotion';
import * as emotion from 'emotion';
import RemoveButton from '.';
expect.extend(createMatchers(emotion));
describe('RemoveButton', () => {

@@ -11,0 +7,0 @@ it('renders without crashing', () => {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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