@ecomplus/storefront-renderer 2.10.10 → 2.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.11.0](https://github.com/ecomplus/storefront/compare/@ecomplus/storefront-renderer@2.10.11...@ecomplus/storefront-renderer@2.11.0) (2023-10-09)
7
+
8
+ ### Features
9
+
10
+ - **renderer/ejs:** add `_.axios` to global EJS data ([4ef96b5](https://github.com/ecomplus/storefront/commit/4ef96b51683e66fea6b4c4460f31f5c66d529e8a))
11
+
12
+ ## [2.10.11](https://github.com/ecomplus/storefront/compare/@ecomplus/storefront-renderer@2.10.10...@ecomplus/storefront-renderer@2.10.11) (2023-09-21)
13
+
14
+ **Note:** Version bump only for package @ecomplus/storefront-renderer
15
+
6
16
  ## [2.10.10](https://github.com/ecomplus/storefront/compare/@ecomplus/storefront-renderer@2.10.9...@ecomplus/storefront-renderer@2.10.10) (2023-08-08)
7
17
 
8
18
  **Note:** Version bump only for package @ecomplus/storefront-renderer
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecomplus/storefront-renderer",
3
- "version": "2.10.10",
3
+ "version": "2.11.0",
4
4
  "description": "SSR for Storefront EJS views with E-Com Plus APIs",
5
5
  "main": "src/index.js",
6
6
  "repository": {
@@ -23,16 +23,17 @@
23
23
  },
24
24
  "homepage": "https://github.com/ecomplus/storefront/tree/master/@ecomplus/storefront-renderer#readme",
25
25
  "dependencies": {
26
- "@builder.io/partytown": "^0.8.0",
26
+ "@builder.io/partytown": "^0.8.1",
27
27
  "@ecomplus/client": "^2.2.1",
28
28
  "@ecomplus/i18n": "^1.32.2",
29
29
  "@ecomplus/search-engine": "^2.6.1",
30
30
  "@ecomplus/storefront-router": "^2.2.1",
31
31
  "@ecomplus/utils": "^1.4.1",
32
+ "axios": "^0.27.2 || ^1.1.2",
32
33
  "ejs": "^3.1.9",
33
34
  "html-minifier": "^4.0.0",
34
35
  "image-size": "^1.0.2",
35
36
  "lodash": "^4.17.21",
36
- "markdown-it": "^13.0.1"
37
+ "markdown-it": "^13.0.2"
37
38
  }
38
39
  }
package/src/renderer.js CHANGED
@@ -4,6 +4,7 @@ const path = require('path')
4
4
  const paths = require('./lib/paths')
5
5
  const fs = require('fs')
6
6
  const ejs = require('ejs')
7
+ const axios = require('axios')
7
8
  const ecomUtils = require('@ecomplus/utils')
8
9
  const ecomClient = require('@ecomplus/client')
9
10
  const StorefrontRouter = require('@ecomplus/storefront-router')
@@ -127,6 +128,7 @@ const tryImageSize = (src, fallbackDimensions = {}) => {
127
128
  // setup initial template data
128
129
  const data = {
129
130
  ...config,
131
+ axios,
130
132
  lodash,
131
133
  ecomUtils,
132
134
  ecomClient,