-
Notifications
You must be signed in to change notification settings - Fork 91
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: keithamus/sort-package-json
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.30.0
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: keithamus/sort-package-json
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.31.0
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 5 commits
- 5 files changed
- 1 contributor
Commits on Dec 6, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 152f567 - Browse repository at this point
Copy the full SHA 152f567View commit details -
Configuration menu - View commit details
-
Copy full SHA for b69b194 - Browse repository at this point
Copy the full SHA b69b194View commit details -
Configuration menu - View commit details
-
Copy full SHA for bade964 - Browse repository at this point
Copy the full SHA bade964View commit details
Commits on Dec 8, 2019
-
refactor: major code refactor (#90)
* refactor: sortSubKey logic * refactor: sortOrder * chore: add comment * fix: restore key * fix: add sortList * build: install prettier, eslint * style: eslint --fix * refactor: hoise arrayUnique out of main function * refactor: hoist parseJSON logic * refactor: hoist compareScriptKeys * refactor: omit sortSubKey when falsey * refactor: skip calling sortSubKey when not needed * refactor: hoist sortSubKey * refactor: hoist sortKeys/uniqueKeys * refactor: make sort/uniq pure * refactor: hoist custom sortScripts function * refactor: provide sortScripts as custom comparator * refactor: hoist stringifyJSON * refactor: pass sortSubKey as function to options * refactor: curry options into sortSubKey * refactor: remove useless if * refactor: rename sortSubKey option as over * refactor: make over pure * refactor: only pass field to over, not whole object * refactor: split sortSubKey into sortArray/sortObject * refactor: only call over if key is present * fix(keywords): do not sort, only uniq. Fixes #83 * refactor: collapse sortArray * refactor: never mutate original json * refactor: curry & reverse args for sortObjectKeys * refactor: hoist onObject * refactor: separate sortScripts * refactor: shrink sortObject * refactor: split sortObject/sortObjectBy * refactor: hoist reused over functions * refactor: hoist defaultNpmScripts * test: remove private from sort test * test: homepage should not be sorted * test: do not attempt to sort objects like arrays * test: sort betterscripts properly * ci: run lint on ci * feat: uniq `files` field * fix: add `onArray` to avoid crash on wrong type of `keywords` and `files` * fix: add `isPlainObject` type check to avoid sort array accidentally * refactor: simplify JSON parse/stringify step * fix: add missing return * fix: lint errors * style: simplify `editStringJSON` function * fix: make prexiableScripts copy defaultNpmScripts Co-Authored-By: fisker <lionkay@gmail.com>
1Configuration menu - View commit details
-
Copy full SHA for a91a766 - Browse repository at this point
Copy the full SHA a91a766View commit details
Commits on Dec 10, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 425352e - Browse repository at this point
Copy the full SHA 425352eView commit details
There are no files selected for viewing