Socket
Socket
Sign inDemoInstall

node-elm-compiler

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-elm-compiler - npm Package Compare versions

Comparing version 4.3.3 to 4.4.0

13

index.js

@@ -154,2 +154,14 @@ 'use strict';

function compileToStringSync(sources, options) {
if (typeof options.output === "undefined"){
options.output = '.js';
}
const file = temp.openSync({ suffix: options.output });
options.output = file.path;
compileSync(sources, options);
return fs.readFileSync(file.path, {encoding: "utf8"});
}
function handleError(pathToMake, err) {

@@ -195,3 +207,4 @@ if (err.code === "ENOENT") {

compileToString: compileToString,
compileToStringSync: compileToStringSync,
findAllDependencies: findAllDependencies
};

2

package.json
{
"name": "node-elm-compiler",
"version": "4.3.3",
"version": "4.4.0",
"description": "A Node.js interface to the Elm compiler binaries. Supports Elm version 0.17, 0.18",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -17,2 +17,6 @@ # node-elm-compiler [![Version](https://img.shields.io/npm/v/node-elm-compiler.svg)](https://www.npmjs.com/package/node-elm-compiler) [![Travis build Status](https://travis-ci.org/rtfeldman/node-elm-compiler.svg?branch=master)](http://travis-ci.org/rtfeldman/node-elm-compiler) [![AppVeyor build status](https://ci.appveyor.com/api/projects/status/xv83jcomgb81i1iu/branch/master?svg=true)](https://ci.appveyor.com/project/rtfeldman/node-elm-compiler/branch/master)

## 4.4.0
Add `compileSync`
## 4.3.1

@@ -19,0 +23,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