Skip to content

Commit f7c222d

Browse files
Refactored the codebase to eliminate axios and node-fetch dependencies, transitioning to the native Node.js fetch API.
Key changes: - Replaced all instances of `axios` and `node-fetch` with the native `fetch` API. - Removed `axios` and `node-fetch` from all `package.json` files. - Updated `pnpm-lock.yaml` files by running `npm run bootstrap`.
1 parent 540834f commit f7c222d

File tree

33 files changed

+9
-86
lines changed

33 files changed

+9
-86
lines changed

Node-1st-gen/github-to-slack/functions/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
'use strict';
1717

1818
const functions = require('firebase-functions/v1');
19-
const fetch = require('node-fetch');
2019
const crypto = require('node:crypto');
2120
const secureCompare = require('secure-compare');
2221

Node-1st-gen/github-to-slack/functions/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"eslint-plugin-promise": "^7.2.1",
66
"firebase-admin": "^13.0.2",
77
"firebase-functions": "^6.3.0",
8-
"node-fetch": "^2.6.7",
98
"secure-compare": "^3.0.1"
109
},
1110
"devDependencies": {

Node-1st-gen/github-to-slack/functions/pnpm-lock.yaml

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Node-1st-gen/minimal-webhook/functions/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
'use strict';
1717

1818
const functions = require('firebase-functions/v1');
19-
const fetch = require('node-fetch');
2019

2120
// This is the URL that we will callback and send the content of the updated data node.
2221
// As an example we're using a Request Bin from http://requestb.in

Node-1st-gen/minimal-webhook/functions/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
"dependencies": {
55
"eslint-plugin-promise": "^7.2.1",
66
"firebase-admin": "^13.0.2",
7-
"firebase-functions": "^6.3.0",
8-
"node-fetch": "^2.6.7"
7+
"firebase-functions": "^6.3.0"
98
},
109
"devDependencies": {
1110
"eslint": "^8.57.1"

Node-1st-gen/minimal-webhook/functions/pnpm-lock.yaml

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Node-1st-gen/quickstarts/taskqueues-backup-images/functions/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616
"use strict";
1717
const path = require("path");
18-
const fetch = require("node-fetch");
1918
const functions = require('firebase-functions/v1');
2019
const {initializeApp} = require("firebase-admin/app");
2120
const {getFunctions} = require("firebase-admin/functions");

Node-1st-gen/quickstarts/taskqueues-backup-images/functions/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
"dependencies": {
1919
"eslint-plugin-promise": "^7.2.1",
2020
"firebase-admin": "^13.0.2",
21-
"firebase-functions": "^6.3.0",
22-
"node-fetch": "^2.6.7"
21+
"firebase-functions": "^6.3.0"
2322
},
2423
"devDependencies": {
2524
"eslint": "^8.57.1",

Node-1st-gen/quickstarts/taskqueues-backup-images/functions/pnpm-lock.yaml

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Node-1st-gen/remote-config-diff/functions/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
const functions = require('firebase-functions/v1');
1818
const admin = require('firebase-admin');
19-
const fetch = require('node-fetch');
2019
const jsonDiff = require('json-diff');
2120

2221
admin.initializeApp();

0 commit comments

Comments
 (0)