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

scrat

Package Overview
Dependencies
Maintainers
2
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scrat - npm Package Compare versions

Comparing version 0.2.3-4 to 0.2.3-5

4

package.json
{
"name": "scrat",
"version": "0.2.3-4",
"version": "0.2.3-5",
"description": "uc front-end integrated solution",

@@ -20,3 +20,3 @@ "main": "index.js",

"fis": "1.7.8",
"scrat-command-install" : "0.1.2",
"scrat-command-install" : "0.1.4",
"scrat-command-server" : "0.0.8",

@@ -23,0 +23,0 @@ "scrat-parser-stylus" : "0.0.4",

module.exports = function(content, file){
if(file.isMod){
content = 'define(\'' + file.getId() + '\', function(require, exports, module){' + content + '\n\n});';
var componentJson = file.dirname + '/component.json';
var exports = '';
if(fis.util.isFile(componentJson)){
var json = require(componentJson);
if(json.exports){
var main = fis.util(file.dirname, json.main || 'index.js');
if(main === file.realpath){
exports = ';module.exports = ' + json.exports;
}
}
}
content = 'define(\'' + file.getId() + '\', function(require, exports, module){' + content + exports + '\n\n});';
}
return content;
};
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