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

arc-lasso

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arc-lasso - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0-alpha.0

26

index.js

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

var path = require('path');
var arcResolver = require('arc-resolver');
let path = require('path');
let AdaptiveFS = require('arc-fs');

@@ -7,22 +7,12 @@ module.exports = function(lasso, config) {

postResolve: function(resolvedInfo, lassoContext) {
var original = resolvedInfo.path;
if (/\.arc$/.test(original)) {
try {
resolvedInfo.path = require.resolve(arcResolver.adaptResource(resolvedInfo.path, lassoContext.flags.flagMap));
} catch(e) {
console.error(e);
throw e;
}
}
if (original != resolvedInfo.path) {
let afs = new AdaptiveFS({ flags: lassoContext.flags.flagMap });
let originalPath = resolvedInfo.path;
let adaptedPath = resolvedInfo.path = afs.resolveSync(originalPath);
if (originalPath != adaptedPath) {
delete resolvedInfo.meta;
console.log(original, '→', path.relative(path.dirname(original), resolvedInfo.path));
// console.log(originalPath, '→', path.relative(path.dirname(originalPath), adaptedPath));
}
}
}
lasso.dependencies.registerRequireType('arc', {
read: function() {
return 'throw new Error("Something went wrong with the arc-lasso plugin. The read function should not be called");';
}
});
}
{
"name": "arc-lasso",
"version": "1.0.0",
"version": "2.0.0-alpha.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "mocha"
},
"scripts": {},
"author": "Michael Rawlings <ml.rawlings@gmail.com>",
"license": "ISC",
"license": "MIT",
"dependencies": {
"arc-resolver": "^1.0.0",
"resolve": "^1.1.7"
"arc-fs": "^2.0.0-alpha.0"
},
"devDependencies": {
"chai": "^3.5.0",
"lerna": "^2.0.0-rc.5",
"mocha": "^3.2.0"
}
"lasso": "^3.1.3",
"mocha": "^3.2.0",
"nyc": "^11.3.0"
},
"gitHead": "4772d05c45bc1bfbc988b7ac97a96295b452c650"
}
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