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: isaacs/node-tar
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e573aeea19d4d650908b7f6bf0a1ad8dce9f1736
Choose a base ref
...
head repository: isaacs/node-tar
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: c65f76d89a69a4c0d2a1e3ab97c289ce965f6476
Choose a head ref
Loading
Showing with 1,666 additions and 13,252 deletions.
  1. +10 −0 .commitlintrc.js
  2. +17 −0 .eslintrc.js
  3. +0 −207 .eslintrc.json
  4. +16 −0 .eslintrc.local.js
  5. +0 −1 .gitattributes
  6. +0 −1 .github/CODEOWNERS
  7. +0 −2 .github/settings.yml
  8. +4 −10 .github/workflows/ci.yml
  9. +0 −71 .github/workflows/codeql-analysis.yml
  10. +27 −27 .gitignore
  11. +3 −0 .npmrc
  12. +3 −0 .release-please-manifest.json
  13. +22 −0 CHANGELOG.md
  14. +7 −0 CODE_OF_CONDUCT.md
  15. +47 −9 README.md
  16. +16 −9 lib/create.js
  17. +16 −10 lib/extract.js
  18. +50 −34 lib/header.js
  19. +22 −17 lib/large-numbers.js
  20. +20 −13 lib/list.js
  21. +40 −24 lib/mkdir.js
  22. +8 −4 lib/mode-fix.js
  23. +4 −3 lib/normalize-unicode.js
  24. +72 −37 lib/pack.js
  25. +120 −49 lib/parse.js
  26. +27 −19 lib/path-reservations.js
  27. +15 −8 lib/pax.js
  28. +16 −9 lib/read-entry.js
  29. +50 −27 lib/replace.js
  30. +1 −1 lib/strip-absolute-path.js
  31. +96 −50 lib/unpack.js
  32. +8 −4 lib/update.js
  33. +7 −4 lib/warn-mixin.js
  34. +47 −26 lib/write-entry.js
  35. +1 −1 map.js
  36. +0 −12,411 package-lock.json
  37. +40 −29 package.json
  38. +36 −0 release-please-config.json
  39. +14 −15 scripts/generate-parse-fixtures.js
  40. +4 −0 scripts/template-oss/_step-git.yml
  41. +31 −0 scripts/template-oss/_step-node.yml
  42. +3 −0 scripts/template-oss/_step-test.yml
  43. +30 −0 tap-snapshots/test/normalize-unicode.js.test.cjs
  44. +11 −8 test/create.js
  45. +130 −10 test/extract.js
  46. +1 −0 test/fixtures/.gitattributes
  47. +4 −0 test/fixtures/.taprc.win32
  48. BIN test/fixtures/example.tbr
  49. BIN test/fixtures/excessively-deep.tar
  50. +11 −0 test/fixtures/taprc.js
  51. +1 −1 test/fixtures/test.js
  52. +6 −3 test/get-write-flag.js
  53. +2 −1 test/list.js
  54. +5 −3 test/make-tar.js
  55. +28 −1 test/normalize-unicode.js
  56. +6 −4 test/normalize-windows-path.js
  57. +192 −15 test/pack.js
  58. +118 −15 test/parse.js
  59. +8 −4 test/path-reservations.js
  60. +1 −1 test/pax.js
  61. +36 −7 test/replace.js
  62. +4 −2 test/strip-absolute-path.js
  63. +86 −18 test/unpack.js
  64. +35 −6 test/update.js
  65. +31 −21 test/write-entry.js
10 changes: 10 additions & 0 deletions .commitlintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* This file is automatically added by @npmcli/template-oss. Do not edit. */

module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [2, 'always', ['feat', 'fix', 'docs', 'deps', 'chore']],
'header-max-length': [2, 'always', 80],
'subject-case': [0, 'always', ['lower-case', 'sentence-case', 'start-case']],
},
}
17 changes: 17 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* This file is automatically added by @npmcli/template-oss. Do not edit. */

'use strict'

const { readdirSync: readdir } = require('fs')

const localConfigs = readdir(__dirname)
.filter((file) => file.startsWith('.eslintrc.local.'))
.map((file) => `./${file}`)

module.exports = {
root: true,
extends: [
'@npmcli',
...localConfigs,
],
}
207 changes: 0 additions & 207 deletions .eslintrc.json

This file was deleted.

16 changes: 16 additions & 0 deletions .eslintrc.local.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = {
rules: {
'max-len': 0,
'no-shadow': 0,
'no-unused-expressions': 0,
'no-sequences': 0,
'no-empty': 0,
},
overrides: [{
files: ['test/**'],
rules: {
'promise/catch-or-return': 0,
'promise/always-return': 0,
},
}],
}
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

1 change: 0 additions & 1 deletion .github/CODEOWNERS

This file was deleted.

2 changes: 0 additions & 2 deletions .github/settings.yml

This file was deleted.

14 changes: 4 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -6,15 +6,16 @@ jobs:
build:
strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 16.x]
node-version: [16.x, 18.x, 20.x]
platform:
- os: ubuntu-latest
shell: bash
- os: macos-latest
shell: bash
- os: windows-latest
shell: bash
- os: windows-latest
shell: powershell

fail-fast: false

runs-on: ${{ matrix.platform.os }}
@@ -23,10 +24,6 @@ jobs:
shell: ${{ matrix.platform.shell }}

steps:
# there are files here that make windows unhappy by default
- name: Support longpaths
run: git config --global core.longpaths true

- name: Checkout Repository
uses: actions/checkout@v1.1.0

@@ -35,11 +32,8 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: use latest npm
run: npm i -g npm@latest

- name: Install dependencies
run: npm install

- name: Run Tap Tests
- name: Run Tests
run: npm test -- -c -t0
71 changes: 0 additions & 71 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

Loading