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

dotenv-haphap

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dotenv-haphap - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

2

main.js

@@ -37,3 +37,3 @@ 'use strict';

const startOfMultiline = line.indexOf('=`');
if (startOfMultiline === -1 || firtsEqualsSign !== startOfMultiline) {
if (startOfMultiline === -1 || firtsEqualsSign !== startOfMultiline || line.endsWith('`')) {
return { lines: lines.concat(line), currentMultiLine: null };

@@ -40,0 +40,0 @@ } else {

{
"name": "dotenv-haphap",
"version": "3.1.0",
"version": "3.1.1",
"description": "dotenv with multiple dotenv file support",

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

@@ -67,13 +67,5 @@ 'use strict';

t.equal(
parsed.TRIM_SPACE_FROM_UNQUOTED,
'some spaced out string',
'retains spaces in string'
);
t.equal(parsed.TRIM_SPACE_FROM_UNQUOTED, 'some spaced out string', 'retains spaces in string');
t.equal(
parsed.USERNAME,
'therealnerdybeast@example.tld',
'parses email addresses completely'
);
t.equal(parsed.USERNAME, 'therealnerdybeast@example.tld', 'parses email addresses completely');

@@ -88,8 +80,8 @@ t.equal(parsed.SPACED_KEY, 'parsed', 'parses keys and values surrounded by spaces');

t.equal(
parsed.LOOKS_LIKE_AN_ITEM,
undefined,
'does not parse item inside a multile item'
)
t.equal(parsed.LOOKS_LIKE_AN_ITEM, undefined, 'does not parse item inside a multile item');
t.equal(parsed.BACK_TICK_ON_SINGLE_LINE, '{}', 'parses backtick even if there is no linebreak in it');
t.equal(parsed.AFTER_SINGLE_LINE_BACK_TICK, '12', 'parses correctly after single line back ticks')
t.end();
});

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