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

cher-tools

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cher-tools - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

interfaces/sourceStream.js

19

config/helpers.js
'use strict';
exports.pluckMatching = (collection, regex) => {
return Object.keys(collection)
.filter((item) => {
return (item.match(regex));
})
.map((key) => {
const obj = {};
obj[ key ] = collection[ key ];
return obj;
})
.map((credsMap) => {
const key = Object.keys(credsMap)[ 0 ];
const valParts = credsMap[key].split(':');
const obj = {};
obj[key] = valParts;
return obj;
});
};
exports.pluck = ( collection, keys ) => {

@@ -5,0 +24,0 @@ return Object.keys( collection )

3

config/index.js

@@ -10,4 +10,7 @@

exports.fetch = (extras) => {
const cherCredsRegex = /^CHER_(.){1,}_CREDS$/;
const resolver = P.pending();
const credsArray = helpers.pluckMatching(process.env, cherCredsRegex);
const envArray = helpers.pluck(process.env, requiredEnv);

@@ -14,0 +17,0 @@ const env = helpers.arrayToObj(envArray);

2

package.json
{
"name": "cher-tools",
"version": "0.4.1",
"version": "0.4.2",
"description": "Tools and utilities for the Cher platform",

@@ -5,0 +5,0 @@ "main": "index.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