Socket
Socket
Sign inDemoInstall

sentiment

Package Overview
Dependencies
1
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

test/unit/gh_12.js

4

lib/index.js

@@ -23,3 +23,3 @@ /**

return input
.replace(/[^a-zA-Z ]+/g, '')
.replace(/[^a-zA-Z- ]+/g, '')
.replace('/ {2,}/',' ')

@@ -62,3 +62,3 @@ .toLowerCase()

var item = afinn[obj];
if (typeof item === 'undefined') continue;
if (!afinn.hasOwnProperty(obj)) continue;

@@ -65,0 +65,0 @@ words.push(obj);

@@ -5,3 +5,3 @@ {

"description": "AFINN-based sentiment analysis for Node.js",
"version": "1.0.1",
"version": "1.0.2",
"homepage": "https://github.com/thisandagain/sentiment",

@@ -8,0 +8,0 @@ "repository": {

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