inline-css
Advanced tools
Comparing version 2.6.3 to 3.0.0
{ | ||
"name": "inline-css", | ||
"version": "2.6.3", | ||
"version": "3.0.0", | ||
"description": "Inline css into an html file.", | ||
@@ -9,5 +9,5 @@ "main": "index.js", | ||
"css-rules": "^1.0.9", | ||
"extract-css": "^1.5.4", | ||
"flat-util": "^1.1.1", | ||
"pick-util": "^1.0.1", | ||
"extract-css": "^2.0.0", | ||
"flat-util": "^1.1.6", | ||
"pick-util": "^1.1.3", | ||
"slick": "^1.12.2", | ||
@@ -17,10 +17,10 @@ "specificity": "^0.4.1" | ||
"devDependencies": { | ||
"babel-eslint": "^10.0.3", | ||
"coveralls": "^3.0.9", | ||
"eslint": "^6.8.0", | ||
"lerna": "^3.20.2", | ||
"mocha": "^7.0.0", | ||
"nyc": "^15.0.0", | ||
"babel-eslint": "^10.1.0", | ||
"coveralls": "^3.1.0", | ||
"eslint": "^7.12.0", | ||
"lerna": "^3.22.1", | ||
"mocha": "^8.2.0", | ||
"nyc": "^15.1.0", | ||
"should": "^13.2.3", | ||
"vinyl": "^2.2.0" | ||
"vinyl": "^2.2.1" | ||
}, | ||
@@ -27,0 +27,0 @@ "engines": { |
@@ -129,22 +129,4 @@ # inline-css [![npm](http://img.shields.io/npm/v/inline-css.svg?style=flat)](https://badge.fury.io/js/inline-css) [![Build Status](https://travis-ci.org/jonkemp/inline-css.svg?branch=master)](https://travis-ci.org/jonkemp/inline-css) [![Coverage Status](https://coveralls.io/repos/jonkemp/inline-css/badge.svg?branch=master&service=github)](https://coveralls.io/github/jonkemp/inline-css?branch=master) | ||
How to resolve hrefs. Must be a string of one character or more. **Required**. | ||
How to resolve hrefs. **Required**. | ||
Relative urls in links will have this value prepended to them. So these links: | ||
* `<a href="page-relative">Page</a>` | ||
* `<a href="/root-relative">Root</a>` <- _note leading /_ | ||
With this option: | ||
```js | ||
inlineCss(html, { url: 'http://example.com/mushroom'}) | ||
.then(function(html) { console.log(html); }); | ||
``` | ||
Will result in | ||
* `<a href="http://example.com/mushroom/page-relative">Page</a>` | ||
* `<a href="http://example.com/root-relative">Root</a>` | ||
If you don't need this feature, simply set the property to a short string eg `{url: ' '}` (one space) and everything will work. | ||
#### options.preserveMediaQueries | ||
@@ -151,0 +133,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19764
185
+ Addedaxios@1.7.7(transitive)
+ Addedextract-css@2.0.1(transitive)
+ Addedfollow-redirects@1.15.9(transitive)
+ Addedform-data@4.0.0(transitive)
+ Addedhref-content@2.0.3(transitive)
+ Addedremote-content@4.0.0(transitive)
- Removed@tootallnate/once@1.1.2(transitive)
- Removedagent-base@6.0.2(transitive)
- Removedast-types@0.13.4(transitive)
- Removedbytes@3.1.2(transitive)
- Removedcall-bind@1.0.7(transitive)
- Removedcomponent-emitter@1.3.1(transitive)
- Removedcookiejar@2.1.4(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removeddata-uri-to-buffer@3.0.1(transitive)
- Removeddebug@3.2.74.3.7(transitive)
- Removeddeep-is@0.1.4(transitive)
- Removeddefine-data-property@1.1.4(transitive)
- Removeddegenerator@2.2.0(transitive)
- Removeddepd@2.0.0(transitive)
- Removedes-define-property@1.0.0(transitive)
- Removedes-errors@1.3.0(transitive)
- Removedescodegen@1.14.3(transitive)
- Removedesprima@4.0.1(transitive)
- Removedestraverse@4.3.0(transitive)
- Removedesutils@2.0.3(transitive)
- Removedextract-css@1.5.5(transitive)
- Removedfast-levenshtein@2.0.6(transitive)
- Removedfast-safe-stringify@2.1.1(transitive)
- Removedfile-uri-to-path@2.0.0(transitive)
- Removedform-data@3.0.1(transitive)
- Removedformidable@1.2.6(transitive)
- Removedfs-extra@8.1.0(transitive)
- Removedftp@0.3.10(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedget-intrinsic@1.2.4(transitive)
- Removedget-uri@3.0.2(transitive)
- Removedgopd@1.0.1(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedhas-property-descriptors@1.0.2(transitive)
- Removedhas-proto@1.0.3(transitive)
- Removedhas-symbols@1.0.3(transitive)
- Removedhasown@2.0.2(transitive)
- Removedhref-content@1.2.3(transitive)
- Removedhttp-errors@2.0.0(transitive)
- Removedhttp-proxy-agent@4.0.1(transitive)
- Removedhttps-proxy-agent@5.0.1(transitive)
- Removediconv-lite@0.4.24(transitive)
- Removedip@1.1.9(transitive)
- Removedip-address@9.0.5(transitive)
- Removedisarray@0.0.1(transitive)
- Removedjsbn@1.1.0(transitive)
- Removedjsonfile@4.0.0(transitive)
- Removedlevn@0.3.0(transitive)
- Removedlru-cache@5.1.1(transitive)
- Removedmethods@1.1.2(transitive)
- Removedmime@2.6.0(transitive)
- Removedms@2.1.3(transitive)
- Removednetmask@2.0.2(transitive)
- Removedobject-inspect@1.13.2(transitive)
- Removedoptionator@0.8.3(transitive)
- Removedpac-proxy-agent@4.1.0(transitive)
- Removedpac-resolver@4.2.0(transitive)
- Removedprelude-ls@1.1.2(transitive)
- Removedproxy-agent@4.0.1(transitive)
- Removedqs@6.13.0(transitive)
- Removedraw-body@2.5.2(transitive)
- Removedreadable-stream@1.1.14(transitive)
- Removedremote-content@1.2.3(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsemver@7.6.3(transitive)
- Removedset-function-length@1.2.2(transitive)
- Removedsetprototypeof@1.2.0(transitive)
- Removedside-channel@1.0.6(transitive)
- Removedsmart-buffer@4.2.0(transitive)
- Removedsocks@2.8.3(transitive)
- Removedsocks-proxy-agent@5.0.1(transitive)
- Removedsource-map@0.6.1(transitive)
- Removedsprintf-js@1.1.3(transitive)
- Removedstatuses@2.0.1(transitive)
- Removedstring_decoder@0.10.31(transitive)
- Removedsuperagent@5.3.1(transitive)
- Removedsuperagent-proxy@2.1.0(transitive)
- Removedtoidentifier@1.0.1(transitive)
- Removedtslib@2.7.0(transitive)
- Removedtype-check@0.3.2(transitive)
- Removeduniversalify@0.1.2(transitive)
- Removedunpipe@1.0.0(transitive)
- Removedword-wrap@1.2.5(transitive)
- Removedxregexp@2.0.0(transitive)
- Removedyallist@3.1.1(transitive)
Updatedextract-css@^2.0.0
Updatedflat-util@^1.1.6
Updatedpick-util@^1.1.3