chore: Update modules deps (#9286)
This commit is contained in:
committed by
GitHub
parent
11d8264062
commit
e096feb7d5
@@ -1,4 +1,4 @@
|
||||
import { IAuthModuleService } from "@medusajs/types"
|
||||
import { IAuthModuleService } from "@medusajs/framework/types"
|
||||
import { AuthIdentity } from "@models"
|
||||
|
||||
export async function createAuthIdentities(
|
||||
|
||||
@@ -3,8 +3,11 @@ import {
|
||||
AuthIdentityProviderService,
|
||||
AuthenticationInput,
|
||||
AuthenticationResponse,
|
||||
} from "@medusajs/types"
|
||||
import { AbstractAuthModuleProvider, MedusaError } from "@medusajs/utils"
|
||||
} from "@medusajs/framework/types"
|
||||
import {
|
||||
AbstractAuthModuleProvider,
|
||||
MedusaError,
|
||||
} from "@medusajs/framework/utils"
|
||||
|
||||
export class AuthServiceFixtures extends AbstractAuthModuleProvider {
|
||||
constructor() {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { IAuthModuleService } from "@medusajs/types"
|
||||
import { Modules } from "@medusajs/utils"
|
||||
import { IAuthModuleService } from "@medusajs/framework/types"
|
||||
import { Modules } from "@medusajs/framework/utils"
|
||||
import { moduleIntegrationTestRunner } from "medusa-test-utils"
|
||||
import { createAuthIdentities } from "../../__fixtures__/auth-identity"
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { IAuthModuleService } from "@medusajs/types"
|
||||
import { Module, Modules } from "@medusajs/utils"
|
||||
import { IAuthModuleService } from "@medusajs/framework/types"
|
||||
import { Module, Modules } from "@medusajs/framework/utils"
|
||||
import { AuthModuleService } from "@services"
|
||||
import { SuiteOptions, moduleIntegrationTestRunner } from "medusa-test-utils"
|
||||
import { resolve } from "path"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import * as entities from "./src/models"
|
||||
import { defineMikroOrmCliConfig, Modules } from "@medusajs/utils"
|
||||
import { defineMikroOrmCliConfig, Modules } from "@medusajs/framework/utils"
|
||||
|
||||
export default defineMikroOrmCliConfig(Modules.AUTH, {
|
||||
entities: Object.values(entities),
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
"orm:cache:clear": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm cache:clear"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@medusajs/types": "^1.11.14",
|
||||
"@medusajs/framework": "^0.0.1",
|
||||
"@mikro-orm/cli": "5.9.7",
|
||||
"cross-env": "^5.2.1",
|
||||
"jest": "^29.7.0",
|
||||
@@ -47,13 +47,12 @@
|
||||
"typescript": "^5.6.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"@medusajs/modules-sdk": "^1.12.11",
|
||||
"@medusajs/utils": "^1.11.9",
|
||||
"jsonwebtoken": "^9.0.2",
|
||||
"scrypt-kdf": "^2.0.1",
|
||||
"simple-oauth2": "^5.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@medusajs/framework": "^0.0.1",
|
||||
"@mikro-orm/core": "5.9.7",
|
||||
"@mikro-orm/migrations": "5.9.7",
|
||||
"@mikro-orm/postgresql": "5.9.7",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { AuthModuleService } from "@services"
|
||||
import loadProviders from "./loaders/providers"
|
||||
import { Module, Modules } from "@medusajs/utils"
|
||||
import { Module, Modules } from "@medusajs/framework/utils"
|
||||
|
||||
export default Module(Modules.AUTH, {
|
||||
service: AuthModuleService,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { defineJoinerConfig, Modules } from "@medusajs/utils"
|
||||
import { defineJoinerConfig, Modules } from "@medusajs/framework/utils"
|
||||
import { AuthIdentity, ProviderIdentity } from "@models"
|
||||
|
||||
export const joinerConfig = defineJoinerConfig(Modules.AUTH, {
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
import { LoaderOptions, ModulesSdkTypes, ModuleProvider } from "@medusajs/types"
|
||||
import {
|
||||
LoaderOptions,
|
||||
ModulesSdkTypes,
|
||||
ModuleProvider,
|
||||
} from "@medusajs/framework/types"
|
||||
import { Lifetime, asFunction, asValue } from "awilix"
|
||||
import { moduleProviderLoader } from "@medusajs/modules-sdk"
|
||||
import { moduleProviderLoader } from "@medusajs/framework/modules-sdk"
|
||||
import {
|
||||
AuthIdentifiersRegistrationName,
|
||||
AuthProviderRegistrationPrefix,
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
Property,
|
||||
} from "@mikro-orm/core"
|
||||
|
||||
import { generateEntityId } from "@medusajs/utils"
|
||||
import { generateEntityId } from "@medusajs/framework/utils"
|
||||
import ProviderIdentity from "./provider-identity"
|
||||
|
||||
@Entity()
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
import {
|
||||
createPsqlIndexStatementHelper,
|
||||
generateEntityId,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
import AuthIdentity from "./auth-identity"
|
||||
|
||||
const providerEntityIdIndexName = "IDX_provider_identity_provider_entity_id"
|
||||
|
||||
@@ -8,13 +8,13 @@ import {
|
||||
InternalModuleDeclaration,
|
||||
ModuleJoinerConfig,
|
||||
ModulesSdkTypes,
|
||||
} from "@medusajs/types"
|
||||
} from "@medusajs/framework/types"
|
||||
import {
|
||||
InjectManager,
|
||||
MedusaContext,
|
||||
MedusaError,
|
||||
MedusaService,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
import { AuthIdentity, ProviderIdentity } from "@models"
|
||||
import { joinerConfig } from "../joiner-config"
|
||||
import AuthProviderService from "./auth-provider"
|
||||
|
||||
@@ -2,9 +2,9 @@ import {
|
||||
AuthIdentityProviderService,
|
||||
AuthTypes,
|
||||
AuthenticationInput,
|
||||
AuthenticationResponse
|
||||
} from "@medusajs/types"
|
||||
import { MedusaError } from "@medusajs/utils"
|
||||
AuthenticationResponse,
|
||||
} from "@medusajs/framework/types"
|
||||
import { MedusaError } from "@medusajs/framework/utils"
|
||||
import { AuthProviderRegistrationPrefix } from "@types"
|
||||
|
||||
type InjectedDependencies = {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { ModuleProviderExports } from "@medusajs/types"
|
||||
import { ModuleServiceInitializeOptions } from "@medusajs/types"
|
||||
import { Logger } from "@medusajs/types"
|
||||
import { ModuleProviderExports } from "@medusajs/framework/types"
|
||||
import { ModuleServiceInitializeOptions } from "@medusajs/framework/types"
|
||||
import { Logger } from "@medusajs/framework/types"
|
||||
|
||||
export type InitializeModuleInjectableDependencies = {
|
||||
logger?: Logger
|
||||
|
||||
Reference in New Issue
Block a user