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

jest-emotion

Package Overview
Dependencies
Maintainers
2
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-emotion - npm Package Compare versions

Comparing version 10.0.11 to 10.0.14

6

CHANGELOG.md
# jest-emotion
## 10.0.14
### Patch Changes
- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pulls/1419) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Update build tool
## 10.0.11

@@ -4,0 +10,0 @@

25

dist/jest-emotion.browser.cjs.js
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault(ex) {
return ex && typeof ex === 'object' && 'default' in ex ? ex['default'] : ex;
}
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var _extends = _interopDefault(require('@babel/runtime/helpers/extends'));
var _objectWithoutPropertiesLoose = _interopDefault(require('@babel/runtime/helpers/objectWithoutPropertiesLoose'));
var css = require('css');
var chalk = _interopDefault(require('chalk'));

@@ -24,3 +17,2 @@

var componentSelectorClassNamePattern = /^e[a-zA-Z0-9]+[0-9]+$/;
var replaceClassNames = function replaceClassNames(classNames, styles, code, keys, classNameReplacer) {

@@ -87,13 +79,9 @@ if (classNameReplacer === void 0) {

}
function isEmotionCssPropElementType(val) {
return val.$$typeof === Symbol.for('react.element') && val.type.$$typeof === Symbol.for('react.forward_ref') && val.type.displayName === 'EmotionCssPropInternal';
}
function isEmotionCssPropEnzymeElement(val) {
return val.$$typeof === Symbol.for('react.test.json') && val.type === 'EmotionCssPropInternal';
}
var domElementPattern = /^((HTML|SVG)\w*)?Element$/;
function isDOMElement(val) {

@@ -124,6 +112,4 @@ return val.nodeType === 1 && val.constructor && val.constructor.name && domElementPattern.test(val.constructor.name);

}
var keyframesPattern = /^@keyframes\s+(animation-[^{\s]+)+/;
var removeCommentPattern = /\/\*[\s\S]*?\*\//g;
function getStylesFromClassNames(classNames, elements) {

@@ -193,3 +179,2 @@ if (!classNames.length) {

}
function getStyleElements() {

@@ -213,3 +198,2 @@ var elements = Array.from(document.querySelectorAll('style[data-emotion]')); // $FlowFixMe

}
function hasClassNames(classNames, selectors, target) {

@@ -229,3 +213,2 @@ // selectors is the classNames of specific css rule

}
function getMediaRules(rules, media) {

@@ -239,2 +222,3 @@ return rules.filter(function (rule) {

}
/*

@@ -245,3 +229,2 @@ * Taken from

function isA(typeName, value) {

@@ -425,3 +408,2 @@ return Object.prototype.toString.apply(value) === "[object " + typeName + "]";

test = _createSerializer.test;
var index = {

@@ -431,2 +413,3 @@ print: print,

};
exports.createSerializer = createSerializer;

@@ -433,0 +416,0 @@ exports.default = index;

'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault(ex) {
return ex && typeof ex === 'object' && 'default' in ex ? ex['default'] : ex;
}
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var _extends = _interopDefault(require('@babel/runtime/helpers/extends'));
var _objectWithoutPropertiesLoose = _interopDefault(require('@babel/runtime/helpers/objectWithoutPropertiesLoose'));
var css = require('css');
var chalk = _interopDefault(require('chalk'));

@@ -24,3 +17,2 @@

var componentSelectorClassNamePattern = /^e[a-zA-Z0-9]+[0-9]+$/;
var replaceClassNames = function replaceClassNames(classNames, styles, code, keys, classNameReplacer) {

@@ -87,13 +79,9 @@ if (classNameReplacer === void 0) {

}
function isEmotionCssPropElementType(val) {
return val.$$typeof === Symbol.for('react.element') && val.type.$$typeof === Symbol.for('react.forward_ref') && val.type.displayName === 'EmotionCssPropInternal';
}
function isEmotionCssPropEnzymeElement(val) {
return val.$$typeof === Symbol.for('react.test.json') && val.type === 'EmotionCssPropInternal';
}
var domElementPattern = /^((HTML|SVG)\w*)?Element$/;
function isDOMElement(val) {

@@ -124,6 +112,4 @@ return val.nodeType === 1 && val.constructor && val.constructor.name && domElementPattern.test(val.constructor.name);

}
var keyframesPattern = /^@keyframes\s+(animation-[^{\s]+)+/;
var removeCommentPattern = /\/\*[\s\S]*?\*\//g;
function getStylesFromClassNames(classNames, elements) {

@@ -193,3 +179,2 @@ if (!classNames.length) {

}
function getStyleElements() {

@@ -213,3 +198,2 @@ var elements = Array.from(document.querySelectorAll('style[data-emotion]')); // $FlowFixMe

}
function hasClassNames(classNames, selectors, target) {

@@ -229,3 +213,2 @@ // selectors is the classNames of specific css rule

}
function getMediaRules(rules, media) {

@@ -239,2 +222,3 @@ return rules.filter(function (rule) {

}
/*

@@ -245,3 +229,2 @@ * Taken from

function isA(typeName, value) {

@@ -425,3 +408,2 @@ return Object.prototype.toString.apply(value) === "[object " + typeName + "]";

test = _createSerializer.test;
var index = {

@@ -431,2 +413,3 @@ print: print,

};
exports.createSerializer = createSerializer;

@@ -433,0 +416,0 @@ exports.default = index;

{
"name": "jest-emotion",
"version": "10.0.11",
"version": "10.0.14",
"description": "Jest utilities for emotion",

@@ -23,11 +23,11 @@ "main": "dist/jest-emotion.cjs.js",

"devDependencies": {
"@emotion/core": "^10.0.10",
"@emotion/core": "^10.0.14",
"dtslint": "^0.3.0",
"emotion": "^10.0.9",
"enzyme-to-json": "^3.3.5",
"emotion": "^10.0.14",
"enzyme-to-json": "^3.2.1",
"preact": "^8.2.9",
"preact-render-to-json": "^3.6.6",
"pretty-format": "^22.4.3",
"react": "^16.8.1",
"react-dom": "^16.8.1"
"react": "^16.5.2",
"react-dom": "^16.5.2"
},

@@ -34,0 +34,0 @@ "author": "Kye Hohenberger",

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