New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

postcss-import-url

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-import-url - npm Package Compare versions

Comparing version 2.2.0 to 3.0.1

LICENSE

1

index.js

@@ -18,2 +18,3 @@ var postcss = require("postcss");

return function importUrl(tree, dummy, parentRemoteFile) {
parentRemoteFile = parentRemoteFile || tree.source.input.file;
var imports = [];

@@ -20,0 +21,0 @@ tree.walkAtRules("import", function checkAtRule(atRule) {

29

package.json
{
"name": "postcss-import-url",
"version": "2.2.0",
"version": "3.0.1",
"description": "PostCSS plugin inlines remote files.",

@@ -10,21 +10,24 @@ "keywords": [

],
"license": "Beerware",
"license": "MIT",
"homepage": "https://github.com/unlight/postcss-import-url",
"dependencies": {
"http-https": "^1.0.0",
"is-url": "^1.2.1",
"lodash.assign": "^4.0.9",
"lodash.trim": "^4.4.0",
"postcss": "^5.0.2",
"resolve-relative-url": "1.0.0"
"is-url": "^1.2.2",
"lodash.assign": "^4.2.0",
"lodash.trim": "^4.5.1",
"resolve-relative-url": "^1.0.0"
},
"peerDependencies": {
"postcss": "^6.0.13"
},
"devDependencies": {
"chai": "^3.2.0",
"gulp": "^3.9.0",
"gulp-connect": "4.1.0",
"gulp-eslint": "3.0.1",
"gulp-mocha": "^2.1.3",
"tcp-ping": "0.1.1"
"chai": "^4.1.2",
"gulp": "^3.9.1",
"gulp-connect": "^5.0.0",
"gulp-eslint": "^4.0.0",
"gulp-mocha": "^4.3.1",
"tcp-ping": "^0.1.1"
},
"scripts": {
"pretest": "npm install postcss",
"test": "gulp"

@@ -31,0 +34,0 @@ },

# postcss-import-url
[PostCSS](https://github.com/postcss/postcss) plugin inlines remote files.

@@ -30,3 +29,7 @@

var options = {};
postcss([importUrl(options)]);
postcss([importUrl(options)])
.process(css, {
// Define a `from` option to resolve relative @imports in the initial css to a url.
from: 'http://example.com/styles.css',
});
```

@@ -42,6 +45,9 @@

## Known Issues
* Google fonts returns different file types per the user agent. Because postcss runs in a shell,
* Google fonts returns different file types per the user agent. Because postcss runs in a shell,
Google returns truetype fonts rather than the better woff2 format.
Use option `modernBrowser` to explicitly load woff2 fonts.
## Changelog
* 3.0.1 (30 Oct 2017) - updated dependencies (postcss 6), moved postcss to peerDependencies
* 3.0.0 (27 Oct 2017) - using `atRule.source.input.file` to resolve urls
* 2.2.0 (19 Nov 2016) - added option modernBrowser

@@ -51,2 +57,2 @@ * 2.1.1 (19 Oct 2016) - added to readme google font notice

* 2.0.0 (08 Jul 2016) - added recursive option
* 1.0.0 (01 Nov 2015) - first release
* 1.0.0 (01 Nov 2015) - first release
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc