pinejs-client-core 6.15.8 → 6.15.9
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/.versionbot/CHANGELOG.yml +13 -1
- package/CHANGELOG.md +4 -0
- package/es2015/index.d.ts +1 -1
- package/es2018/index.d.ts +1 -1
- package/index.d.ts +1 -1
- package/package.json +2 -2
- package/src/index.ts +1 -1
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
- commits:
|
|
2
|
+
- subject: Export `ExpandableStringKeyOf` typing
|
|
3
|
+
hash: 17f1424d31069a882bb288cf418a01e83b60e806
|
|
4
|
+
body: ""
|
|
5
|
+
footer:
|
|
6
|
+
Change-type: patch
|
|
7
|
+
change-type: patch
|
|
8
|
+
author: Pagan Gazzard
|
|
9
|
+
nested: []
|
|
10
|
+
version: 6.15.9
|
|
11
|
+
title: ""
|
|
12
|
+
date: 2024-07-05T15:46:12.191Z
|
|
1
13
|
- commits:
|
|
2
14
|
- subject: Improve typings of `prepare` when used to `GET`
|
|
3
15
|
hash: 06f3fbecc514367900f07f83dbd61796e870abcf
|
|
@@ -9,7 +21,7 @@
|
|
|
9
21
|
nested: []
|
|
10
22
|
version: 6.15.8
|
|
11
23
|
title: ""
|
|
12
|
-
date: 2024-07-
|
|
24
|
+
date: 2024-07-05T15:42:56.455Z
|
|
13
25
|
- commits:
|
|
14
26
|
- subject: Use `OptionsToResponse` to avoid most of the `get` overloads
|
|
15
27
|
hash: 7562b1aeb69a3ce97362ed0799b4c211948acc7e
|
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file
|
|
|
4
4
|
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
|
|
5
5
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
|
6
6
|
|
|
7
|
+
## 6.15.9 - 2024-07-05
|
|
8
|
+
|
|
9
|
+
* Export `ExpandableStringKeyOf` typing [Pagan Gazzard]
|
|
10
|
+
|
|
7
11
|
## 6.15.8 - 2024-07-05
|
|
8
12
|
|
|
9
13
|
* Improve typings of `prepare` when used to `GET` [Pagan Gazzard]
|
package/es2015/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export type AnyResource = {
|
|
|
9
9
|
Write: AnyObject;
|
|
10
10
|
};
|
|
11
11
|
type StringKeyOf<T> = keyof T & string;
|
|
12
|
-
type ExpandableStringKeyOf<T extends Resource['Read']> = StringKeyOf<ResourceExpand<T>>;
|
|
12
|
+
export type ExpandableStringKeyOf<T extends Resource['Read']> = StringKeyOf<ResourceExpand<T>>;
|
|
13
13
|
type ExtractExpand<T extends Resource['Read'], U extends keyof T> = NonNullable<Extract<T[U], ReadonlyArray<Resource['Read']>>[number]>;
|
|
14
14
|
type SelectPropsOf<T extends Resource['Read'], U extends ODataOptions<T>> = U['$select'] extends ReadonlyArray<StringKeyOf<T>> ? U['$select'][number] : U['$select'] extends StringKeyOf<T> ? U['$select'] : Exclude<StringKeyOf<T>, ExpandPropsOf<T, U>>;
|
|
15
15
|
type ExpandPropsOf<T extends Resource['Read'], U extends ODataOptions<T>> = U['$expand'] extends ReadonlyArray<StringKeyOf<T>> ? U['$expand'][number] : U['$expand'] extends {
|
package/es2018/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export type AnyResource = {
|
|
|
9
9
|
Write: AnyObject;
|
|
10
10
|
};
|
|
11
11
|
type StringKeyOf<T> = keyof T & string;
|
|
12
|
-
type ExpandableStringKeyOf<T extends Resource['Read']> = StringKeyOf<ResourceExpand<T>>;
|
|
12
|
+
export type ExpandableStringKeyOf<T extends Resource['Read']> = StringKeyOf<ResourceExpand<T>>;
|
|
13
13
|
type ExtractExpand<T extends Resource['Read'], U extends keyof T> = NonNullable<Extract<T[U], ReadonlyArray<Resource['Read']>>[number]>;
|
|
14
14
|
type SelectPropsOf<T extends Resource['Read'], U extends ODataOptions<T>> = U['$select'] extends ReadonlyArray<StringKeyOf<T>> ? U['$select'][number] : U['$select'] extends StringKeyOf<T> ? U['$select'] : Exclude<StringKeyOf<T>, ExpandPropsOf<T, U>>;
|
|
15
15
|
type ExpandPropsOf<T extends Resource['Read'], U extends ODataOptions<T>> = U['$expand'] extends ReadonlyArray<StringKeyOf<T>> ? U['$expand'][number] : U['$expand'] extends {
|
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export type AnyResource = {
|
|
|
9
9
|
Write: AnyObject;
|
|
10
10
|
};
|
|
11
11
|
type StringKeyOf<T> = keyof T & string;
|
|
12
|
-
type ExpandableStringKeyOf<T extends Resource['Read']> = StringKeyOf<ResourceExpand<T>>;
|
|
12
|
+
export type ExpandableStringKeyOf<T extends Resource['Read']> = StringKeyOf<ResourceExpand<T>>;
|
|
13
13
|
type ExtractExpand<T extends Resource['Read'], U extends keyof T> = NonNullable<Extract<T[U], ReadonlyArray<Resource['Read']>>[number]>;
|
|
14
14
|
type SelectPropsOf<T extends Resource['Read'], U extends ODataOptions<T>> = U['$select'] extends ReadonlyArray<StringKeyOf<T>> ? U['$select'][number] : U['$select'] extends StringKeyOf<T> ? U['$select'] : Exclude<StringKeyOf<T>, ExpandPropsOf<T, U>>;
|
|
15
15
|
type ExpandPropsOf<T extends Resource['Read'], U extends ODataOptions<T>> = U['$expand'] extends ReadonlyArray<StringKeyOf<T>> ? U['$expand'][number] : U['$expand'] extends {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pinejs-client-core",
|
|
3
|
-
"version": "6.15.
|
|
3
|
+
"version": "6.15.9",
|
|
4
4
|
"description": "This module provides the core tools to enable easier interaction with the pinejs API.",
|
|
5
5
|
"browser": "es2015",
|
|
6
6
|
"main": "index.js",
|
|
@@ -55,6 +55,6 @@
|
|
|
55
55
|
"_": "test/*.ts"
|
|
56
56
|
},
|
|
57
57
|
"versionist": {
|
|
58
|
-
"publishedAt": "2024-07-
|
|
58
|
+
"publishedAt": "2024-07-05T15:46:12.388Z"
|
|
59
59
|
}
|
|
60
60
|
}
|
package/src/index.ts
CHANGED
|
@@ -23,7 +23,7 @@ export type AnyResource = {
|
|
|
23
23
|
|
|
24
24
|
type StringKeyOf<T> = keyof T & string;
|
|
25
25
|
|
|
26
|
-
type ExpandableStringKeyOf<T extends Resource['Read']> = StringKeyOf<
|
|
26
|
+
export type ExpandableStringKeyOf<T extends Resource['Read']> = StringKeyOf<
|
|
27
27
|
ResourceExpand<T>
|
|
28
28
|
>;
|
|
29
29
|
type ExtractExpand<T extends Resource['Read'], U extends keyof T> = NonNullable<
|