Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Samata19 patch 1 #3077

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

Samata19
Copy link

@Samata19 Samata19 commented Feb 2, 2025

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other: <!-- Please describe: -->

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[ ] No

Other information

PS C:\Users\Alisa\web site Gredeli> cd backend
PS C:\Users\Alisa\web site Gredeli\backend> npm install
npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: This package is no longer supported.

added 153 packages, and audited 154 packages in 11s

17 packages are looking for funding
  run `npm fund` for details

1 high severity vulnerability

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.
PS C:\Users\Alisa\web site Gredeli\backend> npm audit fix

up to date, audited 154 packages in 2s

17 packages are looking for funding
  run `npm fund` for details

# npm audit report

jsonwebtoken  <=8.5.1
Severity: high
jsonwebtoken vulnerable to signature validation bypass due to insecure default algorithm in jwt.verify() - GHSA-qwph-4952-7xr6
jsonwebtoken unrestricted key type could lead to legacy keys usage  - GHSA-8cf7-32gw-wr33
jsonwebtoken's insecure implementation of key retrieval function could lead to Forgeable Public/Private Tokens from RSA to HMAC - GHSA-hjrf-2m68-5959
fix available via `npm audit fix --force`
Will install [email protected], which is a breaking change
node_modules/jsonwebtoken

1 high severity vulnerability

To address all issues (including breaking changes), run:
  npm audit fix --force
PS C:\Users\Alisa\web site Gredeli\backend> npm audit fix --force
npm warn using --force Recommended protections disabled.
npm warn audit Updating jsonwebtoken to 9.0.2, which is a SemVer major change.

removed 1 package, changed 1 package, and audited 153 packages in 2s

17 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
PS C:\Users\Alisa\web site Gredeli\backend> npm audit
found 0 vulnerabilities
PS C:\Users\Alisa\web site Gredeli\backend> npm start

> [email protected] start
> node server.js

الخادم يعمل على http://localhost:3000
C:\Users\Alisa\web site Gredeli\backend\server.js:24
    if (err) throw err;
             ^

AggregateError [ECONNREFUSED]:
    at internalConnectMultiple (node:net:1139:18)
    at afterConnectMultiple (node:net:1712:7)
    --------------------
    at Protocol._enqueue (C:\Users\Alisa\web site Gredeli\backend\node_modules\mysql\lib\protocol\Protocol.js:144:48)
    at Protocol.handshake (C:\Users\Alisa\web site Gredeli\backend\node_modules\mysql\lib\protocol\Protocol.js:51:23)
    at Connection.connect (C:\Users\Alisa\web site Gredeli\backend\node_modules\mysql\lib\Connection.js:116:18)   
    at Object.<anonymous> (C:\Users\Alisa\web site Gredeli\backend\server.js:23:4)
    at Module._compile (node:internal/modules/cjs/loader:1562:14)
    at Object..js (node:internal/modules/cjs/loader:1699:10)
    at Module.load (node:internal/modules/cjs/loader:1313:32)
    at Function._load (node:internal/modules/cjs/loader:1123:12)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:217:24) {
  code: 'ECONNREFUSED',
  fatal: true,
  [errors]: [
    Error: connect ECONNREFUSED ::1:3306
        at createConnectionError (node:net:1675:14)
        at afterConnectMultiple (node:net:1705:16) {
      errno: -4078,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '::1',
      port: 3306
    },
    Error: connect ECONNREFUSED 127.0.0.1:3306
        at createConnectionError (node:net:1675:14)
        at afterConnectMultiple (node:net:1705:16) {
      errno: -4078,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '127.0.0.1',
      port: 3306
    }
  ]
}

Node.js v22.13.1
PS C:\Users\Alisa\web site Gredeli\backend> npm update

up to date, audited 153 packages in 9s

17 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
PS C:\Users\Alisa\web site Gredeli\backend> rm -rf node_modules
>> npm install
Remove-Item : Impossible de trouver un paramètre correspondant au nom « rf ».
Au caractère Ligne:1 : 4
+ rm -rf node_modules
+    ~~~
+    ~~~
emove-Item], ParameterBindingException


up to date, audited 153 packages in 1s

17 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
PS C:\Users\Alisa\web site Gredeli\backend> npm install

up to date, audited 153 packages in 2s

17 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
PS C:\Users\Alisa\web site Gredeli\backend> npm start

> [email protected] start
> node server.js

الخادم يعمل على http://localhost:3000
C:\Users\Alisa\web site Gredeli\backend\server.js:24
    if (err) throw err;
             ^

AggregateError [ECONNREFUSED]: 
    at internalConnectMultiple (node:net:1139:18)
    at afterConnectMultiple (node:net:1712:7)
    --------------------
    at Protocol._enqueue (C:\Users\Alisa\web site Gredeli\backend\node_modules\mysql\lib\protocol\Protocol.js:144:48)
    at Protocol.handshake (C:\Users\Alisa\web site Gredeli\backend\node_modules\mysql\lib\protocol\Protocol.js:51:23)
    at Connection.connect (C:\Users\Alisa\web site Gredeli\backend\node_modules\mysql\lib\Connection.js:116:18)
    at Object.<anonymous> (C:\Users\Alisa\web site Gredeli\backend\server.js:23:4)
    at Module._compile (node:internal/modules/cjs/loader:1562:14)
    at Object..js (node:internal/modules/cjs/loader:1699:10)
    at Module.load (node:internal/modules/cjs/loader:1313:32)
    at Function._load (node:internal/modules/cjs/loader:1123:12)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:217:24) {
  code: 'ECONNREFUSED',
  fatal: true,
  [errors]: [
    Error: connect ECONNREFUSED ::1:3306
        at createConnectionError (node:net:1675:14)
        at afterConnectMultiple (node:net:1705:16) {
      errno: -4078,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '::1',
      port: 3306
    },
    Error: connect ECONNREFUSED 127.0.0.1:3306
        at createConnectionError (node:net:1675:14)
        at afterConnectMultiple (node:net:1705:16) {
      errno: -4078,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '127.0.0.1',
      port: 3306
    }
  ]
}

Node.js v22.13.1
PS C:\Users\Alisa\web site Gredeli\backend> npm install

up to date, audited 153 packages in 1s

17 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
PS C:\Users\Alisa\web site Gredeli\backend> npm start

> [email protected] start
> node server.js

الخادم يعمل على http://localhost:3000
C:\Users\Alisa\web site Gredeli\backend\server.js:24
    if (err) throw err;
             ^

AggregateError [ECONNREFUSED]:
    at internalConnectMultiple (node:net:1139:18)
    at afterConnectMultiple (node:net:1712:7)
    --------------------
    at Protocol._enqueue (C:\Users\Alisa\web site Gredeli\backend\node_modules\mysql\lib\protocol\Protocol.js:144:48)
    at Protocol.handshake (C:\Users\Alisa\web site Gredeli\backend\node_modules\mysql\lib\protocol\Protocol.js:51:23)
    at Connection.connect (C:\Users\Alisa\web site Gredeli\backend\node_modules\mysql\lib\Connection.js:116:18)
    at Object.<anonymous> (C:\Users\Alisa\web site Gredeli\backend\server.js:23:4)
    at Module._compile (node:internal/modules/cjs/loader:1562:14)      
    at Object..js (node:internal/modules/cjs/loader:1699:10)
    at Module.load (node:internal/modules/cjs/loader:1313:32)
    at Function._load (node:internal/modules/cjs/loader:1123:12)       
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)      
    at wrapModuleLoad (node:internal/modules/cjs/loader:217:24) {      
  code: 'ECONNREFUSED',
  fatal: true,
  [errors]: [
    Error: connect ECONNREFUSED ::1:3306
        at createConnectionError (node:net:1675:14)
        at afterConnectMultiple (node:net:1705:16) {
      errno: -4078,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '::1',
      port: 3306
    },
    Error: connect ECONNREFUSED 127.0.0.1:3306
        at createConnectionError (node:net:1675:14)
        at afterConnectMultiple (node:net:1705:16) {
      errno: -4078,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '127.0.0.1',
      port: 3306
    }
  ]
}

Node.js v22.13.1
<!DOCTYPE html>
<html lang="ar">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Gredeli-Uber</title>
    <link rel="stylesheet" href="styles.css">
</head>
<body>
    <header>
        <h1>مرحبًا بكم في Gredeli-Uber</h1>
    </header>

    <main>
        <section id="auth">
            <h2>تسجيل الدخول</h2>
            <input type="email" id="email" placeholder="البريد الإلكتروني">
            <input type="password" id="password" placeholder="كلمة المرور">
            <button onclick="login()">تسجيل الدخول</button>
            <p id="authMessage"></p>
        </section>

        <section id="orders" style="display: none;">
            <h2>طلباتك</h2>
            <ul id="orderList"></ul>
        </section>
    </main>

    <footer>
        <p>© 2023 Gredeli-Uber. جميع الحقوق محفوظة.</p>
    </footer>

    <script src="script.js"></script>
</body>
</html>
Copy link

pantomaxbot bot commented Feb 2, 2025

Do you want me to review this PR? Please comment /review .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant