Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

storyblok-js-client

Package Overview
Dependencies
Maintainers
7
Versions
200
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

storyblok-js-client - npm Package Compare versions

Comparing version 5.0.8 to 5.0.9

2

dist/es5/rich-text-resolver.cjs.js
/*!
* 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc