@fastify/autoload
Advanced tools
Comparing version 5.1.0 to 5.2.0
@@ -11,6 +11,7 @@ 'use strict' | ||
const isSWCRegister = process._preload_modules && process._preload_modules.includes('@swc/register') | ||
const isSWCNodeRegister = process._preload_modules && process._preload_modules.includes('@swc-node/register') | ||
const isSWCNode = typeof process.env._ === 'string' && process.env._.includes('.bin/swc-node') | ||
const isTsm = process._preload_modules && process._preload_modules.includes('tsm') | ||
const isTsx = process._preload_modules && process._preload_modules.toString().includes('tsx') | ||
const typescriptSupport = isTsNode || isJestEnvironment || isSWCRegister || isSWCNode || isTsm || isTsx | ||
const typescriptSupport = isTsNode || isJestEnvironment || isSWCRegister || isSWCNodeRegister || isSWCNode || isTsm || isTsx | ||
const routeParamPattern = /\/_/ig | ||
@@ -17,0 +18,0 @@ const routeMixedParamPattern = /__/g |
{ | ||
"name": "@fastify/autoload", | ||
"version": "5.1.0", | ||
"version": "5.2.0", | ||
"description": "Require all plugins in a directory", | ||
@@ -10,3 +10,3 @@ "main": "index.js", | ||
"lint:fix": "standard --fix | snazzy", | ||
"test": "npm run lint && npm run unit && npm run typescript && npm run typescript:jest && npm run typescript:esm && npm run typescript:swc && npm run typescript:tsm && npm run typescript:tsx", | ||
"test": "npm run lint && npm run unit && npm run typescript && npm run typescript:jest && npm run typescript:esm && npm run typescript:swc && npm run typescript:swc-node-register && npm run typescript:tsm && npm run typescript:tsx", | ||
"typescript": "tsd", | ||
@@ -16,2 +16,3 @@ "typescript:jest": "jest", | ||
"typescript:swc": "node scripts/unit-typescript-swc.js", | ||
"typescript:swc-node-register": "node scripts/unit-typescript-swc-node-register.js", | ||
"typescript:tsm": "node scripts/unit-typescript-tsm.js", | ||
@@ -45,16 +46,17 @@ "typescript:tsx": "node scripts/unit-typescript-tsx.js", | ||
"devDependencies": { | ||
"@fastify/pre-commit": "^2.0.2", | ||
"@fastify/url-data": "^5.0.0", | ||
"@swc-node/register": "^1.5.1", | ||
"@swc/core": "^1.2.129", | ||
"@swc/register": "^0.1.9", | ||
"@types/jest": "^27.4.0", | ||
"@types/jest": "^28.1.6", | ||
"@types/node": "^18.0.0", | ||
"@types/tap": "^15.0.5", | ||
"fastify": "^4.0.0-rc.2", | ||
"fastify-plugin": "^3.0.0", | ||
"jest": "^27.4.7", | ||
"pre-commit": "^1.2.2", | ||
"fastify-plugin": "^4.0.0", | ||
"jest": "^28.1.3", | ||
"snazzy": "^9.0.0", | ||
"standard": "^17.0.0", | ||
"tap": "^16.0.0", | ||
"ts-jest": "^27.1.3", | ||
"ts-jest": "^28.0.7", | ||
"ts-node": "^10.4.0", | ||
@@ -61,0 +63,0 @@ "ts-node-dev": "^2.0.0", |
# @fastify/autoload | ||
![CI workflow](https://github.com/fastify/fastify-autoload/workflows/ci/badge.svg) | ||
![CI](https://github.com/fastify/fastify-autoload/workflows/CI/badge.svg) | ||
[![NPM version](https://img.shields.io/npm/v/@fastify/autoload.svg?style=flat)](https://www.npmjs.com/package/@fastify/autoload) | ||
@@ -29,3 +29,3 @@ [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://standardjs.com/) | ||
app.listen(3000) | ||
app.listen({ port: 3000 }) | ||
``` | ||
@@ -50,3 +50,3 @@ | ||
app.listen(3000) | ||
app.listen({ port: 3000 }) | ||
``` | ||
@@ -53,0 +53,0 @@ |
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
110979
224
3226
21
6