@soleil-se/app-util 4.2.0 → 4.2.1

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
@@ -5,7 +5,13 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
- ## [4.1.4] - 2021-08-20
8
+ ## [4.2.1] - 2021-09-06
9
+
10
+ ### Fixed
11
+
12
+ - Underscore is misspelled in `renderTemplate`.
13
+
14
+ ## [4.2.0] - 2021-08-20
9
15
 
10
16
  ### Added
11
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soleil-se/app-util",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "description": "Utility and rendering functions for WebApps.",
5
5
  "main": "./common/index.js",
6
6
  "author": "Soleil AB",
@@ -11,7 +11,7 @@
11
11
  "license": "UNLICENSED",
12
12
  "private": false,
13
13
  "homepage": "https://docs.soleilit.se/03.packages/@soleil-api&app-util",
14
- "gitHead": "56b2bb3947dc881fa4dbed17b6cb9cf90a8d0a85",
14
+ "gitHead": "7a9f6da42d39085a73c6468118f37be9d549d754",
15
15
  "dependencies": {},
16
16
  "devDependencies": {}
17
17
  }
package/server/index.js CHANGED
@@ -74,8 +74,8 @@ ${propsScriptTag}
74
74
  */
75
75
  export function renderTemplate(template, values = {}) {
76
76
  // Import undercore dynamically in the rare case this function is still used.
77
- // eslint-disable-next-line global-require
78
- const _ = require('undercore');
77
+ // eslint-disable-next-line global-require,import/no-extraneous-dependencies
78
+ const _ = require('underscore');
79
79
  if (typeof template === 'function') {
80
80
  return template({ ...values, renderTemplate });
81
81
  }