imports-loader
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -6,5 +6,5 @@ "use strict"; | ||
}); | ||
exports.sourceHasUseStrict = sourceHasUseStrict; | ||
exports.getImports = getImports; | ||
exports.renderImports = renderImports; | ||
exports.sourceHasUseStrict = sourceHasUseStrict; | ||
@@ -25,5 +25,10 @@ var _path = _interopRequireDefault(require("path")); | ||
return matchRelativePath.test(str); | ||
} | ||
} // TODO simplify for the next major release | ||
function stringifyRequest(loaderContext, request) { | ||
if (typeof loaderContext.utils !== "undefined" && typeof loaderContext.utils.contextify === "function") { | ||
return JSON.stringify(loaderContext.utils.contextify(loaderContext.context, request)); | ||
} | ||
const splitted = request.split("!"); | ||
@@ -30,0 +35,0 @@ const { |
{ | ||
"name": "imports-loader", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "imports loader module for webpack", | ||
@@ -50,15 +50,15 @@ "license": "MIT", | ||
"@babel/preset-env": "^7.14.2", | ||
"@commitlint/cli": "^12.1.4", | ||
"@commitlint/config-conventional": "^12.1.4", | ||
"@commitlint/cli": "^13.2.1", | ||
"@commitlint/config-conventional": "^13.2.0", | ||
"@webpack-contrib/eslint-config-webpack": "^3.0.0", | ||
"babel-jest": "^26.6.3", | ||
"babel-jest": "^27.3.1", | ||
"babel-loader": "^8.2.2", | ||
"cross-env": "^7.0.3", | ||
"del": "^6.0.0", | ||
"del-cli": "^3.0.1", | ||
"eslint": "^7.26.0", | ||
"del-cli": "^4.0.1", | ||
"eslint": "^8.0.1", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-import": "^2.23.2", | ||
"husky": "^6.0.0", | ||
"jest": "^26.6.3", | ||
"husky": "^7.0.0", | ||
"jest": "^27.3.1", | ||
"lint-staged": "^11.0.0", | ||
@@ -65,0 +65,0 @@ "memfs": "^3.2.2", |
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
35647
465