Skip to content

Commit

Permalink
Update dep. Closes #25
Browse files Browse the repository at this point in the history
  • Loading branch information
hueniverse committed Apr 2, 2019
1 parent 5a2a8ce commit 9216552
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 65 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Expand Up @@ -7,3 +7,7 @@ coverage.*
**/._*

**/*.pem

**/.vs
**/.vscode
**/.idea
8 changes: 8 additions & 0 deletions .travis.yml
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.

25 changes: 0 additions & 25 deletions LICENSE

This file was deleted.

10 changes: 10 additions & 0 deletions LICENSE.md
@@ -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.
8 changes: 2 additions & 6 deletions lib/index.js
@@ -1,14 +1,10 @@
'use strict';

// Load modules

const Path = require('path');

const Hoek = require('hoek');
const MimeDb = require('mime-db');

const Hoek = require('@hapi/hoek');
const MimeDb = require('mime-db/db.json'); // Load JSON file to prevent loading or executing code

// Declare internals

const internals = {};

Expand Down
16 changes: 6 additions & 10 deletions package.json
@@ -1,24 +1,20 @@
{
"name": "mimos",
"name": "@hapi/mimos",
"description": "Mime database interface",
"version": "4.0.2",
"repository": "git://github.com/hapijs/mimos",
"main": "lib/index.js",
"keywords": [
"mime",
"database",
"content-type"
],
"keywords": ["mime", "database", "content-type"],
"dependencies": {
"hoek": "6.x.x",
"@hapi/hoek": "6.x.x",
"mime-db": "1.x.x"
},
"devDependencies": {
"code": "5.x.x",
"lab": "17.x.x"
"@hapi/code": "5.x.x",
"@hapi/lab": "18.x.x"
},
"scripts": {
"test": "lab -m 5000 -t 100 -L -a code"
"test": "lab -m 5000 -t 100 -L -a @hapi/code"
},
"license": "BSD-3-Clause"
}
10 changes: 2 additions & 8 deletions test/index.js
@@ -1,19 +1,13 @@
'use strict';

// Load modules

const Code = require('code');
const Lab = require('lab');
const Code = require('@hapi/code');
const Lab = require('@hapi/lab');
const Mimos = require('..');


// Declare internals

const internals = {};


// Test shortcuts

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

Expand Down

0 comments on commit 9216552

Please sign in to comment.