Socket
Socket
Sign inDemoInstall

@storefront-x/catalog-magento-px

Package Overview
Dependencies
0
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 1.4.0

13

mappers/ToCategory.ext.ts
import MAGENTO_URL from '#ioc/config/MAGENTO_URL'
import Extension from '#ioc/types/base/Extension'
interface ToCategoryType {
interface ThumbnailUrl {
thumbnailUrl: string
}
const ToCategory: Extension<ToCategoryType> = (ToCategory) => (data) => ({
...ToCategory(data),
thumbnailUrl: data.thumbnail ? MAGENTO_URL + '/media/catalog/category/' + data.thumbnail : null,
})
const ToCategory: Extension<ThumbnailUrl> = (ToCategory) => (data) => {
const self = ToCategory(data)
self.thumbnailUrl = data.thumbnail ? MAGENTO_URL + '/media/catalog/category/' + data.thumbnail : null
return self
}
export default ToCategory
{
"name": "@storefront-x/catalog-magento-px",
"version": "1.1.0",
"version": "1.4.0",
"license": "MIT",

@@ -9,3 +9,3 @@ "type": "module",

},
"gitHead": "1c213a2443f9c12ad47ba4d2139717ce09bac8a7"
"gitHead": "f855472354b103ade9a679fa27fc0bf87ab64c45"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc