file-loader
Advanced tools
Comparing version 4.0.0 to 4.1.0
@@ -5,2 +5,11 @@ # Changelog | ||
## [4.1.0](https://github.com/webpack-contrib/file-loader/compare/v4.0.0...v4.1.0) (2019-07-18) | ||
### Features | ||
* improved validation error messages ([#339](https://github.com/webpack-contrib/file-loader/issues/339)) ([705eed4](https://github.com/webpack-contrib/file-loader/commit/705eed4)) | ||
## [4.0.0](https://github.com/webpack-contrib/file-loader/compare/v3.0.1...v4.0.0) (2019-06-05) | ||
@@ -7,0 +16,0 @@ |
@@ -21,3 +21,6 @@ "use strict"; | ||
const options = _loaderUtils.default.getOptions(this) || {}; | ||
(0, _schemaUtils.default)(_options.default, options, 'File Loader'); | ||
(0, _schemaUtils.default)(_options.default, options, { | ||
name: 'File Loader', | ||
baseDataPath: 'options' | ||
}); | ||
const context = options.context || this.rootContext; | ||
@@ -24,0 +27,0 @@ |
@@ -5,2 +5,3 @@ { | ||
"name": { | ||
"description": "The filename template for the target file(s) (https://github.com/webpack-contrib/file-loader#name).", | ||
"anyOf": [ | ||
@@ -16,2 +17,3 @@ { | ||
"outputPath": { | ||
"description": "A filesystem path where the target file(s) will be placed (https://github.com/webpack-contrib/file-loader#outputpath).", | ||
"anyOf": [ | ||
@@ -27,2 +29,3 @@ { | ||
"publicPath": { | ||
"description": "A custom public path for the target file(s) (https://github.com/webpack-contrib/file-loader#publicpath).", | ||
"anyOf": [ | ||
@@ -38,8 +41,11 @@ { | ||
"context": { | ||
"description": "A custom file context (https://github.com/webpack-contrib/file-loader#context).", | ||
"type": "string" | ||
}, | ||
"emitFile": { | ||
"description": "Enables/Disables emit files (https://github.com/webpack-contrib/file-loader#emitfile).", | ||
"type": "boolean" | ||
}, | ||
"regExp": { | ||
"description": "A Regular Expression to one or many parts of the target file path. The capture groups can be reused in the name property using [N] placeholder (https://github.com/webpack-contrib/file-loader#regexp).", | ||
"anyOf": [ | ||
@@ -55,11 +61,3 @@ { | ||
}, | ||
"errorMessages": { | ||
"name": "should be {String} or {Function} (https://github.com/webpack-contrib/file-loader#name)", | ||
"outputPath": "should be {String} or {Function} (https://github.com/webpack-contrib/file-loader#outputpath)", | ||
"publicPath": "should be {String} or {Function} (https://github.com/webpack-contrib/file-loader#publicpath)", | ||
"context": "should be {String} (https://github.com/webpack-contrib/file-loader#context)", | ||
"emitFile": "should be {Boolean} (https://github.com/webpack-contrib/file-loader#emitfile)", | ||
"regExp": "should be {String} or {RegExp} (https://github.com/webpack-contrib/file-loader#regexp)" | ||
}, | ||
"type": "object" | ||
} |
{ | ||
"name": "file-loader", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"description": "A file loader module for webpack", | ||
@@ -40,12 +40,12 @@ "license": "MIT", | ||
"dependencies": { | ||
"loader-utils": "^1.2.2", | ||
"schema-utils": "^1.0.0" | ||
"loader-utils": "^1.2.3", | ||
"schema-utils": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.2.0", | ||
"@babel/core": "^7.2.2", | ||
"@babel/preset-env": "^7.2.0", | ||
"@commitlint/cli": "^8.0.0", | ||
"@commitlint/config-conventional": "^8.0.0", | ||
"@webpack-contrib/defaults": "^5.0.0", | ||
"@babel/cli": "^7.5.5", | ||
"@babel/core": "^7.5.5", | ||
"@babel/preset-env": "^7.5.5", | ||
"@commitlint/cli": "^8.1.0", | ||
"@commitlint/config-conventional": "^8.1.0", | ||
"@webpack-contrib/defaults": "^5.0.2", | ||
"@webpack-contrib/eslint-config-webpack": "^3.0.0", | ||
@@ -55,17 +55,17 @@ "babel-jest": "^24.8.0", | ||
"cross-env": "^5.2.0", | ||
"del": "^4.1.1", | ||
"del": "^5.0.0", | ||
"del-cli": "^2.0.0", | ||
"eslint": "^5.16.0", | ||
"eslint-config-prettier": "^4.3.0", | ||
"eslint-plugin-import": "^2.17.3", | ||
"husky": "^2.3.0", | ||
"eslint": "^6.0.1", | ||
"eslint-config-prettier": "^6.0.0", | ||
"eslint-plugin-import": "^2.18.0", | ||
"husky": "^3.0.0", | ||
"jest": "^24.8.0", | ||
"jest-junit": "^6.4.0", | ||
"lint-staged": "^8.1.7", | ||
"lint-staged": "^9.2.0", | ||
"memory-fs": "^0.4.1", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "^1.17.1", | ||
"prettier": "^1.18.2", | ||
"standard-version": "^6.0.1", | ||
"url-loader": "^1.1.2", | ||
"webpack": "^4.33.0" | ||
"url-loader": "^2.0.1", | ||
"webpack": "^4.36.1" | ||
}, | ||
@@ -72,0 +72,0 @@ "keywords": [ |
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
28934
107
+ Added@types/json-schema@7.0.15(transitive)
+ Addedschema-utils@2.7.1(transitive)
Updatedloader-utils@^1.2.3
Updatedschema-utils@^2.0.0