Comparing version 2.0.0 to 2.0.1
@@ -13,5 +13,5 @@ # How to contribute | ||
* Fork the repository on GitHub. | ||
* Fix the issue ensuring that your code follows the [style guide](https://github.com/hapijs/hapi/blob/master/docs/Style.md). | ||
* Fix the issue ensuring that your code follows the [style guide](https://github.com/hapijs/contrib/blob/master/Style.md). | ||
* Add tests for your new code ensuring that you have 100% code coverage (we can help you reach 100% but will not merge without it). | ||
* Run `npm test` to generate a report of test coverage | ||
* [Pull requests](http://help.github.com/send-pull-requests/) should be made to the [master branch](https://github.com/hapijs/b64/tree/master). |
@@ -44,3 +44,3 @@ /* | ||
var c1, c2, c3, c4; | ||
for (var i = 0, j = 0; i < len;) { | ||
for (var i = 0, j = 0; i < len; ) { | ||
do { | ||
@@ -47,0 +47,0 @@ c1 = decodeChars[buffer[i++] & 0xff]; |
{ | ||
"name": "b64", | ||
"description": "Base64 streaming encoder and decoder", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"repository": "git://github.com/hapijs/b64", | ||
"main": "index", | ||
"main": "lib/index.js", | ||
"keywords": [ | ||
@@ -21,14 +21,11 @@ "buffer", | ||
"devDependencies": { | ||
"lab": "4.x.x", | ||
"code": "1.x.x", | ||
"lab": "5.x.x", | ||
"wreck": "5.x.x" | ||
}, | ||
"scripts": { | ||
"test": "make test-cov" | ||
"test": "lab -a code -t 100 -L", | ||
"test-cov-html": "lab -a code -r html -o coverage.html" | ||
}, | ||
"licenses": [ | ||
{ | ||
"type": "BSD", | ||
"url": "http://github.com/hapijs/b64/raw/master/LICENSE" | ||
} | ||
] | ||
"license": "BSD-3-Clause" | ||
} |
@@ -6,2 +6,3 @@ // Load modules | ||
var B64 = require('..'); | ||
var Code = require('code'); | ||
var Hoek = require('hoek'); | ||
@@ -22,3 +23,3 @@ var Lab = require('lab'); | ||
var it = lab.it; | ||
var expect = Lab.expect; | ||
var expect = Code.expect; | ||
@@ -31,3 +32,3 @@ | ||
expect(err).to.not.exist; | ||
expect(err).to.not.exist(); | ||
expect(payload).to.equal(buffer.toString()); | ||
@@ -90,3 +91,3 @@ done(); | ||
expect(err).to.not.exist; | ||
expect(err).to.not.exist(); | ||
expect(payload).to.equal(Buffer.concat(buffer).toString()); | ||
@@ -102,3 +103,3 @@ done(); | ||
expect(err).to.not.exist; | ||
expect(err).to.not.exist(); | ||
expect(payload).to.equal(Buffer.concat(buffer).toString()); | ||
@@ -114,3 +115,3 @@ done(); | ||
expect(err).to.not.exist; | ||
expect(err).to.not.exist(); | ||
expect(payload).to.equal(Buffer.concat(buffer).toString()); | ||
@@ -135,3 +136,3 @@ done(); | ||
expect(err).to.not.exist; | ||
expect(err).to.not.exist(); | ||
expect(payload.toString()).to.equal(value.toString()); | ||
@@ -152,3 +153,3 @@ done(); | ||
expect(err).to.not.exist; | ||
expect(err).to.not.exist(); | ||
expect(payload.toString()).to.equal(value.toString()); | ||
@@ -155,0 +156,0 @@ done(); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
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
248
0
12538
3
8