header-generator 2.0.0-beta.4 → 2.0.0-beta.8
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 +1 -1
- package/dist/constants.d.ts +12 -12
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js.map +1 -1
- package/dist/data_files/browser-helper-file.json +1 -1
- package/dist/data_files/header-network-definition.json +1 -1
- package/dist/data_files/input-network-definition.json +1 -1
- package/dist/header-generator.d.ts +15 -10
- package/dist/header-generator.d.ts.map +1 -1
- package/dist/header-generator.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -4
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils.d.ts +2 -2
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -49,7 +49,7 @@ const { HeaderGenerator, PRESETS } = require('header-generator');
|
|
|
49
49
|
let headerGenerator = new HeaderGenerator(PRESETS.MODERN_WINDOWS_CHROME);
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
-
This preset will fill the configuration for the latest five versions of chrome for windows desktops. Checkout the available presets list here
|
|
52
|
+
This preset will fill the configuration for the latest five versions of chrome for windows desktops. Checkout the available presets list [here](https://github.com/apify/header-generator/blob/master/src/presets.ts).
|
|
53
53
|
## Result example
|
|
54
54
|
A result that can be generated for the usage example above:
|
|
55
55
|
```json
|
package/dist/constants.d.ts
CHANGED
|
@@ -2,20 +2,20 @@ export declare const SUPPORTED_BROWSERS: readonly ["chrome", "firefox", "safari"
|
|
|
2
2
|
export declare const SUPPORTED_OPERATING_SYSTEMS: readonly ["windows", "macos", "linux", "android", "ios"];
|
|
3
3
|
export declare const SUPPORTED_DEVICES: readonly ["desktop", "mobile"];
|
|
4
4
|
export declare const SUPPORTED_HTTP_VERSIONS: readonly ["1", "2"];
|
|
5
|
-
export declare const BROWSER_HTTP_NODE_NAME
|
|
6
|
-
export declare const OPERATING_SYSTEM_NODE_NAME
|
|
7
|
-
export declare const DEVICE_NODE_NAME
|
|
8
|
-
export declare const MISSING_VALUE_DATASET_TOKEN
|
|
5
|
+
export declare const BROWSER_HTTP_NODE_NAME: "*BROWSER_HTTP";
|
|
6
|
+
export declare const OPERATING_SYSTEM_NODE_NAME: "*OPERATING_SYSTEM";
|
|
7
|
+
export declare const DEVICE_NODE_NAME: "*DEVICE";
|
|
8
|
+
export declare const MISSING_VALUE_DATASET_TOKEN: "*MISSING_VALUE*";
|
|
9
9
|
export declare const HTTP1_SEC_FETCH_ATTRIBUTES: {
|
|
10
|
-
mode:
|
|
11
|
-
dest:
|
|
12
|
-
site:
|
|
13
|
-
user:
|
|
10
|
+
readonly mode: "Sec-Fetch-Mode";
|
|
11
|
+
readonly dest: "Sec-Fetch-Dest";
|
|
12
|
+
readonly site: "Sec-Fetch-Site";
|
|
13
|
+
readonly user: "Sec-Fetch-User";
|
|
14
14
|
};
|
|
15
15
|
export declare const HTTP2_SEC_FETCH_ATTRIBUTES: {
|
|
16
|
-
mode:
|
|
17
|
-
dest:
|
|
18
|
-
site:
|
|
19
|
-
user:
|
|
16
|
+
readonly mode: "sec-fetch-mode";
|
|
17
|
+
readonly dest: "sec-fetch-dest";
|
|
18
|
+
readonly site: "sec-fetch-site";
|
|
19
|
+
readonly user: "sec-fetch-user";
|
|
20
20
|
};
|
|
21
21
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,0CAIrB,CAAC;AACX,eAAO,MAAM,2BAA2B,0DAA2D,CAAC;AACpG,eAAO,MAAM,iBAAiB,gCAAiC,CAAC;AAChE,eAAO,MAAM,uBAAuB,qBAAsB,CAAC;AAE3D,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,0CAIrB,CAAC;AACX,eAAO,MAAM,2BAA2B,0DAA2D,CAAC;AACpG,eAAO,MAAM,iBAAiB,gCAAiC,CAAC;AAChE,eAAO,MAAM,uBAAuB,qBAAsB,CAAC;AAE3D,eAAO,MAAM,sBAAsB,iBAA2B,CAAC;AAC/D,eAAO,MAAM,0BAA0B,qBAA+B,CAAC;AACvE,eAAO,MAAM,gBAAgB,WAAqB,CAAC;AACnD,eAAO,MAAM,2BAA2B,mBAA6B,CAAC;AAEtE,eAAO,MAAM,0BAA0B;;;;;CAK7B,CAAC;AAEX,eAAO,MAAM,0BAA0B;;;;;CAK7B,CAAC"}
|
package/dist/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG;IAC9B,QAAQ;IACR,SAAS;IACT,QAAQ;CACF,CAAC;AACE,QAAA,2BAA2B,GAAG,CAAC,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,CAAU,CAAC;AACvF,QAAA,iBAAiB,GAAG,CAAC,SAAS,EAAE,QAAQ,CAAU,CAAC;AACnD,QAAA,uBAAuB,GAAG,CAAC,GAAG,EAAE,GAAG,CAAU,CAAC;AAE9C,QAAA,sBAAsB,GAAG,
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG;IAC9B,QAAQ;IACR,SAAS;IACT,QAAQ;CACF,CAAC;AACE,QAAA,2BAA2B,GAAG,CAAC,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,CAAU,CAAC;AACvF,QAAA,iBAAiB,GAAG,CAAC,SAAS,EAAE,QAAQ,CAAU,CAAC;AACnD,QAAA,uBAAuB,GAAG,CAAC,GAAG,EAAE,GAAG,CAAU,CAAC;AAE9C,QAAA,sBAAsB,GAAG,eAAwB,CAAC;AAClD,QAAA,0BAA0B,GAAG,mBAA4B,CAAC;AAC1D,QAAA,gBAAgB,GAAG,SAAkB,CAAC;AACtC,QAAA,2BAA2B,GAAG,iBAA0B,CAAC;AAEzD,QAAA,0BAA0B,GAAG;IACtC,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,gBAAgB;CAChB,CAAC;AAEE,QAAA,0BAA0B,GAAG;IACtC,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,gBAAgB;CAChB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
["
|
|
1
|
+
["firefox/95.0|2", "safari/604.1|2", "chrome/97.0.4692.71|2", "firefox/96.0|2", "chrome/96.0.4664.45|2", "chrome/79.0.3945.79|2", "chrome/97.0.4692.87|2", "chrome/96.0.4664.110|2", "chrome/92.0.4515.166|2", "safari/605.1.15|2", "chrome/92.0.4515.107|2", "chrome/96.0.4664.55|2", "chrome/96.0.4664.104|2", "chrome/96.0.4664.137|2", "chrome/89.0.4389.114|2", "*MISSING_VALUE*|2", "chrome/87.0.4280.67|2", "chrome/97.0.4692.71|1", "chrome/96.0.4664.110|1", "chrome/96.0.4664.46|2", "chrome/62.0.3202.84|2", "firefox/78.0|2", "chrome/95.0.4638.69|2", "chrome/96.0.4664.45|1", "safari/604.1|1", "chrome/79.0.3945.0|1", "chrome/98.0.4758.51|2", "chrome/96.0.4664.93|2", "chrome/94.0.4606.71|2", "chrome/97.0.4692.77|2", "chrome/71.0.3578.98|2", "chrome/96.0.4664.92|2", "chrome/94.0.4606.81|2", "chrome/83.0.4103.106|2", "chrome/91.0.4472.77|2", "chrome/97.0.4692.70|2", "chrome/88.0.4324.151|2", "chrome/80.0.3987.149|2", "chrome/87.0.4280.141|2", "chrome/81.0.4044.138|2", "chrome/92.0.4515.159|2", "chrome/95.0.4638.54|2", "firefox/96.0|1", "chrome/92.0.4515.131|2", "chrome/60.0.3112.116|1", "chrome/61.0.3163.128|2", "chrome/91.0.4472.101|2", "chrome/93.0.4577.82|2", "firefox/91.0|2", "firefox/86.0|2", "chrome/88.0.4324.150|2", "chrome/94.0.4606.85|2", "chrome/79.0.3945.116|2", "chrome/86.0.4240.183|2", "chrome/87.0.4280.101|1", "chrome/76.0.3809.71|2", "chrome/87.0.4280.101|2", "chrome/86.0.4240.75|2", "chrome/69.0.3497.100|2", "firefox/89.0|2", "chrome/99.0.7113.93|2", "chrome/75.0.3770.142|2", "chrome/95.0.4638.74|2", "chrome/74.0.3729.169|2", "firefox/97.0|2", "firefox/92.0|2", "chrome/98.0.4758.55|2", "chrome/90.0.4430.82|2", "chrome/85.0.4183.101|2", "chrome/90.0.4430.91|2", "chrome/74.0.3729.136|2", "chrome/94.0.4606.61|2", "chrome/88.0.4324.182|2", "firefox/68.0|2", "chrome/93.0.4577.63|2", "chrome/78.0.3904.108|2", "chrome/90.0.4430.210|2", "chrome/90.0.4430.93|2", "chrome/80.0.3987.99|2", "chrome/98.100.4758.54|2", "firefox/94.0|2", "chrome/89.0.4389.116|2", "chrome/98.0.4758.54|1", "chrome/91.0.4472.114|2", "chrome/98.100.4758.51|2", "chrome/91.0.4472.164|2", "chrome/92.0.4512.0|2", "firefox/93.0|2", "firefox/95.0|1", "chrome/70.0.3538.80|2", "chrome/96.0.4664.25|2", "chrome/75.0.3770.143|2", "chrome/83.0.4103.97|2", "firefox/56.0|1", "chrome/87.0.4280.88|2", "chrome/96.0.4664.93|1", "chrome/72.0.3626.121|2", "chrome/60.0.3112.90|2", "chrome/97.0.4691.0|2", "safari/612.3.6|2", "firefox/90.0|2", "chrome/86.0.4240.99|2", "firefox/72.0|2", "firefox/91.0|1", "chrome/100.0.4758.54|2", "chrome/91.0.4450.0|2", "chrome/72.0.3626.109|1", "chrome/98.0.4758.49|2", "chrome/86.0.4240.198|2", "chrome/80.0.3987.88|2", "chrome/96.0.4664.131|2", "chrome/92.0.4515.166|1", "chrome/88.0.4324.181|2", "chrome/94.0.4606.126|2", "chrome/77.0.3865.92|2", "chrome/89.0.4389.105|2", "chrome/91.0.4472.88|2", "chrome/78.0.3904.97|2", "chrome/96.0.4664.111|2", "firefox/97.0|1", "chrome/98.0.4758.46|2", "chrome/92.0.4515.141|2", "chrome/91.0.4472.134|2", "chrome/79.0.3945.130|1", "chrome/96.0.0.0|2", "chrome/94.0.4606.124|2", "chrome/70.0.3538.110|2", "chrome/95.0.4638.88|2", "chrome/93.0.4577.62|2", "firefox/87.0|2", "chrome/91.0.4472.167|2", "chrome/74.0.3729.108|2", "chrome/61.0.3163.100|2", "safari/605.1.15|1", "chrome/99.0.4828.0|2", "chrome/90.0.4430.66|2", "chrome/90.0.4600.0|2", "chrome/96.0.4664.113|2", "chrome/87.0.4280.141|1", "chrome/92.0.4515.115|2", "chrome/99.0.4818.0|2", "chrome/98.0.4723.0|2", "chrome/66.0.3359.126|2", "chrome/83.0.4103.101|2", "chrome/97.0.0.0|2", "chrome/91.0.4472.124|2", "chrome/91.0.4472.120|2", "chrome/85.0.4183.81|2", "chrome/87.0.4280.66|2", "chrome/67.0.3396.99|2", "chrome/89.0.4389.90|2", "chrome/88.0.4324.93|2", "chrome/85.0.4183.121|2", "chrome/98.0.4758.54|2", "chrome/92.0.4515.107|1", "chrome/90.0.4430.212|2", "chrome/99.100.4810.0|2", "chrome/66.0.3450.0|2", "chrome/98.0.4758.48|2", "chrome/81.0.4044.92|2", "chrome/91.0.4472.124|1", "chrome/80.0.3987.0|2", "chrome/95.0.4638.50|2", "firefox/100.0|2", "firefox/88.0|2", "chrome/86.0.4240.111|2", "chrome/84.0.4147.125|2", "chrome/91.0.4469.0|2", "firefox/82.0|2"]
|