Prerequisites
Exception report
Where-Object {
>> $_.FullName -notmatch "\\node_modules\\" -and
>> $_.FullName -notmatch "\\dist\\"
>> } |
>> Select-Object FullName
Screenshot
follow for more
Environment data
import 'dotenv/config';
import express from 'express';
import cors from 'cors';
import { authRouter } from './routes/auth.js';
import { profileRouter } from './routes/profile.js';
import { requireAuth } from './middleware/require-auth.js';
import { errorHandler, notFound } from './lib/http.js';
const app = express();
const port = Number(process.env.PORT ?? 4000);
const origin = process.env.FRONTEND_ORIGIN ?? 'http://localhost:3000';
app.disable('x-powered-by');
app.use(cors({ origin, methods: ['GET', 'POST', 'PATCH'], allowedHeaders: ['Content-Type', 'Authorization'] }));
app.use(express.json({ limit: '32kb' }));
app.get('/health', (_req, res) => res.json({ ok: true }));
app.use('/auth', authRouter);
app.use('/profile', requireAuth, profileRouter);
app.use(notFound);
app.use(errorHandler);
app.listen(port, () => console.log(`AfyaPlate auth backend listening on port ${port}`));
Steps to reproduce
Where-Object {
$_.FullName -notmatch "\\node_modules\\" -and
$_.FullName -notmatch "\\dist\\"
} |
Select-Object FullName
Expected behavior
Actual value was -1.
at System.Console.SetCursorPosition(Int32 left, Int32 top)
at Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
at Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
at Microsoft.PowerShell.PSConsoleReadLine.Paste(Nullable1 key, Object arg) at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
Actual behavior
PS C:\Users\SA> Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
Prerequisites
Exception report
Screenshot
follow for more
Environment data
Steps to reproduce
Where-Object {
Expected behavior
Actual value was -1.
at System.Console.SetCursorPosition(Int32 left, Int32 top)
at Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
at Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
at Microsoft.PowerShell.PSConsoleReadLine.Paste(Nullable
1 key, Object arg) at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary2 dispatchTable, Boolean ignoreIfNoAction, Object arg)at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
Actual behavior
PS C:\Users\SA> Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned