chore: Update modules deps (#9286)

This commit is contained in:
Adrien de Peretti
2024-09-26 07:44:35 +02:00
committed by GitHub
parent 11d8264062
commit e096feb7d5
518 changed files with 1115 additions and 957 deletions

View File

@@ -1,4 +1,4 @@
import { MedusaError } from "@medusajs/utils"
import { MedusaError } from "@medusajs/framework/utils"
import Scrypt from "scrypt-kdf"
import { EmailPassAuthService } from "../../src/services/emailpass"
jest.setTimeout(100000)

View File

@@ -26,15 +26,18 @@
"watch": "tsc --watch"
},
"devDependencies": {
"@medusajs/framework": "^0.0.1",
"cross-env": "^5.2.1",
"jest": "^29.7.0",
"rimraf": "^5.0.1",
"typescript": "^5.6.2"
},
"dependencies": {
"@medusajs/utils": "^1.11.9",
"scrypt-kdf": "^2.0.1"
},
"peerDependencies": {
"@medusajs/framework": "^0.0.1"
},
"keywords": [
"medusa-provider",
"medusa-provider-auth-userpass"

View File

@@ -1,4 +1,4 @@
import { ModuleProviderExports } from "@medusajs/types"
import { ModuleProviderExports } from "@medusajs/framework/types"
import { EmailPassAuthService } from "./services/emailpass"
const services = [EmailPassAuthService]

View File

@@ -5,12 +5,12 @@ import {
AuthIdentityProviderService,
EmailPassAuthProviderOptions,
Logger,
} from "@medusajs/types"
} from "@medusajs/framework/types"
import {
AbstractAuthModuleProvider,
isString,
MedusaError,
} from "@medusajs/utils"
} from "@medusajs/framework/utils"
import Scrypt from "scrypt-kdf"
type InjectedDependencies = {

View File

@@ -1,4 +1,4 @@
import { generateJwtToken, MedusaError } from "@medusajs/utils"
import { generateJwtToken, MedusaError } from "@medusajs/framework/utils"
import { GithubAuthService } from "../../src/services/github"
import { http, HttpResponse } from "msw"
import { setupServer } from "msw/node"

View File

@@ -26,7 +26,7 @@
"watch": "tsc --watch"
},
"devDependencies": {
"@medusajs/types": "^1.11.16",
"@medusajs/framework": "^0.0.1",
"@types/simple-oauth2": "^5.0.7",
"cross-env": "^5.2.1",
"jest": "^29.7.0",
@@ -34,8 +34,8 @@
"rimraf": "^5.0.1",
"typescript": "^5.6.2"
},
"dependencies": {
"@medusajs/utils": "^1.11.9"
"peerDependencies": {
"@medusajs/framework": "^0.0.1"
},
"keywords": [
"medusa-provider",

View File

@@ -1,4 +1,4 @@
import { ModuleProviderExports } from "@medusajs/types"
import { ModuleProviderExports } from "@medusajs/framework/types"
import { GithubAuthService } from "./services/github"
const services = [GithubAuthService]

View File

@@ -4,8 +4,11 @@ import {
AuthIdentityProviderService,
GithubAuthProviderOptions,
Logger,
} from "@medusajs/types"
import { AbstractAuthModuleProvider, MedusaError } from "@medusajs/utils"
} from "@medusajs/framework/types"
import {
AbstractAuthModuleProvider,
MedusaError,
} from "@medusajs/framework/utils"
type InjectedDependencies = {
logger: Logger

View File

@@ -1,4 +1,4 @@
import { generateJwtToken, MedusaError } from "@medusajs/utils"
import { generateJwtToken, MedusaError } from "@medusajs/framework/utils"
import { GoogleAuthService } from "../../src/services/google"
import { http, HttpResponse } from "msw"
import { setupServer } from "msw/node"

View File

@@ -26,7 +26,7 @@
"watch": "tsc --watch"
},
"devDependencies": {
"@medusajs/types": "^1.11.16",
"@medusajs/framework": "^0.0.1",
"@types/simple-oauth2": "^5.0.7",
"cross-env": "^5.2.1",
"jest": "^29.7.0",
@@ -35,9 +35,11 @@
"typescript": "^5.6.2"
},
"dependencies": {
"@medusajs/utils": "^1.11.9",
"jsonwebtoken": "^9.0.2"
},
"peerDependencies": {
"@medusajs/framework": "^0.0.1"
},
"keywords": [
"medusa-provider",
"medusa-provider-auth-google"

View File

@@ -1,4 +1,4 @@
import { ModuleProviderExports } from "@medusajs/types"
import { ModuleProviderExports } from "@medusajs/framework/types"
import { GoogleAuthService } from "./services/google"
const services = [GoogleAuthService]

View File

@@ -4,8 +4,11 @@ import {
AuthIdentityProviderService,
GoogleAuthProviderOptions,
Logger,
} from "@medusajs/types"
import { AbstractAuthModuleProvider, MedusaError } from "@medusajs/utils"
} from "@medusajs/framework/types"
import {
AbstractAuthModuleProvider,
MedusaError,
} from "@medusajs/framework/utils"
import jwt, { JwtPayload } from "jsonwebtoken"
type InjectedDependencies = {

View File

@@ -25,13 +25,14 @@
"watch": "tsc --watch"
},
"devDependencies": {
"@medusajs/framework": "^0.0.1",
"cross-env": "^5.2.1",
"jest": "^29.7.0",
"rimraf": "^5.0.1",
"typescript": "^5.6.2"
},
"dependencies": {
"@medusajs/utils": "^1.11.9"
"peerDependencies": {
"@medusajs/framework": "^0.0.1"
},
"keywords": [
"medusa-plugin",

View File

@@ -1,4 +1,4 @@
import { ModuleProviderExports } from "@medusajs/types"
import { ModuleProviderExports } from "@medusajs/framework/types"
import { LocalFileService } from "./services/local-file"
const services = [LocalFileService]

View File

@@ -1,5 +1,8 @@
import { FileTypes, LocalFileServiceOptions } from "@medusajs/types"
import { AbstractFileProviderService, MedusaError } from "@medusajs/utils"
import { FileTypes, LocalFileServiceOptions } from "@medusajs/framework/types"
import {
AbstractFileProviderService,
MedusaError,
} from "@medusajs/framework/utils"
import fs from "fs/promises"
import path from "path"

View File

@@ -26,6 +26,7 @@
"watch": "tsc --watch"
},
"devDependencies": {
"@medusajs/framework": "^0.0.1",
"axios": "^1.6.8",
"cross-env": "^5.2.1",
"jest": "^29.7.0",
@@ -34,10 +35,10 @@
},
"dependencies": {
"@aws-sdk/client-s3": "^3.556.0",
"@aws-sdk/s3-request-presigner": "^3.556.0",
"@medusajs/utils": "^1.11.9"
"@aws-sdk/s3-request-presigner": "^3.556.0"
},
"peerDependencies": {
"@medusajs/framework": "^0.0.1",
"ulid": "^2.3.0"
},
"keywords": [

View File

@@ -1,4 +1,4 @@
import { ModuleProviderExports } from "@medusajs/types"
import { ModuleProviderExports } from "@medusajs/framework/types"
import { S3FileService } from "./services/s3-file"
const services = [S3FileService]

View File

@@ -6,8 +6,15 @@ import {
S3ClientConfigType,
} from "@aws-sdk/client-s3"
import { getSignedUrl } from "@aws-sdk/s3-request-presigner"
import { FileTypes, Logger, S3FileServiceOptions } from "@medusajs/types"
import { AbstractFileProviderService, MedusaError } from "@medusajs/utils"
import {
FileTypes,
Logger,
S3FileServiceOptions,
} from "@medusajs/framework/types"
import {
AbstractFileProviderService,
MedusaError,
} from "@medusajs/framework/utils"
import path from "path"
import { ulid } from "ulid"

View File

@@ -25,16 +25,19 @@
"watch": "tsc --watch"
},
"devDependencies": {
"@medusajs/framework": "^0.0.1",
"cross-env": "^5.2.1",
"jest": "^29.7.0",
"rimraf": "^5.0.1",
"typescript": "^5.6.2"
},
"dependencies": {
"@medusajs/utils": "^1.11.9",
"body-parser": "^1.19.0",
"express": "^4.17.1"
},
"peerDependencies": {
"@medusajs/framework": "^0.0.1"
},
"keywords": [
"medusa-plugin",
"medusa-plugin-fulfillment"

View File

@@ -1,4 +1,4 @@
import { ModuleProviderExports } from "@medusajs/types"
import { ModuleProviderExports } from "@medusajs/framework/types"
import { ManualFulfillmentService } from "./services/manual-fulfillment"
const services = [ManualFulfillmentService]

View File

@@ -1,4 +1,4 @@
import { AbstractFulfillmentProviderService } from "@medusajs/utils"
import { AbstractFulfillmentProviderService } from "@medusajs/framework/utils"
// TODO rework type and DTO's

View File

@@ -26,13 +26,14 @@
"watch": "tsc --watch"
},
"devDependencies": {
"@medusajs/framework": "^0.0.1",
"cross-env": "^5.2.1",
"jest": "^29.7.0",
"rimraf": "^5.0.1",
"typescript": "^5.6.2"
},
"dependencies": {
"@medusajs/utils": "^1.11.9"
"peerDependencies": {
"@medusajs/framework": "^0.0.1"
},
"keywords": [
"medusa-provider",

View File

@@ -1,4 +1,4 @@
import { ModuleProviderExports } from "@medusajs/types"
import { ModuleProviderExports } from "@medusajs/framework/types"
import { LocalNotificationService } from "./services/local"
const services = [LocalNotificationService]

View File

@@ -2,11 +2,11 @@ import {
Logger,
NotificationTypes,
LocalNotificationServiceOptions,
} from "@medusajs/types"
} from "@medusajs/framework/types"
import {
AbstractNotificationProviderService,
MedusaError,
} from "@medusajs/utils"
} from "@medusajs/framework/utils"
type InjectedDependencies = {
logger: Logger

View File

@@ -26,6 +26,7 @@
"watch": "tsc --watch"
},
"devDependencies": {
"@medusajs/framework": "^0.0.1",
"@swc/core": "^1.5.29",
"@swc/jest": "^0.2.36",
"cross-env": "^5.2.1",
@@ -34,9 +35,11 @@
"typescript": "^5.6.2"
},
"dependencies": {
"@medusajs/utils": "^1.11.9",
"@sendgrid/mail": "^8.1.3"
},
"peerDependencies": {
"@medusajs/framework": "^0.0.1"
},
"keywords": [
"medusa-provider",
"medusa-provider-sendgrid"

View File

@@ -1,4 +1,4 @@
import { ModuleProviderExports } from "@medusajs/types"
import { ModuleProviderExports } from "@medusajs/framework/types"
import { SendgridNotificationService } from "./services/sendgrid"
const services = [SendgridNotificationService]

View File

@@ -2,11 +2,11 @@ import {
Logger,
NotificationTypes,
SendgridNotificationServiceOptions,
} from "@medusajs/types"
} from "@medusajs/framework/types"
import {
AbstractNotificationProviderService,
MedusaError,
} from "@medusajs/utils"
} from "@medusajs/framework/utils"
import sendgrid from "@sendgrid/mail"
type InjectedDependencies = {

View File

@@ -25,7 +25,7 @@
"watch": "tsc --watch"
},
"devDependencies": {
"@medusajs/medusa": "^1.20.3",
"@medusajs/framework": "^0.0.1",
"@types/stripe": "^8.0.417",
"cross-env": "^5.2.1",
"jest": "^29.7.0",
@@ -33,10 +33,10 @@
"typescript": "^5.6.2"
},
"peerDependencies": {
"@medusajs/framework": "^0.0.1",
"awilix": "^8.0.1"
},
"dependencies": {
"@medusajs/utils": "^1.11.9",
"body-parser": "^1.19.0",
"express": "^4.17.1",
"stripe": "latest"

View File

@@ -10,7 +10,7 @@ import {
ProviderWebhookPayload,
UpdatePaymentProviderSession,
WebhookActionResult,
} from "@medusajs/types"
} from "@medusajs/framework/types"
import {
AbstractPaymentProvider,
isDefined,
@@ -19,7 +19,7 @@ import {
MedusaError,
PaymentActions,
PaymentSessionStatus,
} from "@medusajs/utils"
} from "@medusajs/framework/utils"
import {
ErrorCodes,
ErrorIntentStatus,

View File

@@ -1,4 +1,4 @@
import { ModuleProviderExports } from "@medusajs/types"
import { ModuleProviderExports } from "@medusajs/framework/types"
import {
StripeBancontactService,
StripeBlikService,

View File

@@ -1,5 +1,5 @@
import { BigNumberInput } from "@medusajs/types"
import { BigNumber, MathBN } from "@medusajs/utils"
import { BigNumberInput } from "@medusajs/framework/types"
import { BigNumber, MathBN } from "@medusajs/framework/utils"
function getCurrencyMultiplier(currency) {
const currencyMultipliers = {