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

field-descriptions

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

field-descriptions - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

0

lib/index.d.ts

@@ -0,0 +0,0 @@ export interface FDobject {

6

lib/index.js

@@ -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

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