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 5.0.0-alpha1 to 5.0.0

22

examples/elm.json

@@ -8,12 +8,18 @@ {

"dependencies": {
"elm-lang/core": "6.0.0",
"elm-lang/html": "3.0.0"
"direct": {
"elm/browser": "1.0.0",
"elm/core": "1.0.0",
"elm/html": "1.0.0"
},
"indirect": {
"elm/json": "1.0.0",
"elm/time": "1.0.0",
"elm/url": "1.0.0",
"elm/virtual-dom": "1.0.0"
}
},
"test-dependencies": {},
"do-not-edit-this-by-hand": {
"transitive-dependencies": {
"elm-lang/json": "1.0.0",
"elm-lang/virtual-dom": "3.0.0"
}
"test-dependencies": {
"direct": {},
"indirect": {}
}
}

@@ -7,3 +7,2 @@ 'use strict';

var fs = require("fs");
var path = require("path");
var temp = require("temp").track();

@@ -19,3 +18,2 @@ var findAllDependencies = require("find-elm-dependencies").findAllDependencies;

report: undefined,
warn: undefined,
debug: undefined,

@@ -25,2 +23,3 @@ verbose: false,

docs: undefined,
optimize: undefined,
};

@@ -83,3 +82,3 @@

} else {
return ("Exception thrown when attempting to run Elm compiler " + JSON.stringify(pathToElm) + ":\n" + err);
return ("Exception thrown when attempting to run Elm compiler " + JSON.stringify(pathToElm) + ":\n");
}

@@ -186,6 +185,6 @@ }

case "report": return ["--report", value];
case "warn": return ["--warn"];
case "debug": return ["--debug"];
case "docs": return ["--docs", value]
case "runtimeOptions": return ["+RTS", value, "-RTS"]
case "docs": return ["--docs", value];
case "optimize": return ["--optimize"];
case "runtimeOptions": return [].concat(["+RTS"], value ,["-RTS"]);
default:

@@ -192,0 +191,0 @@ if (supportedOptions.indexOf(opt) === -1) {

{
"name": "node-elm-compiler",
"version": "5.0.0-alpha1",
"description": "A Node.js interface to the Elm compiler binaries. Supports Elm version 0.17, 0.18",
"version": "5.0.0",
"description": "A Node.js interface to the Elm 0.19 compiler binaries.",
"main": "index.js",
"scripts": {
"test": "mocha test/*.js"
"test": "rm -rf test/fixtures/elm-stuff; mocha test/*.js"
},

@@ -29,4 +29,4 @@ "repository": {

"cross-spawn": "4.0.0",
"find-elm-dependencies": "1.0.2",
"lodash": "4.14.2",
"find-elm-dependencies": "2.0.0",
"lodash": "4.17.10",
"temp": "^0.8.3"

@@ -37,4 +37,4 @@ },

"glob": "7.1.1",
"mocha": "3.0.2"
"mocha": "5.1.1"
}
}
# 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)
Wraps [Elm](https://elm-lang.org) and exposes a [Node](https://nodejs.org) API to compile Elm sources.
Wraps [Elm](https://elm-lang.org) and exposes a [Node](https://nodejs.org) API to compile Elm 0.19 sources.
Supports Elm version 0.17, 0.18
# Example

@@ -19,3 +17,3 @@

Add 0.19 support. Remove `yes` option. Throw exceptions instead of emitting warnings or using process.exit.
Add 0.19 support. Remove `yes` option. Add `optimize` option. Throw exceptions instead of emitting warnings or using process.exit.

@@ -22,0 +20,0 @@ ## 4.5.0

@@ -1,2 +0,1 @@

var fs = require("fs");
var temp = require("temp").track();

@@ -56,3 +55,3 @@ var path = require("path");

};
}
};

@@ -109,3 +108,3 @@ function createTmpDir() {

var worker = Elm[moduleName].worker(workerArgs);
var worker = Elm[moduleName].init(workerArgs);

@@ -112,0 +111,0 @@ if (Object.keys(worker.ports).length === 0){

Sorry, the diff of this file is not supported yet

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