Jesus sucks
This commit is contained in:
21
backend/frontend/node_modules/@emotion/memoize/LICENSE
generated
vendored
Normal file
21
backend/frontend/node_modules/@emotion/memoize/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Emotion team and other contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
32
backend/frontend/node_modules/@emotion/memoize/package.json
generated
vendored
Normal file
32
backend/frontend/node_modules/@emotion/memoize/package.json
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"name": "@emotion/memoize",
|
||||
"version": "0.9.0",
|
||||
"description": "emotion's memoize utility",
|
||||
"main": "dist/emotion-memoize.cjs.js",
|
||||
"module": "dist/emotion-memoize.esm.js",
|
||||
"types": "dist/emotion-memoize.cjs.d.ts",
|
||||
"license": "MIT",
|
||||
"repository": "https://github.com/emotion-js/emotion/tree/main/packages/memoize",
|
||||
"scripts": {
|
||||
"test:typescript": "dtslint types"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@definitelytyped/dtslint": "0.0.112",
|
||||
"typescript": "^5.4.5"
|
||||
},
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
],
|
||||
"exports": {
|
||||
".": {
|
||||
"module": "./dist/emotion-memoize.esm.js",
|
||||
"import": "./dist/emotion-memoize.cjs.mjs",
|
||||
"default": "./dist/emotion-memoize.cjs.js"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
}
|
||||
}
|
||||
8
backend/frontend/node_modules/@emotion/memoize/src/index.ts
generated
vendored
Normal file
8
backend/frontend/node_modules/@emotion/memoize/src/index.ts
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
export default function memoize<V>(fn: (arg: string) => V): (arg: string) => V {
|
||||
const cache: Record<string, V> = Object.create(null)
|
||||
|
||||
return (arg: string) => {
|
||||
if (cache[arg] === undefined) cache[arg] = fn(arg)
|
||||
return cache[arg]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user