Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@heathmont/moon-utils

Package Overview
Dependencies
Maintainers
62
Versions
287
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@heathmont/moon-utils - npm Package Compare versions

Comparing version 2.31.0 to 2.33.0

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [2.33.0](https://github.com/coingaming/sportsbet-design/compare/v2.32.0...v2.33.0) (2020-09-09)
### Features
* update React imports ([a6bcf72](https://github.com/coingaming/sportsbet-design/commit/a6bcf720965980f0585db7cefd4c729d6d7ac8d8))
# [2.31.0](https://github.com/coingaming/sportsbet-design/compare/v2.30.0...v2.31.0) (2020-09-02)

@@ -8,0 +19,0 @@

14

lib/container/__test__/container.test.js
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
var _styledComponents = _interopRequireDefault(require("styled-components"));
var React = _interopRequireWildcard(require("react"));
var _react = _interopRequireDefault(require("react"));

@@ -15,6 +13,2 @@ var _reactTestRenderer = require("react-test-renderer");

function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

@@ -53,3 +47,3 @@

test('renders a rem-based container with number value', function () {
expect((0, _reactTestRenderer.create)( /*#__PURE__*/React.createElement(_StyledExample, {
expect((0, _reactTestRenderer.create)( /*#__PURE__*/_react["default"].createElement(_StyledExample, {
_css: (0, _container["default"])(300)

@@ -59,3 +53,3 @@ }))).toMatchSnapshot();

test('renders with custom padding number value', function () {
expect((0, _reactTestRenderer.create)( /*#__PURE__*/React.createElement(_StyledExample2, {
expect((0, _reactTestRenderer.create)( /*#__PURE__*/_react["default"].createElement(_StyledExample2, {
_css2: (0, _container["default"])(300, 50)

@@ -65,3 +59,3 @@ }))).toMatchSnapshot();

test('renders with no padding', function () {
expect((0, _reactTestRenderer.create)( /*#__PURE__*/React.createElement(_StyledExample3, {
expect((0, _reactTestRenderer.create)( /*#__PURE__*/_react["default"].createElement(_StyledExample3, {
_css3: (0, _container["default"])(300, 0)

@@ -68,0 +62,0 @@ }))).toMatchSnapshot();

import _styled3 from "styled-components";
import _styled2 from "styled-components";
import _styled from "styled-components";
import * as React from 'react';
import React from 'react';
import styled from 'styled-components';

@@ -6,0 +6,0 @@ import { create } from 'react-test-renderer';

{
"name": "@heathmont/moon-utils",
"sideEffects": false,
"version": "2.31.0",
"version": "2.33.0",
"files": [

@@ -18,3 +18,3 @@ "lib"

"dependencies": {
"@heathmont/moon-themes": "^2.31.0",
"@heathmont/moon-themes": "^2.33.0",
"lodash.get": "4.4.2",

@@ -33,3 +33,3 @@ "lodash.has": "4.5.2",

},
"gitHead": "75d487c08c0a16b1881724e6d59a3d1f71ee8019"
"gitHead": "b92240b1685cb1046379cb9b2d72f19ade7ff6dd"
}

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