nigel
Advanced tools
Comparing version 2.0.2 to 2.1.1
'use strict'; | ||
// Load modules | ||
const Stream = require('stream'); | ||
const Stream = require('stream'); | ||
const Hoek = require('hoek'); | ||
@@ -10,4 +9,2 @@ const Vise = require('vise'); | ||
// Declare internals | ||
const internals = {}; | ||
@@ -26,3 +23,3 @@ | ||
length: needle.length, | ||
badCharShift: new Buffer(256) // Lookup table of how many characters can be skipped for each match | ||
badCharShift: Buffer.alloc(256) // Lookup table of how many characters can be skipped for each match | ||
}; | ||
@@ -29,0 +26,0 @@ |
{ | ||
"name": "nigel", | ||
"description": "BoyerMooreHorspool algorithms", | ||
"version": "2.0.2", | ||
"version": "2.1.1", | ||
"repository": "git://github.com/hapijs/nigel", | ||
"engines": { | ||
"node": ">=6.0.0" | ||
}, | ||
"main": "lib/index.js", | ||
@@ -14,5 +17,2 @@ "keywords": [ | ||
], | ||
"engines": { | ||
"node": ">=4.0.0" | ||
}, | ||
"dependencies": { | ||
@@ -23,10 +23,10 @@ "hoek": "4.x.x", | ||
"devDependencies": { | ||
"code": "3.x.x", | ||
"lab": "10.x.x" | ||
"code": "4.x.x", | ||
"lab": "14.x.x" | ||
}, | ||
"scripts": { | ||
"test": "lab -a code -t 100 -L", | ||
"test-cov-html": "lab -a code -r html -o coverage.html" | ||
"test": "lab -a code -t 100 -L -l", | ||
"test-cov-html": "lab -a code -r html -o coverage.html -l" | ||
}, | ||
"license": "BSD-3-Clause" | ||
"license": "SEE LICENSE IN LICENSE.md" | ||
} |
@@ -1,7 +0,5 @@ | ||
#nigel | ||
# nigel | ||
Boyer-Moore-Horspool algorithms. | ||
[![Build Status](https://secure.travis-ci.org/hapijs/nigel.svg)](http://travis-ci.org/hapijs/nigel) | ||
Lead Maintainer - [Eran Hammer](https://github.com/hueniverse) | ||
[![Build Status](https://travis-ci.org/hapijs/nigel.svg?branch=v2-commercial)](https://travis-ci.org/hapijs/nigel) |
Sorry, the diff of this file is not supported yet
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
spdx disjunction for an artifact's license information
Licensespdx disjunction for an artifact's license information
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
spdx disjunction for an artifact's license information
Licensespdx disjunction for an artifact's license information
Found 1 instance in 1 package
6317
3
80
129
6