Socket
Socket
Sign inDemoInstall

add-component-symlinks

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

add-component-symlinks - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

5

History.md
1.0.3 / 2014-02-24
==================
* index: fix Windows
1.0.2 / 2014-02-19

@@ -3,0 +8,0 @@ ==================

10

index.es6.js

@@ -86,3 +86,11 @@

console.log('adding symlink %j -> %j', src, component.name);
yield fs.symlink(src, dst, resume());
var type;
if (/win/.test(process.platform)) {
// on Windows, we must absolutize the arguments, otherwise node
// will attempt to do it for us and actually get it wrong...
type = 'junction';
src = path.resolve(nodeModulesDir, src);
dst = path.resolve(nodeModulesDir, dst);
}
yield fs.symlink(src, dst, type, resume());

@@ -89,0 +97,0 @@ });

28

index.js

@@ -407,3 +407,3 @@

var processDir = suspend.async(wrapGenerator.mark(function(dirname) {
var stat, componentPath, component, data, nodeModulesDir, src, dst;
var stat, componentPath, component, data, nodeModulesDir, src, dst, type;

@@ -425,3 +425,3 @@ return wrapGenerator(function($ctx1) {

$ctx1.catch("end");
$ctx1.next = 59;
$ctx1.next = 60;
break;

@@ -435,3 +435,3 @@ case 8:

$ctx1.catch("end");
$ctx1.next = 59;
$ctx1.next = 60;
break;

@@ -445,3 +445,3 @@ case 12:

$ctx1.catch("end");
$ctx1.next = 59;
$ctx1.next = 60;
break;

@@ -475,3 +475,3 @@ case 16:

$ctx1.catch("end");
$ctx1.next = 59;
$ctx1.next = 60;
break;

@@ -490,3 +490,3 @@ case 32:

$ctx1.catch("end");
$ctx1.next = 59;
$ctx1.next = 60;
break;

@@ -513,3 +513,3 @@ case 40:

$ctx1.catch("end");
$ctx1.next = 59;
$ctx1.next = 60;
break;

@@ -527,5 +527,13 @@ case 54:

$ctx1.next = 59;
return fs.symlink(src, dst, resume());
case 59:
if (/win/.test(process.platform)) {
// on Windows, we must absolutize the arguments, otherwise node
// will attempt to do it for us and actually get it wrong...
type = 'junction';
src = path.resolve(nodeModulesDir, src);
dst = path.resolve(nodeModulesDir, dst);
}
$ctx1.next = 60;
return fs.symlink(src, dst, type, resume());
case 60:
case "end":

@@ -532,0 +540,0 @@ return $ctx1.stop();

{
"name": "add-component-symlinks",
"version": "1.0.2",
"version": "1.0.3",
"description": "Adds symlinks to the node_modules dir to fix component require() calls",

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