Skip to content

Commit

Permalink
fix(package): change references to master to main to support default …
Browse files Browse the repository at this point in the history
…branch transition
  • Loading branch information
bhough committed Aug 30, 2020
1 parent a6c8699 commit 0142886
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

A lightweight toolset for writing styles in JavaScript. ✨

![Node CI Test](https://github.com/styled-components/polished/workflows/Node%20CI%20Test/badge.svg?branch=master)
[![codecov](https://codecov.io/gh/styled-components/polished/branch/master/graph/badge.svg)](https://codecov.io/gh/styled-components/polished)
![Node CI Test](https://github.com/styled-components/polished/workflows/Node%20CI%20Test/badge.svg?branch=main)
[![codecov](https://codecov.io/gh/styled-components/polished/branch/main/graph/badge.svg)](https://codecov.io/gh/styled-components/polished)
[![Github All Releases](https://img.shields.io/npm/dm/polished.svg)](https://npmcharts.com/compare/polished)

```sh
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "polished",
"version": "3.6.5",
"version": "3.6.6",
"description": "A lightweight toolset for writing styles in Javascript.",
"license": "MIT",
"author": "Brian Hough <hello@brianhough.net> (https://polished.js.org)",
Expand Down
4 changes: 2 additions & 2 deletions src/internalHelpers/_errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function format(...args) {
b.push(args[c])
}

b.forEach(d => {
b.forEach((d) => {
a = a.replace(/%[a-z]/, d)
})

Expand All @@ -47,7 +47,7 @@ export default class PolishedError extends Error {
constructor(code: string | number, ...args: Array<any>) {
if (process.env.NODE_ENV === 'production') {
super(
`An error occurred. See https://github.com/styled-components/polished/blob/master/src/internalHelpers/errors.md#${code} for more information.`,
`An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#${code} for more information.`,
)
} else {
super(format(ERRORS[code], ...args))
Expand Down
2 changes: 1 addition & 1 deletion src/internalHelpers/test/_errors.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe('errors', () => {
expect(() => {
math('1px + sqrt 4')
}).toThrow(
'An error occurred. See https://github.com/styled-components/polished/blob/master/src/internalHelpers/errors.md#38 for more information.',
'An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#38 for more information.',
)
})
})

0 comments on commit 0142886

Please sign in to comment.