@agility/content-fetch 2.0.0-rc11 → 2.0.0-rc13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.js +1 -24
- package/dist/node.js +1 -24
- package/package.json +1 -1
package/dist/browser.js
CHANGED
|
@@ -1933,28 +1933,6 @@
|
|
|
1933
1933
|
//caching disabled by default
|
|
1934
1934
|
}
|
|
1935
1935
|
};
|
|
1936
|
-
function buildEnvConfig() {
|
|
1937
|
-
const envConfig = {
|
|
1938
|
-
baseUrl: null,
|
|
1939
|
-
isPreview: false,
|
|
1940
|
-
guid: null,
|
|
1941
|
-
apiKey: null
|
|
1942
|
-
};
|
|
1943
|
-
if (process && process.env) {
|
|
1944
|
-
let env = process.env;
|
|
1945
|
-
if (env.AGILITY_BASEURL) {
|
|
1946
|
-
envConfig.baseUrl = env.AGILITY_BASEURL;
|
|
1947
|
-
}
|
|
1948
|
-
if (env.AGILITY_GUID) {
|
|
1949
|
-
envConfig.guid = env.AGILITY_GUID;
|
|
1950
|
-
}
|
|
1951
|
-
if (env.AGILITY_APIKEY) {
|
|
1952
|
-
envConfig.apiKey = env.AGILITY_APIKEY;
|
|
1953
|
-
}
|
|
1954
|
-
envConfig.isPreview = env.AGILITY_ISPREVIEW === "true";
|
|
1955
|
-
}
|
|
1956
|
-
return envConfig;
|
|
1957
|
-
}
|
|
1958
1936
|
function buildBaseUrl(guid) {
|
|
1959
1937
|
let baseUrlSuffixes = {
|
|
1960
1938
|
u: "",
|
|
@@ -1987,10 +1965,9 @@
|
|
|
1987
1965
|
var ApiClient = class {
|
|
1988
1966
|
constructor(userConfig) {
|
|
1989
1967
|
this.types = types_exports;
|
|
1990
|
-
const envConfig = buildEnvConfig();
|
|
1991
1968
|
let config = {
|
|
1992
1969
|
...defaultConfig,
|
|
1993
|
-
...envConfig,
|
|
1970
|
+
// ...envConfig,
|
|
1994
1971
|
...userConfig
|
|
1995
1972
|
};
|
|
1996
1973
|
if (!config.baseUrl) {
|
package/dist/node.js
CHANGED
|
@@ -12916,28 +12916,6 @@ var defaultConfig = {
|
|
|
12916
12916
|
//caching disabled by default
|
|
12917
12917
|
}
|
|
12918
12918
|
};
|
|
12919
|
-
function buildEnvConfig() {
|
|
12920
|
-
const envConfig = {
|
|
12921
|
-
baseUrl: null,
|
|
12922
|
-
isPreview: false,
|
|
12923
|
-
guid: null,
|
|
12924
|
-
apiKey: null
|
|
12925
|
-
};
|
|
12926
|
-
if (process && process.env) {
|
|
12927
|
-
let env = process.env;
|
|
12928
|
-
if (env.AGILITY_BASEURL) {
|
|
12929
|
-
envConfig.baseUrl = env.AGILITY_BASEURL;
|
|
12930
|
-
}
|
|
12931
|
-
if (env.AGILITY_GUID) {
|
|
12932
|
-
envConfig.guid = env.AGILITY_GUID;
|
|
12933
|
-
}
|
|
12934
|
-
if (env.AGILITY_APIKEY) {
|
|
12935
|
-
envConfig.apiKey = env.AGILITY_APIKEY;
|
|
12936
|
-
}
|
|
12937
|
-
envConfig.isPreview = env.AGILITY_ISPREVIEW === "true";
|
|
12938
|
-
}
|
|
12939
|
-
return envConfig;
|
|
12940
|
-
}
|
|
12941
12919
|
function buildBaseUrl(guid) {
|
|
12942
12920
|
let baseUrlSuffixes = {
|
|
12943
12921
|
u: "",
|
|
@@ -12970,10 +12948,9 @@ function validateConfigParams(configParams) {
|
|
|
12970
12948
|
var ApiClient = class {
|
|
12971
12949
|
constructor(userConfig) {
|
|
12972
12950
|
this.types = types_exports;
|
|
12973
|
-
const envConfig = buildEnvConfig();
|
|
12974
12951
|
let config = {
|
|
12975
12952
|
...defaultConfig,
|
|
12976
|
-
...envConfig,
|
|
12953
|
+
// ...envConfig,
|
|
12977
12954
|
...userConfig
|
|
12978
12955
|
};
|
|
12979
12956
|
if (!config.baseUrl) {
|