Socket
Socket
Sign inDemoInstall

yml

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yml - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

test/config-nodef.yml

6

build/main.js

@@ -33,2 +33,5 @@ (function() {

configs = extend(true, extend(true, {}, defaults), env);
if (_.isEmpty(configs)) {
configs = data;
}
return this.configs = this.parse(configs);

@@ -51,2 +54,5 @@ };

if (_.isString(obj) && /decrypt\(.+\)/.exec(obj)) {
if (this.key_file == null) {
throw new Error('Private key for decryption is missing...');
}
matches = /decrypt\((.+)\)/.exec(obj);

@@ -53,0 +59,0 @@ return this.key_file.decrypt(matches[1], 'base64', 'utf8');

2

package.json
{
"name": "yml",
"version": "0.0.2",
"version": "0.0.3",
"description": "Read Yaml files based on NODE_ENV or passed env + support for encryption",

@@ -5,0 +5,0 @@ "main": "build/main",

@@ -38,3 +38,3 @@ # yml

```coffee
# if RAILS_ENV = 'production' is set in server, these lines have same result
# if NODE_ENV = 'production' is set in server, these lines have same result
configs = Yml.load 'config.yml', { key: 'security.key.pem' }

@@ -41,0 +41,0 @@ configs = Yml.load 'config.yml', 'production', { key: 'security.key.pem' }

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