@faststore/api
Advanced tools
Comparing version 3.0.37 to 3.0.39
{ | ||
"name": "@faststore/api", | ||
"version": "3.0.32", | ||
"version": "3.0.37", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/src/index.js", |
@@ -34,6 +34,6 @@ "use strict"; | ||
currency: { | ||
code: store?.currencyCode.value ?? oldSession.currency.code, | ||
symbol: store?.currencySymbol.value ?? oldSession.currency.symbol, | ||
code: store?.currencyCode?.value ?? oldSession.currency.code, | ||
symbol: store?.currencySymbol?.value ?? oldSession.currency.symbol, | ||
}, | ||
country: store?.countryCode.value ?? oldSession.country, | ||
country: store?.countryCode?.value ?? oldSession.country, | ||
channel: channel_1.default.stringify({ | ||
@@ -43,2 +43,3 @@ salesChannel: store?.channel?.value ?? channel.salesChannel, | ||
seller: seller?.id, | ||
hasOnlyDefaultSalesChannel: !store?.channel?.value | ||
}), | ||
@@ -45,0 +46,0 @@ person: profile?.id |
@@ -5,2 +5,3 @@ export interface Channel { | ||
salesChannel?: string; | ||
hasOnlyDefaultSalesChannel?: boolean; | ||
} | ||
@@ -7,0 +8,0 @@ export default class ChannelMarshal { |
@@ -11,2 +11,3 @@ "use strict"; | ||
salesChannel: parsedChannel.salesChannel ?? '', | ||
hasOnlyDefaultSalesChannel: parsedChannel.hasOnlyDefaultSalesChannel ?? true | ||
}; | ||
@@ -13,0 +14,0 @@ } |
{ | ||
"name": "@faststore/api", | ||
"version": "3.0.32", | ||
"version": "3.0.37", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/src/index.js", |
@@ -30,6 +30,6 @@ import deepEquals from 'fast-deep-equal'; | ||
currency: { | ||
code: store?.currencyCode.value ?? oldSession.currency.code, | ||
symbol: store?.currencySymbol.value ?? oldSession.currency.symbol, | ||
code: store?.currencyCode?.value ?? oldSession.currency.code, | ||
symbol: store?.currencySymbol?.value ?? oldSession.currency.symbol, | ||
}, | ||
country: store?.countryCode.value ?? oldSession.country, | ||
country: store?.countryCode?.value ?? oldSession.country, | ||
channel: ChannelMarshal.stringify({ | ||
@@ -39,2 +39,3 @@ salesChannel: store?.channel?.value ?? channel.salesChannel, | ||
seller: seller?.id, | ||
hasOnlyDefaultSalesChannel: !store?.channel?.value | ||
}), | ||
@@ -41,0 +42,0 @@ person: profile?.id |
@@ -5,2 +5,3 @@ export interface Channel { | ||
salesChannel?: string; | ||
hasOnlyDefaultSalesChannel?: boolean; | ||
} | ||
@@ -7,0 +8,0 @@ export default class ChannelMarshal { |
@@ -9,2 +9,3 @@ export default class ChannelMarshal { | ||
salesChannel: parsedChannel.salesChannel ?? '', | ||
hasOnlyDefaultSalesChannel: parsedChannel.hasOnlyDefaultSalesChannel ?? true | ||
}; | ||
@@ -11,0 +12,0 @@ } |
{ | ||
"name": "@faststore/api", | ||
"version": "3.0.37", | ||
"version": "3.0.39", | ||
"license": "MIT", | ||
@@ -54,4 +54,4 @@ "main": "dist/cjs/src/index.js", | ||
"@envelop/core": "^2.6.0", | ||
"@faststore/eslint-config": "^3.0.24", | ||
"@faststore/shared": "^3.0.24", | ||
"@faststore/eslint-config": "^3.0.39", | ||
"@faststore/shared": "^3.0.39", | ||
"@graphql-codegen/cli": "2.2.0", | ||
@@ -82,3 +82,3 @@ "@graphql-codegen/typescript": "2.2.2", | ||
}, | ||
"gitHead": "371b07bd85482f3b77629cef773f4167ba5a5b72" | ||
"gitHead": "164257d98e270785aaefc2c174a02f39c1c545d4" | ||
} |
@@ -15,2 +15,3 @@ import deepEquals from 'fast-deep-equal' | ||
): Promise<StoreSession | null> => { | ||
const channel = ChannelMarshal.parse(oldSession.channel ?? '') | ||
@@ -48,6 +49,6 @@ const postalCode = String(oldSession.postalCode ?? '') | ||
currency: { | ||
code: store?.currencyCode.value ?? oldSession.currency.code, | ||
symbol: store?.currencySymbol.value ?? oldSession.currency.symbol, | ||
code: store?.currencyCode?.value ?? oldSession.currency.code, | ||
symbol: store?.currencySymbol?.value ?? oldSession.currency.symbol, | ||
}, | ||
country: store?.countryCode.value ?? oldSession.country, | ||
country: store?.countryCode?.value ?? oldSession.country, | ||
channel: ChannelMarshal.stringify({ | ||
@@ -57,2 +58,3 @@ salesChannel: store?.channel?.value ?? channel.salesChannel, | ||
seller: seller?.id, | ||
hasOnlyDefaultSalesChannel: !store?.channel?.value | ||
}), | ||
@@ -59,0 +61,0 @@ person: profile?.id |
@@ -5,2 +5,3 @@ export interface Channel { | ||
salesChannel?: string | ||
hasOnlyDefaultSalesChannel?: boolean | ||
} | ||
@@ -17,2 +18,3 @@ | ||
salesChannel: parsedChannel.salesChannel ?? '', | ||
hasOnlyDefaultSalesChannel: parsedChannel.hasOnlyDefaultSalesChannel ?? true | ||
} | ||
@@ -19,0 +21,0 @@ } catch (error) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
995872
18033