File tree 4 files changed +6
-6
lines changed 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 5
5
6
6
A lightweight toolset for writing styles in JavaScript. ✨
7
7
8
- ![ Node CI Test] ( https://github.com/styled-components/polished/workflows/Node%20CI%20Test/badge.svg?branch=master )
9
- [ ![ codecov] ( https://codecov.io/gh/styled-components/polished/branch/master /graph/badge.svg )] ( https://codecov.io/gh/styled-components/polished )
8
+ ![ Node CI Test] ( https://github.com/styled-components/polished/workflows/Node%20CI%20Test/badge.svg?branch=main )
9
+ [ ![ codecov] ( https://codecov.io/gh/styled-components/polished/branch/main /graph/badge.svg )] ( https://codecov.io/gh/styled-components/polished )
10
10
[ ![ Github All Releases] ( https://img.shields.io/npm/dm/polished.svg )] ( https://npmcharts.com/compare/polished )
11
11
12
12
``` sh
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " polished" ,
3
- "version" : " 3.6.5 " ,
3
+ "version" : " 3.6.6 " ,
4
4
"description" : " A lightweight toolset for writing styles in Javascript." ,
5
5
"license" : " MIT" ,
6
6
"author" :
" Brian Hough <[email protected] > (https://polished.js.org)" ,
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ function format(...args) {
31
31
b . push ( args [ c ] )
32
32
}
33
33
34
- b . forEach ( d => {
34
+ b . forEach ( ( d ) => {
35
35
a = a . replace ( / % [ a - z ] / , d )
36
36
} )
37
37
@@ -47,7 +47,7 @@ export default class PolishedError extends Error {
47
47
constructor ( code : string | number , ...args : Array < any > ) {
48
48
if ( process . env . NODE_ENV === 'production' ) {
49
49
super (
50
- `An error occurred. See https://github.com/styled-components/polished/blob/master /src/internalHelpers/errors.md#${ code } for more information.` ,
50
+ `An error occurred. See https://github.com/styled-components/polished/blob/main /src/internalHelpers/errors.md#${ code } for more information.` ,
51
51
)
52
52
} else {
53
53
super ( format ( ERRORS [ code ] , ...args ) )
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ describe('errors', () => {
19
19
expect ( ( ) => {
20
20
math ( '1px + sqrt 4' )
21
21
} ) . toThrow (
22
- 'An error occurred. See https://github.com/styled-components/polished/blob/master /src/internalHelpers/errors.md#38 for more information.' ,
22
+ 'An error occurred. See https://github.com/styled-components/polished/blob/main /src/internalHelpers/errors.md#38 for more information.' ,
23
23
)
24
24
} )
25
25
} )
You can’t perform that action at this time.
0 commit comments