Socket
Socket
Sign inDemoInstall

@servisbot/npm-sb-intents

Package Overview
Dependencies
4
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.10.1 to 0.10.2

2

package.json
{
"name": "@servisbot/npm-sb-intents",
"version": "0.10.1",
"version": "0.10.2",
"description": "Contains Shared Logic Around the Handling of Intents from the Various NLP Providers",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -20,3 +20,2 @@ const numberToWords = require('number-to-words');

const numbers = extractNumbers(text) || [];
// remove commas to convert to number

@@ -32,3 +31,3 @@ const formattedNumbers = numbers.map(number => number.replace(',', ''));

convertedUtterance = convertedUtterance.replace(
new RegExp(number, 'g'), numbersAsWords[i]
new RegExp(number), numbersAsWords[i]
);

@@ -35,0 +34,0 @@ });

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc