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

@govuk-frederic/count

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/count - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

13

es/index.js

@@ -1,13 +0,8 @@

function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
import React from 'react';
import PropTypes from 'prop-types';
import styled from 'react-emotion';
import styled from 'styled-components';
import { NTA_LIGHT } from '@govuk-react/constants';
var StyledCount =
/*#__PURE__*/
styled('div', {
target: "e4u1u2g0",
label: "StyledCount"
})({
var StyledCount = styled('div')({
fontFamily: NTA_LIGHT

@@ -27,3 +22,3 @@ });

var value = _ref.value,
props = _objectWithoutProperties(_ref, ["value"]);
props = _objectWithoutPropertiesLoose(_ref, ["value"]);

@@ -30,0 +25,0 @@ return React.createElement(StyledCount, props, React.createElement("span", null, value));

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

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

@@ -17,10 +17,5 @@ var _constants = require("@govuk-react/constants");

function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
var StyledCount =
/*#__PURE__*/
(0, _reactEmotion.default)('div', {
target: "e4u1u2g0",
label: "StyledCount"
})({
var StyledCount = (0, _styledComponents.default)('div')({
fontFamily: _constants.NTA_LIGHT

@@ -40,3 +35,3 @@ });

var value = _ref.value,
props = _objectWithoutProperties(_ref, ["value"]);
props = _objectWithoutPropertiesLoose(_ref, ["value"]);

@@ -48,3 +43,3 @@ return _react.default.createElement(StyledCount, props, _react.default.createElement("span", null, value));

exports.default = _default;
module.exports = exports["default"];
module.exports = exports.default;
//# sourceMappingURL=index.js.map
{
"name": "@govuk-frederic/count",
"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 @@ },

@@ -21,4 +21,4 @@ Count

`textClass` | | `````` | string |
`value` | true | `````` | union(string|number) |
`value` | true | `````` | union(string \| number) |
import React from 'react';
import PropTypes from 'prop-types';
import styled from 'react-emotion';
import styled from 'styled-components';
import { NTA_LIGHT } from '@govuk-react/constants';

@@ -5,0 +5,0 @@

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