@faasjs/request 7.0.0 → 7.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +8 -8
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -24,7 +24,7 @@ function querystringify(obj) {
|
|
|
24
24
|
let value;
|
|
25
25
|
let key;
|
|
26
26
|
for (key in obj) {
|
|
27
|
-
if (Object.
|
|
27
|
+
if (Object.hasOwn(obj, key)) {
|
|
28
28
|
value = obj[key];
|
|
29
29
|
if (!value && (value === null || value === void 0 || Number.isNaN(value))) {
|
|
30
30
|
value = "";
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { randomUUID } from '
|
|
2
|
-
import { createWriteStream, readFileSync } from '
|
|
3
|
-
import http from '
|
|
4
|
-
import https from '
|
|
5
|
-
import { basename } from '
|
|
6
|
-
import { URL } from '
|
|
7
|
-
import { createGunzip, createBrotliDecompress } from '
|
|
1
|
+
import { randomUUID } from 'crypto';
|
|
2
|
+
import { createWriteStream, readFileSync } from 'fs';
|
|
3
|
+
import http from 'http';
|
|
4
|
+
import https from 'https';
|
|
5
|
+
import { basename } from 'path';
|
|
6
|
+
import { URL } from 'url';
|
|
7
|
+
import { createGunzip, createBrotliDecompress } from 'zlib';
|
|
8
8
|
import { Logger } from '@faasjs/logger';
|
|
9
9
|
|
|
10
10
|
// src/index.ts
|
|
@@ -17,7 +17,7 @@ function querystringify(obj) {
|
|
|
17
17
|
let value;
|
|
18
18
|
let key;
|
|
19
19
|
for (key in obj) {
|
|
20
|
-
if (Object.
|
|
20
|
+
if (Object.hasOwn(obj, key)) {
|
|
21
21
|
value = obj[key];
|
|
22
22
|
if (!value && (value === null || value === void 0 || Number.isNaN(value))) {
|
|
23
23
|
value = "";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faasjs/request",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"dist"
|
|
31
31
|
],
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@faasjs/logger": ">=7.0.
|
|
33
|
+
"@faasjs/logger": ">=7.0.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@faasjs/logger": ">=7.0.
|
|
36
|
+
"@faasjs/logger": ">=7.0.1"
|
|
37
37
|
},
|
|
38
38
|
"engines": {
|
|
39
39
|
"node": ">=22.0.0",
|