field-descriptions
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -0,0 +0,0 @@ export interface FDobject { |
@@ -33,3 +33,2 @@ "use strict"; | ||
function FD(values, options = { | ||
separator: ": ", | ||
nameEdits: GenMDOptionsDefault, | ||
@@ -41,3 +40,6 @@ valueEdits: GenMDOptionsDefault, | ||
.map(({ name, value }) => { | ||
return (GenMD(name, nameEdits) + separator + " " + GenMD(value, valueEdits)); | ||
return (GenMD(name, nameEdits) + | ||
(separator ? separator : ":") + | ||
" " + | ||
GenMD(value, valueEdits)); | ||
}) | ||
@@ -44,0 +46,0 @@ .join("\n"); |
{ | ||
"name": "field-descriptions", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Make key-value data easier to display in discord embeds", | ||
@@ -8,3 +8,4 @@ "main": "lib/index.js", | ||
"scripts": { | ||
"build": "tsc -p ." | ||
"build": "tsc -p .", | ||
"example": "ts-node-dev examples/webhook.ts" | ||
}, | ||
@@ -24,2 +25,4 @@ "keywords": [], | ||
"@types/lodash": "^4.14.165", | ||
"discord-webhook-node": "^1.1.8", | ||
"ts-node-dev": "^1.1.1", | ||
"typescript": "^4.1.2" | ||
@@ -26,0 +29,0 @@ }, |
@@ -0,0 +0,0 @@ # Install |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8096
62
4