storyblok-js-client
Advanced tools
Comparing version 5.11.0 to 5.11.1
{ | ||
"name": "storyblok-js-client", | ||
"version": "5.11.0", | ||
"version": "5.11.1", | ||
"description": "Universal JavaScript SDK for Storyblok's API", | ||
@@ -15,11 +15,14 @@ "license": "MIT", | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.umd.js" | ||
"require": "./dist/index.umd.js", | ||
"types": "./dist/types/entry.esm.d.ts" | ||
}, | ||
"./richTextResolver": { | ||
"import": "./dist/richTextResolver.mjs", | ||
"require": "./dist/richTextResolver.umd.js" | ||
"require": "./dist/richTextResolver.umd.js", | ||
"types": "./dist/types/richTextResolver.d.ts" | ||
}, | ||
"./schema": { | ||
"import": "./dist/schema.mjs", | ||
"require": "./dist/schema.umd.js" | ||
"require": "./dist/schema.umd.js", | ||
"types": "./dist/types/schema.d.ts" | ||
} | ||
@@ -26,0 +29,0 @@ }, |
@@ -150,4 +150,5 @@ <div align="center"> | ||
When initializing the Storyblok client you can define a cache provider for caching the requests in memory. | ||
To clear the cache you can call `Storyblok.flushCache()` or activate the automatic clear with clear: 'auto'. | ||
The default behavior of the cache is `clear: 'manual'`, that is, if you need to clear the cache, you need to call `Storyblok.flushCache()` or activate the automatic clear with `clear: 'auto'`, as in the example below. | ||
```javascript | ||
@@ -558,23 +559,2 @@ let Storyblok = new StoryblokClient({ | ||
#### Initialize with a proxy server | ||
```javascript | ||
const proxy = { | ||
host: host, | ||
port: port, | ||
auth: { | ||
username: 'username', | ||
password: 'password' | ||
} | ||
} | ||
const storyblok = new StoryblokClient({ | ||
... | ||
https: false, | ||
proxy: proxy | ||
}) | ||
``` | ||
Read more about proxy settings in axios [documentation](https://github.com/axios/axios) | ||
#### How to define a custom schema for the RichTextRenderer | ||
@@ -581,0 +561,0 @@ |
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
190686
682