Socket
Socket
Sign inDemoInstall

imports-loader

Package Overview
Dependencies
Maintainers
10
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imports-loader - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

9

dist/utils.js

@@ -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",

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