@naturalcycles/nodejs-lib 12.85.2 → 12.85.3

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.
@@ -7,5 +7,7 @@ import { GetGotOptions } from './got.model';
7
7
  * 2. Hooks that log start/end of request (optional, false by default).
8
8
  * 3. Reasonable defaults(tm), e.g non-infinite Timeout
9
9
  * 4. Preserves error stack traces (!) (experimental!)
10
+ *
11
+ * @deprecated `getGot` (together with `getKy`) is deprecated in favor of `getFetcher` of js-lib
10
12
  */
11
13
  export declare function getGot(opt?: GetGotOptions): Got;
@@ -12,6 +12,8 @@ const __1 = require("..");
12
12
  * 2. Hooks that log start/end of request (optional, false by default).
13
13
  * 3. Reasonable defaults(tm), e.g non-infinite Timeout
14
14
  * 4. Preserves error stack traces (!) (experimental!)
15
+ *
16
+ * @deprecated `getGot` (together with `getKy`) is deprecated in favor of `getFetcher` of js-lib
15
17
  */
16
18
  function getGot(opt = {}) {
17
19
  opt.logger ||= console;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/nodejs-lib",
3
- "version": "12.85.2",
3
+ "version": "12.85.3",
4
4
  "scripts": {
5
5
  "prepare": "husky install",
6
6
  "docs-serve": "vuepress dev docs",
package/src/got/getGot.ts CHANGED
@@ -17,6 +17,8 @@ import { GetGotOptions, GotRequestContext } from './got.model'
17
17
  * 2. Hooks that log start/end of request (optional, false by default).
18
18
  * 3. Reasonable defaults(tm), e.g non-infinite Timeout
19
19
  * 4. Preserves error stack traces (!) (experimental!)
20
+ *
21
+ * @deprecated `getGot` (together with `getKy`) is deprecated in favor of `getFetcher` of js-lib
20
22
  */
21
23
  export function getGot(opt: GetGotOptions = {}): Got {
22
24
  opt.logger ||= console