Skip to content

Commit ce8c84e

Browse files
committed
Formatting
1 parent b6be26b commit ce8c84e

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ To create and release a new version of Ziggy:
5353
- Update the `version` field in `package.json` and `package-lock.json` to the new version number **not prefixed with `v`** by running `npm version <version>` (e.g. `npm version 2.1.0`).
5454
- Update the Changelog.
5555
- Rebuild Ziggy's assets with `npm run build`.
56-
- Commit these changes and push them to the `main` branch.
57-
- Create and publish a new release on GitHub, creating a new tag targeting the `main` branch, named with the version number **prefixed with `v`** (e.g. `v2.1.0`).
58-
- This will trigger a run of the release workflow in `.github/workflows/release.yml`, which will rebuild Ziggy's assets and publish the new version to NPM.
59-
- For alpha/beta versions, use an appropriate suffix (e.g. `-beta.1`, for a version of `3.0.0-beta.1`/`v3.0.0-beta.1`) and mark the GitHub release as a pre-release. Pre-releases are published to NPM under the `next` tag, so they are not installed by default and must be explicitly requested with `npm install ziggy-js@next`.
56+
- Commit the changes and push them to the corresponding branch (e.g. `2.x` or `main`).
57+
- Create and publish a new release on GitHub, creating a new tag targeting the right branch, named with the version number **prefixed with `v`** (e.g. `v2.1.0`).
58+
- This will trigger a run of the release workflow in [`.github/workflows/release.yml`](.github/workflows/release.yml), which will rebuild Ziggy's assets and publish the new version to NPM.
59+
- For beta/pre-release versions, use an appropriate suffix (e.g. `-beta.1`, for a version of `[v]3.0.0-beta.1`) and mark the GitHub release as a pre-release. Pre-releases are published to NPM under the `next` tag, so they are not installed by default and must be explicitly requested with `npm install ziggy-js@next`.
6060

6161
## Requirements
6262

src/js/Route.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ export default class Route {
4545
return !this.config.absolute
4646
? ''
4747
: this.definition.domain
48-
? `${this.config.url.match(/^\w+:\/\//)[0]}${this.definition.domain}${
49-
this.config.port ? `:${this.config.port}` : ''
50-
}`
51-
: this.config.url;
48+
? `${this.config.url.match(/^\w+:\/\//)[0]}${this.definition.domain}${
49+
this.config.port ? `:${this.config.port}` : ''
50+
}`
51+
: this.config.url;
5252
}
5353

5454
/**

src/js/Router.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@ export default class Router extends String {
237237
segments[i]
238238
? { ...result, [segments[i].name]: current }
239239
: typeof current === 'object'
240-
? { ...result, ...current }
241-
: { ...result, [current]: '' },
240+
? { ...result, ...current }
241+
: { ...result, [current]: '' },
242242
{},
243243
);
244244
} else if (

0 commit comments

Comments
 (0)