storyblok-js-client
Advanced tools
Comparing version 5.0.8 to 5.0.9
/*! | ||
* RichTextResolver v5.0.8 | ||
* RichTextResolver v5.0.9 | ||
* Universal JavaScript SDK for Storyblok's API | ||
@@ -4,0 +4,0 @@ * (c) 2020-2022 Stobylok Team |
/*! | ||
* RichTextResolver v5.0.8 | ||
* RichTextResolver v5.0.9 | ||
* Universal JavaScript SDK for Storyblok's API | ||
@@ -4,0 +4,0 @@ * (c) 2020-2022 Stobylok Team |
@@ -341,3 +341,3 @@ "use strict"; | ||
let response = { data: res.data, headers: res.headers }; | ||
if (res.headers['per-page']) { | ||
if (res.headers?.['per-page']) { | ||
response = Object.assign({}, response, { | ||
@@ -344,0 +344,0 @@ perPage: res.headers['per-page'] |
/*! | ||
* RichTextResolver v5.0.8 | ||
* RichTextResolver v5.0.9 | ||
* Universal JavaScript SDK for Storyblok's API | ||
@@ -4,0 +4,0 @@ * (c) 2020-2022 Stobylok Team |
/*! | ||
* RichTextResolver v5.0.8 | ||
* RichTextResolver v5.0.9 | ||
* Universal JavaScript SDK for Storyblok's API | ||
@@ -4,0 +4,0 @@ * (c) 2020-2022 Stobylok Team |
{ | ||
"name": "storyblok-js-client", | ||
"version": "5.0.8", | ||
"version": "5.0.9", | ||
"description": "Universal JavaScript SDK for Storyblok's API", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -1,2 +0,2 @@ | ||
import { ISbStoriesParams, ISbConfig, ISbResult, ISbStoryData, ISbContentMangmntAPI } from './interfaces'; | ||
import { ISbStoriesParams, ISbConfig, ISbResult, ISbStories, ISbStory, ISbStoryData, ISbStoryParams, ISbContentMangmntAPI } from './interfaces'; | ||
declare type ComponentResolverFn = { | ||
@@ -48,4 +48,4 @@ (...args: any): any; | ||
delete(slug: string, params: ISbStoriesParams | ISbContentMangmntAPI): Promise<ISbResponseData>; | ||
getStories(params: ISbStoriesParams): Promise<ISbResult>; | ||
getStory(slug: string, params: ISbStoriesParams): Promise<ISbResult>; | ||
getStories(params: ISbStoriesParams): Promise<ISbStories>; | ||
getStory(slug: string, params: ISbStoryParams): Promise<ISbStory>; | ||
private getToken; | ||
@@ -52,0 +52,0 @@ ejectInterceptor(): void; |
@@ -105,4 +105,15 @@ export interface ISbStoriesParams { | ||
} | ||
export interface ISbLinkURLObject { | ||
id: number; | ||
name: string; | ||
slug: string; | ||
full_slug: string; | ||
url: string; | ||
uuid: string; | ||
} | ||
export interface ISbStories { | ||
data: { | ||
cv: number; | ||
links: (ISbStoryData | ISbLinkURLObject)[]; | ||
rels: ISbStoryData[]; | ||
stories: ISbStoryData[]; | ||
@@ -116,2 +127,5 @@ }; | ||
data: { | ||
cv: number; | ||
links: (ISbStoryData | ISbLinkURLObject)[]; | ||
rels: ISbStoryData[]; | ||
story: ISbStoryData; | ||
@@ -143,3 +157,3 @@ }; | ||
total: number; | ||
headers?: Headers; | ||
headers: Headers; | ||
} | ||
@@ -146,0 +160,0 @@ export interface ISbResponse { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
824514
4416