Skip to content
Permalink

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: make-github-pseudonymous-again/js-integer
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v9.0.2
Choose a base ref
...
head repository: make-github-pseudonymous-again/js-integer
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v10.0.0
Choose a head ref

Commits on Dec 16, 2020

  1. Copy the full SHA
    674a275 View commit details

Commits on Dec 23, 2020

  1. Copy the full SHA
    ea24658 View commit details

Commits on Dec 27, 2020

  1. Update dependency np to v7.1.0

    renovate-bot authored and renovate[bot] committed Dec 27, 2020
    Copy the full SHA
    683c87f View commit details

Commits on Dec 31, 2020

  1. Update dependency np to v7.2.0

    renovate-bot authored and renovate[bot] committed Dec 31, 2020
    Copy the full SHA
    5b1c42c View commit details

Commits on Jan 1, 2021

  1. Copy the full SHA
    b67900b View commit details

Commits on Jan 21, 2021

  1. Copy the full SHA
    cedc8ce View commit details

Commits on Feb 3, 2021

  1. Copy the full SHA
    188a852 View commit details

Commits on Feb 6, 2021

  1. Copy the full SHA
    8537526 View commit details

Commits on Feb 12, 2021

  1. Copy the full SHA
    e502c3e View commit details
  2. Update dependency np to v7.4.0

    renovate-bot authored and renovate[bot] committed Feb 12, 2021
    Copy the full SHA
    1389eae View commit details

Commits on Feb 18, 2021

  1. Copy the full SHA
    fcc97c2 View commit details

Commits on Feb 23, 2021

  1. Update babel monorepo

    renovate-bot authored and renovate[bot] committed Feb 23, 2021
    Copy the full SHA
    28ba943 View commit details
  2. Copy the full SHA
    e1cbd1a View commit details

Commits on Feb 27, 2021

  1. Copy the full SHA
    c33f407 View commit details

Commits on Mar 2, 2021

  1. Copy the full SHA
    c249d8f View commit details

Commits on Mar 9, 2021

  1. Copy the full SHA
    a03e779 View commit details

Commits on Mar 17, 2021

  1. Copy the full SHA
    9b94a77 View commit details

Commits on Mar 18, 2021

  1. Copy the full SHA
    d515214 View commit details

Commits on Mar 23, 2021

  1. Copy the full SHA
    cc4f739 View commit details
  2. Copy the full SHA
    68f6c54 View commit details
  3. 🤖 chore: Remove .codacy.yml.

    These changes were automatically generated by a transform whose code can be found at:
      - https://github.com/aureooms/rejuvenate/blob/67ba7d5e9b38c8944d42909a3a30b0710559b446/src/transforms/codacy:config-remove.js
    Please contact the author of the transform if you believe there was an error.
    a-flying-potato authored and make-github-pseudonymous-again committed Mar 23, 2021
    Copy the full SHA
    b08ef76 View commit details
  4. 🤖 chore: Format .codeclimate.yml.

    These changes were automatically generated by a transform whose code can be found at:
      - https://github.com/aureooms/rejuvenate/blob/67ba7d5e9b38c8944d42909a3a30b0710559b446/src/transforms/codeclimate:format-config-file.js
    Please contact the author of the transform if you believe there was an error.
    a-flying-potato authored and make-github-pseudonymous-again committed Mar 23, 2021
    Copy the full SHA
    3a19d3c View commit details
  5. 🤖 config(codeclimate): Remove obsolete languages key.

    These changes were automatically generated by a transform whose code can be found at:
      - https://github.com/aureooms/rejuvenate/blob/67ba7d5e9b38c8944d42909a3a30b0710559b446/src/transforms/codeclimate:remove-obsolete-languages-key.js
    Please contact the author of the transform if you believe there was an error.
    a-flying-potato authored and make-github-pseudonymous-again committed Mar 23, 2021
    Copy the full SHA
    4b223be View commit details
  6. 🤖 config(codeclimate): Rename exclude_paths to exclude_patterns.

    These changes were automatically generated by a transform whose code can be found at:
      - https://github.com/aureooms/rejuvenate/blob/67ba7d5e9b38c8944d42909a3a30b0710559b446/src/transforms/codeclimate:rename-exclude-paths-to-exclude-patterns.js
    Please contact the author of the transform if you believe there was an error.
    a-flying-potato authored and make-github-pseudonymous-again committed Mar 23, 2021
    Copy the full SHA
    115ae22 View commit details
  7. 🤖 refactor: Use ESM import syntax.

    These changes were automatically generated by a transform whose code can be found at:
      - https://github.com/aureooms/rejuvenate/blob/67ba7d5e9b38c8944d42909a3a30b0710559b446/src/transforms/codemod:use-esm-import-syntax.js
    Please contact the author of the transform if you believe there was an error.
    a-flying-potato authored and make-github-pseudonymous-again committed Mar 23, 2021
    Copy the full SHA
    306e288 View commit details
  8. 🤖 chore(.esdoc.json): Sort plugins.

    These changes were automatically generated by a transform whose code can be found at:
      - https://github.com/aureooms/rejuvenate/blob/67ba7d5e9b38c8944d42909a3a30b0710559b446/src/transforms/esdoc:config-sort-plugins.js
    Please contact the author of the transform if you believe there was an error.
    a-flying-potato authored and make-github-pseudonymous-again committed Mar 23, 2021
    Copy the full SHA
    7c47bd4 View commit details
  9. 🤖 config(mangle): Create mangle.json.

    These changes were automatically generated by a transform whose code can be found at:
      - https://github.com/aureooms/rejuvenate/blob/67ba7d5e9b38c8944d42909a3a30b0710559b446/src/transforms/mangle:configure.js
    Please contact the author of the transform if you believe there was an error.
    a-flying-potato authored and make-github-pseudonymous-again committed Mar 23, 2021
    Copy the full SHA
    24a3a9d View commit details
  10. 🤖 chore(package.json): Remove .git suffix of repository URL.

    These changes were automatically generated by a transform whose code can be found at:
      - https://github.com/aureooms/rejuvenate/blob/67ba7d5e9b38c8944d42909a3a30b0710559b446/src/transforms/package.json:repository-url-remove-git-suffix.js
    Please contact the author of the transform if you believe there was an error.
    a-flying-potato authored and make-github-pseudonymous-again committed Mar 23, 2021
    Copy the full SHA
    0359e5b View commit details
  11. 🤖 chore(package.json): Setup fixpack for linting package.json.

    These changes were automatically generated by a transform whose code can be found at:
      - https://github.com/aureooms/rejuvenate/blob/67ba7d5e9b38c8944d42909a3a30b0710559b446/src/transforms/package.json:setup-fixpack.js
    Please contact the author of the transform if you believe there was an error.
    a-flying-potato authored and make-github-pseudonymous-again committed Mar 23, 2021
    Copy the full SHA
    860f6e4 View commit details
  12. 🤖 config(fixpack): Update or create .fixpackrc.

    These changes were automatically generated by a transform whose code can be found at:
      - https://github.com/aureooms/rejuvenate/blob/67ba7d5e9b38c8944d42909a3a30b0710559b446/src/transforms/fixpack:configure.js
    Please contact the author of the transform if you believe there was an error.
    a-flying-potato authored and make-github-pseudonymous-again committed Mar 23, 2021
    Copy the full SHA
    cb83165 View commit details
  13. 🤖 chore: Lint configuration files.

    These changes were automatically generated by a transform whose code can be found at:
      - https://github.com/aureooms/rejuvenate/blob/67ba7d5e9b38c8944d42909a3a30b0710559b446/src/transforms/package.json:initial-lint.js
    Please contact the author of the transform if you believe there was an error.
    a-flying-potato authored and make-github-pseudonymous-again committed Mar 23, 2021
    Copy the full SHA
    0c6f031 View commit details
  14. 🤖 config(ava): Sort keys.

    These changes were automatically generated by a transform whose code can be found at:
      - https://github.com/aureooms/rejuvenate/blob/67ba7d5e9b38c8944d42909a3a30b0710559b446/src/transforms/ava:config-sort-keys.js
    Please contact the author of the transform if you believe there was an error.
    a-flying-potato authored and make-github-pseudonymous-again committed Mar 23, 2021
    Copy the full SHA
    1b8c82d View commit details
  15. 🤖 chore: Use c8 instead of nyc.

    These changes were automatically generated by a transform whose code can be found at:
      - https://github.com/aureooms/rejuvenate/blob/67ba7d5e9b38c8944d42909a3a30b0710559b446/src/transforms/coverage:replace-nyc-by-c8.js
    Please contact the author of the transform if you believe there was an error.
    a-flying-potato authored and make-github-pseudonymous-again committed Mar 23, 2021
    Copy the full SHA
    6d28504 View commit details
  16. 🤖 chore(package.json): Add devDependency xo.

    These changes were automatically generated by a transform whose code can be found at:
      - https://github.com/aureooms/rejuvenate/blob/67ba7d5e9b38c8944d42909a3a30b0710559b446/src/transforms/deps:add-xo.js
    Please contact the author of the transform if you believe there was an error.
    a-flying-potato authored and make-github-pseudonymous-again committed Mar 23, 2021
    Copy the full SHA
    6e01ea3 View commit details
  17. 🤖 chore: Add build-docs script.

    These changes were automatically generated by a transform whose code can be found at:
      - https://github.com/aureooms/rejuvenate/blob/67ba7d5e9b38c8944d42909a3a30b0710559b446/src/transforms/docs:build-setup.js
    Please contact the author of the transform if you believe there was an error.
    a-flying-potato authored and make-github-pseudonymous-again committed Mar 23, 2021
    Copy the full SHA
    7d0fd2c View commit details
  18. 🤖 cleaning(package.json): Remove esdoc script.

    These changes were automatically generated by a transform whose code can be found at:
      - https://github.com/aureooms/rejuvenate/blob/67ba7d5e9b38c8944d42909a3a30b0710559b446/src/transforms/docs:remove-esdoc-script.js
    Please contact the author of the transform if you believe there was an error.
    a-flying-potato authored and make-github-pseudonymous-again committed Mar 23, 2021
    Copy the full SHA
    98cabd3 View commit details
  19. 🤖 docs: Correctly import regenerator/runtime.

    This is needed because the new ESM import syntax requires full paths.
    
    These changes were automatically generated by a transform whose code can be found at:
      - https://github.com/aureooms/rejuvenate/blob/67ba7d5e9b38c8944d42909a3a30b0710559b446/src/transforms/docs:import-regenerator-runtime-the-esm-way.js
    Please contact the author of the transform if you believe there was an error.
    a-flying-potato authored and make-github-pseudonymous-again committed Mar 23, 2021
    Copy the full SHA
    ee453e2 View commit details
  20. 🤖 config(github): Configure workflow to automate gh-pages generation.

    These changes were automatically generated by a transform whose code can be found at:
      - https://github.com/aureooms/rejuvenate/blob/67ba7d5e9b38c8944d42909a3a30b0710559b446/src/transforms/github:workflow-configure-gh-pages.js
    Please contact the author of the transform if you believe there was an error.
    a-flying-potato authored and make-github-pseudonymous-again committed Mar 23, 2021
    Copy the full SHA
    98bd880 View commit details
  21. 🤖 config(git-hooks): Setup husky.

    These changes were automatically generated by a transform whose code can be found at:
      - https://github.com/aureooms/rejuvenate/blob/67ba7d5e9b38c8944d42909a3a30b0710559b446/src/transforms/husky:configure.js
    Please contact the author of the transform if you believe there was an error.
    a-flying-potato authored and make-github-pseudonymous-again committed Mar 23, 2021
    Copy the full SHA
    e0d8479 View commit details
  22. 🤖 config(husky): Configure commit-msg hook.

    These changes were automatically generated by a transform whose code can be found at:
      - https://github.com/aureooms/rejuvenate/blob/67ba7d5e9b38c8944d42909a3a30b0710559b446/src/transforms/husky:hook-configure-commit-msg.js
    Please contact the author of the transform if you believe there was an error.
    a-flying-potato authored and make-github-pseudonymous-again committed Mar 23, 2021
    Copy the full SHA
    601420b View commit details
  23. 🤖 config(babel): Setup default presets.

    These changes were automatically generated by a transform whose code can be found at:
      - https://github.com/aureooms/rejuvenate/blob/67ba7d5e9b38c8944d42909a3a30b0710559b446/src/transforms/babel:setup-presets.js
    Please contact the author of the transform if you believe there was an error.
    a-flying-potato authored and make-github-pseudonymous-again committed Mar 23, 2021
    Copy the full SHA
    7ecfd7e View commit details
  24. 🤖 chore: Add debug key in .babel.env.

    These changes were automatically generated by a transform whose code can be found at:
      - https://github.com/aureooms/rejuvenate/blob/67ba7d5e9b38c8944d42909a3a30b0710559b446/src/transforms/package.json:ensure-babel-env-debug.js
    Please contact the author of the transform if you believe there was an error.
    a-flying-potato authored and make-github-pseudonymous-again committed Mar 23, 2021
    Copy the full SHA
    7bc7f21 View commit details
  25. 🤖 config(babel): Setup debug environment.

    These changes were automatically generated by a transform whose code can be found at:
      - https://github.com/aureooms/rejuvenate/blob/67ba7d5e9b38c8944d42909a3a30b0710559b446/src/transforms/babel:setup-env-debug.js
    Please contact the author of the transform if you believe there was an error.
    a-flying-potato authored and make-github-pseudonymous-again committed Mar 23, 2021
    Copy the full SHA
    cd9ac3f View commit details
  26. 🤖 build: Configure microbundle to produce build.

    These changes were automatically generated by a transform whose code can be found at:
      - https://github.com/aureooms/rejuvenate/blob/67ba7d5e9b38c8944d42909a3a30b0710559b446/src/transforms/build:use-microbundle.js
    Please contact the author of the transform if you believe there was an error.
    a-flying-potato authored and make-github-pseudonymous-again committed Mar 23, 2021
    Copy the full SHA
    221918a View commit details
  27. 🤖 config(babel): Sort environments keys.

    These changes were automatically generated by a transform whose code can be found at:
      - https://github.com/aureooms/rejuvenate/blob/67ba7d5e9b38c8944d42909a3a30b0710559b446/src/transforms/babel:setup-env-sort-keys.js
    Please contact the author of the transform if you believe there was an error.
    a-flying-potato authored and make-github-pseudonymous-again committed Mar 23, 2021
    Copy the full SHA
    2d56374 View commit details
  28. 🤖 config(babel): Setup test environment.

    These changes were automatically generated by a transform whose code can be found at:
      - https://github.com/aureooms/rejuvenate/blob/67ba7d5e9b38c8944d42909a3a30b0710559b446/src/transforms/babel:setup-env-test.js
    Please contact the author of the transform if you believe there was an error.
    a-flying-potato authored and make-github-pseudonymous-again committed Mar 23, 2021
    Copy the full SHA
    c39ccd1 View commit details
  29. 🤖 config(babel): Enable sourceMaps files.

    These changes were automatically generated by a transform whose code can be found at:
      - https://github.com/aureooms/rejuvenate/blob/67ba7d5e9b38c8944d42909a3a30b0710559b446/src/transforms/babel:setup-sourcemaps.js
    Please contact the author of the transform if you believe there was an error.
    a-flying-potato authored and make-github-pseudonymous-again committed Mar 23, 2021
    Copy the full SHA
    a5217a9 View commit details
  30. 🤖 config(babel): Sort keys.

    These changes were automatically generated by a transform whose code can be found at:
      - https://github.com/aureooms/rejuvenate/blob/67ba7d5e9b38c8944d42909a3a30b0710559b446/src/transforms/babel:setup-sort-keys.js
    Please contact the author of the transform if you believe there was an error.
    a-flying-potato authored and make-github-pseudonymous-again committed Mar 23, 2021
    Copy the full SHA
    8f2c552 View commit details
  31. 🤖 chore(package.json): Add debug script.

    These changes were automatically generated by a transform whose code can be found at:
      - https://github.com/aureooms/rejuvenate/blob/67ba7d5e9b38c8944d42909a3a30b0710559b446/src/transforms/package.json:scripts-add-debug.js
    Please contact the author of the transform if you believe there was an error.
    a-flying-potato authored and make-github-pseudonymous-again committed Mar 23, 2021
    Copy the full SHA
    0d43740 View commit details
  32. 🤖 config(package.json): Enable linting with xo.

    These changes were automatically generated by a transform whose code can be found at:
      - https://github.com/aureooms/rejuvenate/blob/67ba7d5e9b38c8944d42909a3a30b0710559b446/src/transforms/package.json:scripts-lint-use-xo.js
    Please contact the author of the transform if you believe there was an error.
    a-flying-potato authored and make-github-pseudonymous-again committed Mar 23, 2021
    Copy the full SHA
    dc3730f View commit details
Showing with 44,440 additions and 33,655 deletions.
  1. +0 −6 .codacy.yml
  2. +4 −6 .codeclimate.yml
  3. +3 −0 .commitlintrc.js
  4. +18 −18 .esdoc.json
  5. +72 −0 .fixpackrc
  6. +23 −0 .github/workflows/gh-pages.yml
  7. +1 −1 .gitignore
  8. +1 −0 .husky/.gitignore
  9. +52 −0 .husky/commit-msg
  10. +4 −0 .husky/pre-commit
  11. +1 −1 README.md
  12. +426 −388 _benchmark/index.js
  13. +1 −1 _benchmark/package.json
  14. +24 −17 _profile/add.js
  15. +17 −14 _profile/iadd.js
  16. +13 −7 _profile/mod.js
  17. +9 −7 _profile/mul.js
  18. +1 −1 doc/manual/usage.md
  19. +18 −22 doc/scripts/header.js
  20. +16 −0 mangle.json
  21. +187 −101 package.json
  22. +2 −3 renovate.json
  23. +1 −1 src/DEFAULT_DISPLAY_BASE.js
  24. +5 −5 src/DEFAULT_REPRESENTATION_BASE.js
  25. +337 −317 src/Integer.js
  26. +90 −75 src/IntegerRing.js
  27. +3 −6 src/ZZ.js
  28. +2 −9 src/ZeroDivisionError.js
  29. +8 −8 src/_from_number.js
  30. +4 −5 src/_limits.js
  31. +8 −8 src/index.js
  32. +68 −67 src/integer.js
  33. +13 −13 test/src/Integer/abs.js
  34. +203 −228 test/src/Integer/arithmetic.js
  35. +7 −10 test/src/Integer/clone.js
  36. +14 −16 test/src/Integer/compare.js
  37. +169 −28 test/src/Integer/digits.js
  38. +28 −23 test/src/Integer/divide_knowing_divisible_by.js
  39. +17 −14 test/src/Integer/divides.js
  40. +24 −20 test/src/Integer/divmod.js
  41. +20 −15 test/src/Integer/divround.js
  42. +388 −328 test/src/Integer/egcd.js
  43. +88 −46 test/src/Integer/gcd.js
  44. +49 −21 test/src/Integer/opposite.js
  45. +20 −19 test/src/Integer/parity.js
  46. +329 −132 test/src/Integer/predicates.js
  47. +38 −14 test/src/Integer/sign.js
  48. +11 −11 test/src/Integer/square.js
  49. +26 −24 test/src/Integer/toNumber.js
  50. +26 −18 test/src/Integer/toString.js
  51. +12 −14 test/src/IntegerRing/different_bases.js
  52. +124 −48 test/src/ZZ/$0.js
  53. +80 −28 test/src/ZZ/$1.js
  54. +80 −28 test/src/ZZ/$_1.js
  55. +5 −3 test/src/ZZ/characteristic.js
  56. +53 −52 test/src/ZZ/from.js
  57. +28 −27 test/src/ZZ/has.js
  58. +18 −18 test/src/ZZ/minmax.js
  59. +5 −3 test/src/ZZ/toString.js
  60. +5 −6 test/src/constants/DEFAULT_REPRESENTATION_BASE.js
  61. +1,386 −1,236 test/src/integer/arithmetic/add.js
  62. +1,209 −1,164 test/src/integer/arithmetic/addn.js
  63. +1,201 −1,201 test/src/integer/arithmetic/div.js
  64. +1,611 −1,202 test/src/integer/arithmetic/divmod.js
  65. +1,257 −1,130 test/src/integer/arithmetic/divmodn.js
  66. +1,129 −1,129 test/src/integer/arithmetic/divn.js
  67. +1,386 −1,236 test/src/integer/arithmetic/iadd.js
  68. +1,209 −1,164 test/src/integer/arithmetic/iaddn.js
  69. +1,201 −1,201 test/src/integer/arithmetic/idiv.js
  70. +1,611 −1,202 test/src/integer/arithmetic/idivmod.js
  71. +1,257 −1,130 test/src/integer/arithmetic/idivmodn.js
  72. +1,129 −1,129 test/src/integer/arithmetic/idivn.js
  73. +1,241 −1,201 test/src/integer/arithmetic/imod.js
  74. +1,129 −1,129 test/src/integer/arithmetic/imodn.js
  75. +1,491 −1,236 test/src/integer/arithmetic/imul.js
  76. +1,244 −1,164 test/src/integer/arithmetic/imuln.js
  77. +1,306 −466 test/src/integer/arithmetic/ipow.js
  78. +1,299 −464 test/src/integer/arithmetic/ipown.js
  79. +1,396 −1,236 test/src/integer/arithmetic/isub.js
  80. +1,209 −1,164 test/src/integer/arithmetic/isubn.js
  81. +1,241 −1,201 test/src/integer/arithmetic/mod.js
  82. +1,129 −1,129 test/src/integer/arithmetic/modn.js
  83. +1,491 −1,236 test/src/integer/arithmetic/mul.js
  84. +1,244 −1,164 test/src/integer/arithmetic/muln.js
  85. +1,306 −466 test/src/integer/arithmetic/pow.js
  86. +1,299 −464 test/src/integer/arithmetic/pown.js
  87. +1,396 −1,236 test/src/integer/arithmetic/sub.js
  88. +1,209 −1,164 test/src/integer/arithmetic/subn.js
  89. +11 −10 test/src/integer/bugs/mul.js
  90. +11 −5 test/src/integer/constants.js
  91. +11 −11 test/src/integer/examples.js
  92. +18 −18 test/src/integer/parse_stringify_base_10.js
  93. +18 −18 test/src/integer/parse_stringify_negative_base_10.js
  94. +17 −0 tsconfig.json
  95. +4,839 −1,048 yarn.lock
6 changes: 0 additions & 6 deletions .codacy.yml

This file was deleted.

10 changes: 4 additions & 6 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
languages:
JavaScript: true
exclude_paths:
- "doc/**"
- "lib/**"
- "test/**"
exclude_patterns:
- doc/**
- dist/**
- test/**
3 changes: 3 additions & 0 deletions .commitlintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['@js-library']
};
36 changes: 18 additions & 18 deletions .esdoc.json
Original file line number Diff line number Diff line change
@@ -5,24 +5,6 @@
"index": "./README.md",
"package": "./package.json",
"plugins": [
{
"name": "esdoc-inject-script-plugin",
"option": {
"enable": true,
"scripts": [
"./doc/scripts/header.js"
]
}
},
{
"name": "esdoc-inject-style-plugin",
"option": {
"enable": true,
"styles": [
"./doc/css/style.css"
]
}
},
{
"name": "esdoc-standard-plugin",
"option": {
@@ -50,6 +32,24 @@
]
}
}
},
{
"name": "esdoc-inject-style-plugin",
"option": {
"enable": true,
"styles": [
"./doc/css/style.css"
]
}
},
{
"name": "esdoc-inject-script-plugin",
"option": {
"enable": true,
"scripts": [
"./doc/scripts/header.js"
]
}
}
]
}
72 changes: 72 additions & 0 deletions .fixpackrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"files": [
"package.json"
],
"quiet": false,
"required": [
"name",
"version"
],
"requiredOnPrivate": [],
"sortToTop": [
"name",
"description",
"version",
"license",
"author",
"homepage",
"repository",
"bugs",
"keywords",
"sideEffects",
"type",
"source",
"main",
"module",
"umd:main",
"unpkg",
"exports",
"files",
"scripts",
"bundledDependencies",
"dependencies",
"optionalDependencies",
"peerDependencies",
"peerDependenciesMeta",
"devDependencies"
],
"sortedSubItems": [
"keywords",
"exports",
"files",
"scripts",
"bundledDependencies",
"dependencies",
"optionalDependencies",
"peerDependencies",
"peerDependenciesMeta",
"devDependencies"
],
"warn": [
"description",
"author",
"repository",
"keywords",
"main",
"bugs",
"homepage",
"license",
"files"
],
"warnOnPrivate": [
"name",
"version",
"description",
"main"
],
"dryRun": false,
"wipe": false,
"indent": null,
"newLine": null,
"finalNewLine": null
}
23 changes: 23 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build and Deploy GitHub pages
on:
release:
types:
- created
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2.3.4

- name: Install 🔧
run: npm install

- name: Build 🏗️
run: npm run build-gh-pages

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.0
with:
branch: gh-pages
folder: gh-pages
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
!yarn.lock

# Generated files
/lib
/dist

# Dependency directory
node_modules
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
52 changes: 52 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

function ask () {

# This is a general-purpose function to ask Yes/No questions in Bash, either
# with or without a default answer. It keeps repeating the question until it
# gets a valid answer.

# http://djm.me/ask

if [ "${2:-}" = "Y" ]; then
prompt="Y/n"
default=Y
elif [ "${2:-}" = "N" ]; then
prompt="y/N"
default=N
else
prompt="y/n"
default=
fi

while true; do

# Ask the question (not using "read -p" as it uses stderr not stdout)
echo -n "$1 [$prompt] "

# Read the answer (use /dev/tty in case stdin is redirected from somewhere else)
read REPLY </dev/tty

# Default?
if [ -z "$REPLY" ]; then
REPLY=$default
fi

# Check if the reply is valid
case "$REPLY" in
Y*|y*) return 0 ;;
N*|n*) return 1 ;;
esac

done

}

while ! npm run commit-msg -- "$1" ; do
if [ -t 1 ] && ask 'There was an error. Do you wish to amend your commit message?' Y ; then
${GIT_EDITOR:-$EDITOR} "$1" < /dev/tty
else
exit 1
fi
done
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run precommit
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ a.mul( b ).toString( ) ; // '-903954021577363596419770144565091'

[![License](https://img.shields.io/github/license/aureooms/js-integer.svg)](https://raw.githubusercontent.com/aureooms/js-integer/main/LICENSE)
[![Version](https://img.shields.io/npm/v/@aureooms/js-integer.svg)](https://www.npmjs.org/package/@aureooms/js-integer)
[![Build](https://img.shields.io/travis/aureooms/js-integer/main.svg)](https://travis-ci.org/aureooms/js-integer/branches)
[![Build](https://img.shields.io/travis/aureooms/js-integer/main.svg)](https://travis-ci.com/aureooms/js-integer/branches)
[![Dependencies](https://img.shields.io/david/aureooms/js-integer.svg)](https://david-dm.org/aureooms/js-integer)
[![Dev dependencies](https://img.shields.io/david/dev/aureooms/js-integer.svg)](https://david-dm.org/aureooms/js-integer?type=dev)
[![GitHub issues](https://img.shields.io/github/issues/aureooms/js-integer.svg)](https://github.com/aureooms/js-integer/issues)
Loading