Socket
Socket
Sign inDemoInstall

gatsby-module-loader

Package Overview
Dependencies
Maintainers
2
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-module-loader - npm Package Compare versions

Comparing version 2.0.0-alpha.9da1bca1 to 2.0.0-alpha.9fe50b00

13

index.js

@@ -1,9 +0,3 @@

"use strict";
var _JSON$stringify = require("@babel/runtime/core-js/json/stringify");
var _stringify = require("babel-runtime/core-js/json/stringify");
var _stringify2 = _interopRequireDefault(_stringify);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/*

@@ -18,5 +12,5 @@ Based on Tobias Koppers @sokra bundle-loader

module.exports = function () {};
module.exports.pitch = function (remainingRequest) {
this.cacheable && this.cacheable();
var query = loaderUtils.getOptions(this) || {};

@@ -33,5 +27,4 @@ var chunkName = "";

var request = loaderUtils.stringifyRequest(this, "!!" + remainingRequest);
var chunkComment = chunkName && "/* webpackChunkName: " + (0, _stringify2.default)(chunkName) + " */ ";
var chunkComment = chunkName && "/* webpackChunkName: " + _JSON$stringify(chunkName) + " */ ";
return "module.exports = () => import(" + chunkComment + request + ")";
};
{
"name": "gatsby-module-loader",
"version": "2.0.0-alpha.9da1bca1",
"description": "_Based on https://github.com/webpack/bundle-loader and https://github.com/NekR/async-module-loader_",
"main": "index.js",
"scripts": {
"build": "babel src --out-dir . --ignore __tests__",
"watch": "babel -w src --out-dir . --ignore __tests__",
"test": "echo \"Error: no test specified\" && exit 1",
"prepublish": "cross-env NODE_ENV=production npm run build"
"version": "2.0.0-alpha.9fe50b00",
"author": "Kyle Mathews <mathews.kyle@gmail.com>",
"bugs": {
"url": "https://github.com/gatsbyjs/gatsby/issues"
},
"author": "Kyle Mathews <mathews.kyle@gmail.com>",
"license": "MIT",
"dependencies": {
"babel-runtime": "^6.26.0",
"@babel/runtime": "^7.0.0-beta.38",
"common-tags": "^1.4.0",

@@ -21,5 +16,16 @@ "dedent": "^0.7.0",

"devDependencies": {
"babel-cli": "^6.26.0",
"@babel/cli": "^7.0.0-beta.38",
"@babel/core": "^7.0.0-beta.38",
"cross-env": "^5.0.5"
},
"homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-module-loader#readme",
"license": "MIT",
"main": "index.js",
"repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-module-loader",
"scripts": {
"build": "babel src --out-dir . --ignore __tests__",
"prepublish": "cross-env NODE_ENV=production npm run build",
"test": "echo \"Error: no test specified\" && exit 1",
"watch": "babel -w src --out-dir . --ignore __tests__"
}
}

@@ -1,4 +0,3 @@

"use strict";
module.exports = function () {};
module.exports = function () {};
module.exports.prototype.apply = function (compiler) {

@@ -9,3 +8,2 @@ compiler.plugin("compilation", function (compilation) {

var buf = [];
buf.push("");

@@ -15,3 +13,2 @@ buf.push("");

buf.push(this.requireFn + ".s = installedChunks;");
return source + this.asString(buf);

@@ -18,0 +15,0 @@ }

Sorry, the diff of this file is not supported yet

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