extra-request 8.1.6 → 8.1.7
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/README.md +3 -1
- package/lib/transformers/append-pathname.js +1 -1
- package/lib/transformers/append-pathname.js.map +1 -1
- package/lib/transformers/append-search-param.js +1 -1
- package/lib/transformers/append-search-param.js.map +1 -1
- package/lib/transformers/json.d.ts +2 -1
- package/lib/transformers/json.js.map +1 -1
- package/package.json +22 -25
package/README.md
CHANGED
|
@@ -82,7 +82,9 @@ function text(payload: string): IRequestOptionsTransformer
|
|
|
82
82
|
|
|
83
83
|
### json
|
|
84
84
|
```ts
|
|
85
|
-
function json
|
|
85
|
+
function json<T extends JSONValue | JSONSerializable<any>>(
|
|
86
|
+
payload: T
|
|
87
|
+
): IRequestOptionsTransformer
|
|
86
88
|
```
|
|
87
89
|
|
|
88
90
|
### csv
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"append-pathname.js","sourceRoot":"","sources":["../../src/transformers/append-pathname.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"append-pathname.js","sourceRoot":"","sources":["../../src/transformers/append-pathname.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,GAAG,MAAM,cAAc,CAAA;AAEnC,MAAM,UAAU,cAAc,CAAC,QAAgB;IAC7C,OAAO,CAAC,OAAwB,EAAE,EAAE;QAClC,OAAO;YACL,GAAG,OAAO;YACV,GAAG,EAAE,GAAG,CAAC,cAAc,CAAC,OAAO,CAAC,GAAG,EAAE,QAAQ,CAAC;SAC/C,CAAA;IACH,CAAC,CAAA;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"append-search-param.js","sourceRoot":"","sources":["../../src/transformers/append-search-param.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"append-search-param.js","sourceRoot":"","sources":["../../src/transformers/append-search-param.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,GAAG,MAAM,cAAc,CAAA;AAEnC,MAAM,UAAU,iBAAiB,CAC/B,IAAY,EACZ,KAAsB;IAEtB,OAAO,CAAC,OAAwB,EAAE,EAAE;QAClC,OAAO;YACL,GAAG,OAAO;YACV,GAAG,EAAE,GAAG,CAAC,iBAAiB,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,EAAE,KAAK,CAAC;SACrD,CAAA;IACH,CAAC,CAAA;AACH,CAAC"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { IRequestOptionsTransformer } from "../types.js";
|
|
2
|
-
|
|
2
|
+
import { JSONValue, JSONSerializable } from 'justypes';
|
|
3
|
+
export declare function json<T extends JSONValue | JSONSerializable<any>>(payload: T): IRequestOptionsTransformer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json.js","sourceRoot":"","sources":["../../src/transformers/json.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"json.js","sourceRoot":"","sources":["../../src/transformers/json.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAIrC,MAAM,UAAU,IAAI,CAClB,OAAU;IAEV,OAAO,CAAC,OAAwB,EAAE,EAAE;QAClC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;QAC5C,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAAA;QAE/C,OAAO;YACL,GAAG,OAAO;YACV,OAAO;YACP,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;SACjC,CAAA;IACH,CAAC,CAAA;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "extra-request",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.7",
|
|
4
4
|
"description": "Utilities for Request",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -27,9 +27,7 @@
|
|
|
27
27
|
"scripts": {
|
|
28
28
|
"prepare": "ts-patch install -s",
|
|
29
29
|
"lint": "eslint --ext .js,.jsx,.ts,.tsx --quiet src __tests__",
|
|
30
|
-
"test": "
|
|
31
|
-
"test:debug": "cross-env NODE_OPTIONS=--experimental-vm-modules node --inspect-brk node_modules/.bin/jest --runInBand",
|
|
32
|
-
"test:coverage": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --runInBand --coverage --config jest.config.js",
|
|
30
|
+
"test": "vitest --run",
|
|
33
31
|
"prepublishOnly": "run-s clean build",
|
|
34
32
|
"clean": "rimraf lib",
|
|
35
33
|
"build": "tsc --project tsconfig.build.json",
|
|
@@ -37,39 +35,38 @@
|
|
|
37
35
|
},
|
|
38
36
|
"husky": {
|
|
39
37
|
"hooks": {
|
|
40
|
-
"pre-commit": "run-s prepare lint test
|
|
38
|
+
"pre-commit": "run-s prepare lint build test",
|
|
41
39
|
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
|
42
40
|
}
|
|
43
41
|
},
|
|
44
42
|
"devDependencies": {
|
|
45
|
-
"@
|
|
46
|
-
"@commitlint/
|
|
47
|
-
"@commitlint/config-conventional": "^17.4.2",
|
|
48
|
-
"@types/jest": "^29.2.6",
|
|
43
|
+
"@commitlint/cli": "^17.4.4",
|
|
44
|
+
"@commitlint/config-conventional": "^17.4.4",
|
|
49
45
|
"@types/papaparse": "^5.3.7",
|
|
50
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
51
|
-
"@typescript-eslint/parser": "^5.
|
|
46
|
+
"@typescript-eslint/eslint-plugin": "^5.54.1",
|
|
47
|
+
"@typescript-eslint/parser": "^5.54.1",
|
|
52
48
|
"cross-env": "^7.0.3",
|
|
53
|
-
"eslint": "^8.
|
|
54
|
-
"extra-fetch": "^4.0.
|
|
55
|
-
"extra-filesystem": "^0.4.
|
|
49
|
+
"eslint": "^8.35.0",
|
|
50
|
+
"extra-fetch": "^4.0.4",
|
|
51
|
+
"extra-filesystem": "^0.4.10",
|
|
56
52
|
"husky": "4",
|
|
57
|
-
"jest": "^29.3.1",
|
|
58
|
-
"jest-resolve": "^29.3.1",
|
|
59
53
|
"npm-run-all": "^4.1.5",
|
|
60
|
-
"rimraf": "^4.
|
|
54
|
+
"rimraf": "^4.4.0",
|
|
61
55
|
"standard-version": "^9.5.0",
|
|
62
|
-
"ts-jest": "^29.0.5",
|
|
63
56
|
"ts-patch": "^2.1.0",
|
|
64
|
-
"tslib": "^2.
|
|
65
|
-
"typescript": "
|
|
66
|
-
"typescript-transform-paths": "^3.4.6"
|
|
57
|
+
"tslib": "^2.5.0",
|
|
58
|
+
"typescript": "4.8",
|
|
59
|
+
"typescript-transform-paths": "^3.4.6",
|
|
60
|
+
"vite": "^4.1.4",
|
|
61
|
+
"vite-tsconfig-paths": "^4.0.5",
|
|
62
|
+
"vitest": "^0.29.2"
|
|
67
63
|
},
|
|
68
64
|
"dependencies": {
|
|
69
|
-
"@blackglory/prelude": "^0.
|
|
70
|
-
"extra-utils": "^
|
|
71
|
-
"
|
|
72
|
-
"
|
|
65
|
+
"@blackglory/prelude": "^0.3.1",
|
|
66
|
+
"extra-utils": "^5.1.0",
|
|
67
|
+
"justypes": "^4.1.0",
|
|
68
|
+
"papaparse": "^5.4.0",
|
|
69
|
+
"url-operator": "^0.3.0"
|
|
73
70
|
},
|
|
74
71
|
"peerDependencies": {
|
|
75
72
|
"extra-fetch": "^3.0.0 || ^4.0.0"
|