Skip to content

Commit c474f0d

Browse files
committed
fix: runtime errors
1 parent 6cc2788 commit c474f0d

File tree

14 files changed

+26
-90
lines changed

14 files changed

+26
-90
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,6 @@ packages/canonical-types/docs
8282
!packages/ui-tokens/dist
8383

8484
# Ignore shopify api-keys
85-
.graphqlrc.api-key.txt
85+
.graphqlrc.api-key.txt
86+
87+
laioutrrc.json

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# @laioutr-app/shopware
1+
# @laioutr/app-shopware
22

33
## 0.8.5
44

orchestr-playground/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@laioutr-app/shopware-playground",
2+
"name": "@laioutr/app-shopware-playground",
33
"private": true,
44
"type": "module",
55
"scripts": {

playground/nuxt.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default defineNuxtConfig({
1010
'@laioutr-core/orchestr-devtools',
1111
],
1212
alias: {
13-
'@laioutr-app/shopware': fileURLToPath(new URL('../src', import.meta.url)),
13+
'@laioutr/app-shopware': fileURLToPath(new URL('../src', import.meta.url)),
1414
},
1515
devtools: { enabled: true },
1616
telemetry: false,

playground/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@laioutr-app/shopware-playground",
2+
"name": "@laioutr/app-shopware-playground",
33
"private": true,
44
"type": "module",
55
"scripts": {

pnpm-lock.yaml

Lines changed: 4 additions & 70 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/globalExtensions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ declare module 'vue' {
1010

1111
declare module '@nuxt/schema' {
1212
interface PublicRuntimeConfig {
13-
['@laioutr-app/shopware']: RuntimeConfigModulePublic;
13+
['@laioutr/app-shopware']: RuntimeConfigModulePublic;
1414
}
1515
interface RuntimeConfig {
16-
['@laioutr-app/shopware']: RuntimeConfigModulePrivate;
16+
['@laioutr/app-shopware']: RuntimeConfigModulePrivate;
1717
}
1818
}
1919

src/module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ export interface ModuleOptions {
1717
}
1818

1919
/**
20-
* The config the module adds to nuxt.runtimeConfig.public['@laioutr-app/shopware']
20+
* The config the module adds to nuxt.runtimeConfig.public['@laioutr/app-shopware']
2121
*/
2222
export interface RuntimeConfigModulePublic {}
2323

2424
/**
25-
* The config the module adds to nuxt.runtimeConfig['@laioutr-app/shopware']
25+
* The config the module adds to nuxt.runtimeConfig['@laioutr/app-shopware']
2626
*/
2727
export interface RuntimeConfigModulePrivate extends ModuleOptions {}
2828

src/runtime/server/client/shopwareAdminClientFactory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type ShopwareAdminClient = ReturnType<typeof createAdminAPIClient>;
77
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
88
// @ts-ignore: ignore not portable type TS2742
99
export const shopwareAdminClientFactory = (): ShopwareAdminClient => {
10-
const { adminClientId, adminClientSecret, adminEndpoint } = useRuntimeConfig()['@laioutr-app/shopware'];
10+
const { adminClientId, adminClientSecret, adminEndpoint } = useRuntimeConfig()['@laioutr/app-shopware'];
1111
return createAdminAPIClient({
1212
baseURL: adminEndpoint,
1313
credentials: {

src/runtime/server/client/shopwareClientFactory.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import { CONTEXT_TOKEN_COOKIE } from '../const/cookieKeys';
99
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
1010
// @ts-ignore: ignore not portable type TS2742
1111
export const shopwareClientFactory = (event: OrchestrArgsBase['event']): StorefrontClient => {
12-
const config = useRuntimeConfig()['@laioutr-app/shopware'];
13-
12+
const config = useRuntimeConfig()['@laioutr/app-shopware'];
13+
1414
const contextTokenCookie = getCookie(event, CONTEXT_TOKEN_COOKIE);
1515

1616
const client = createAPIClient<operations>({

0 commit comments

Comments
 (0)