chore: perform dependencies scan and fix all dependencies (#9296)
This commit is contained in:
1 parent
fba78c0fb1
commit
48bea267dc
593 files changed
+2729
-2314
No files matched your search
@@ -23,31 +23,35 @@
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@medusajs/framework": "^0.0.1",
|
||||
"@medusajs/modules-sdk": "*",
|
||||
"@medusajs/types": "^1.11.16",
|
||||
"@mikro-orm/core": "5.9.7",
|
||||
"@mikro-orm/knex": "5.9.7",
|
||||
"@mikro-orm/migrations": "5.9.7",
|
||||
"@mikro-orm/postgresql": "5.9.7",
|
||||
"cross-env": "^5.2.1",
|
||||
"awilix": "^8.0.1",
|
||||
"bignumber.js": "^9.1.2",
|
||||
"express": "^4.18.3",
|
||||
"ioredis": "^5.4.1",
|
||||
"jest": "^29.7.0",
|
||||
"pg": "^8.13.0",
|
||||
"pg-god": "^1.0.12",
|
||||
"rimraf": "^3.0.2",
|
||||
"typescript": "^5.1.6"
|
||||
"typescript": "^5.6.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"axios": "^0.21.4",
|
||||
"get-port": "^5.1.0",
|
||||
"randomatic": "^3.1.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@medusajs/medusa": "*"
|
||||
"@medusajs/framework": "^0.0.1",
|
||||
"@medusajs/medusa": "^1.20.5",
|
||||
"@mikro-orm/postgresql": "5.9.7",
|
||||
"awilix": "^8.0.1"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@medusajs/medusa": {
|
||||
"optional": true
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"@medusajs/utils": "^1.11.9",
|
||||
"axios": "^0.21.4",
|
||||
"get-port": "^5.1.0",
|
||||
"randomatic": "^3.1.1"
|
||||
},
|
||||
"gitHead": "81a7ff73d012fda722f6e9ef0bd9ba0232d37808"
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
import { IEventBusModuleService } from "@medusajs/types"
|
||||
import { IEventBusModuleService } from "@medusajs/framework/types"
|
||||
import { EventEmitter } from "events"
|
||||
|
||||
// Allows you to wait for all subscribers to execute for a given event. Only works with the local event bus.
|
||||
@@ -12,10 +12,9 @@ export const waitSubscribersExecution = (
|
||||
|
||||
// If there are no existing listeners, resolve once the event happens. Otherwise, wrap the existing subscribers in a promise and resolve once they are done.
|
||||
if (!eventEmitter.listeners(eventName).length) {
|
||||
let ok, nok
|
||||
const promise = new Promise((resolve, reject) => {
|
||||
let ok
|
||||
const promise = new Promise((resolve) => {
|
||||
ok = resolve
|
||||
nok = reject
|
||||
})
|
||||
|
||||
subscriberPromises.push(promise)
|
||||
|
||||
@@ -2,12 +2,12 @@ import {
|
||||
ExternalModuleDeclaration,
|
||||
InternalModuleDeclaration,
|
||||
ModuleJoinerConfig,
|
||||
} from "@medusajs/types"
|
||||
} from "@medusajs/framework/types"
|
||||
import {
|
||||
ContainerRegistrationKeys,
|
||||
createPgConnection,
|
||||
promiseAll,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
|
||||
export interface InitModulesOptions {
|
||||
injectedDependencies?: Record<string, unknown>
|
||||
@@ -32,7 +32,7 @@ export async function initModules({
|
||||
joinerConfig,
|
||||
preventConnectionDestroyWarning = false,
|
||||
}: InitModulesOptions) {
|
||||
const moduleSdkImports = require("@medusajs/modules-sdk")
|
||||
const moduleSdkImports = require("@medusajs/framework/modules-sdk")
|
||||
|
||||
injectedDependencies ??= {}
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import express from "express"
|
||||
import getPort from "get-port"
|
||||
import { resolve } from "path"
|
||||
import { MedusaContainer } from "@medusajs/types"
|
||||
import { MedusaContainer } from "@medusajs/framework/types"
|
||||
import { applyEnvVarsToProcess } from "./utils"
|
||||
import { promiseAll, GracefulShutdownServer } from "@medusajs/utils"
|
||||
import { promiseAll, GracefulShutdownServer } from "@medusajs/framework/utils"
|
||||
|
||||
async function bootstrapApp({
|
||||
cwd,
|
||||
|
||||
@@ -5,6 +5,6 @@
|
||||
* automatically just like we usually do for the classic migrations actions
|
||||
*/
|
||||
export async function clearInstances() {
|
||||
const { MedusaModule } = require("@medusajs/modules-sdk")
|
||||
const { MedusaModule } = require("@medusajs/framework/modules-sdk")
|
||||
MedusaModule.clearInstances()
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
import { getConfigFile } from "@medusajs/utils"
|
||||
import { getConfigFile } from "@medusajs/framework/utils"
|
||||
|
||||
export async function configLoaderOverride(
|
||||
entryDirectory: string,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { MedusaAppLoader } from "@medusajs/framework"
|
||||
import { join } from "path"
|
||||
import { MedusaContainer } from "@medusajs/types"
|
||||
import { ContainerRegistrationKeys } from "@medusajs/utils"
|
||||
import { MedusaContainer } from "@medusajs/framework/types"
|
||||
import { ContainerRegistrationKeys } from "@medusajs/framework/utils"
|
||||
|
||||
/**
|
||||
* Initiates the database connection
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { asValue } from "awilix"
|
||||
import { ContainerRegistrationKeys, isObject } from "@medusajs/utils"
|
||||
import { isObject } from "@medusajs/framework/utils"
|
||||
|
||||
export function applyEnvVarsToProcess(env?: Record<any, any>) {
|
||||
if (isObject(env)) {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { MedusaAppOutput } from "@medusajs/modules-sdk"
|
||||
import { ContainerLike, MedusaContainer } from "@medusajs/types"
|
||||
import { MedusaAppOutput } from "@medusajs/framework/modules-sdk"
|
||||
import { ContainerLike, MedusaContainer } from "@medusajs/framework/types"
|
||||
import {
|
||||
ContainerRegistrationKeys,
|
||||
createMedusaContainer,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
import { asValue } from "awilix"
|
||||
import { dbTestUtilFactory, getDatabaseURL } from "./database"
|
||||
import { startApp } from "./medusa-test-runner-utils/bootstrap-app"
|
||||
|
||||
@@ -3,7 +3,7 @@ import {
|
||||
IEventBusModuleService,
|
||||
Message,
|
||||
Subscriber,
|
||||
} from "@medusajs/types"
|
||||
} from "@medusajs/framework/types"
|
||||
|
||||
export default class EventBusService implements IEventBusModuleService {
|
||||
async emit<T>(
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
ModulesSdkUtils,
|
||||
normalizeImportPathWithSource,
|
||||
toMikroOrmEntities,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
import * as fs from "fs"
|
||||
import { getDatabaseURL, getMikroOrmWrapper, TestDatabase } from "./database"
|
||||
import { initModules, InitModulesOptions } from "./init-modules"
|
||||
@@ -84,7 +84,7 @@ export function moduleIntegrationTestRunner<TService = any>({
|
||||
debug?: boolean
|
||||
testSuite: (options: SuiteOptions<TService>) => void
|
||||
}) {
|
||||
const moduleSdkImports = require("@medusajs/modules-sdk")
|
||||
const moduleSdkImports = require("@medusajs/framework/modules-sdk")
|
||||
|
||||
process.env.LOG_LEVEL = "error"
|
||||
|
||||
|
||||
@@ -1,24 +1,3 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"lib": ["es5", "es6", "es2019"],
|
||||
"target": "es2022",
|
||||
"outDir": "./dist",
|
||||
"esModuleInterop": true,
|
||||
"declarationMap": true,
|
||||
"declaration": true,
|
||||
"module": "NodeNext",
|
||||
"moduleResolution": "NodeNext",
|
||||
"emitDecoratorMetadata": true,
|
||||
"experimentalDecorators": true,
|
||||
"sourceMap": true,
|
||||
"noImplicitReturns": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"noImplicitThis": true,
|
||||
"allowJs": true,
|
||||
"skipLibCheck": true,
|
||||
"downlevelIteration": true
|
||||
},
|
||||
"include": ["src"],
|
||||
"exclude": ["dist", "node_modules"]
|
||||
"extends": "../../../_tsconfig.base.json"
|
||||
}
|
||||
Reference in new issue
Block a user