Skip to content

Commit

Permalink
Use fixed version of badgen
Browse files Browse the repository at this point in the history
  • Loading branch information
bokub committed Feb 2, 2019
1 parent 236c67b commit f7fe61c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const badgen = require('badgen');
const colorPresets = require('badgen/lib/color-presets.js');
const colorPresets = require('badgen/lib/color-presets');

const addGradient = (str, grad) => {
let svgGradient = ' <linearGradient id="x" x1="0%" y1="0%" x2="100%" y2="0%">';
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "gradient-badge",
"description": "Badge generator with gradient support",
"version": "1.2.3",
"version": "1.2.4",
"author": "Boris K",
"bugs": "https://github.com/bokub/gradient-badge/issues",
"dependencies": {
"badgen": "^2.x"
"badgen": "2.6.0"
},
"devDependencies": {
"ava": "^0.25.0",
Expand Down
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import test from 'ava';
import isSvg from 'is-svg';
import colorPresets from 'badgen/lib/color-presets';
import badgen from 'badgen';
import colorPresets from 'badgen/lib/color-presets';
import badges from '.';

for (const style of ['classic', 'flat']) {
Expand Down

0 comments on commit f7fe61c

Please sign in to comment.