소스 검색

Merge pull request #30182 from overleaf/ar/update-jws-to-3.2.3_or_4.0.1

[monorepo] update jws to 4.0.1

GitOrigin-RevId: b3e778b26b2860112fe80220d6e7354520994082
Andrew Rumble 8 달 전
부모
커밋
f3c9b2f2f0
5개의 변경된 파일392개의 추가작업 그리고 180개의 파일을 삭제
  1. 363 156
      package-lock.json
  2. 27 22
      patches/@google-cloud+storage++teeny-request+8.0.3.patch
  3. 0 0
      patches/teeny-request+7.2.0.patch
  4. 1 1
      services/history-v1/package.json
  5. 1 1
      services/web/package.json

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 363 - 156
package-lock.json


+ 27 - 22
patches/@google-cloud+storage++teeny-request+8.0.2.patch → patches/@google-cloud+storage++teeny-request+8.0.3.patch

@@ -1,37 +1,35 @@
 diff --git a/node_modules/@google-cloud/storage/node_modules/teeny-request/build/src/index.js b/node_modules/@google-cloud/storage/node_modules/teeny-request/build/src/index.js
-index a2251ca..e29e796 100644
+index af5d15e..8a9bf77 100644
 --- a/node_modules/@google-cloud/storage/node_modules/teeny-request/build/src/index.js
 +++ b/node_modules/@google-cloud/storage/node_modules/teeny-request/build/src/index.js
-@@ -166,27 +166,27 @@ function teenyRequest(reqOpts, callback) {
-     }
-     if (callback === undefined) {
+@@ -168,31 +168,34 @@ function teenyRequest(reqOpts, callback) {
          // Stream mode
--        const requestStream = streamEvents(new stream_1.PassThrough());
--        // eslint-disable-next-line @typescript-eslint/no-explicit-any
+         const requestStream = streamEvents(new stream_1.PassThrough());
+         // eslint-disable-next-line @typescript-eslint/no-explicit-any
 -        let responseStream;
 -        requestStream.once('reading', () => {
 -            if (responseStream) {
--                responseStream.pipe(requestStream);
+-                (0, stream_1.pipeline)(responseStream, requestStream, () => { });
 -            }
 -            else {
 -                requestStream.once('response', () => {
--                    responseStream.pipe(requestStream);
+-                    (0, stream_1.pipeline)(responseStream, requestStream, () => { });
 -                });
 -            }
 -        });
-+        const requestStream = new stream_1.PassThrough();
-+        // // eslint-disable-next-line @typescript-eslint/no-explicit-any
 +        // let responseStream;
 +        // requestStream.once('reading', () => {
-+        //     if (responseStream) {
-+        //         responseStream.pipe(requestStream);
-+        //     }
-+        //     else {
-+        //         requestStream.once('response', () => {
-+        //             responseStream.pipe(requestStream);
-+        //         });
-+        //     }
++        //    if (responseStream) {
++        //        (0, stream_1.pipeline)(responseStream, requestStream, () => { });
++        //    }
++        //    else {
++        //        requestStream.once('response', () => {
++        //            (0, stream_1.pipeline)(responseStream, requestStream, () => { });
++        //        });
++        //    }
 +        // });
++
++
          options.compress = false;
          teenyRequest.stats.requestStarting();
          (0, node_fetch_1.default)(uri, options).then(res => {
@@ -41,10 +39,17 @@ index a2251ca..e29e796 100644
 -                requestStream.emit('error', err);
 -            });
 +            teenyRequest.stats.requestFinished(); stream_1.pipeline(res.body, requestStream, () => {});
-+            // responseStream = res.body;
-+            // responseStream.on('error', (err) => {
-+            //     requestStream.emit('error', err);
-+            // });
++        //    responseStream = res.body;
++        //    responseStream.on('error', (err) => {
++        //        requestStream.emit('error', err);
++        //    });
              const response = fetchToRequestResponse(options, res);
              requestStream.emit('response', response);
          }, err => {
+             teenyRequest.stats.requestFinished();
+             requestStream.emit('error', err);
+         });
++
+         // fetch doesn't supply the raw HTTP stream, instead it
+         // returns a PassThrough piped from the HTTP response
+         // stream.

+ 0 - 0
patches/teeny-request+7.1.3.patch → patches/teeny-request+7.2.0.patch


+ 1 - 1
services/history-v1/package.json

@@ -32,7 +32,7 @@
     "generic-pool": "^2.1.1",
     "helmet": "^3.22.0",
     "http-status": "^1.4.2",
-    "jsonwebtoken": "^9.0.0",
+    "jsonwebtoken": "^9.0.3",
     "knex": "^2.4.0",
     "lodash": "^4.17.19",
     "mongodb": "6.12.0",

+ 1 - 1
services/web/package.json

@@ -145,7 +145,7 @@
     "i18next-http-middleware": "^3.5.0",
     "jose": "^4.3.8",
     "json2csv": "^4.3.3",
-    "jsonwebtoken": "^9.0.0",
+    "jsonwebtoken": "^9.0.3",
     "lodash": "^4.17.19",
     "lru-cache": "^7.10.1",
     "marked": "^4.1.0",

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.