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

elm-test

Package Overview
Dependencies
Maintainers
4
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elm-test - npm Package Compare versions

Comparing version 0.19.1-revision8 to 0.19.1-revision9

21

lib/Install.js

@@ -172,3 +172,15 @@ // @flow

const VERSION = '1.2.2';
const VERSION_RANGE = '1.2.2 <= v < 2.0.0';
function getExpectedVersion(
project /*: typeof Project.Project */
) /*: string */ {
switch (project.elmJson.type) {
case 'application':
return VERSION;
case 'package':
return VERSION_RANGE;
}
}
async function installUnstableTestMaster(

@@ -179,7 +191,8 @@ project /*: typeof Project.Project */

const actualVersion = directTestDependencies[PKG];
if (actualVersion !== VERSION) {
const expectedVersion = getExpectedVersion(project);
if (actualVersion.replace(/\s/g, '') !== expectedVersion.replace(/\s/g, '')) {
throw new Error(
`
Could not find ${JSON.stringify(PKG)}: ${JSON.stringify(
VERSION
expectedVersion
)} in your elm.json file here:

@@ -190,3 +203,3 @@

This command only works if you have ${PKG} as a (direct) test-dependency,
and only if you use version ${VERSION}.
and only if you use ${JSON.stringify(expectedVersion)}.

@@ -196,3 +209,3 @@ ${

? 'I could not find it at all.'
: `You seem to be using version ${actualVersion}.`
: `You seem to be using ${JSON.stringify(actualVersion)}.`
}

@@ -199,0 +212,0 @@ `.trim()

2

package.json
{
"name": "elm-test",
"version": "0.19.1-revision8",
"version": "0.19.1-revision9",
"description": "Run elm-test suites.",

@@ -5,0 +5,0 @@ "main": "elm-test.js",

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