emotion-utils
Advanced tools
Comparing version 8.0.12 to 9.0.0-0
@@ -966,4 +966,3 @@ 'use strict'; | ||
// weak | ||
function memoize(fn) { | ||
var memoize = function memoize(fn) { | ||
var cache = {}; | ||
@@ -974,3 +973,3 @@ return function (arg) { | ||
}; | ||
} | ||
}; | ||
var STYLES_KEY = '__emotion_styles'; | ||
@@ -977,0 +976,0 @@ var TARGET_KEY = '__emotion_target'; |
@@ -962,4 +962,3 @@ // murmurhash2 via https://gist.github.com/raycmorgan/588423 | ||
// weak | ||
function memoize(fn) { | ||
var memoize = function memoize(fn) { | ||
var cache = {}; | ||
@@ -970,3 +969,3 @@ return function (arg) { | ||
}; | ||
} | ||
}; | ||
var STYLES_KEY = '__emotion_styles'; | ||
@@ -973,0 +972,0 @@ var TARGET_KEY = '__emotion_target'; |
{ | ||
"name": "emotion-utils", | ||
"version": "8.0.12", | ||
"version": "9.0.0-0", | ||
"description": "Shared utilities used by emotion, The Next Generation of CSS-in-JS.", | ||
@@ -18,5 +18,5 @@ "main": "dist/index.cjs.js", | ||
"author": "Kye Hohenberger", | ||
"homepage": "https://github.com/tkh44/emotion#readme", | ||
"homepage": "https://emotion.sh", | ||
"license": "MIT", | ||
"repository": "https://github.com/tkh44/emotion/tree/master/packages/emotion-utils", | ||
"repository": "https://github.com/emotion-js/emotion/tree/master/packages/emotion-utils", | ||
"keywords": [ | ||
@@ -30,3 +30,3 @@ "styles", | ||
"bugs": { | ||
"url": "https://github.com/tkh44/emotion/issues" | ||
"url": "https://github.com/emotion-js/emotion/issues" | ||
}, | ||
@@ -33,0 +33,0 @@ "devDependencies": { |
@@ -1,5 +0,6 @@ | ||
// @flow weak | ||
export function memoize(fn) { | ||
// @flow | ||
export const memoize = (fn: string => any) => { | ||
const cache = {} | ||
return arg => { | ||
return (arg: string) => { | ||
if (cache[arg] === undefined) cache[arg] = fn(arg) | ||
@@ -13,3 +14,3 @@ return cache[arg] | ||
export const unitless = { | ||
export const unitless: { [string]: 1 } = { | ||
animationIterationCount: 1, | ||
@@ -16,0 +17,0 @@ borderImageOutset: 1, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Possible typosquat attack
Supply chain riskThere is a package with a similar name that is downloaded much more often.
Did you mean |
---|
@emotion/utils |
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
182590
10
1890
0
1