Skip to content

Commit

Permalink
fix: install npm error
Browse files Browse the repository at this point in the history
  • Loading branch information
cxtom committed Apr 20, 2021
1 parent 1476560 commit cbd3d12
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 95 deletions.
7 changes: 0 additions & 7 deletions example/hoth-quickstart/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,5 @@
"main": "src/app.ts",
"scripts": {
"build": "tsc"
},
"dependencies": {
"fastify": "^3.7.0"
},
"devDependencies": {
"ts-node": "^9.0.0",
"typescript": "^4.0.3"
}
}
3 changes: 2 additions & 1 deletion example/hoth-quickstart/src/controller/app/app.controller.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {Controller, GET, Hook, Inject} from '@hoth/decorators';

import type {FastifyReply, FastifyRequest, RequestGenericInterface} from 'fastify';
import {Controller, GET, Hook, Inject} from '@hoth/decorators';
import Calculator from '../../lib/calculator/index.service';

interface requestGeneric extends RequestGenericInterface {
Expand Down
1 change: 0 additions & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
"fastify-warmup": "0.0.7",
"generify": "^4.2.0",
"help-me": "^2.0.0",
"inspector": "^0.5.0",
"is-docker": "^2.1.1",
"make-promises-safe": "^5.1.0",
"tslib": "^2.1.0",
Expand Down
24 changes: 12 additions & 12 deletions packages/cli/src/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,18 @@ async function runFastify(opts) {

loadFastify();

if (opts.debug) {
if (process.version.match(/v[0-6]\..*/g)) {
exit('Debug mode not compatible with Node.js version < 6');
}
else {
// eslint-disable-next-line
require('inspector').open(
opts.debugPort,
opts.debugHost || isDocker() ? listenAddressDocker : undefined
);
}
}
// if (opts.debug) {
// if (process.version.match(/v[0-6]\..*/g)) {
// exit('Debug mode not compatible with Node.js version < 6');
// }
// else {
// // eslint-disable-next-line
// require('inspector').open(
// opts.debugPort,
// opts.debugHost || isDocker() ? listenAddressDocker : undefined
// );
// }
// }

const rootPath = process.env.ROOT_PATH || process.cwd();
const apps = await getApps({
Expand Down
2 changes: 1 addition & 1 deletion packages/decorators/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'reflect-metadata';
import type {FastifyInstance} from 'fastify';

import type {AutoLoadConfig} from 'fastify-decorators/interfaces/bootstrap-config';
import {bootstrap as bootstrapInner, FastifyInstanceToken} from 'fastify-decorators';
import {bootstrap as bootstrapInner} from 'fastify-decorators';

export {
Controller,
Expand Down
84 changes: 11 additions & 73 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1601,11 +1601,6 @@ binary-extensions@^2.0.0:
resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.2.0.tgz#75f502eeaf9ffde42fc98829645be4ea76bd9e2d"
integrity sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==

bindings@1.2.x:
version "1.2.1"
resolved "https://registry.yarnpkg.com/bindings/-/bindings-1.2.1.tgz#14ad6113812d2d37d72e67b4cacb4bb726505f11"
integrity sha1-FK1hE4EtLTfXLme0ystLtyZQXxE=

bluebird@^3.5.1, bluebird@^3.5.3, bluebird@^3.5.5:
version "3.7.2"
resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.7.2.tgz#9f229c15be272454ffa973ace0dbee79a1b0c36f"
Expand Down Expand Up @@ -1666,14 +1661,6 @@ buffer-from@^1.0.0:
resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef"
integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==

bufferutil@1.1.x:
version "1.1.0"
resolved "https://registry.yarnpkg.com/bufferutil/-/bufferutil-1.1.0.tgz#3f96be77a7f8652ff69ef29f1cabc8b89f7fd972"
integrity sha1-P5a+d6f4ZS/2nvKfHKvIuJ9/2XI=
dependencies:
bindings "1.2.x"
nan "1.8.x"

builtins@^1.0.3:
version "1.0.3"
resolved "https://registry.yarnpkg.com/builtins/-/builtins-1.0.3.tgz#cb94faeb61c8696451db36534e1422f94f0aee88"
Expand Down Expand Up @@ -2556,13 +2543,6 @@ end-of-stream@^1.0.0, end-of-stream@^1.1.0:
dependencies:
once "^1.4.0"

endpoint@0.4.x:
version "0.4.5"
resolved "https://registry.yarnpkg.com/endpoint/-/endpoint-0.4.5.tgz#8a32db66ad94c3161d279ed1ab4ffb6c4101b79a"
integrity sha1-ijLbZq2UwxYdJ57Rq0/7bEEBt5o=
dependencies:
inherits "^2.0.1"

enquirer@^2.3.5, enquirer@^2.3.6:
version "2.3.6"
resolved "https://registry.yarnpkg.com/enquirer/-/enquirer-2.3.6.tgz#2a7fe5dd634a1e4125a975ec994ff5456dc3734d"
Expand Down Expand Up @@ -2899,10 +2879,10 @@ fast-json-stable-stringify@^2.0.0:
resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633"
integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==

fast-json-stringify@^2.5.0:
version "2.5.2"
resolved "https://registry.yarnpkg.com/fast-json-stringify/-/fast-json-stringify-2.5.2.tgz#c6417122f9cc303fd15cd4a33e1f0a136b33ae51"
integrity sha512-H0/Wq7jj/i96DycCySdh+Jl0MubqaScM51GJkdJmjzwyiNpxAgQ9deYqk2H8SNOfwPj21RtTXMkMV5GosUWKeQ==
fast-json-stringify@^2.5.2:
version "2.6.0"
resolved "https://registry.yarnpkg.com/fast-json-stringify/-/fast-json-stringify-2.6.0.tgz#3dcb4835b63d4e17dbd17411594aa63df8c0f95b"
integrity sha512-xTZtZRopWp2Aun7sGX2EB2mFw4bMQ+xnR8BmD5Rn4K0hKXGkbcZAzTtxEX0P4KNaNx1RAwvf+FESfuM0+F4WZg==
dependencies:
ajv "^6.11.0"
deepmerge "^4.2.2"
Expand Down Expand Up @@ -2961,16 +2941,16 @@ fastify-warning@^0.2.0:
resolved "https://registry.yarnpkg.com/fastify-warning/-/fastify-warning-0.2.0.tgz#e717776026a4493dc9a2befa44db6d17f618008f"
integrity sha512-s1EQguBw/9qtc1p/WTY4eq9WMRIACkj+HTcOIK1in4MV5aFaQC9ZCIt0dJ7pr5bIf4lPpHvAtP2ywpTNgs7hqw==

fastify@^3.11.0, fastify@^3.7.0:
version "3.14.0"
resolved "https://registry.yarnpkg.com/fastify/-/fastify-3.14.0.tgz#0a75f624a95f65ac3d319fb7b0bf79f84d522a76"
integrity sha512-a6W2iVPJMOaULqCykJ5nFRtnoknqt9K3b6rqAQcGjT/O2Hy+vvo+9/+cL2907KN0iF/91Ke+XQluKrVNF6+Z7w==
fastify@^3.11.0:
version "3.14.2"
resolved "https://registry.yarnpkg.com/fastify/-/fastify-3.14.2.tgz#136c80ab5a811e2f44ef361c1e1986c8a31d6e83"
integrity sha512-/PY//7gJnGxLQORaRHCEW148vpFKFpBIQNz1Yo/DxbHuk5EQqK2comzyE2ug8FSEldDX8nleapTshl0m78Px2w==
dependencies:
"@fastify/proxy-addr" "^3.0.0"
abstract-logging "^2.0.0"
ajv "^6.12.2"
avvio "^7.1.2"
fast-json-stringify "^2.5.0"
fast-json-stringify "^2.5.2"
fastify-error "^0.3.0"
fastify-warning "^0.2.0"
find-my-way "^4.0.0"
Expand Down Expand Up @@ -3788,14 +3768,6 @@ inquirer@^6.2.0:
strip-ansi "^5.1.0"
through "^2.3.6"

inspector@^0.5.0:
version "0.5.0"
resolved "https://registry.yarnpkg.com/inspector/-/inspector-0.5.0.tgz#a26465dcb58858352cf42977e691efacea88f501"
integrity sha1-omRl3LWIWDUs9Cl35pHvrOqI9QE=
dependencies:
endpoint "0.4.x"
ws "0.7.x"

ip@1.1.5:
version "1.1.5"
resolved "https://registry.yarnpkg.com/ip/-/ip-1.1.5.tgz#bdded70114290828c0a039e72ef25f5aaec4354a"
Expand Down Expand Up @@ -4892,11 +4864,6 @@ mz@^2.5.0:
object-assign "^4.0.1"
thenify-all "^1.0.0"

nan@1.8.x:
version "1.8.4"
resolved "https://registry.yarnpkg.com/nan/-/nan-1.8.4.tgz#3c76b5382eab33e44b758d2813ca9d92e9342f34"
integrity sha1-PHa1OC6rM+RLdY0oE8qdkuk0LzQ=

nanomatch@^1.2.9:
version "1.2.13"
resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119"
Expand Down Expand Up @@ -5209,11 +5176,6 @@ optionator@^0.9.1:
type-check "^0.4.0"
word-wrap "^1.2.3"

options@>=0.0.5:
version "0.0.6"
resolved "https://registry.yarnpkg.com/options/-/options-0.0.6.tgz#ec22d312806bb53e731773e7cdaefcf1c643128f"
integrity sha1-7CLTEoBrtT5zF3Pnza788cZDEo8=

os-homedir@^1.0.0:
version "1.0.2"
resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3"
Expand Down Expand Up @@ -6900,7 +6862,7 @@ trim-off-newlines@^1.0.0:
resolved "https://registry.yarnpkg.com/trim-off-newlines/-/trim-off-newlines-1.0.1.tgz#9f9ba9d9efa8764c387698bcbfeb2c848f11adb3"
integrity sha1-n5up2e+odkw4dpi8v+sshI8RrbM=

ts-node@^9.0.0, ts-node@^9.1.1:
ts-node@^9.1.1:
version "9.1.1"
resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-9.1.1.tgz#51a9a450a3e959401bda5f004a72d54b936d376d"
integrity sha512-hPlt7ZACERQGf03M253ytLY3dHbGNGrAq9qIHWUY9XHYl1z7wYngSr3OQ5xmui8o2AaxsONxIzjafLUiWBo1Fg==
Expand Down Expand Up @@ -6990,7 +6952,7 @@ typedarray@^0.0.6:
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=

typescript@^4.0.3, typescript@^4.1.3:
typescript@^4.1.3:
version "4.2.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.2.3.tgz#39062d8019912d43726298f09493d598048c1ce3"
integrity sha512-qOcYwxaByStAWrBf4x0fibwZvMRG+r4cQoTjbPtUlrWjBHbmCAww1i448U0GJ+3cNNEtebDteo/cHOR3xJ4wEw==
Expand All @@ -7005,11 +6967,6 @@ uid-number@0.0.6:
resolved "https://registry.yarnpkg.com/uid-number/-/uid-number-0.0.6.tgz#0ea10e8035e8eb5b8e4449f06da1c730663baa81"
integrity sha1-DqEOgDXo61uOREnwbaHHMGY7qoE=

ultron@1.0.x:
version "1.0.2"
resolved "https://registry.yarnpkg.com/ultron/-/ultron-1.0.2.tgz#ace116ab557cd197386a4e88f4685378c8b2e4fa"
integrity sha1-rOEWq1V80Zc4ak6I9GhTeMiy5Po=

umask@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/umask/-/umask-1.1.0.tgz#f29cebf01df517912bb58ff9c4e50fde8e33320d"
Expand Down Expand Up @@ -7141,14 +7098,6 @@ use@^3.1.0:
resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f"
integrity sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==

utf-8-validate@1.1.x:
version "1.1.0"
resolved "https://registry.yarnpkg.com/utf-8-validate/-/utf-8-validate-1.1.0.tgz#521a6bb2189d0b307ddc5b79c3c95a5fd8085db4"
integrity sha1-UhprshidCzB93Ft5w8laX9gIXbQ=
dependencies:
bindings "1.2.x"
nan "1.8.x"

util-deprecate@^1.0.1, util-deprecate@~1.0.1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"
Expand Down Expand Up @@ -7379,17 +7328,6 @@ write-pkg@^3.1.0:
sort-keys "^2.0.0"
write-json-file "^2.2.0"

ws@0.7.x:
version "0.7.2"
resolved "https://registry.yarnpkg.com/ws/-/ws-0.7.2.tgz#438c560bdfa2b7da3dd5b6b46ed61325c24699d8"
integrity sha1-Q4xWC9+it9o91ba0btYTJcJGmdg=
dependencies:
options ">=0.0.5"
ultron "1.0.x"
optionalDependencies:
bufferutil "1.1.x"
utf-8-validate "1.1.x"

xdg-basedir@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/xdg-basedir/-/xdg-basedir-4.0.0.tgz#4bc8d9984403696225ef83a1573cbbcb4e79db13"
Expand Down

0 comments on commit cbd3d12

Please sign in to comment.