Socket
Socket
Sign inDemoInstall

node-elm-compiler

Package Overview
Dependencies
9
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.1.1 to 4.1.2

test/fixtures/SimplestMain.elm

9

index.js

@@ -91,2 +91,11 @@ 'use strict';

return resolve(path.normalize(path.dirname(file) + trimmedBackedOut));
} else if (!line.match(/^module\s/)) {
// Technically you're allowed to omit the module declaration for
// beginner applications where it'd just be `module Main exposing (..)`
// If there is no module declaration, we'll assume we have one of these,
// and succeed with the file's directory itself.
//
// See https://github.com/rtfeldman/node-elm-compiler/pull/36
return resolve(path.dirname(file));
}

@@ -93,0 +102,0 @@

2

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

@@ -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.1.2
Support checking dependencies for modules with no module declaration.
## 4.1.1

@@ -19,0 +23,0 @@

@@ -12,2 +12,9 @@ var expect = require("chai").expect;

describe("#findAllDependencies", function() {
it("works for a main file without an explicit module statement", function () {
return compiler.findAllDependencies(prependFixturesDir("SimplestMain.elm")).then(function(results) {
expect(results).to.deep.equal([])
});
});
it("works for a file with three dependencies", function () {

@@ -14,0 +21,0 @@ return compiler.findAllDependencies(prependFixturesDir("Parent.elm")).then(function(results) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc