New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eyeglass

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eyeglass - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

9

lib/importers/ModuleImporter.js

@@ -90,5 +90,8 @@ "use strict";

var isRealFile = fileUtils.existsSync(prev);
var fragments = uri.split("/");
var moduleName = fragments[0];
var relativePath = fragments.slice(1).join("/");
// pattern to match moduleName/relativePath
// $1 = moduleName (foo or @scope/foo)
// $2 = relativePath
var match = /^((?:@[^\/]+\/[^\/]+)|(?:[^\/]+))\/?(.*)/.exec(uri);
var moduleName = match && match[1];
var relativePath = match && match[2];
var mod = eyeglass.modules.access(moduleName, isRealFile ? prev : root);

@@ -95,0 +98,0 @@ var sassDir;

@@ -22,2 +22,8 @@ "use strict";

var pkg = packageUtils.getPackage(mod.path);
// if pkg.data is empty, this is an invalid path, so throw an error
if (!pkg.data) {
throw new Error("Could not find a valid package.json at " + mod.path);
}
var modulePath = fs.realpathSync(path.dirname(pkg.path));

@@ -24,0 +30,0 @@ mod.path = modulePath;

@@ -50,3 +50,3 @@ "use strict";

return dependencies;
}, moduleTree.dependencies);
}.bind(this), moduleTree.dependencies);
}

@@ -53,0 +53,0 @@

{
"name": "eyeglass",
"description": "Sass modules for npm.",
"version": "1.1.2",
"version": "1.1.3",
"author": {

@@ -34,7 +34,7 @@ "name": "The eyeglass team and contributors",

"debug": "^2.2.0",
"fs-extra": "^0.24.0",
"glob": "^5.0.15",
"lodash.includes": "^3.1.3",
"lodash.merge": "^3.3.2",
"node-sass": "^3.8.0",
"fs-extra": "^0.30.0",
"glob": "^7.1.0",
"lodash.includes": "^4.3.0",
"lodash.merge": "^4.6.0",
"node-sass": "^3.10.1",
"node-sass-utils": "^1.1.2",

@@ -55,4 +55,4 @@ "semver": "^5.0.3"

"handlebars": "^4.0.5",
"mocha": "^2.3.3",
"should": "^7.1.0"
"mocha": "^3.1.0",
"should": "^11.1.0"
},

@@ -59,0 +59,0 @@ "files": [

@@ -64,6 +64,10 @@ [![CI Status](https://travis-ci.org/sass-eyeglass/eyeglass.svg?branch=master)](https://travis-ci.org/sass-eyeglass/eyeglass)

}
]
],
engines: {
sass: sass
}
}
};
sass.render(eyeglass(options), sass));
sass.render(eyeglass(options)));
```

@@ -148,2 +152,6 @@

]
},
engines: {
sass: sass
}

@@ -153,3 +161,3 @@ }

// Standard node-sass rendering of a single file.
sass.render(eyeglass(options, sass), function(err, result) {
sass.render(eyeglass(options), function(err, result) {
// handle results

@@ -582,6 +590,9 @@ });

eyeglass: {
engines: {
sass: sass
},
normalizePaths: false
}
};
sass.render(eyeglass(options), sass));
sass.render(eyeglass(options)));
```

@@ -588,0 +599,0 @@

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