Socket
Socket
Sign inDemoInstall

mendel-development

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mendel-development - npm Package Compare versions

Comparing version 1.0.2 to 1.0.5

apply-extra-options.js

2

mendelify-transform-stream.js

@@ -26,2 +26,4 @@ /* Copyright 2015, Yahoo Inc.

row.rawSource = row.source;
row.source = mendelifyRequireTransform(row.file, row.source, variations);

@@ -28,0 +30,0 @@ row.sha = shasum(row.source);

5

package.json
{
"name": "mendel-development",
"version": "1.0.2",
"version": "1.0.5",
"description": "Mendel shared dependencies for build and development",

@@ -21,4 +21,5 @@ "main": "index.js",

"shasum": "^1.0.2",
"through2": "^2.0.1"
"through2": "^2.0.1",
"glob": "^7.0.3"
}
}

@@ -7,2 +7,3 @@ /* Copyright 2015, Yahoo Inc.

var isRequire = require('./falafel-util').isRequire;
var variationMatches = require('./variation-matches');

@@ -18,3 +19,3 @@ var wrapper = [

function replaceRequiresOnSource (src, wrap) {
function replaceRequiresOnSource (src, dirs, wrap) {
var opts = {

@@ -27,3 +28,7 @@ ecmaVersion: 6,

var module = node.arguments[0].value;
node.update("__mendel_require__('" + module + "')");
var match = variationMatches([{chain: dirs}], module);
if (match) {
node.update("__mendel_require__('" + match.file + "')");
}
}

@@ -30,0 +35,0 @@ }).toString();

@@ -9,3 +9,3 @@ /* Copyright 2015, Yahoo Inc.

variations.some(function(variation) {
variation.chain.some(function(dir) {
return variation.chain.some(function(dir) {
var parts = path.split(new RegExp("/"+dir+"/"));

@@ -12,0 +12,0 @@ var found = parts.length > 1;

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