@settlemint/sdk-utils 2.6.2-prf7f629f7 → 2.6.2-prfbf0f95e

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.
Files changed (2) hide show
  1. package/README.md +9 -9
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -77,7 +77,7 @@
77
77
  - [ExecuteCommandOptions](#executecommandoptions)
78
78
  - [Logger](#logger)
79
79
  - [LoggerOptions](#loggeroptions)
80
- - [SpinnerOptions\<R\>](#spinneroptionsr)
80
+ - [SpinnerOptions](#spinneroptions)
81
81
  - [Type Aliases](#type-aliases)
82
82
  - [AccessToken](#accesstoken)
83
83
  - [ApplicationAccessToken](#applicationaccesstoken)
@@ -458,7 +458,7 @@ const baseUrl = extractBaseUrlBeforeSegment("https://example.com/api/v1/subgraph
458
458
 
459
459
  #### extractJsonObject()
460
460
 
461
- > **extractJsonObject**\<`T`\>(`value`): `null` \| `T`
461
+ > **extractJsonObject**\<`T`\>(`value`): `T` \| `null`
462
462
 
463
463
  Defined in: [sdk/utils/src/json.ts:50](https://github.com/settlemint/sdk/blob/v2.6.2/sdk/utils/src/json.ts#L50)
464
464
 
@@ -478,7 +478,7 @@ Extracts a JSON object from a string.
478
478
 
479
479
  ##### Returns
480
480
 
481
- `null` \| `T`
481
+ `T` \| `null`
482
482
 
483
483
  The parsed JSON object, or null if no JSON object is found
484
484
 
@@ -570,7 +570,7 @@ console.log(packages); // Output: ["/path/to/your/project/packages/core", "/path
570
570
 
571
571
  #### findMonoRepoRoot()
572
572
 
573
- > **findMonoRepoRoot**(`startDir`): `Promise`\<`null` \| `string`\>
573
+ > **findMonoRepoRoot**(`startDir`): `Promise`\<`string` \| `null`\>
574
574
 
575
575
  Defined in: [sdk/utils/src/filesystem/mono-repo.ts:19](https://github.com/settlemint/sdk/blob/v2.6.2/sdk/utils/src/filesystem/mono-repo.ts#L19)
576
576
 
@@ -584,7 +584,7 @@ Finds the root directory of a monorepo
584
584
 
585
585
  ##### Returns
586
586
 
587
- `Promise`\<`null` \| `string`\>
587
+ `Promise`\<`string` \| `null`\>
588
588
 
589
589
  The root directory of the monorepo or null if not found
590
590
 
@@ -1404,7 +1404,7 @@ const truncated = truncate("Hello, world!", 10);
1404
1404
 
1405
1405
  #### tryParseJson()
1406
1406
 
1407
- > **tryParseJson**\<`T`\>(`value`, `defaultValue`): `null` \| `T`
1407
+ > **tryParseJson**\<`T`\>(`value`, `defaultValue`): `T` \| `null`
1408
1408
 
1409
1409
  Defined in: [sdk/utils/src/json.ts:23](https://github.com/settlemint/sdk/blob/v2.6.2/sdk/utils/src/json.ts#L23)
1410
1410
 
@@ -1421,11 +1421,11 @@ Attempts to parse a JSON string into a typed value, returning a default value if
1421
1421
  | Parameter | Type | Default value | Description |
1422
1422
  | ------ | ------ | ------ | ------ |
1423
1423
  | `value` | `string` | `undefined` | The JSON string to parse |
1424
- | `defaultValue` | `null` \| `T` | `null` | The value to return if parsing fails or results in null/undefined |
1424
+ | `defaultValue` | `T` \| `null` | `null` | The value to return if parsing fails or results in null/undefined |
1425
1425
 
1426
1426
  ##### Returns
1427
1427
 
1428
- `null` \| `T`
1428
+ `T` \| `null`
1429
1429
 
1430
1430
  The parsed JSON value as type T, or the default value if parsing fails
1431
1431
 
@@ -1678,7 +1678,7 @@ Configuration options for the logger
1678
1678
 
1679
1679
  ***
1680
1680
 
1681
- #### SpinnerOptions\<R\>
1681
+ #### SpinnerOptions
1682
1682
 
1683
1683
  Defined in: [sdk/utils/src/terminal/spinner.ts:25](https://github.com/settlemint/sdk/blob/v2.6.2/sdk/utils/src/terminal/spinner.ts#L25)
1684
1684
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@settlemint/sdk-utils",
3
3
  "description": "Shared utilities and helper functions for SettleMint SDK modules",
4
- "version": "2.6.2-prf7f629f7",
4
+ "version": "2.6.2-prfbf0f95e",
5
5
  "type": "module",
6
6
  "private": false,
7
7
  "license": "FSL-1.1-MIT",
@@ -51,7 +51,7 @@
51
51
  },
52
52
  "scripts": {
53
53
  "build": "NODE_OPTIONS='--max-old-space-size=3072' tsdown",
54
- "dev": "tsdown --watch",
54
+ "dev": "tsdown --watch ./src",
55
55
  "publint": "publint run --strict",
56
56
  "attw": "attw --pack .",
57
57
  "test": "bun test",
@@ -72,7 +72,7 @@
72
72
  "console-table-printer": "^2",
73
73
  "deepmerge-ts": "^7",
74
74
  "environment": "^1",
75
- "find-up": "^7",
75
+ "find-up": "^8.0.0",
76
76
  "glob": "11.0.3",
77
77
  "is-in-ci": "^2.0.0",
78
78
  "nano-spawn": "^1.0.0",