Security upgrades

This commit is contained in:
2020-07-15 19:54:48 +02:00
parent 59cc6c54cd
commit ad8ed283d2
3164 changed files with 408897 additions and 28 deletions

8
node_modules/jss-plugin-props-sort/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,8 @@
The MIT License (MIT)
Copyright (c) 2014-present Oleg Isonen (Slobodskoi) & 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.

View File

@@ -0,0 +1,28 @@
/**
* Sort props by length.
*/
function jssPropsSort() {
var sort = function sort(prop0, prop1) {
if (prop0.length === prop1.length) {
return prop0 > prop1 ? 1 : -1;
}
return prop0.length - prop1.length;
};
return {
onProcessStyle: function onProcessStyle(style, rule) {
if (rule.type !== 'style') return style;
var newStyle = {};
var props = Object.keys(style).sort(sort);
for (var i = 0; i < props.length; i++) {
newStyle[props[i]] = style[props[i]];
}
return newStyle;
}
};
}
export default jssPropsSort;

View File

@@ -0,0 +1,32 @@
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
/**
* Sort props by length.
*/
function jssPropsSort() {
var sort = function sort(prop0, prop1) {
if (prop0.length === prop1.length) {
return prop0 > prop1 ? 1 : -1;
}
return prop0.length - prop1.length;
};
return {
onProcessStyle: function onProcessStyle(style, rule) {
if (rule.type !== 'style') return style;
var newStyle = {};
var props = Object.keys(style).sort(sort);
for (var i = 0; i < props.length; i++) {
newStyle[props[i]] = style[props[i]];
}
return newStyle;
}
};
}
exports.default = jssPropsSort;

View File

@@ -0,0 +1,3 @@
// @flow
export * from '../src';

View File

@@ -0,0 +1,28 @@
/**
* Sort props by length.
*/
function jssPropsSort() {
var sort = function sort(prop0, prop1) {
if (prop0.length === prop1.length) {
return prop0 > prop1 ? 1 : -1;
}
return prop0.length - prop1.length;
};
return {
onProcessStyle: function onProcessStyle(style, rule) {
if (rule.type !== 'style') return style;
var newStyle = {};
var props = Object.keys(style).sort(sort);
for (var i = 0; i < props.length; i++) {
newStyle[props[i]] = style[props[i]];
}
return newStyle;
}
};
}
export default jssPropsSort;

View File

@@ -0,0 +1,39 @@
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = global || self, factory(global.jssPluginPropsSort = {}));
}(this, (function (exports) { 'use strict';
/**
* Sort props by length.
*/
function jssPropsSort() {
var sort = function sort(prop0, prop1) {
if (prop0.length === prop1.length) {
return prop0 > prop1 ? 1 : -1;
}
return prop0.length - prop1.length;
};
return {
onProcessStyle: function onProcessStyle(style, rule) {
if (rule.type !== 'style') return style;
var newStyle = {};
var props = Object.keys(style).sort(sort);
for (var i = 0; i < props.length; i++) {
newStyle[props[i]] = style[props[i]];
}
return newStyle;
}
};
}
exports.default = jssPropsSort;
Object.defineProperty(exports, '__esModule', { value: true });
})));
//# sourceMappingURL=jss-plugin-props-sort.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"jss-plugin-props-sort.js","sources":["../src/index.js"],"sourcesContent":["// @flow\nimport type {Plugin} from 'jss'\n\n/**\n * Sort props by length.\n */\nexport default function jssPropsSort(): Plugin {\n const sort = (prop0, prop1) => {\n if (prop0.length === prop1.length) {\n return prop0 > prop1 ? 1 : -1\n }\n return prop0.length - prop1.length\n }\n\n return {\n onProcessStyle(style, rule) {\n if (rule.type !== 'style') return style\n\n const newStyle = {}\n const props = Object.keys(style).sort(sort)\n for (let i = 0; i < props.length; i++) {\n newStyle[props[i]] = style[props[i]]\n }\n return newStyle\n }\n }\n}\n"],"names":["jssPropsSort","sort","prop0","prop1","length","onProcessStyle","style","rule","type","newStyle","props","Object","keys","i"],"mappings":";;;;;;EAGA;;;EAGe,SAASA,YAAT,GAAgC;EAC7C,MAAMC,IAAI,GAAG,SAAPA,IAAO,CAACC,KAAD,EAAQC,KAAR,EAAkB;EAC7B,QAAID,KAAK,CAACE,MAAN,KAAiBD,KAAK,CAACC,MAA3B,EAAmC;EACjC,aAAOF,KAAK,GAAGC,KAAR,GAAgB,CAAhB,GAAoB,CAAC,CAA5B;EACD;;EACD,WAAOD,KAAK,CAACE,MAAN,GAAeD,KAAK,CAACC,MAA5B;EACD,GALD;;EAOA,SAAO;EACLC,IAAAA,cADK,0BACUC,KADV,EACiBC,IADjB,EACuB;EAC1B,UAAIA,IAAI,CAACC,IAAL,KAAc,OAAlB,EAA2B,OAAOF,KAAP;EAE3B,UAAMG,QAAQ,GAAG,EAAjB;EACA,UAAMC,KAAK,GAAGC,MAAM,CAACC,IAAP,CAAYN,KAAZ,EAAmBL,IAAnB,CAAwBA,IAAxB,CAAd;;EACA,WAAK,IAAIY,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGH,KAAK,CAACN,MAA1B,EAAkCS,CAAC,EAAnC,EAAuC;EACrCJ,QAAAA,QAAQ,CAACC,KAAK,CAACG,CAAD,CAAN,CAAR,GAAqBP,KAAK,CAACI,KAAK,CAACG,CAAD,CAAN,CAA1B;EACD;;EACD,aAAOJ,QAAP;EACD;EAVI,GAAP;EAYD;;;;;;;;;;;;"}

View File

@@ -0,0 +1 @@
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).jssPluginPropsSort={})}(this,function(e){"use strict";e.default=function(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var o={},r=Object.keys(t).sort(e),f=0;f<r.length;f++)o[r[f]]=t[r[f]];return o}}},Object.defineProperty(e,"__esModule",{value:!0})});

69
node_modules/jss-plugin-props-sort/package.json generated vendored Normal file
View File

@@ -0,0 +1,69 @@
{
"_from": "jss-plugin-props-sort@^10.0.3",
"_id": "jss-plugin-props-sort@10.3.0",
"_inBundle": false,
"_integrity": "sha512-boetORqL/lfd7BWeFD3K+IyPqyIC+l3CRrdZr+NPq7Noqp+xyg/0MR7QisgzpxCEulk+j2CRcEUoZsvgPC4nTg==",
"_location": "/jss-plugin-props-sort",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "jss-plugin-props-sort@^10.0.3",
"name": "jss-plugin-props-sort",
"escapedName": "jss-plugin-props-sort",
"rawSpec": "^10.0.3",
"saveSpec": null,
"fetchSpec": "^10.0.3"
},
"_requiredBy": [
"/@material-ui/styles"
],
"_resolved": "https://registry.npmjs.org/jss-plugin-props-sort/-/jss-plugin-props-sort-10.3.0.tgz",
"_shasum": "5b0625f87b6431a7969c56b0d8c696525969bfe4",
"_spec": "jss-plugin-props-sort@^10.0.3",
"_where": "D:\\WORK\\Menui\\menui_backend\\node_modules\\@material-ui\\styles",
"author": {
"name": "JSS Team"
},
"bugs": {
"url": "https://github.com/cssinjs/jss/issues/new?title=[jss-plugin-props-sort]"
},
"bundleDependencies": false,
"dependencies": {
"@babel/runtime": "^7.3.1",
"jss": "^10.3.0"
},
"deprecated": false,
"description": "JSS plugin that ensures style properties extend each other instead of override",
"files": [
"dist",
"src",
"LICENSE"
],
"gitHead": "4094410d82dfdae772e1c09f0cd187cb48fa1cdc",
"homepage": "https://cssinjs.org/jss-plugin-props-sort",
"keywords": [
"cssinjs",
"css-in-js",
"css in js",
"jss",
"plugin",
"sort",
"props"
],
"license": "MIT",
"main": "dist/jss-plugin-props-sort.cjs.js",
"module": "dist/jss-plugin-props-sort.esm.js",
"name": "jss-plugin-props-sort",
"repository": {
"type": "git",
"url": "git+https://github.com/cssinjs/jss.git"
},
"scripts": {
"build": "node ../../scripts/build.js",
"check-snapshot": "node ../../scripts/match-snapshot.js"
},
"typings": "./src/index.d.ts",
"unpkg": "dist/jss-plugin-props-sort.bundle.js",
"version": "10.3.0"
}

26
node_modules/jss-plugin-props-sort/readme.md generated vendored Normal file
View File

@@ -0,0 +1,26 @@
# jss-plugin-props-sort
[![Version](https://img.shields.io/npm/v/jss-plugin-props-sort.svg?style=flat)](https://npmjs.org/package/jss-plugin-props-sort)
[![License](https://img.shields.io/npm/l/jss-plugin-props-sort.svg?style=flat)](https://github.com/cssinjs/jss/blob/master/LICENSE)
[![Downlodas](https://img.shields.io/npm/dm/jss-plugin-props-sort.svg?style=flat)](https://npmjs.org/package/jss-plugin-props-sort)
[![Size](https://img.shields.io/bundlephobia/minzip/jss-plugin-props-sort.svg?style=flat)](https://npmjs.org/package/jss-plugin-props-sort)
[![Dependencies](https://img.shields.io/david/cssinjs/jss.svg?path=packages%2Fjss-plugin-props-sort&style=flat)](https://npmjs.org/package/jss-plugin-props-sort)
[![Gitter](https://badges.gitter.im/JoinChat.svg)](https://gitter.im/cssinjs/lobby)
> JSS plugin that ensures style properties extend each other instead of override
See our website [jss-plugin-props-sort](https://cssinjs.org/jss-plugin-props-sort?v=v10.3.0) for more information.
## Install
Using npm:
```sh
npm install jss-plugin-props-sort
```
or using yarn:
```sh
yarn add jss-plugin-props-sort
```

3
node_modules/jss-plugin-props-sort/src/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,3 @@
import {Plugin} from 'jss'
export default function jssPluginPropsSort(): Plugin

27
node_modules/jss-plugin-props-sort/src/index.js generated vendored Normal file
View File

@@ -0,0 +1,27 @@
// @flow
import type {Plugin} from 'jss'
/**
* Sort props by length.
*/
export default function jssPropsSort(): Plugin {
const sort = (prop0, prop1) => {
if (prop0.length === prop1.length) {
return prop0 > prop1 ? 1 : -1
}
return prop0.length - prop1.length
}
return {
onProcessStyle(style, rule) {
if (rule.type !== 'style') return style
const newStyle = {}
const props = Object.keys(style).sort(sort)
for (let i = 0; i < props.length; i++) {
newStyle[props[i]] = style[props[i]]
}
return newStyle
}
}
}

79
node_modules/jss-plugin-props-sort/src/index.test.js generated vendored Normal file
View File

@@ -0,0 +1,79 @@
import expect from 'expect.js'
import {create} from 'jss'
import propsSort from './index'
const settings = {
createGenerateId: () => rule => `${rule.key}-id`
}
describe('jss-plugin-props-sort', () => {
let jss
beforeEach(() => {
jss = create(settings).use(propsSort())
})
describe('sort props by length', () => {
let sheet
beforeEach(() => {
sheet = jss.createStyleSheet({
a: {
'border-left': '1px',
border: '3px'
}
})
})
it('should have a rule', () => {
expect(sheet.getRule('a')).to.not.be(undefined)
})
it('should generate correct CSS', () => {
expect(sheet.toString()).to.be('.a-id {\n border: 3px;\n border-left: 1px;\n}')
})
})
describe('leave non-style rules unchanged', () => {
describe('@font-face', () => {
let sheet
beforeEach(() => {
sheet = jss.createStyleSheet({
'@font-face': {
'font-family': 'MyHelvetica',
src: 'local("Helvetica")'
}
})
})
it('should generate correct CSS', () => {
expect(sheet.toString()).to.be(
'@font-face {\n font-family: MyHelvetica;\n src: local("Helvetica");\n}'
)
})
})
describe('@media', () => {
let sheet
beforeEach(() => {
sheet = jss.createStyleSheet({
'@media print': {
a: {
'border-left': '1px',
border: '3px'
}
}
})
})
it('should generate correct CSS', () => {
expect(sheet.toString()).to.be(
'@media print {\n .a-id {\n border: 3px;\n border-left: 1px;\n }\n}'
)
})
})
})
})