From 6de2f85b2439830fd1e0e263d91ade5f6423fd9c Mon Sep 17 00:00:00 2001 From: Ivan Li Date: Sun, 18 Jul 2021 11:25:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B?= =?UTF-8?q?=E5=9B=A0=20jose=E3=80=81jest=20=E5=85=BC=E5=AE=B9=E6=80=A7?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E6=97=A0=E6=B3=95=E9=80=9A=E8=BF=87=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 25 +++++++++++++++++++++---- package.json | 6 ++++-- 2 files changed, 25 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 23d02f9..bfff517 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,7 +19,6 @@ "apollo-server-express": "^2.19.2", "bcrypt": "^5.0.0", "body-parser": "^1.19.0", - "bull": "^3.20.1", "class-transformer": "^0.3.2", "class-validator": "^0.13.1", "debug": "^4.3.1", @@ -5165,6 +5164,7 @@ "version": "3.22.3", "resolved": "https://registry.npmjs.org/bull/-/bull-3.22.3.tgz", "integrity": "sha512-nkSMtXkCGqjbH8ArFZWKbq3hQb/d5fW7N2m6C0iLeQKngB7pdObH+Lo9hK36v7f3ZENmiIScmKRN15wbyEJ5Pw==", + "peer": true, "dependencies": { "cron-parser": "^2.13.0", "debuglog": "^1.0.0", @@ -6008,6 +6008,7 @@ "version": "2.18.0", "resolved": "https://registry.npmjs.org/cron-parser/-/cron-parser-2.18.0.tgz", "integrity": "sha512-s4odpheTyydAbTBQepsqd2rNWGa2iV3cyo8g7zbI2QQYGLVsfbhmwukayS1XHppe02Oy1fg7mg6xoaraVJeEcg==", + "peer": true, "dependencies": { "is-nan": "^1.3.0", "moment-timezone": "^0.5.31" @@ -6118,6 +6119,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/debuglog/-/debuglog-1.0.1.tgz", "integrity": "sha1-qiT/uaw9+aI1GDfPstJ5NgzXhJI=", + "peer": true, "engines": { "node": "*" } @@ -7805,6 +7807,7 @@ "version": "5.1.1", "resolved": "https://registry.npmjs.org/get-port/-/get-port-5.1.1.tgz", "integrity": "sha512-g/Q1aTSDOxFpchXC4i8ZWvxA1lnPqx/JHqcpIw0/LX9T8x/GBbi6YnlN5nhaKIFkT8oFsscUKgDJYxfwfS6QsQ==", + "peer": true, "engines": { "node": ">=8" }, @@ -8801,6 +8804,7 @@ "version": "1.3.2", "resolved": "https://registry.npmjs.org/is-nan/-/is-nan-1.3.2.tgz", "integrity": "sha512-E+zBKpQ2t6MEo1VsonYmluk9NxGrbzpeeLC2xIViuO2EjU2xsXsBPwTr3Ykv9l08UYEVEdWeRZNouaZqF6RN0w==", + "peer": true, "dependencies": { "call-bind": "^1.0.0", "define-properties": "^1.1.3" @@ -10656,6 +10660,7 @@ "version": "2.29.1", "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.1.tgz", "integrity": "sha512-kHmoybcPV8Sqy59DwNDY3Jefr64lK/by/da0ViFcuA4DH0vQg5Q6Ze5VimxkfQNSC+Mls/Kx53s7TjP1RhFEDQ==", + "peer": true, "engines": { "node": "*" } @@ -10664,6 +10669,7 @@ "version": "0.5.33", "resolved": "https://registry.npmjs.org/moment-timezone/-/moment-timezone-0.5.33.tgz", "integrity": "sha512-PTc2vcT8K9J5/9rDEPe5czSIKgLoGsH8UNpA4qZTVw0Vd/Uz19geE9abbIOQKaAQFcnQ3v5YEXrbSc5BpshH+w==", + "peer": true, "dependencies": { "moment": ">= 2.9.0" }, @@ -11420,6 +11426,7 @@ "version": "3.2.0", "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-3.2.0.tgz", "integrity": "sha512-rhIwUycgwwKcP9yTOOFK/AKsAopjjCakVqLHePO3CC6Mir1Z99xT+R63jZxAT5lFZLa2inS5h+ZS2GvR99/FBg==", + "peer": true, "dependencies": { "p-finally": "^1.0.0" }, @@ -11828,6 +11835,7 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/promise.prototype.finally/-/promise.prototype.finally-3.1.2.tgz", "integrity": "sha512-A2HuJWl2opDH0EafgdjwEw7HysI8ff/n4lW4QEVBCUXFk9QeGecBWv0Deph0UmLe3tTNYegz8MOjsVuE6SMoJA==", + "peer": true, "dependencies": { "define-properties": "^1.1.3", "es-abstract": "^1.17.0-next.0", @@ -19823,6 +19831,7 @@ "version": "3.22.3", "resolved": "https://registry.npmjs.org/bull/-/bull-3.22.3.tgz", "integrity": "sha512-nkSMtXkCGqjbH8ArFZWKbq3hQb/d5fW7N2m6C0iLeQKngB7pdObH+Lo9hK36v7f3ZENmiIScmKRN15wbyEJ5Pw==", + "peer": true, "requires": { "cron-parser": "^2.13.0", "debuglog": "^1.0.0", @@ -20479,6 +20488,7 @@ "version": "2.18.0", "resolved": "https://registry.npmjs.org/cron-parser/-/cron-parser-2.18.0.tgz", "integrity": "sha512-s4odpheTyydAbTBQepsqd2rNWGa2iV3cyo8g7zbI2QQYGLVsfbhmwukayS1XHppe02Oy1fg7mg6xoaraVJeEcg==", + "peer": true, "requires": { "is-nan": "^1.3.0", "moment-timezone": "^0.5.31" @@ -20567,7 +20577,8 @@ "debuglog": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/debuglog/-/debuglog-1.0.1.tgz", - "integrity": "sha1-qiT/uaw9+aI1GDfPstJ5NgzXhJI=" + "integrity": "sha1-qiT/uaw9+aI1GDfPstJ5NgzXhJI=", + "peer": true }, "decamelize": { "version": "1.2.0", @@ -21881,7 +21892,8 @@ "get-port": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/get-port/-/get-port-5.1.1.tgz", - "integrity": "sha512-g/Q1aTSDOxFpchXC4i8ZWvxA1lnPqx/JHqcpIw0/LX9T8x/GBbi6YnlN5nhaKIFkT8oFsscUKgDJYxfwfS6QsQ==" + "integrity": "sha512-g/Q1aTSDOxFpchXC4i8ZWvxA1lnPqx/JHqcpIw0/LX9T8x/GBbi6YnlN5nhaKIFkT8oFsscUKgDJYxfwfS6QsQ==", + "peer": true }, "get-stream": { "version": "5.2.0", @@ -22610,6 +22622,7 @@ "version": "1.3.2", "resolved": "https://registry.npmjs.org/is-nan/-/is-nan-1.3.2.tgz", "integrity": "sha512-E+zBKpQ2t6MEo1VsonYmluk9NxGrbzpeeLC2xIViuO2EjU2xsXsBPwTr3Ykv9l08UYEVEdWeRZNouaZqF6RN0w==", + "peer": true, "requires": { "call-bind": "^1.0.0", "define-properties": "^1.1.3" @@ -24015,12 +24028,14 @@ "moment": { "version": "2.29.1", "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.1.tgz", - "integrity": "sha512-kHmoybcPV8Sqy59DwNDY3Jefr64lK/by/da0ViFcuA4DH0vQg5Q6Ze5VimxkfQNSC+Mls/Kx53s7TjP1RhFEDQ==" + "integrity": "sha512-kHmoybcPV8Sqy59DwNDY3Jefr64lK/by/da0ViFcuA4DH0vQg5Q6Ze5VimxkfQNSC+Mls/Kx53s7TjP1RhFEDQ==", + "peer": true }, "moment-timezone": { "version": "0.5.33", "resolved": "https://registry.npmjs.org/moment-timezone/-/moment-timezone-0.5.33.tgz", "integrity": "sha512-PTc2vcT8K9J5/9rDEPe5czSIKgLoGsH8UNpA4qZTVw0Vd/Uz19geE9abbIOQKaAQFcnQ3v5YEXrbSc5BpshH+w==", + "peer": true, "requires": { "moment": ">= 2.9.0" } @@ -24616,6 +24631,7 @@ "version": "3.2.0", "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-3.2.0.tgz", "integrity": "sha512-rhIwUycgwwKcP9yTOOFK/AKsAopjjCakVqLHePO3CC6Mir1Z99xT+R63jZxAT5lFZLa2inS5h+ZS2GvR99/FBg==", + "peer": true, "requires": { "p-finally": "^1.0.0" } @@ -24920,6 +24936,7 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/promise.prototype.finally/-/promise.prototype.finally-3.1.2.tgz", "integrity": "sha512-A2HuJWl2opDH0EafgdjwEw7HysI8ff/n4lW4QEVBCUXFk9QeGecBWv0Deph0UmLe3tTNYegz8MOjsVuE6SMoJA==", + "peer": true, "requires": { "define-properties": "^1.1.3", "es-abstract": "^1.17.0-next.0", diff --git a/package.json b/package.json index 93ab2d0..7ce49b9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "blog-be", - "version": "0.0.1", + "version": "0.1.0", "description": "", "author": "", "private": true, @@ -32,7 +32,6 @@ "apollo-server-express": "^2.19.2", "bcrypt": "^5.0.0", "body-parser": "^1.19.0", - "bull": "^3.20.1", "class-transformer": "^0.3.2", "class-validator": "^0.13.1", "debug": "^4.3.1", @@ -92,6 +91,9 @@ "collectCoverageFrom": [ "**/*.(t|j)s" ], + "moduleNameMapper": { + "^jose/(.*)$": "/../node_modules/jose/dist/node/cjs/$1" + }, "coverageDirectory": "../coverage", "testEnvironment": "node" }