Skip to content

Commit 0142886

Browse files
committed
fix(package): change references to master to main to support default branch transition
1 parent a6c8699 commit 0142886

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
A lightweight toolset for writing styles in JavaScript. ✨
77

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)
1010
[![Github All Releases](https://img.shields.io/npm/dm/polished.svg)](https://npmcharts.com/compare/polished)
1111

1212
```sh

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "polished",
3-
"version": "3.6.5",
3+
"version": "3.6.6",
44
"description": "A lightweight toolset for writing styles in Javascript.",
55
"license": "MIT",
66
"author": "Brian Hough <[email protected]> (https://polished.js.org)",

src/internalHelpers/_errors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function format(...args) {
3131
b.push(args[c])
3232
}
3333

34-
b.forEach(d => {
34+
b.forEach((d) => {
3535
a = a.replace(/%[a-z]/, d)
3636
})
3737

@@ -47,7 +47,7 @@ export default class PolishedError extends Error {
4747
constructor(code: string | number, ...args: Array<any>) {
4848
if (process.env.NODE_ENV === 'production') {
4949
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.`,
5151
)
5252
} else {
5353
super(format(ERRORS[code], ...args))

src/internalHelpers/test/_errors.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe('errors', () => {
1919
expect(() => {
2020
math('1px + sqrt 4')
2121
}).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.',
2323
)
2424
})
2525
})

0 commit comments

Comments
 (0)