Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@contentstack/delivery-sdk",
"version": "4.6.1",
"version": "4.7.0",
"type": "module",
"license": "MIT",
"main": "./dist/legacy/index.cjs",
Expand Down Expand Up @@ -34,7 +34,6 @@
},
"dependencies": {
"@contentstack/core": "^1.2.0",
"@contentstack/utils": "^1.3.19",
"axios": "^1.8.4",
"humps": "^2.0.1"
},
Expand Down Expand Up @@ -63,5 +62,6 @@
"ts-node": "^10.9.2",
"tsup": "^8.4.0",
"webpack-cli": "^5.1.4"
}
},
"homepage": "https://github.com/contentstack/contentstack-typescript"
}
11 changes: 11 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
import * as contentstack from './lib/contentstack';
export * from './lib/types';
export type { Stack } from './lib/stack';
export type { ContentType } from './lib/content-type';
export type { Entry } from './lib/entry';
export type { Asset } from './lib/asset';
export type { Query } from './lib/query';
export type { GlobalField } from './lib/global-field';
export type { GlobalFieldQuery } from './lib/global-field-query';
export type { ImageTransform } from './lib/image-transform';
export type { AssetQuery } from './lib/asset-query';
export type { TaxonomyQuery } from './lib/taxonomy-query';
export type { ContentTypeQuery } from './lib/contenttype-query';

export default contentstack;
1 change: 0 additions & 1 deletion src/lib/contentstack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { handleRequest } from './cache';
import { Stack as StackClass } from './stack';
import { Policy, StackConfig } from './types';
import * as Utility from './utils';
export * as Utils from '@contentstack/utils';

let version = '{{VERSION}}';

Expand Down
4 changes: 2 additions & 2 deletions src/lib/entry-queryable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class EntryQueryable extends BaseQuery {
* @param {string} fieldUid - field uid to select
* @returns {EntryQueryable} - returns EntryQueryable object for chaining method calls
*/
only(fieldUid: string|string[]): EntryQueryable {
only(fieldUid: string|string[]): this {
if (Array.isArray(fieldUid)) {
let i = 0;
for (const uid of fieldUid) {
Expand All @@ -41,7 +41,7 @@ export class EntryQueryable extends BaseQuery {
* @param {string} fieldUid - field uid to exclude
* @returns {EntryQueryable} - returns EntryQueryable object for chaining method calls
*/
except(fieldUid: string|string[]): EntryQueryable {
except(fieldUid: string|string[]): this {
if (Array.isArray(fieldUid)) {
let i = 0;
for (const uid of fieldUid) {
Expand Down