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: npm/make-fetch-happen
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2d978bebff67f272f9a0bcf6f1c786a5b275ddd4
Choose a base ref
...
head repository: npm/make-fetch-happen
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: db8f03c0f9d7749cdce4b6d603486339716063e1
Choose a head ref
Loading
Showing with 3,246 additions and 17,558 deletions.
  1. +10 −0 .commitlintrc.js
  2. +17 −0 .eslintrc.js
  3. +0 −207 .eslintrc.json
  4. +3 −0 .github/CODEOWNERS
  5. +54 −0 .github/ISSUE_TEMPLATE/bug.yml
  6. +3 −0 .github/ISSUE_TEMPLATE/config.yml
  7. +17 −0 .github/dependabot.yml
  8. +32 −0 .github/matchers/tap.json
  9. +1 −1 .github/settings.yml
  10. +37 −0 .github/workflows/audit.yml
  11. +154 −0 .github/workflows/ci-release.yml
  12. +146 −85 .github/workflows/ci.yml
  13. +38 −0 .github/workflows/codeql-analysis.yml
  14. +121 −0 .github/workflows/post-dependabot.yml
  15. +48 −0 .github/workflows/pull-request.yml
  16. +235 −0 .github/workflows/release.yml
  17. +28 −4 .gitignore
  18. +3 −0 .npmrc
  19. +3 −0 .release-please-manifest.json
  20. +90 −574 CHANGELOG.md
  21. +7 −0 CODE_OF_CONDUCT.md
  22. +1 −1 LICENSE
  23. +13 −47 README.md
  24. +3 −0 SECURITY.md
  25. +0 −22 appveyor.yml
  26. +691 −0 docs/changelog-pre-10.0.0.md
  27. BIN happening.gif
  28. +34 −14 lib/agent.js
  29. +90 −106 lib/cache/entry.js
  30. +1 −0 lib/cache/errors.js
  31. +10 −6 lib/cache/index.js
  32. +21 −21 lib/cache/policy.js
  33. +49 −0 lib/dns.js
  34. +40 −22 lib/fetch.js
  35. +4 −3 lib/index.js
  36. +17 −9 lib/options.js
  37. +41 −0 lib/pipeline.js
  38. +28 −9 lib/remote.js
  39. +0 −15,662 package-lock.json
  40. +38 −34 package.json
  41. +36 −0 release-please-config.json
  42. BIN stop.gif
  43. +58 −50 test/agent.js
  44. +311 −625 test/cache.js
  45. +1 −1 test/cacheable-response-invalid-integrity.js
  46. +25 −1 test/defaults.js
  47. +221 −0 test/dns.js
  48. +79 −0 test/events.js
  49. +47 −31 test/fetch.js
  50. +4 −2 test/integrity.js
  51. +6 −7 test/lambda-agent.js
  52. +123 −14 test/options.js
  53. +40 −0 test/pipeline.js
  54. +167 −0 test/pr-65-compress.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.

3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This file is automatically added by @npmcli/template-oss. Do not edit.

* @npm/cli-team
54 changes: 54 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# This file is automatically added by @npmcli/template-oss. Do not edit.

name: Bug
description: File a bug/issue
title: "[BUG] <title>"
labels: [ Bug, Needs Triage ]

body:
- type: checkboxes
attributes:
label: Is there an existing issue for this?
description: Please [search here](./issues) to see if an issue already exists for your problem.
options:
- label: I have searched the existing issues
required: true
- type: textarea
attributes:
label: Current Behavior
description: A clear & concise description of what you're experiencing.
validations:
required: false
- type: textarea
attributes:
label: Expected Behavior
description: A clear & concise description of what you expected to happen.
validations:
required: false
- type: textarea
attributes:
label: Steps To Reproduce
description: Steps to reproduce the behavior.
value: |
1. In this environment...
2. With this config...
3. Run '...'
4. See error...
validations:
required: false
- type: textarea
attributes:
label: Environment
description: |
examples:
- **npm**: 7.6.3
- **Node**: 13.14.0
- **OS**: Ubuntu 20.04
- **platform**: Macbook Pro
value: |
- npm:
- Node:
- OS:
- platform:
validations:
required: false
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This file is automatically added by @npmcli/template-oss. Do not edit.

blank_issues_enabled: true
17 changes: 17 additions & 0 deletions .github/dependabot.yml
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.

version: 2

updates:
- package-ecosystem: npm
directory: /
schedule:
interval: daily
allow:
- dependency-type: direct
versioning-strategy: increase-if-necessary
commit-message:
prefix: deps
prefix-development: chore
labels:
- "Dependencies"
32 changes: 32 additions & 0 deletions .github/matchers/tap.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"//@npmcli/template-oss": "This file is automatically added by @npmcli/template-oss. Do not edit.",
"problemMatcher": [
{
"owner": "tap",
"pattern": [
{
"regexp": "^\\s*not ok \\d+ - (.*)",
"message": 1
},
{
"regexp": "^\\s*---"
},
{
"regexp": "^\\s*at:"
},
{
"regexp": "^\\s*line:\\s*(\\d+)",
"line": 1
},
{
"regexp": "^\\s*column:\\s*(\\d+)",
"column": 1
},
{
"regexp": "^\\s*file:\\s*(.*)",
"file": 1
}
]
}
]
}
2 changes: 1 addition & 1 deletion .github/settings.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
_extends: 'open-source-project-boilerplate'
_extends: '.github:npm-cli/settings.yml'
37 changes: 37 additions & 0 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This file is automatically added by @npmcli/template-oss. Do not edit.

name: Audit

on:
workflow_dispatch:
schedule:
# "At 08:00 UTC (01:00 PT) on Monday" https://crontab.guru/#0_8_*_*_1
- cron: "0 8 * * 1"

jobs:
audit:
name: Audit Dependencies
if: github.repository_owner == 'npm'
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Git User
run: |
git config --global user.email "npm-cli+bot@github.com"
git config --global user.name "npm CLI robot"
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install npm@latest
run: npm i --prefer-online --no-fund --no-audit -g npm@latest
- name: npm Version
run: npm -v
- name: Install Dependencies
run: npm i --ignore-scripts --no-audit --no-fund --package-lock
- name: Run Audit
run: npm audit
Loading