Conexio amb la api
This commit is contained in:
parent
207c0ba819
commit
b12369cb47
48513 changed files with 7391639 additions and 7 deletions
64
node_modules/postcss-normalize-unicode/CHANGELOG.md
generated
vendored
Executable file
64
node_modules/postcss-normalize-unicode/CHANGELOG.md
generated
vendored
Executable file
|
|
@ -0,0 +1,64 @@
|
|||
# Change Log
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [5.0.1](https://github.com/cssnano/cssnano/compare/postcss-normalize-unicode@5.0.0...postcss-normalize-unicode@5.0.1) (2021-05-19)
|
||||
|
||||
**Note:** Version bump only for package postcss-normalize-unicode
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [5.0.0](https://github.com/cssnano/cssnano/compare/postcss-normalize-unicode@5.0.0-rc.2...postcss-normalize-unicode@5.0.0) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package postcss-normalize-unicode
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [5.0.0-rc.2](https://github.com/cssnano/cssnano/compare/postcss-normalize-unicode@5.0.0-rc.1...postcss-normalize-unicode@5.0.0-rc.2) (2021-03-15)
|
||||
|
||||
**Note:** Version bump only for package postcss-normalize-unicode
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [5.0.0-rc.1](https://github.com/cssnano/cssnano/compare/postcss-normalize-unicode@5.0.0-rc.0...postcss-normalize-unicode@5.0.0-rc.1) (2021-03-04)
|
||||
|
||||
**Note:** Version bump only for package postcss-normalize-unicode
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# 5.0.0-rc.0 (2021-02-19)
|
||||
|
||||
|
||||
### chore
|
||||
|
||||
* minimum require version of node is 10.13 ([#871](https://github.com/cssnano/cssnano/issues/871)) ([28bda24](https://github.com/cssnano/cssnano/commit/28bda243e32ce3ba89b3c358a5f78727b3732f11))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* migarete to PostCSS 8 ([#975](https://github.com/cssnano/cssnano/issues/975)) ([40b82dc](https://github.com/cssnano/cssnano/commit/40b82dca7f53ac02cd4fe62846dec79b898ccb49))
|
||||
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
* minimum supported `postcss` version is `8.2.1`
|
||||
* minimum require version of node is 10.13
|
||||
|
||||
|
||||
|
||||
## 4.1.1 (2018-09-24)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* postcss-normalize-unicode add browserslist to dependencies ([#577](https://github.com/cssnano/cssnano/issues/577)) ([39ec020](https://github.com/cssnano/cssnano/commit/39ec020d9d6fc6ed72bf8de6e856752726d4fb51))
|
||||
* **postcss-merge-longhand:** not mangle border output ([#555](https://github.com/cssnano/cssnano/issues/555)) ([9a70605](https://github.com/cssnano/cssnano/commit/9a706050b621e7795a9bf74eb7110b5c81804ffe)), closes [#553](https://github.com/cssnano/cssnano/issues/553) [#554](https://github.com/cssnano/cssnano/issues/554)
|
||||
22
node_modules/postcss-normalize-unicode/LICENSE-MIT
generated
vendored
Executable file
22
node_modules/postcss-normalize-unicode/LICENSE-MIT
generated
vendored
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
Copyright (c) Ben Briggs <beneb.info@gmail.com> (http://beneb.info)
|
||||
|
||||
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.
|
||||
46
node_modules/postcss-normalize-unicode/README.md
generated
vendored
Executable file
46
node_modules/postcss-normalize-unicode/README.md
generated
vendored
Executable file
|
|
@ -0,0 +1,46 @@
|
|||
# [postcss][postcss]-normalize-unicode
|
||||
|
||||
> Normalize unicode with PostCSS.
|
||||
|
||||
## Install
|
||||
|
||||
With [npm](https://npmjs.org/package/postcss-normalize-unicode) do:
|
||||
|
||||
```
|
||||
npm install postcss-normalize-unicode --save
|
||||
```
|
||||
|
||||
## Example
|
||||
|
||||
### Input
|
||||
|
||||
```css
|
||||
@font-face{
|
||||
font-family: test;
|
||||
unicode-range: u+2b00-2bff
|
||||
}
|
||||
```
|
||||
|
||||
### Output
|
||||
|
||||
```css
|
||||
@font-face{
|
||||
font-family: test;
|
||||
unicode-range: u+2b??
|
||||
}
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
See the [PostCSS documentation](https://github.com/postcss/postcss#usage) for
|
||||
examples for your environment.
|
||||
|
||||
## Contributors
|
||||
|
||||
See [CONTRIBUTORS.md](https://github.com/cssnano/cssnano/blob/master/CONTRIBUTORS.md).
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Ben Briggs](http://beneb.info)
|
||||
|
||||
[postcss]: https://github.com/postcss/postcss
|
||||
114
node_modules/postcss-normalize-unicode/dist/index.js
generated
vendored
Executable file
114
node_modules/postcss-normalize-unicode/dist/index.js
generated
vendored
Executable file
|
|
@ -0,0 +1,114 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
|
||||
var _browserslist = _interopRequireDefault(require("browserslist"));
|
||||
|
||||
var _postcssValueParser = _interopRequireDefault(require("postcss-value-parser"));
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
const regexLowerCaseUPrefix = /^u(?=\+)/;
|
||||
|
||||
function unicode(range) {
|
||||
const values = range.slice(2).split('-');
|
||||
|
||||
if (values.length < 2) {
|
||||
return range;
|
||||
}
|
||||
|
||||
const left = values[0].split('');
|
||||
const right = values[1].split('');
|
||||
|
||||
if (left.length !== right.length) {
|
||||
return range;
|
||||
}
|
||||
|
||||
let questionCounter = 0;
|
||||
const merged = left.reduce((group, value, index) => {
|
||||
if (group === false) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (value === right[index] && !questionCounter) {
|
||||
return group + value;
|
||||
}
|
||||
|
||||
if (value === '0' && right[index] === 'f') {
|
||||
questionCounter++;
|
||||
return group + '?';
|
||||
}
|
||||
|
||||
return false;
|
||||
}, 'u+'); // The maximum number of wildcard characters (?) for ranges is 5.
|
||||
|
||||
if (merged && questionCounter < 6) {
|
||||
return merged;
|
||||
}
|
||||
|
||||
return range;
|
||||
}
|
||||
/*
|
||||
* IE and Edge before 16 version ignore the unicode-range if the 'U' is lowercase
|
||||
*
|
||||
* https://caniuse.com/#search=unicode-range
|
||||
*/
|
||||
|
||||
|
||||
function hasLowerCaseUPrefixBug(browser) {
|
||||
return ~(0, _browserslist.default)('ie <=11, edge <= 15').indexOf(browser);
|
||||
}
|
||||
|
||||
function transform(value, isLegacy = false) {
|
||||
return (0, _postcssValueParser.default)(value).walk(child => {
|
||||
if (child.type === 'unicode-range') {
|
||||
const transformed = unicode(child.value.toLowerCase());
|
||||
child.value = isLegacy ? transformed.replace(regexLowerCaseUPrefix, 'U') : transformed;
|
||||
}
|
||||
|
||||
return false;
|
||||
}).toString();
|
||||
}
|
||||
|
||||
function pluginCreator() {
|
||||
return {
|
||||
postcssPlugin: 'postcss-normalize-unicode',
|
||||
|
||||
prepare(result) {
|
||||
const cache = {};
|
||||
const resultOpts = result.opts || {};
|
||||
const browsers = (0, _browserslist.default)(null, {
|
||||
stats: resultOpts.stats,
|
||||
path: __dirname,
|
||||
env: resultOpts.env
|
||||
});
|
||||
const isLegacy = browsers.some(hasLowerCaseUPrefixBug);
|
||||
return {
|
||||
OnceExit(css) {
|
||||
css.walkDecls(/^unicode-range$/i, decl => {
|
||||
const value = decl.value;
|
||||
|
||||
if (cache[value]) {
|
||||
decl.value = cache[value];
|
||||
return;
|
||||
}
|
||||
|
||||
const newValue = transform(value, isLegacy);
|
||||
decl.value = newValue;
|
||||
cache[value] = newValue;
|
||||
});
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
pluginCreator.postcss = true;
|
||||
var _default = pluginCreator;
|
||||
exports.default = _default;
|
||||
module.exports = exports.default;
|
||||
73
node_modules/postcss-normalize-unicode/package.json
generated
vendored
Executable file
73
node_modules/postcss-normalize-unicode/package.json
generated
vendored
Executable file
|
|
@ -0,0 +1,73 @@
|
|||
{
|
||||
"_from": "postcss-normalize-unicode@^5.0.1",
|
||||
"_id": "postcss-normalize-unicode@5.0.1",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-kAtYD6V3pK0beqrU90gpCQB7g6AOfP/2KIPCVBKJM2EheVsBQmx/Iof+9zR9NFKLAx4Pr9mDhogB27pmn354nA==",
|
||||
"_location": "/postcss-normalize-unicode",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "postcss-normalize-unicode@^5.0.1",
|
||||
"name": "postcss-normalize-unicode",
|
||||
"escapedName": "postcss-normalize-unicode",
|
||||
"rawSpec": "^5.0.1",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^5.0.1"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/cssnano-preset-default"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/postcss-normalize-unicode/-/postcss-normalize-unicode-5.0.1.tgz",
|
||||
"_shasum": "82d672d648a411814aa5bf3ae565379ccd9f5e37",
|
||||
"_spec": "postcss-normalize-unicode@^5.0.1",
|
||||
"_where": "/home/jack/Documents/JDA/m14/projecte_janmaroto/node_modules/cssnano-preset-default",
|
||||
"author": {
|
||||
"name": "Ben Briggs",
|
||||
"email": "beneb.info@gmail.com",
|
||||
"url": "http://beneb.info"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/cssnano/cssnano/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"browserslist": "^4.16.0",
|
||||
"postcss-value-parser": "^4.1.0"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Normalize unicode-range descriptors, and can convert to wildcard ranges.",
|
||||
"devDependencies": {
|
||||
"postcss": "^8.2.15"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^10 || ^12 || >=14.0"
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
"LICENSE-MIT"
|
||||
],
|
||||
"gitHead": "28c247175032fa03f04911cde56ad82d74d211cc",
|
||||
"homepage": "https://github.com/cssnano/cssnano",
|
||||
"keywords": [
|
||||
"css",
|
||||
"postcss",
|
||||
"postcss-plugin"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "dist/index.js",
|
||||
"name": "postcss-normalize-unicode",
|
||||
"peerDependencies": {
|
||||
"postcss": "^8.2.15"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/cssnano/cssnano.git"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
|
||||
"prebuild": "del-cli dist",
|
||||
"prepublish": "yarn build"
|
||||
},
|
||||
"version": "5.0.1"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue