File tree Expand file tree Collapse file tree 5 files changed +18
-15
lines changed Expand file tree Collapse file tree 5 files changed +18
-15
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @contentstack/delivery-sdk" ,
3
- "version" : " 4.6.1 " ,
3
+ "version" : " 4.7.0 " ,
4
4
"type" : " module" ,
5
5
"license" : " MIT" ,
6
6
"main" : " ./dist/legacy/index.cjs" ,
34
34
},
35
35
"dependencies" : {
36
36
"@contentstack/core" : " ^1.2.0" ,
37
- "@contentstack/utils" : " ^1.3.19" ,
38
37
"axios" : " ^1.8.4" ,
39
38
"humps" : " ^2.0.1"
40
39
},
63
62
"ts-node" : " ^10.9.2" ,
64
63
"tsup" : " ^8.4.0" ,
65
64
"webpack-cli" : " ^5.1.4"
66
- }
65
+ },
66
+ "homepage" : " https://github.com/contentstack/contentstack-typescript"
67
67
}
Original file line number Diff line number Diff line change 1
1
import * as contentstack from './lib/contentstack' ;
2
2
export * from './lib/types' ;
3
+ export type { Stack } from './lib/stack' ;
4
+ export type { ContentType } from './lib/content-type' ;
5
+ export type { Entry } from './lib/entry' ;
6
+ export type { Asset } from './lib/asset' ;
7
+ export type { Query } from './lib/query' ;
8
+ export type { GlobalField } from './lib/global-field' ;
9
+ export type { GlobalFieldQuery } from './lib/global-field-query' ;
10
+ export type { ImageTransform } from './lib/image-transform' ;
11
+ export type { AssetQuery } from './lib/asset-query' ;
12
+ export type { TaxonomyQuery } from './lib/taxonomy-query' ;
13
+ export type { ContentTypeQuery } from './lib/contenttype-query' ;
3
14
4
15
export default contentstack ;
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import { handleRequest } from './cache';
4
4
import { Stack as StackClass } from './stack' ;
5
5
import { Policy , StackConfig } from './types' ;
6
6
import * as Utility from './utils' ;
7
- export * as Utils from '@contentstack/utils' ;
8
7
9
8
let version = '{{VERSION}}' ;
10
9
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export class EntryQueryable extends BaseQuery {
15
15
* @param {string } fieldUid - field uid to select
16
16
* @returns {EntryQueryable } - returns EntryQueryable object for chaining method calls
17
17
*/
18
- only ( fieldUid : string | string [ ] ) : EntryQueryable {
18
+ only ( fieldUid : string | string [ ] ) : this {
19
19
if ( Array . isArray ( fieldUid ) ) {
20
20
let i = 0 ;
21
21
for ( const uid of fieldUid ) {
@@ -41,7 +41,7 @@ export class EntryQueryable extends BaseQuery {
41
41
* @param {string } fieldUid - field uid to exclude
42
42
* @returns {EntryQueryable } - returns EntryQueryable object for chaining method calls
43
43
*/
44
- except ( fieldUid : string | string [ ] ) : EntryQueryable {
44
+ except ( fieldUid : string | string [ ] ) : this {
45
45
if ( Array . isArray ( fieldUid ) ) {
46
46
let i = 0 ;
47
47
for ( const uid of fieldUid ) {
You can’t perform that action at this time.
0 commit comments