From 7af406787fc021a4f9cf3effb1e40810369da6f1 Mon Sep 17 00:00:00 2001 From: Killer Boss Original <73131550+killerbossoriginal@users.noreply.github.com> Date: Thu, 3 Nov 2022 17:53:46 +0100 Subject: [PATCH] Reset --- .github/workflows/main.yml | 44 +++++ .gitignore | 4 +- .npmrc | 2 + config.js | 4 - index.js | 188 -------------------- package-lock.json | 354 +++++++++++++++++++++++++++++++++++++ package.json | 30 ++-- password.js | 2 - settings.js | 5 - 9 files changed, 415 insertions(+), 218 deletions(-) create mode 100644 .github/workflows/main.yml create mode 100644 .npmrc delete mode 100644 config.js create mode 100644 package-lock.json delete mode 100644 password.js delete mode 100644 settings.js diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..a47e769 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,44 @@ +name: Publish to NPM +on: + release: + types: [created] +jobs: + Publish-NPM: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Setup Node + uses: actions/setup-node@v2 + with: + node-version: '16.x' + registry-url: 'https://registry.npmjs.org' + scope: '@fiusdevelopment' + - name: Install dependencies 🔧 + run: npm ci + - name: Publish package on NPM 📦 + run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + REGISTRY1: 'registry.npmjs.org' + REGISTRY2: 'registry=https://registry.npmjs.org/' + + Publish-GitHub-NPM: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Setup Node + uses: actions/setup-node@v2 + with: + node-version: '16.x' + registry-url: 'https://npm.pkg.github.com' + scope: '@fiusdevelopment' + - name: Install dependencies 🔧 + run: npm ci + - name: Publish package on NPM 📦 + run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.GP_TOKEN }} + REGISTRY1: 'npm.pkg.github.com' + REGISTRY2: '@fiusdevelopment:registry=https://npm.pkg.github.com' diff --git a/.gitignore b/.gitignore index 099ae14..b512c09 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1 @@ -node_modules -package-lock.json - +node_modules \ No newline at end of file diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..7348006 --- /dev/null +++ b/.npmrc @@ -0,0 +1,2 @@ +//${REGISTRY1}/:_authToken=${NODE_AUTH_TOKEN} +${REGISTRY2} \ No newline at end of file diff --git a/config.js b/config.js deleted file mode 100644 index 58da150..0000000 --- a/config.js +++ /dev/null @@ -1,4 +0,0 @@ -var settings = require('./settings.js') -module.exports = { - settings -} \ No newline at end of file diff --git a/index.js b/index.js index 18f2105..e69de29 100644 --- a/index.js +++ b/index.js @@ -1,188 +0,0 @@ -var client = []; -client.config = require('./config.js').settings; - -const MapDB = require('quickmap.db'); -const db = new MapDB('database.json'); - -const chalk = require('chalk') - -function catchError(message, err, origin, reason) { - console.log(chalk.gray('—————————————————————————————————')); - console.log( - chalk.white('['), - chalk.red.bold('AntiCrash'), - chalk.white(']'), - chalk.gray(' : '), - chalk.white.bold(message), - ); - console.log(chalk.gray('—————————————————————————————————')); - console.log(err, origin, reason); -} - -process.on('unhandledRejection', (err, origin) => { - catchError('Unhandled Rejection/Catch', err, origin); -}); -process.on('uncaughtException', (err, origin) => { - catchError('Uncaught Exception/Catch', err, origin); -}); -process.on('multipleResolves', (type, promise, reason) => { - catchError('Multiple Resolves', type, promise, reason); -}); - -async function setup() { - var isset = await db.get('client.issetupped') - if (!isset) { - await db.set('client.issetupped', true) - } -} - -setup() -var fs = require('fs'); -var data = fs.readFileSync('./data/database.json'); - -var elements = JSON.parse(data); -const express = require("express"); -const app = express(); - -const cors=require('cors'); - -app.listen(client.config.port, - () => console.log("Server Start at the port "+client.config.port)); - -app.use(express.static('public')); -app.use(cors()); - -async function authenticate(token, response, what) { - if (!client.config.auth.includes(token)) { - response.send('ERROR - Not auth') - } else { - console.log(token + ' do '+ what) - } -} -/* -// All dates in the database - -app.get('/api/:auth/database', alldata); - -function alldata(request, response) { - var token = request.params.auth; - authenticate(token, response, 'alldata') - response.send(elements); -} - -// One element in the database - -app.get('/api/:auth/database/:element/', searchElement); - -async function searchElement(request, response) { - var token = request.params.auth; - var word = request.params.element; - - search = 'search '+ word - authenticate(token, response, search) - - var elements = await db.get(word) - var elements = { - name: word, - value: elements - } - // console.log(elements) - // var elements = JSON.parse(elements); - // console.log(elements) - - if(elements) { - var reply = elements - } else { - var reply = { - status:"404 - Not Found" - } - } - - response.send(reply); -} - -// Set a db variable -*/ -app.post('/api/database/set', async (request, response) => { - console.log('\n\n\n\n\n\n\n\n\n\n\n\n\n\n'+request.data+request.body) - console.log(JSON.stringify(request)) - reply = 'Ok' - //await db.set('Output', request) - response.send(reply); -}); - -/* -app.post('/api/:auth/database/:element/set/:data', async (request, response) => { - var token = request.params.auth; - var element = request.params.element; - var data = request.params.data; - - set = 'set '+element+' to '+data - authenticate(token, response, set) - - await db.set(element, data) - var res = await db.get(element) -// var res = JSON.parse(res); - if(res) { - var reply = { - status: 'Done' - }; - } else { - var reply = { - status:"404 - Not Found" - } - } - - response.send(reply); -}); - -async function set(request, response) { - var token = request.params.auth; - var element = request.params.element; - var data = request.params.data; - - set = 'set '+element+' to '+data - authenticate(token, response, set) - - await db.set(element, data) - var res = await db.get(element) -// var res = JSON.parse(res); - if(res) { - var reply = { - status: 'Done' - }; - } else { - var reply = { - status:"404 - Not Found" - } - } - - response.send(reply); -} - -// Remove a db variable - -app.get('/api/:auth/database/:element/remove', remove); - -async function remove(request, response) { - var token = request.params.auth; - var element = request.params.element; - - set = 'remove '+element - authenticate(token, response, set) - - await db.delete(element) -// var res = JSON.parse(res); - if(res) { - var reply = { - status: 'Done' - } - } else { - var reply = { - status:"404 - Not Found" - } - } - - response.send(reply); -} -*/ \ No newline at end of file diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..4efeab5 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,354 @@ +{ + "name": "@fiusdevelopment/mit.db", + "version": "0.0.1", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "name": "@fiusdevelopment/mit.db", + "version": "0.0.1", + "license": "SEE LICENSE IN LICENSE.txt", + "dependencies": { + "@fiusdevelopment/map.db": "^1.0.2" + } + }, + "node_modules/@fiusdevelopment/map.db": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@fiusdevelopment/map.db/-/map.db-1.0.2.tgz", + "integrity": "sha512-GY5XnleD/MlNqyjOFI+rkUOKZeFMXtc5wirjDYeVveWSfSLcl07P85koYIqhpI9fzBDx0LnsPw19J6Zms7NHqQ==", + "dependencies": { + "util": "^0.12.5" + } + }, + "node_modules/available-typed-arrays": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", + "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/call-bind": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", + "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "dependencies": { + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/for-each": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", + "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", + "dependencies": { + "is-callable": "^1.1.3" + } + }, + "node_modules/function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" + }, + "node_modules/get-intrinsic": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.3.tgz", + "integrity": "sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A==", + "dependencies": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "dependencies": { + "get-intrinsic": "^1.1.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", + "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "node_modules/is-arguments": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", + "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-generator-function": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz", + "integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==", + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-typed-array": { + "version": "1.1.10", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz", + "integrity": "sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==", + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/util": { + "version": "0.12.5", + "resolved": "https://registry.npmjs.org/util/-/util-0.12.5.tgz", + "integrity": "sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==", + "dependencies": { + "inherits": "^2.0.3", + "is-arguments": "^1.0.4", + "is-generator-function": "^1.0.7", + "is-typed-array": "^1.1.3", + "which-typed-array": "^1.1.2" + } + }, + "node_modules/which-typed-array": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.9.tgz", + "integrity": "sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA==", + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + } + }, + "dependencies": { + "@fiusdevelopment/map.db": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@fiusdevelopment/map.db/-/map.db-1.0.2.tgz", + "integrity": "sha512-GY5XnleD/MlNqyjOFI+rkUOKZeFMXtc5wirjDYeVveWSfSLcl07P85koYIqhpI9fzBDx0LnsPw19J6Zms7NHqQ==", + "requires": { + "util": "^0.12.5" + } + }, + "available-typed-arrays": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", + "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==" + }, + "call-bind": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", + "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "requires": { + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" + } + }, + "for-each": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", + "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", + "requires": { + "is-callable": "^1.1.3" + } + }, + "function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" + }, + "get-intrinsic": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.3.tgz", + "integrity": "sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A==", + "requires": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.3" + } + }, + "gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "requires": { + "get-intrinsic": "^1.1.3" + } + }, + "has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "requires": { + "function-bind": "^1.1.1" + } + }, + "has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==" + }, + "has-tostringtag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", + "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", + "requires": { + "has-symbols": "^1.0.2" + } + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "is-arguments": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", + "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", + "requires": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + } + }, + "is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==" + }, + "is-generator-function": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz", + "integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==", + "requires": { + "has-tostringtag": "^1.0.0" + } + }, + "is-typed-array": { + "version": "1.1.10", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz", + "integrity": "sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==", + "requires": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0" + } + }, + "util": { + "version": "0.12.5", + "resolved": "https://registry.npmjs.org/util/-/util-0.12.5.tgz", + "integrity": "sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==", + "requires": { + "inherits": "^2.0.3", + "is-arguments": "^1.0.4", + "is-generator-function": "^1.0.7", + "is-typed-array": "^1.1.3", + "which-typed-array": "^1.1.2" + } + }, + "which-typed-array": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.9.tgz", + "integrity": "sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA==", + "requires": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0", + "is-typed-array": "^1.1.10" + } + } + } +} diff --git a/package.json b/package.json index dd9215c..623055e 100644 --- a/package.json +++ b/package.json @@ -1,31 +1,29 @@ { - "name": "database-server", - "description": "A quick-deploy database server", - "version": "1.0.2", + "name": "@fiusdevelopment/mit.db", + "version": "0.0.1", + "description": "A QuickDeploy Database Host", "main": "index.js", "scripts": { - "test": "npm start", - "start": "node index.js" + "test": "npm start" }, "repository": { "type": "git", - "url": "git+https://github.com/FIUSdevelopment/database-server.git" + "url": "git+https://github.com/FIUSDevelopment/mit-db.git" }, "keywords": [ "database", - "online" + "javascript", + "nodejs", + "node.js", + "quickmap.db" ], "author": "FIUS Development | Killer Boss Original", - "license": "ISC", + "license": "SEE LICENSE IN LICENSE.txt", "bugs": { - "url": "https://github.com/FIUSdevelopment/database-server/issues" + "url": "https://github.com/FIUSDevelopment/mit-db/issues" }, - "homepage": "https://github.com/FIUSdevelopment/database-server#readme", - "dependencies": { - "chalk": "^4.1.2", - "cors": "^2.8.5", - "express": "^4.18.1", - "fs": "^0.0.1-security", - "quickmap.db": "^1.1.1" + "homepage": "https://github.com/FIUSDevelopment/mit-db#readme", + "dependencies": { + "@fiusdevelopment/map.db": "^1.0.2" } } diff --git a/password.js b/password.js deleted file mode 100644 index f6aa2fb..0000000 --- a/password.js +++ /dev/null @@ -1,2 +0,0 @@ -password = ['abaco2022'] -module.exports = password \ No newline at end of file diff --git a/settings.js b/settings.js deleted file mode 100644 index d727d67..0000000 --- a/settings.js +++ /dev/null @@ -1,5 +0,0 @@ -auth = require('./password.js') -module.exports = { - port: '10009', //database port - auth -} \ No newline at end of file