node-elm-compiler
Advanced tools
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 | ||
}; |
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
317
106
15882
10