jest-emotion
Advanced tools
Comparing version 10.0.11 to 10.0.14
# 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 @@ |
'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", |
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
56098
1394