Socket
Socket
Sign inDemoInstall

retext-keywords

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

retext-keywords - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

5

history.md

@@ -5,2 +5,7 @@ <!--remark setext-->

2.0.1 / 2016-06-07
==================
* Fix own properties ([`fe7bd31`](https://github.com/wooorm/retext-keywords/commit/fe7bd31))
2.0.0 / 2016-06-06

@@ -7,0 +12,0 @@ ==================

13

index.js

@@ -22,2 +22,8 @@ /**

/*
* Methods.
*/
var own = Object.prototype.hasOwnProperty;
/**

@@ -96,3 +102,3 @@ * Get the stem of a node.

if (!(stem in words)) {
if (!own.call(words, stem)) {
words[stem] = {

@@ -269,7 +275,5 @@ 'matches': [match],

var match;
/*
* Iterate over all grouped important words...
*/
for (keyword in results) {

@@ -298,4 +302,3 @@ matches = results[keyword].matches;

*/
if (stemmedPhrase) {
if (own.call(stemmedPhrases, phrase.value)) {
/*

@@ -302,0 +305,0 @@ * Add weight per phrase to the score of

{
"name": "retext-keywords",
"version": "2.0.0",
"version": "2.0.1",
"description": "Keyword extraction with Retext",

@@ -5,0 +5,0 @@ "license": "MIT",

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