Skip to content

Commit

Permalink
Update deps. Closes #25
Browse files Browse the repository at this point in the history
  • Loading branch information
hueniverse committed Apr 2, 2019
1 parent a9dac21 commit fdf19c6
Show file tree
Hide file tree
Showing 11 changed files with 36 additions and 78 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ coverage.*
**/._*

**/*.pem

**/.vs
**/.vscode
**/.idea
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,11 @@ node_js:
- "node"

sudo: false

install:
- "npm install"

os:
- "linux"
- "osx"
- "windows"
16 changes: 0 additions & 16 deletions CONTRIBUTING.md

This file was deleted.

26 changes: 0 additions & 26 deletions LICENSE

This file was deleted.

10 changes: 10 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Copyright (c) 2014-2019, Sideway Inc, and project contributors
Copyright (c) 2014, Walmart.
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* The names of any contributors may not be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS OFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Example:
'use strict';

const Fs = require('fs');
const B64 = require('b64');
const B64 = require('@hapi/b64');

const stream = Fs.createReadStream(`${__dirname}/package.json`);
const encoder = new B64.Encoder();
Expand All @@ -53,7 +53,7 @@ Example:
'use strict';

const Fs = require('fs');
const B64 = require('b64');
const B64 = require('@hapi/b64');

const stream = Fs.createReadStream(`${__dirname}/encodedfile.b64`);
const decoder = new B64.Decoder();
Expand Down
4 changes: 0 additions & 4 deletions lib/decoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,9 @@
http://www.onicos.com/staff/iz/amuse/javascript/expert/base64.txt
*/

// Load modules

const Stream = require('stream');


// Declare internals

const internals = {
decodeChars: [
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
Expand Down
4 changes: 0 additions & 4 deletions lib/encoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,9 @@
http://www.onicos.com/staff/iz/amuse/javascript/expert/base64.txt
*/

// Load modules

const Stream = require('stream');


// Declare internals

const internals = {};


Expand Down
4 changes: 1 addition & 3 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
'use strict';

// Load modules

const Hoek = require('hoek');
const Hoek = require('@hapi/hoek');

const Decoder = require('./decoder');
const Encoder = require('./encoder');
Expand Down
22 changes: 8 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,21 @@
{
"name": "b64",
"name": "@hapi/b64",
"description": "Base64 streaming encoder and decoder",
"version": "4.1.2",
"repository": "git://github.com/hapijs/b64",
"main": "lib/index.js",
"keywords": [
"buffer",
"base64",
"decode",
"encode",
"stream"
],
"keywords": ["buffer", "base64", "decode", "encode", "stream"],
"dependencies": {
"hoek": "6.x.x"
"@hapi/hoek": "6.x.x"
},
"devDependencies": {
"code": "5.x.x",
"lab": "17.x.x",
"wreck": "14.x.x"
"@hapi/code": "5.x.x",
"@hapi/lab": "18.x.x",
"@hapi/wreck": "15.x.x"
},
"scripts": {
"test": "lab -a code -t 100 -L",
"test-cov-html": "lab -a code -r html -o coverage.html"
"test": "lab -a @hapi/code -t 100 -L",
"test-cov-html": "lab -a @hapi/code -r html -o coverage.html"
},
"license": "BSD-3-Clause"
}
12 changes: 3 additions & 9 deletions test/index.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,20 @@
'use strict';

// Load modules

const Crypto = require('crypto');
const Fs = require('fs');
const Path = require('path');
const Stream = require('stream');
const Util = require('util');

const B64 = require('..');
const Code = require('code');
const Lab = require('lab');
const Wreck = require('wreck');

const Code = require('@hapi/code');
const Lab = require('@hapi/lab');
const Wreck = require('@hapi/wreck');

// Declare internals

const internals = {};


// Test shortcuts

const { describe, it } = exports.lab = Lab.script();
const expect = Code.expect;

Expand Down

0 comments on commit fdf19c6

Please sign in to comment.