uapte
This commit is contained in:
87
node_modules/reduce-css-calc/CHANGELOG.md
generated
vendored
87
node_modules/reduce-css-calc/CHANGELOG.md
generated
vendored
@@ -1,87 +0,0 @@
|
||||
# 1.3.0 - 2016-08-26
|
||||
|
||||
- Added: calc identifier from unresolved nested expressions are removed for
|
||||
better browser support
|
||||
([#19](https://github.com/MoOx/reduce-css-calc/pull/19) - @ben-eb)
|
||||
|
||||
# 1.2.8 - 2016-08-26
|
||||
|
||||
- Fixed: regression from 1.2.5 on calc() with value without leading 0
|
||||
([#17](https://github.com/MoOx/reduce-css-calc/pull/17) - @ben-eb)
|
||||
|
||||
# 1.2.7 - 2016-08-22
|
||||
|
||||
- Fixed: regression from 1.2.5 on calc() with value without leading 0
|
||||
(@MoOx)
|
||||
|
||||
# 1.2.6 - 2016-08-22
|
||||
|
||||
- Fixed: regression from 1.2.5 on calc() on multiple lines
|
||||
(@MoOx)
|
||||
|
||||
# 1.2.5 - 2016-08-22
|
||||
|
||||
- Fixed: security issue due to the usage of ``eval()``.
|
||||
This is to avoid an arbitrary code execution.
|
||||
Now operations are resolved using
|
||||
[``math-expression-evaluator``](https://github.com/redhivesoftware/math-expression-evaluator)
|
||||
|
||||
# 1.2.4 - 2016-06-09
|
||||
|
||||
- Fixed: zero values are not unitless anymore.
|
||||
Browsers do not calculate calc() with 0 unitless values.
|
||||
http://jsbin.com/punivivipo/edit?html,css,output
|
||||
([#11](https://github.com/MoOx/reduce-css-calc/pull/11))
|
||||
|
||||
# 1.2.3 - 2016-04-28
|
||||
|
||||
- Fixed: wrong rouding in some edge cases
|
||||
([#10](https://github.com/MoOx/reduce-css-calc/pull/10))
|
||||
|
||||
# 1.2.2 - 2016-04-19
|
||||
|
||||
- Fixed: Don't reduce expression containing CSS variables.
|
||||
([#9](https://github.com/MoOx/reduce-css-calc/pull/9))
|
||||
|
||||
# 1.2.1 - 2016-02-22
|
||||
|
||||
- Fixed: uppercase letters in units are now supported
|
||||
([#8](https://github.com/MoOx/reduce-css-calc/pull/8))
|
||||
|
||||
# 1.2.0 - 2014-11-24
|
||||
|
||||
- Decimal precision is now customisable as the `precision` option
|
||||
|
||||
# 1.1.4 - 2014-11-12
|
||||
|
||||
- 5 decimals rounding for everything
|
||||
|
||||
# 1.1.3 - 2014-08-13
|
||||
|
||||
- 5 decimals rounding for percentage
|
||||
|
||||
# 1.1.2 - 2014-08-10
|
||||
|
||||
- Prevent infinite loop by adding a `Call stack overflow`
|
||||
- Correctly ignore unrecognized values (safer evaluation for nested expressions,
|
||||
see [postcss/postcss-calc#2](https://github.com/postcss/postcss-calc/issues/2))
|
||||
- Handle rounding issues (eg: 10% * 20% now give 2%, not 2.0000000000000004%)
|
||||
|
||||
# 1.1.1 - 2014-08-06
|
||||
|
||||
- Fix issue when using mutiples differents prefixes in the same function
|
||||
|
||||
# 1.1.0 - 2014-08-06
|
||||
|
||||
- support more complex formulas
|
||||
- use `reduce-function-call`
|
||||
- better error message
|
||||
|
||||
|
||||
# 1.0.0 - 2014-08-04
|
||||
|
||||
First release
|
||||
|
||||
- based on [rework-calc](https://github.com/reworkcss/rework-calc) v1.1.0
|
||||
- add error if the calc() embed an empty calc() or empty ()
|
||||
- jscs + jshint added before tests
|
||||
20
node_modules/reduce-css-calc/LICENSE
generated
vendored
20
node_modules/reduce-css-calc/LICENSE
generated
vendored
@@ -1,20 +0,0 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014 Maxime Thirouin & Joakim Bengtson
|
||||
|
||||
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.
|
||||
72
node_modules/reduce-css-calc/README.md
generated
vendored
72
node_modules/reduce-css-calc/README.md
generated
vendored
@@ -1,72 +0,0 @@
|
||||
# reduce-css-calc [](https://travis-ci.org/MoOx/reduce-css-calc)
|
||||
|
||||
> Reduce CSS calc() function to the maximum.
|
||||
|
||||
Particularly useful for packages like [rework-calc](https://github.com/reworkcss/rework-calc) or [postcss-calc](https://github.com/postcss/postcss-calc).
|
||||
|
||||
## Installation
|
||||
|
||||
```console
|
||||
$ npm install reduce-css-calc
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
### `var reducedString = reduceCSSCalc(string, precision)`
|
||||
|
||||
```javascript
|
||||
var reduceCSSCalc = require('reduce-css-calc')
|
||||
|
||||
reduceCSSCalc("calc(1 + 1)")
|
||||
// 2
|
||||
|
||||
reduceCSSCalc("calc((6 / 2) - (4 * 2) + 1)")
|
||||
// -4
|
||||
|
||||
reduceCSSCalc("calc(1/3)")
|
||||
// 0.33333
|
||||
|
||||
reduceCSSCalc("calc(1/3)", 10)
|
||||
// 0.3333333333
|
||||
|
||||
reduceCSSCalc("calc(3rem * 2 - 1rem)")
|
||||
// 5rem
|
||||
|
||||
reduceCSSCalc("calc(2 * 50%)")
|
||||
// 100%
|
||||
|
||||
reduceCSSCalc("calc(120% * 50%)")
|
||||
// 60%
|
||||
|
||||
reduceCSSCalc("a calc(1 + 1) b calc(1 - 1) c")
|
||||
// a 2 b 0 c
|
||||
|
||||
reduceCSSCalc("calc(calc(calc(1rem * 0.75) * 1.5) - 1rem)")
|
||||
// 0.125rem
|
||||
|
||||
reduceCSSCalc("calc(calc(calc(1rem * 0.75) * 1.5) - 1px)")
|
||||
// calc(1.125rem - 1px)
|
||||
|
||||
reduceCSSCalc("-moz-calc(100px / 2)")
|
||||
// 50px
|
||||
|
||||
reduceCSSCalc("-moz-calc(50% - 2em)")
|
||||
// -moz-calc(50% - 2em)
|
||||
```
|
||||
|
||||
See [unit tests](test/index.js) for others examples.
|
||||
|
||||
## Contributing
|
||||
|
||||
Work on a branch, install dev-dependencies, respect coding style & run tests before submitting a bug fix or a feature.
|
||||
|
||||
```console
|
||||
$ git clone https://github.com/MoOx/reduce-css-calc.git
|
||||
$ git checkout -b patch-1
|
||||
$ npm install
|
||||
$ npm test
|
||||
```
|
||||
|
||||
## [Changelog](CHANGELOG.md)
|
||||
|
||||
## [License](LICENSE-MIT)
|
||||
164
node_modules/reduce-css-calc/index.js
generated
vendored
164
node_modules/reduce-css-calc/index.js
generated
vendored
@@ -1,164 +0,0 @@
|
||||
/**
|
||||
* Module dependencies
|
||||
*/
|
||||
var balanced = require("balanced-match")
|
||||
var reduceFunctionCall = require("reduce-function-call")
|
||||
var mexp = require("math-expression-evaluator")
|
||||
|
||||
/**
|
||||
* Constantes
|
||||
*/
|
||||
var MAX_STACK = 100 // should be enough for a single calc()...
|
||||
var NESTED_CALC_RE = /(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g
|
||||
|
||||
/**
|
||||
* Global variables
|
||||
*/
|
||||
var stack
|
||||
|
||||
/**
|
||||
* Expose reduceCSSCalc plugin
|
||||
*
|
||||
* @type {Function}
|
||||
*/
|
||||
module.exports = reduceCSSCalc
|
||||
|
||||
/**
|
||||
* Reduce CSS calc() in a string, whenever it's possible
|
||||
*
|
||||
* @param {String} value css input
|
||||
*/
|
||||
function reduceCSSCalc(value, decimalPrecision) {
|
||||
stack = 0
|
||||
decimalPrecision = Math.pow(10, decimalPrecision === undefined ? 5 : decimalPrecision)
|
||||
|
||||
// Allow calc() on multiple lines
|
||||
value = value.replace(/\n+/g, " ")
|
||||
|
||||
/**
|
||||
* Evaluates an expression
|
||||
*
|
||||
* @param {String} expression
|
||||
* @returns {String}
|
||||
*/
|
||||
function evaluateExpression (expression, functionIdentifier, call) {
|
||||
if (stack++ > MAX_STACK) {
|
||||
stack = 0
|
||||
throw new Error("Call stack overflow for " + call)
|
||||
}
|
||||
|
||||
if (expression === "") {
|
||||
throw new Error(functionIdentifier + "(): '" + call + "' must contain a non-whitespace string")
|
||||
}
|
||||
|
||||
expression = evaluateNestedExpression(expression, call)
|
||||
|
||||
var units = getUnitsInExpression(expression)
|
||||
|
||||
// If the expression contains multiple units or CSS variables,
|
||||
// then let the expression be (i.e. browser calc())
|
||||
if (units.length > 1 || expression.indexOf("var(") > -1) {
|
||||
return functionIdentifier + "(" + expression + ")"
|
||||
}
|
||||
|
||||
var unit = units[0] || ""
|
||||
|
||||
if (unit === "%") {
|
||||
// Convert percentages to numbers, to handle expressions like: 50% * 50% (will become: 25%):
|
||||
// console.log(expression)
|
||||
expression = expression.replace(/\b[0-9\.]+%/g, function(percent) {
|
||||
return parseFloat(percent.slice(0, -1)) * 0.01
|
||||
})
|
||||
}
|
||||
|
||||
// Remove units in expression:
|
||||
var toEvaluate = expression.replace(new RegExp(unit, "gi"), "")
|
||||
var result
|
||||
|
||||
try {
|
||||
result = mexp.eval(toEvaluate)
|
||||
}
|
||||
catch (e) {
|
||||
return functionIdentifier + "(" + expression + ")"
|
||||
}
|
||||
|
||||
// Transform back to a percentage result:
|
||||
if (unit === "%") {
|
||||
result *= 100
|
||||
}
|
||||
|
||||
// adjust rounding shit
|
||||
// (0.1 * 0.2 === 0.020000000000000004)
|
||||
if (functionIdentifier.length || unit === "%") {
|
||||
result = Math.round(result * decimalPrecision) / decimalPrecision
|
||||
}
|
||||
|
||||
// Add unit
|
||||
result += unit
|
||||
|
||||
return result
|
||||
}
|
||||
|
||||
/**
|
||||
* Evaluates nested expressions
|
||||
*
|
||||
* @param {String} expression
|
||||
* @returns {String}
|
||||
*/
|
||||
function evaluateNestedExpression(expression, call) {
|
||||
// Remove the calc part from nested expressions to ensure
|
||||
// better browser compatibility
|
||||
expression = expression.replace(/((?:\-[a-z]+\-)?calc)/g, "")
|
||||
var evaluatedPart = ""
|
||||
var nonEvaluatedPart = expression
|
||||
var matches
|
||||
while ((matches = NESTED_CALC_RE.exec(nonEvaluatedPart))) {
|
||||
if (matches[0].index > 0) {
|
||||
evaluatedPart += nonEvaluatedPart.substring(0, matches[0].index)
|
||||
}
|
||||
|
||||
var balancedExpr = balanced("(", ")", nonEvaluatedPart.substring([0].index))
|
||||
if (balancedExpr.body === "") {
|
||||
throw new Error("'" + expression + "' must contain a non-whitespace string")
|
||||
}
|
||||
|
||||
var evaluated = evaluateExpression(balancedExpr.body, "", call)
|
||||
|
||||
evaluatedPart += balancedExpr.pre + evaluated
|
||||
nonEvaluatedPart = balancedExpr.post
|
||||
}
|
||||
|
||||
return evaluatedPart + nonEvaluatedPart
|
||||
}
|
||||
|
||||
return reduceFunctionCall(value, /((?:\-[a-z]+\-)?calc)\(/, evaluateExpression)
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks what units are used in an expression
|
||||
*
|
||||
* @param {String} expression
|
||||
* @returns {Array}
|
||||
*/
|
||||
|
||||
function getUnitsInExpression(expression) {
|
||||
var uniqueUnits = []
|
||||
var uniqueLowerCaseUnits = []
|
||||
var unitRegEx = /[\.0-9]([%a-z]+)/gi
|
||||
var matches = unitRegEx.exec(expression)
|
||||
|
||||
while (matches) {
|
||||
if (!matches || !matches[1]) {
|
||||
continue
|
||||
}
|
||||
|
||||
if (uniqueLowerCaseUnits.indexOf(matches[1].toLowerCase()) === -1) {
|
||||
uniqueUnits.push(matches[1])
|
||||
uniqueLowerCaseUnits.push(matches[1].toLowerCase())
|
||||
}
|
||||
|
||||
matches = unitRegEx.exec(expression)
|
||||
}
|
||||
|
||||
return uniqueUnits
|
||||
}
|
||||
5
node_modules/reduce-css-calc/node_modules/balanced-match/.npmignore
generated
vendored
5
node_modules/reduce-css-calc/node_modules/balanced-match/.npmignore
generated
vendored
@@ -1,5 +0,0 @@
|
||||
test
|
||||
.gitignore
|
||||
.travis.yml
|
||||
Makefile
|
||||
example.js
|
||||
21
node_modules/reduce-css-calc/node_modules/balanced-match/LICENSE.md
generated
vendored
21
node_modules/reduce-css-calc/node_modules/balanced-match/LICENSE.md
generated
vendored
@@ -1,21 +0,0 @@
|
||||
(MIT)
|
||||
|
||||
Copyright (c) 2013 Julian Gruber <julian@juliangruber.com>
|
||||
|
||||
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.
|
||||
91
node_modules/reduce-css-calc/node_modules/balanced-match/README.md
generated
vendored
91
node_modules/reduce-css-calc/node_modules/balanced-match/README.md
generated
vendored
@@ -1,91 +0,0 @@
|
||||
# balanced-match
|
||||
|
||||
Match balanced string pairs, like `{` and `}` or `<b>` and `</b>`. Supports regular expressions as well!
|
||||
|
||||
[](http://travis-ci.org/juliangruber/balanced-match)
|
||||
[](https://www.npmjs.org/package/balanced-match)
|
||||
|
||||
[](https://ci.testling.com/juliangruber/balanced-match)
|
||||
|
||||
## Example
|
||||
|
||||
Get the first matching pair of braces:
|
||||
|
||||
```js
|
||||
var balanced = require('balanced-match');
|
||||
|
||||
console.log(balanced('{', '}', 'pre{in{nested}}post'));
|
||||
console.log(balanced('{', '}', 'pre{first}between{second}post'));
|
||||
console.log(balanced(/\s+\{\s+/, /\s+\}\s+/, 'pre { in{nest} } post'));
|
||||
```
|
||||
|
||||
The matches are:
|
||||
|
||||
```bash
|
||||
$ node example.js
|
||||
{ start: 3, end: 14, pre: 'pre', body: 'in{nested}', post: 'post' }
|
||||
{ start: 3,
|
||||
end: 9,
|
||||
pre: 'pre',
|
||||
body: 'first',
|
||||
post: 'between{second}post' }
|
||||
{ start: 3, end: 17, pre: 'pre', body: 'in{nest}', post: 'post' }
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### var m = balanced(a, b, str)
|
||||
|
||||
For the first non-nested matching pair of `a` and `b` in `str`, return an
|
||||
object with those keys:
|
||||
|
||||
* **start** the index of the first match of `a`
|
||||
* **end** the index of the matching `b`
|
||||
* **pre** the preamble, `a` and `b` not included
|
||||
* **body** the match, `a` and `b` not included
|
||||
* **post** the postscript, `a` and `b` not included
|
||||
|
||||
If there's no match, `undefined` will be returned.
|
||||
|
||||
If the `str` contains more `a` than `b` / there are unmatched pairs, the first match that was closed will be used. For example, `{{a}` will match `['{', 'a', '']` and `{a}}` will match `['', 'a', '}']`.
|
||||
|
||||
### var r = balanced.range(a, b, str)
|
||||
|
||||
For the first non-nested matching pair of `a` and `b` in `str`, return an
|
||||
array with indexes: `[ <a index>, <b index> ]`.
|
||||
|
||||
If there's no match, `undefined` will be returned.
|
||||
|
||||
If the `str` contains more `a` than `b` / there are unmatched pairs, the first match that was closed will be used. For example, `{{a}` will match `[ 1, 3 ]` and `{a}}` will match `[0, 2]`.
|
||||
|
||||
## Installation
|
||||
|
||||
With [npm](https://npmjs.org) do:
|
||||
|
||||
```bash
|
||||
npm install balanced-match
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
(MIT)
|
||||
|
||||
Copyright (c) 2013 Julian Gruber <julian@juliangruber.com>
|
||||
|
||||
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.
|
||||
58
node_modules/reduce-css-calc/node_modules/balanced-match/index.js
generated
vendored
58
node_modules/reduce-css-calc/node_modules/balanced-match/index.js
generated
vendored
@@ -1,58 +0,0 @@
|
||||
module.exports = balanced;
|
||||
function balanced(a, b, str) {
|
||||
if (a instanceof RegExp) a = maybeMatch(a, str);
|
||||
if (b instanceof RegExp) b = maybeMatch(b, str);
|
||||
|
||||
var r = range(a, b, str);
|
||||
|
||||
return r && {
|
||||
start: r[0],
|
||||
end: r[1],
|
||||
pre: str.slice(0, r[0]),
|
||||
body: str.slice(r[0] + a.length, r[1]),
|
||||
post: str.slice(r[1] + b.length)
|
||||
};
|
||||
}
|
||||
|
||||
function maybeMatch(reg, str) {
|
||||
var m = str.match(reg);
|
||||
return m ? m[0] : null;
|
||||
}
|
||||
|
||||
balanced.range = range;
|
||||
function range(a, b, str) {
|
||||
var begs, beg, left, right, result;
|
||||
var ai = str.indexOf(a);
|
||||
var bi = str.indexOf(b, ai + 1);
|
||||
var i = ai;
|
||||
|
||||
if (ai >= 0 && bi > 0) {
|
||||
begs = [];
|
||||
left = str.length;
|
||||
|
||||
while (i >= 0 && !result) {
|
||||
if (i == ai) {
|
||||
begs.push(i);
|
||||
ai = str.indexOf(a, i + 1);
|
||||
} else if (begs.length == 1) {
|
||||
result = [ begs.pop(), bi ];
|
||||
} else {
|
||||
beg = begs.pop();
|
||||
if (beg < left) {
|
||||
left = beg;
|
||||
right = bi;
|
||||
}
|
||||
|
||||
bi = str.indexOf(b, i + 1);
|
||||
}
|
||||
|
||||
i = ai < bi && ai >= 0 ? ai : bi;
|
||||
}
|
||||
|
||||
if (begs.length) {
|
||||
result = [ left, right ];
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
75
node_modules/reduce-css-calc/node_modules/balanced-match/package.json
generated
vendored
75
node_modules/reduce-css-calc/node_modules/balanced-match/package.json
generated
vendored
@@ -1,75 +0,0 @@
|
||||
{
|
||||
"_from": "balanced-match@^0.4.2",
|
||||
"_id": "balanced-match@0.4.2",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-yz8+PHMtwPAe5wtAPzAuYddwmDg=",
|
||||
"_location": "/reduce-css-calc/balanced-match",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "balanced-match@^0.4.2",
|
||||
"name": "balanced-match",
|
||||
"escapedName": "balanced-match",
|
||||
"rawSpec": "^0.4.2",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^0.4.2"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/reduce-css-calc"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-0.4.2.tgz",
|
||||
"_shasum": "cb3f3e3c732dc0f01ee70b403f302e61d7709838",
|
||||
"_spec": "balanced-match@^0.4.2",
|
||||
"_where": "/Applications/XAMPP/xamppfiles/htdocs/wordpress/t-latehome/wp-content/plugins/opal-estate-pro/node_modules/reduce-css-calc",
|
||||
"author": {
|
||||
"name": "Julian Gruber",
|
||||
"email": "mail@juliangruber.com",
|
||||
"url": "http://juliangruber.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/juliangruber/balanced-match/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {},
|
||||
"deprecated": false,
|
||||
"description": "Match balanced character pairs, like \"{\" and \"}\"",
|
||||
"devDependencies": {
|
||||
"tape": "^4.6.0"
|
||||
},
|
||||
"homepage": "https://github.com/juliangruber/balanced-match",
|
||||
"keywords": [
|
||||
"match",
|
||||
"regexp",
|
||||
"test",
|
||||
"balanced",
|
||||
"parse"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"name": "balanced-match",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/juliangruber/balanced-match.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "make test"
|
||||
},
|
||||
"testling": {
|
||||
"files": "test/*.js",
|
||||
"browsers": [
|
||||
"ie/8..latest",
|
||||
"firefox/20..latest",
|
||||
"firefox/nightly",
|
||||
"chrome/25..latest",
|
||||
"chrome/canary",
|
||||
"opera/12..latest",
|
||||
"opera/next",
|
||||
"safari/5.1..latest",
|
||||
"ipad/6.0..latest",
|
||||
"iphone/6.0..latest",
|
||||
"android-browser/4.2..latest"
|
||||
]
|
||||
},
|
||||
"version": "0.4.2"
|
||||
}
|
||||
67
node_modules/reduce-css-calc/package.json
generated
vendored
67
node_modules/reduce-css-calc/package.json
generated
vendored
@@ -1,67 +0,0 @@
|
||||
{
|
||||
"_from": "reduce-css-calc@^1.2.6",
|
||||
"_id": "reduce-css-calc@1.3.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-dHyRTgSWFKTJz7umKYca0dKSdxY=",
|
||||
"_location": "/reduce-css-calc",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "reduce-css-calc@^1.2.6",
|
||||
"name": "reduce-css-calc",
|
||||
"escapedName": "reduce-css-calc",
|
||||
"rawSpec": "^1.2.6",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^1.2.6"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/postcss-calc"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/reduce-css-calc/-/reduce-css-calc-1.3.0.tgz",
|
||||
"_shasum": "747c914e049614a4c9cfbba629871ad1d2927716",
|
||||
"_spec": "reduce-css-calc@^1.2.6",
|
||||
"_where": "/Applications/XAMPP/xamppfiles/htdocs/wordpress/t-latehome/wp-content/plugins/opal-estate-pro/node_modules/postcss-calc",
|
||||
"author": {
|
||||
"name": "Maxime Thirouin"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/MoOx/reduce-css-calc/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"balanced-match": "^0.4.2",
|
||||
"math-expression-evaluator": "^1.2.14",
|
||||
"reduce-function-call": "^1.0.1"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Reduce CSS calc() function to the maximum",
|
||||
"devDependencies": {
|
||||
"jscs": "^1.5.9",
|
||||
"jshint": "^2.5.2",
|
||||
"npmpub": "^3.0.3",
|
||||
"tape": "^2.13.4"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"homepage": "https://github.com/MoOx/reduce-css-calc#readme",
|
||||
"keywords": [
|
||||
"css",
|
||||
"calculation",
|
||||
"calc"
|
||||
],
|
||||
"license": "MIT",
|
||||
"name": "reduce-css-calc",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/MoOx/reduce-css-calc.git"
|
||||
},
|
||||
"scripts": {
|
||||
"jscs": "jscs *.js **/*.js",
|
||||
"jshint": "jshint . --exclude node_modules",
|
||||
"release": "npmpub",
|
||||
"test": "npm run jscs && npm run jshint && tape test"
|
||||
},
|
||||
"version": "1.3.0"
|
||||
}
|
||||
Reference in New Issue
Block a user