@podium/layout
Advanced tools
Comparing version 4.5.1 to 4.6.0
@@ -0,1 +1,8 @@ | ||
# [4.6.0](https://github.com/podium-lib/layout/compare/v4.5.1...v4.6.0) (2020-06-28) | ||
### Features | ||
* Added support for data-* attributes on .js() method ([516909c](https://github.com/podium-lib/layout/commit/516909cada29497910a4e06fdb0d3d9698229ca4)) | ||
# Changelog | ||
@@ -2,0 +9,0 @@ |
@@ -220,2 +220,15 @@ /* eslint-disable consistent-return */ | ||
const args = { ...clonedOptions, pathname: this._pathname }; | ||
// Convert data attribute object structure to array of key value objects | ||
if (typeof args.data === 'object' && args.data !== null) { | ||
const data = []; | ||
Object.keys(args.data).forEach((key) => { | ||
data.push({ | ||
value: args.data[key], | ||
key, | ||
}); | ||
}) | ||
args.data = data; | ||
} | ||
this.jsRoute.push(new AssetJs(args)); | ||
@@ -222,0 +235,0 @@ |
{ | ||
"name": "@podium/layout", | ||
"version": "4.5.1", | ||
"version": "4.6.0", | ||
"description": "Module for composing full page layouts out of page fragments in a micro frontend architecture.", | ||
@@ -22,4 +22,8 @@ "main": "lib/layout.js", | ||
"files": [ | ||
"lib", | ||
"index.d.ts" | ||
"package.json", | ||
"CHANGELOG.md", | ||
"index.d.ts", | ||
"README.md", | ||
"LICENSE", | ||
"lib" | ||
], | ||
@@ -41,3 +45,3 @@ "types": "index.d.ts", | ||
"@podium/schemas": "4.0.2", | ||
"@podium/utils": "4.2.5", | ||
"@podium/utils": "4.3.0", | ||
"abslog": "2.4.0", | ||
@@ -48,9 +52,16 @@ "lodash.merge": "4.6.2", | ||
"devDependencies": { | ||
"@semantic-release/changelog": "5.0.1", | ||
"@semantic-release/commit-analyzer": "8.0.1", | ||
"@semantic-release/git": "9.0.0", | ||
"@semantic-release/github": "7.0.7", | ||
"@semantic-release/npm": "7.0.5", | ||
"@semantic-release/release-notes-generator": "9.0.1", | ||
"semantic-release": "^17.0.8", | ||
"@podium/podlet": "4.3.2", | ||
"@podium/test-utils": "2.2.0", | ||
"eslint": "7.1.0", | ||
"eslint-config-airbnb-base": "14.1.0", | ||
"eslint": "7.2.0", | ||
"eslint-config-airbnb-base": "14.2.0", | ||
"eslint-config-prettier": "6.11.0", | ||
"eslint-plugin-import": "2.20.2", | ||
"eslint-plugin-prettier": "3.1.3", | ||
"eslint-plugin-import": "2.21.2", | ||
"eslint-plugin-prettier": "3.1.4", | ||
"express": "4.17.1", | ||
@@ -57,0 +68,0 @@ "hbs": "4.1.1", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
35705
307
20
1
+ Added@podium/utils@4.3.0(transitive)
Updated@podium/utils@4.3.0