Socket
Socket
Sign inDemoInstall

file-loader

Package Overview
Dependencies
Maintainers
7
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

file-loader - npm Package Compare versions

Comparing version 5.1.0 to 6.0.0

7

CHANGELOG.md

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

## [6.0.0](https://github.com/webpack-contrib/file-loader/compare/v5.1.0...v6.0.0) (2020-03-17)
### ⚠ BREAKING CHANGES
* use `md4` by default for hashing ([#369](https://github.com/webpack-contrib/file-loader/issues/369)) ([ad39022](https://github.com/webpack-contrib/file-loader/commit/ad3902284d28adeddf667212a39faa4c6bfb2964))
## [5.1.0](https://github.com/webpack-contrib/file-loader/compare/v5.0.2...v5.1.0) (2020-02-19)

@@ -7,0 +14,0 @@

3

dist/index.js

@@ -20,3 +20,4 @@ "use strict";

function loader(content) {
const options = _loaderUtils.default.getOptions(this) || {};
const options = _loaderUtils.default.getOptions(this);
(0, _schemaUtils.default)(_options.default, options, {

@@ -23,0 +24,0 @@ name: 'File Loader',

{
"name": "file-loader",
"version": "5.1.0",
"version": "6.0.0",
"description": "A file loader module for webpack",

@@ -44,9 +44,9 @@ "license": "MIT",

"dependencies": {
"loader-utils": "^1.4.0",
"schema-utils": "^2.5.0"
"loader-utils": "^2.0.0",
"schema-utils": "^2.6.5"
},
"devDependencies": {
"@babel/cli": "^7.8.4",
"@babel/core": "^7.8.4",
"@babel/preset-env": "^7.8.4",
"@babel/core": "^7.8.7",
"@babel/preset-env": "^7.8.7",
"@commitlint/cli": "^8.3.5",

@@ -58,3 +58,3 @@ "@commitlint/config-conventional": "^8.3.4",

"commitlint-azure-pipelines-cli": "^1.0.3",
"cross-env": "^7.0.0",
"cross-env": "^7.0.2",
"del": "^5.1.0",

@@ -68,4 +68,4 @@ "del-cli": "^3.0.0",

"jest-junit": "^10.0.0",
"lint-staged": "^10.0.7",
"memfs": "^3.1.1",
"lint-staged": "^10.0.8",
"memfs": "^3.1.2",
"memory-fs": "^0.5.0",

@@ -76,3 +76,3 @@ "npm-run-all": "^4.1.5",

"url-loader": "^3.0.0",
"webpack": "^4.41.6"
"webpack": "^4.42.0"
},

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

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

Type: `String|Function`
Default: [`__webpack_public_path__`](https://webpack.js.org/api/module-variables/#__webpack_public_path__-webpack-specific-)
Default: [`__webpack_public_path__`](https://webpack.js.org/api/module-variables/#__webpack_public_path__-webpack-specific-)+outputPath

@@ -470,3 +470,3 @@ Specifies a custom public path for the target file(s).

Type: `String`
Default: `md5`
Default: `md4`

@@ -478,3 +478,3 @@ Specifies the hash method to use for hashing the file content.

Type: `String`
Default: `md5`
Default: `md4`

@@ -501,6 +501,5 @@ Specifies the hash method to use for hashing the file content.

Type: `String`
Default: `'md5'`
Default: `'md4'`
The type of hash that the has function should use. Valid values include: `md5`,
`sha1`, `sha256`, and `sha512`.
The type of hash that the has function should use. Valid values include: `md4`, `md5`, `sha1`, `sha256`, and `sha512`.

@@ -507,0 +506,0 @@ #### `length`

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