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

cmacc-compiler

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cmacc-compiler - npm Package Compare versions

Comparing version 1.0.10 to 1.0.11

5

package.json
{
"name": "cmacc-compiler",
"version": "1.0.10",
"version": "1.0.11",
"description": "Cmacc Compiler",

@@ -24,4 +24,5 @@ "main": "src/index.js",

"devDependencies": {
"cmacc-lib-entity": "^1.0.0"
"cmacc-lib-entity": "^1.0.0",
"mocha": "^3.2.0"
}
}

2

src/convert.js

@@ -17,3 +17,3 @@ var fs = require('fs');

try {
text = fetch(file);
text = fetch(file, options);
} catch (e) {

@@ -20,0 +20,0 @@ throw(e)

@@ -7,4 +7,6 @@ var fs = require('fs');

function fetch(file) {
function fetch(file, options) {
options = options || {}
var urlObj = url.parse(file);

@@ -56,3 +58,4 @@

var findRoot = require('find-root');
var packageRoot = findRoot(process.cwd())
var packageRoot = options.path ? findRoot(options.path) : findRoot(process.cwd());
var nodeModules = path.join(packageRoot, 'node_modules')

@@ -59,0 +62,0 @@ var location = path.join(nodeModules, decodeURI(urlObj.host), decodeURI(urlObj.pathname));

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