Skip to content

Commit

Permalink
chore(package.json): Deps and version for release
Browse files Browse the repository at this point in the history
  • Loading branch information
bhough committed Jun 15, 2019
1 parent 1d9eb2a commit 6f1acd1
Show file tree
Hide file tree
Showing 4 changed files with 614 additions and 582 deletions.
12 changes: 7 additions & 5 deletions docs/assets/polished.js
Expand Up @@ -691,6 +691,10 @@
return generateStyles(property, valuesWithDefaults);
}

/**
* Check if a string ends with something
* @private
*/
function endsWith (string, suffix) {
return string.substr(-suffix.length) === suffix;
}
Expand Down Expand Up @@ -996,13 +1000,13 @@
throw new PolishedError(47);
}

if (typeof unitlessFromSize !== 'number' || typeof unitlessToSize !== 'number' || !fromSizeUnit || !toSizeUnit || fromSizeUnit !== toSizeUnit) {
if (typeof unitlessFromSize !== 'number' || typeof unitlessToSize !== 'number' || fromSizeUnit !== toSizeUnit) {
throw new PolishedError(48);
}

var slope = (unitlessFromSize - unitlessToSize) / (unitlessMinScreen - unitlessMaxScreen);
var base = unitlessToSize - slope * unitlessMaxScreen;
return "calc(" + base.toFixed(2) + fromSizeUnit + " + " + (100 * slope).toFixed(2) + "vw)";
return "calc(" + base.toFixed(2) + (fromSizeUnit || '') + " + " + (100 * slope).toFixed(2) + "vw)";
}

/**
Expand Down Expand Up @@ -3033,7 +3037,7 @@

/**
* Determines which contrast guidelines have been met for two colors.
* Based on the [contrast calculations recommended by W3](https://www.w3.org/TR/WCAG20/#visual-audio-contrast).
* Based on the [contrast calculations recommended by W3](https://www.w3.org/WAI/WCAG21/Understanding/contrast-enhanced.html).
*
* @example
* const scores = meetsContrastGuidelines('#444', '#fff');
Expand Down Expand Up @@ -4153,8 +4157,6 @@
}
}

// Math

exports.adjustHue = curriedAdjustHue;
exports.animation = animation;
exports.backgroundImages = backgroundImages;
Expand Down
10 changes: 5 additions & 5 deletions docs/docs/index.html
Expand Up @@ -1017,7 +1017,7 @@ <h3 class='fl m0' id='between'>
<p>Returns a CSS calc formula for linear interpolation of a property between two values. Accepts optional minScreen (defaults to '320px') and maxScreen (defaults to '1200px').</p>


<div class='pre p1 fill-light mt0'>between(fromSize: <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, toSize: <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, minScreen: <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, maxScreen: <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>): <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></div>
<div class='pre p1 fill-light mt0'>between(fromSize: (<a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a> | <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number">number</a>), toSize: (<a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a> | <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number">number</a>), minScreen: <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, maxScreen: <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>): <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></div>


<p>
Expand All @@ -1040,15 +1040,15 @@ <h3 class='fl m0' id='between'>

<div class='space-bottom0'>
<div>
<span class='code bold'>fromSize</span> <code class='quiet'>(<a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>)</code>
<span class='code bold'>fromSize</span> <code class='quiet'>((<a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a> | <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number">number</a>))</code>

</div>

</div>

<div class='space-bottom0'>
<div>
<span class='code bold'>toSize</span> <code class='quiet'>(<a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>)</code>
<span class='code bold'>toSize</span> <code class='quiet'>((<a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a> | <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number">number</a>))</code>

</div>

Expand Down Expand Up @@ -4471,7 +4471,7 @@ <h3 class='fl m0' id='meetscontrastguidelines'>


<p>Determines which contrast guidelines have been met for two colors.
Based on the <a href="https://www.w3.org/TR/WCAG20/#visual-audio-contrast">contrast calculations recommended by W3</a>.</p>
Based on the <a href="https://www.w3.org/WAI/WCAG21/Understanding/contrast-enhanced.html">contrast calculations recommended by W3</a>.</p>


<div class='pre p1 fill-light mt0'>meetsContrastGuidelines(color1: <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, color2: <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>): <a href="#contrastscores">ContrastScores</a></div>
Expand Down Expand Up @@ -9044,7 +9044,7 @@ <h3 class='fl m0' id='fluidrangeconfiguration'>

<p>
Type:
{prop: <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, fromSize: <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, toSize: <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>}
{prop: <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>, fromSize: (<a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a> | <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number">number</a>), toSize: (<a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a> | <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number">number</a>)}
</p>


Expand Down
34 changes: 17 additions & 17 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "polished",
"version": "3.4.0",
"version": "3.4.1",
"description": "A lightweight toolset for writing styles in Javascript.",
"license": "MIT",
"author": "Brian Hough <hello@brianhough.net> (https://polished.js.org)",
Expand Down Expand Up @@ -64,18 +64,18 @@
"build:lib": "src/**/*.js"
},
"dependencies": {
"@babel/runtime": "^7.4.4"
"@babel/runtime": "^7.4.5"
},
"devDependencies": {
"@babel/cli": "^7.4.4",
"@babel/core": "^7.4.4",
"@babel/core": "^7.4.5",
"@babel/plugin-transform-runtime": "^7.4.4",
"@babel/polyfill": "^7.4.4",
"@babel/preset-env": "^7.4.4",
"@babel/preset-env": "^7.4.5",
"@babel/preset-flow": "^7.0.0",
"babel-eslint": "^10.0.1",
"babel-jest": "^24.7.1",
"babel-loader": "^8.0.5",
"babel-jest": "^24.8.0",
"babel-loader": "^8.0.6",
"babel-plugin-add-module-exports": "^1.0.2",
"babel-plugin-annotate-pure-calls": "^0.4.0",
"babel-plugin-preval": "3.0.1",
Expand All @@ -85,27 +85,27 @@
"documentation": "9.3.1",
"eslint": "^5.16.0",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-plugin-import": "^2.17.2",
"flow-bin": "^0.98.0",
"flow-copy-source": "^2.0.4",
"eslint-plugin-import": "^2.17.3",
"flow-bin": "^0.101.0",
"flow-copy-source": "^2.0.6",
"flow-coverage-report": "^0.6.1",
"husky": "^2.2.0",
"jest": "^24.7.1",
"lint-staged": "^8.1.6",
"husky": "^2.4.1",
"jest": "^24.8.0",
"lint-staged": "^8.2.1",
"lodash": "^4.17.11",
"npm-watch": "^0.6.0",
"prettier": "^1.17.0",
"prettier": "^1.18.2",
"pushstate-server": "3.1.0",
"ramda": "^0.26.1",
"rollup": "^1.11.2",
"rollup": "^1.15.5",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-node-resolve": "^4.2.3",
"rollup-plugin-node-resolve": "^5.0.2",
"rollup-plugin-replace": "^2.2.0",
"rollup-plugin-uglify": "^6.0.2",
"semantic-release": "^15.13.3",
"semantic-release": "^15.13.16",
"shx": "^0.3.2",
"tsgen": "1.3.0",
"typescript": "3.4.5",
"typescript": "3.5.2",
"validate-commit-msg": "^2.14.0",
"vinyl": "^2.2.0",
"vinyl-fs": "^3.0.2"
Expand Down

0 comments on commit 6f1acd1

Please sign in to comment.