Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

url-loader

Package Overview
Dependencies
Maintainers
6
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

url-loader - npm Package Compare versions

Comparing version 3.0.0 to 4.0.0

14

CHANGELOG.md

@@ -5,2 +5,16 @@ # Changelog

## [4.0.0](https://github.com/webpack-contrib/url-loader/compare/v3.0.0...v4.0.0) (2020-03-17)
### ⚠ BREAKING CHANGES
* **deps:** migrate on `mime-types` package, some rare types may have other mimetype
### Bug Fixes
* description on the `esModule` option ([#204](https://github.com/webpack-contrib/url-loader/issues/204)) ([a2f127d](https://github.com/webpack-contrib/url-loader/commit/a2f127d16b88cda3c38509821a51487a89827c28))
* **deps:** migrate on `mime-types` package ([#209](https://github.com/webpack-contrib/url-loader/issues/209)) ([fc8721f](https://github.com/webpack-contrib/url-loader/commit/fc8721f49626360dd81300085a747b3afa5acd38))
## [3.0.0](https://github.com/webpack-contrib/url-loader/compare/v2.0.0...v3.0.0) (2019-11-26)

@@ -7,0 +21,0 @@

6

dist/index.js

@@ -9,2 +9,4 @@ "use strict";

var _path = _interopRequireDefault(require("path"));
var _loaderUtils = require("loader-utils");

@@ -14,3 +16,3 @@

var _mime = _interopRequireDefault(require("mime"));
var _mimeTypes = _interopRequireDefault(require("mime-types"));

@@ -50,3 +52,3 @@ var _normalizeFallback = _interopRequireDefault(require("./utils/normalizeFallback"));

const mimetype = options.mimetype || _mime.default.getType(file);
const mimetype = options.mimetype || _mimeTypes.default.contentType(_path.default.extname(file));

@@ -53,0 +55,0 @@ if (typeof src === 'string') {

@@ -42,2 +42,3 @@ {

"esModule": {
"description": "By default, url-loader generates JS modules that use the ES modules syntax.",
"type": "boolean"

@@ -44,0 +45,0 @@ }

{
"name": "url-loader",
"version": "3.0.0",
"version": "4.0.0",
"description": "A loader for webpack which transforms files into base64 URIs",

@@ -50,32 +50,32 @@ "license": "MIT",

"dependencies": {
"loader-utils": "^1.2.3",
"mime": "^2.4.4",
"schema-utils": "^2.5.0"
"loader-utils": "^2.0.0",
"mime-types": "^2.1.26",
"schema-utils": "^2.6.5"
},
"devDependencies": {
"@babel/cli": "^7.7.4",
"@babel/core": "^7.7.4",
"@babel/preset-env": "^7.7.4",
"@commitlint/cli": "^8.2.0",
"@commitlint/config-conventional": "^8.2.0",
"@webpack-contrib/defaults": "^6.2.0",
"@babel/cli": "^7.8.4",
"@babel/core": "^7.8.7",
"@babel/preset-env": "^7.8.7",
"@commitlint/cli": "^8.3.5",
"@commitlint/config-conventional": "^8.3.4",
"@webpack-contrib/defaults": "^6.3.0",
"@webpack-contrib/eslint-config-webpack": "^3.0.0",
"babel-jest": "^24.9.0",
"commitlint-azure-pipelines-cli": "^1.0.2",
"cross-env": "^6.0.3",
"babel-jest": "^25.1.0",
"commitlint-azure-pipelines-cli": "^1.0.3",
"cross-env": "^7.0.2",
"del": "^5.1.0",
"del-cli": "^3.0.0",
"eslint": "^6.7.1",
"eslint-config-prettier": "^6.7.0",
"eslint-plugin-import": "^2.18.2",
"file-loader": "^5.0.2",
"husky": "^3.1.0",
"jest": "^24.9.0",
"jest-junit": "^9.0.0",
"lint-staged": "^9.4.3",
"memfs": "^2.16.1",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.10.0",
"eslint-plugin-import": "^2.20.1",
"file-loader": "^6.0.0",
"husky": "^4.2.3",
"jest": "^25.1.0",
"jest-junit": "^10.0.0",
"lint-staged": "^10.0.8",
"memfs": "^3.1.2",
"npm-run-all": "^4.1.5",
"prettier": "^1.19.1",
"standard-version": "^7.0.1",
"webpack": "^4.41.2"
"standard-version": "^7.1.0",
"webpack": "^4.42.0"
},

@@ -82,0 +82,0 @@ "keywords": [

@@ -186,4 +186,3 @@ <div align="center">

Sets the MIME type for the file to be transformed. If unspecified the file
extensions will be used to lookup the MIME type.
Sets the MIME type for the file to be transformed. If unspecified the file extensions will be used to lookup the MIME type.

@@ -190,0 +189,0 @@ **webpack.config.js**

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