Fix bin/publish: use correct .env path for rspade_system Fix bin/publish script: prevent grep exit code 1 from terminating script 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
16 lines
369 B
JavaScript
Executable File
16 lines
369 B
JavaScript
Executable File
/*
|
|
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
*/
|
|
|
|
"use strict";
|
|
|
|
/**
|
|
* Convert an object into an ES6 map
|
|
* @template {object} T
|
|
* @param {T} obj any object type that works with Object.entries()
|
|
* @returns {Map<string, T[keyof T]>} an ES6 Map of KV pairs
|
|
*/
|
|
module.exports = function objectToMap(obj) {
|
|
return new Map(Object.entries(obj));
|
|
};
|