Security upgrades
This commit is contained in:
28
node_modules/hyphenate-style-name/LICENSE
generated
vendored
Normal file
28
node_modules/hyphenate-style-name/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
Copyright (c) 2015, Espen Hovlandsdal
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
* Neither the name of hyphenate-style-name nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
28
node_modules/hyphenate-style-name/README.md
generated
vendored
Normal file
28
node_modules/hyphenate-style-name/README.md
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
# hyphenate-style-name
|
||||
|
||||
[](https://www.npmjs.com/package/hyphenate-style-name)[](https://www.npmjs.com/package/hyphenate-style-name)[](https://bundlephobia.com/result?p=hyphenate-style-name)[](https://travis-ci.org/rexxars/hyphenate-style-name)
|
||||
|
||||
Hyphenates a camelcased CSS property name. For example:
|
||||
|
||||
- `backgroundColor` => `background-color`
|
||||
- `MozTransition` => `-moz-transition`
|
||||
- `msTransition` => `-ms-transition`
|
||||
- `color` => `color`
|
||||
|
||||
# Installation
|
||||
|
||||
```bash
|
||||
$ npm install --save hyphenate-style-name
|
||||
```
|
||||
|
||||
# Usage
|
||||
|
||||
```js
|
||||
var hyphenateStyleName = require('hyphenate-style-name')
|
||||
|
||||
console.log(hyphenateStyleName('MozTransition')) // -moz-transition
|
||||
```
|
||||
|
||||
# License
|
||||
|
||||
BSD-3-Clause licensed. See LICENSE.
|
||||
21
node_modules/hyphenate-style-name/index.cjs.js
generated
vendored
Normal file
21
node_modules/hyphenate-style-name/index.cjs.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
'use strict';
|
||||
|
||||
/* eslint-disable no-var, prefer-template */
|
||||
var uppercasePattern = /[A-Z]/g;
|
||||
var msPattern = /^ms-/;
|
||||
var cache = {};
|
||||
|
||||
function toHyphenLower(match) {
|
||||
return '-' + match.toLowerCase()
|
||||
}
|
||||
|
||||
function hyphenateStyleName(name) {
|
||||
if (cache.hasOwnProperty(name)) {
|
||||
return cache[name]
|
||||
}
|
||||
|
||||
var hName = name.replace(uppercasePattern, toHyphenLower);
|
||||
return (cache[name] = msPattern.test(hName) ? '-' + hName : hName)
|
||||
}
|
||||
|
||||
module.exports = hyphenateStyleName;
|
||||
19
node_modules/hyphenate-style-name/index.js
generated
vendored
Normal file
19
node_modules/hyphenate-style-name/index.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
/* eslint-disable no-var, prefer-template */
|
||||
var uppercasePattern = /[A-Z]/g
|
||||
var msPattern = /^ms-/
|
||||
var cache = {}
|
||||
|
||||
function toHyphenLower(match) {
|
||||
return '-' + match.toLowerCase()
|
||||
}
|
||||
|
||||
function hyphenateStyleName(name) {
|
||||
if (cache.hasOwnProperty(name)) {
|
||||
return cache[name]
|
||||
}
|
||||
|
||||
var hName = name.replace(uppercasePattern, toHyphenLower)
|
||||
return (cache[name] = msPattern.test(hName) ? '-' + hName : hName)
|
||||
}
|
||||
|
||||
export default hyphenateStyleName
|
||||
70
node_modules/hyphenate-style-name/package.json
generated
vendored
Normal file
70
node_modules/hyphenate-style-name/package.json
generated
vendored
Normal file
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"_from": "hyphenate-style-name@^1.0.3",
|
||||
"_id": "hyphenate-style-name@1.0.4",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-ygGZLjmXfPHj+ZWh6LwbC37l43MhfztxetbFCoYTM2VjkIUpeHgSNn7QIyVFj7YQ1Wl9Cbw5sholVJPzWvC2MQ==",
|
||||
"_location": "/hyphenate-style-name",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "hyphenate-style-name@^1.0.3",
|
||||
"name": "hyphenate-style-name",
|
||||
"escapedName": "hyphenate-style-name",
|
||||
"rawSpec": "^1.0.3",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^1.0.3"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/jss-plugin-camel-case"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/hyphenate-style-name/-/hyphenate-style-name-1.0.4.tgz",
|
||||
"_shasum": "691879af8e220aea5750e8827db4ef62a54e361d",
|
||||
"_spec": "hyphenate-style-name@^1.0.3",
|
||||
"_where": "D:\\WORK\\Menui\\menui_backend\\node_modules\\jss-plugin-camel-case",
|
||||
"author": {
|
||||
"name": "Espen Hovlandsdal",
|
||||
"email": "espen@hovlandsdal.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/rexxars/hyphenate-style-name/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"deprecated": false,
|
||||
"description": "Hyphenates a camelcased CSS property name",
|
||||
"devDependencies": {
|
||||
"eslint": "^7.4.0",
|
||||
"eslint-config-prettier": "^6.11.0",
|
||||
"eslint-config-sanity": "^1.149.16",
|
||||
"nyc": "^15.1.0",
|
||||
"prettier": "^2.0.5",
|
||||
"rollup": "^2.21.0",
|
||||
"tape": "^5.0.1"
|
||||
},
|
||||
"homepage": "https://github.com/rexxars/hyphenate-style-name#readme",
|
||||
"keywords": [
|
||||
"hyphenate",
|
||||
"style",
|
||||
"css",
|
||||
"camelcase"
|
||||
],
|
||||
"license": "BSD-3-Clause",
|
||||
"main": "index.cjs.js",
|
||||
"module": "index.js",
|
||||
"name": "hyphenate-style-name",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+ssh://git@github.com/rexxars/hyphenate-style-name.git"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "rollup --input index.js --file index.cjs.js --format cjs",
|
||||
"coverage": "nyc tape -- test/**/*.test.js",
|
||||
"lint": "eslint . --ignore-path .gitignore",
|
||||
"precoverage": "npm run build",
|
||||
"prepublishOnly": "npm run build",
|
||||
"pretest": "npm run lint && npm run build",
|
||||
"test": "tape test/**/*.test.js"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"version": "1.0.4"
|
||||
}
|
||||
Reference in New Issue
Block a user