Skip to content

Commit eff41bd

Browse files
dependabot-preview[bot][ Cassondra ]
andauthored
chore(deps-dev): bump lorem-ipsum from 1.0.6 to 2.0.3 (#1188)
* chore(deps-dev): bump lorem-ipsum from 1.0.6 to 2.0.3 Bumps [lorem-ipsum](https://github.com/knicklabs/node-lorem-ipsum) from 1.0.6 to 2.0.3. - [Release notes](https://github.com/knicklabs/node-lorem-ipsum/releases) - [Changelog](https://github.com/knicklabs/lorem-ipsum.js/blob/master/.release-it.json) - [Commits](knicklabs/lorem-ipsum.js@v1.0.6...2.0.3) Signed-off-by: dependabot-preview[bot] <[email protected]> * Utility updates to make use of the new lorem package Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: [ Cassondra ] <[email protected]>
1 parent 6eadb21 commit eff41bd

File tree

4 files changed

+14
-13
lines changed

4 files changed

+14
-13
lines changed

.storybook/utils.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import * as bridge from "@storybook/addon-knobs/polymer";
22

3+
// Automatic content generation
4+
// https://www.npmjs.com/package/lorem-ipsum
5+
import { loremIpsum } from "lorem-ipsum";
6+
37
// This is a collection of functions to reuse within PFElements stories.
48
const _ = require("lodash");
59

6-
// Automatic content generation
7-
// https://www.npmjs.com/package/lorem-ipsum
8-
const loremIpsum = require("lorem-ipsum");
910
// HTML cleaner
1011
// https://www.npmjs.com/package/clean-html
1112
const cleaner = require("clean-html");
@@ -162,7 +163,7 @@ export const component = (tag, attributes = {}, slots = [], noSlot = false) =>
162163
export const autoHeading = (short = false) =>
163164
_.upperFirst(
164165
loremIpsum({
165-
count: short ? Math.random() + 1 : Math.random() * 10 + 5,
166+
count: Number.parseInt(short ? Math.random() + 1 : Math.random() * 10 + 5),
166167
units: "words"
167168
})
168169
);
@@ -171,8 +172,9 @@ export const autoHeading = (short = false) =>
171172
export const autoContent = (max = 5, min = 1, short = false) =>
172173
loremIpsum({
173174
count: Math.floor(Math.random() * max + min),
174-
sentenceUpperBound: short ? 5 : 15,
175-
paragraphUpperBound: short ? 2 : 7,
175+
sentenceUpperBound: short ? 5 : 10,
176+
paragraphLowerBound: 1,
177+
paragraphUpperBound: short ? 2 : 5,
176178
units: "paragraphs",
177179
format: "html"
178180
});

elements/pfe-band/demo/pfe-band.story.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ const defaultContent = {
4848
content: tools.autoContent(1, 1, true)
4949
}, {
5050
content: tools.component("pfe-cta", {
51-
slot: "pfe-card--footer",
52-
priority: "tertiary"
51+
slot: "pfe-card--footer"
5352
}, [{
5453
tag: "a",
5554
attributes: {

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
"lodash": "^4.17.15",
111111
"lodash.clonedeep": "^4.5.0",
112112
"lodash.template": "^4.5.0",
113-
"lorem-ipsum": "^1.0.6",
113+
"lorem-ipsum": "^2.0.3",
114114
"merge-stream": "^2.0.0",
115115
"node-sass": "^4.13.1",
116116
"npm-run-all": "^4.1.5",

0 commit comments

Comments
 (0)