storyblok-js-client
Advanced tools
Comparing version 1.0.15 to 1.0.16
@@ -37,2 +37,3 @@ declare global { | ||
headers?: any | ||
region?: string | ||
} | ||
@@ -39,0 +40,0 @@ |
@@ -9,3 +9,2 @@ 'use strict'; | ||
var API_ENDPOINT_DEFAULT = 'https://api.storyblok.com/v1'; | ||
var qs = require('qs'); | ||
@@ -21,3 +20,4 @@ var axios = require('axios'); | ||
if (!endpoint) { | ||
endpoint = API_ENDPOINT_DEFAULT; | ||
var region = config.region ? '-' + config.region : ''; | ||
endpoint = 'https://api' + region + '.storyblok.com/v1'; | ||
} | ||
@@ -24,0 +24,0 @@ |
{ | ||
"name": "storyblok-js-client", | ||
"version": "1.0.15", | ||
"version": "1.0.16", | ||
"description": "Universal JavaScript SDK for Storyblok's API", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
'use strict' | ||
const API_ENDPOINT_DEFAULT = 'https://api.storyblok.com/v1' | ||
const qs = require('qs') | ||
@@ -13,3 +12,4 @@ const axios = require('axios') | ||
if (!endpoint) { | ||
endpoint = API_ENDPOINT_DEFAULT | ||
let region = config.region ? `-${config.region}` : '' | ||
endpoint = `https://api${region}.storyblok.com/v1` | ||
} | ||
@@ -16,0 +16,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
18521
469