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

json-import-loader

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-import-loader - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

lib/loader.js

@@ -21,5 +21,5 @@ "use strict";

var newContent = content.replace(/"import!(.*?)"/gi, function (_, group) {
return "(\n () => {\n var result = require(" + loaderUtils.stringifyRequest(loaderContext, group) + ")\n if (typeof result === 'function') {\n result = result();\n }\n return result;\n }\n)()";
return "(\n function() {\n var result = require(" + loaderUtils.stringifyRequest(loaderContext, group) + ")\n if (typeof result === 'function') {\n result = result();\n }\n return result;\n }\n)()";
});
done(null, newContent);
}
{
"name": "json-import-loader",
"version": "1.1.0",
"version": "1.1.1",
"description": "Allows import files into a json file, contains webpack-loader and node API.",

@@ -5,0 +5,0 @@ "main": "./index.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