skedyul 1.2.12 → 1.2.13
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/cli/index.js +10 -0
- package/dist/esm/index.mjs +10 -0
- package/dist/index.js +10 -0
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -1080,6 +1080,16 @@ function configure(options) {
|
|
|
1080
1080
|
async function callCore(method, params) {
|
|
1081
1081
|
const effectiveConfig = getEffectiveConfig();
|
|
1082
1082
|
const { baseUrl, apiToken } = effectiveConfig;
|
|
1083
|
+
const requestConfig = requestConfigStorage.getStore();
|
|
1084
|
+
console.log(`[callCore] Method: ${method}, Config state:`, {
|
|
1085
|
+
hasRequestConfig: !!requestConfig,
|
|
1086
|
+
requestConfigBaseUrl: requestConfig?.baseUrl ? "set" : "not set",
|
|
1087
|
+
requestConfigApiToken: requestConfig?.apiToken ? `set (${requestConfig.apiToken.length} chars)` : "not set",
|
|
1088
|
+
globalConfigBaseUrl: globalConfig.baseUrl ? "set" : "not set",
|
|
1089
|
+
globalConfigApiToken: globalConfig.apiToken ? `set (${globalConfig.apiToken.length} chars)` : "not set",
|
|
1090
|
+
effectiveBaseUrl: baseUrl ? "set" : "not set",
|
|
1091
|
+
effectiveApiToken: apiToken ? `set (${apiToken.length} chars)` : "not set"
|
|
1092
|
+
});
|
|
1083
1093
|
if (!baseUrl) {
|
|
1084
1094
|
throw new Error(
|
|
1085
1095
|
"Skedyul client not configured: missing baseUrl. Set SKEDYUL_API_URL environment variable or call configure()."
|
package/dist/esm/index.mjs
CHANGED
|
@@ -972,6 +972,16 @@ function getConfig() {
|
|
|
972
972
|
async function callCore(method, params) {
|
|
973
973
|
const effectiveConfig = getEffectiveConfig();
|
|
974
974
|
const { baseUrl, apiToken } = effectiveConfig;
|
|
975
|
+
const requestConfig = requestConfigStorage.getStore();
|
|
976
|
+
console.log(`[callCore] Method: ${method}, Config state:`, {
|
|
977
|
+
hasRequestConfig: !!requestConfig,
|
|
978
|
+
requestConfigBaseUrl: requestConfig?.baseUrl ? "set" : "not set",
|
|
979
|
+
requestConfigApiToken: requestConfig?.apiToken ? `set (${requestConfig.apiToken.length} chars)` : "not set",
|
|
980
|
+
globalConfigBaseUrl: globalConfig.baseUrl ? "set" : "not set",
|
|
981
|
+
globalConfigApiToken: globalConfig.apiToken ? `set (${globalConfig.apiToken.length} chars)` : "not set",
|
|
982
|
+
effectiveBaseUrl: baseUrl ? "set" : "not set",
|
|
983
|
+
effectiveApiToken: apiToken ? `set (${apiToken.length} chars)` : "not set"
|
|
984
|
+
});
|
|
975
985
|
if (!baseUrl) {
|
|
976
986
|
throw new Error(
|
|
977
987
|
"Skedyul client not configured: missing baseUrl. Set SKEDYUL_API_URL environment variable or call configure()."
|
package/dist/index.js
CHANGED
|
@@ -1137,6 +1137,16 @@ function getConfig() {
|
|
|
1137
1137
|
async function callCore(method, params) {
|
|
1138
1138
|
const effectiveConfig = getEffectiveConfig();
|
|
1139
1139
|
const { baseUrl, apiToken } = effectiveConfig;
|
|
1140
|
+
const requestConfig = requestConfigStorage.getStore();
|
|
1141
|
+
console.log(`[callCore] Method: ${method}, Config state:`, {
|
|
1142
|
+
hasRequestConfig: !!requestConfig,
|
|
1143
|
+
requestConfigBaseUrl: requestConfig?.baseUrl ? "set" : "not set",
|
|
1144
|
+
requestConfigApiToken: requestConfig?.apiToken ? `set (${requestConfig.apiToken.length} chars)` : "not set",
|
|
1145
|
+
globalConfigBaseUrl: globalConfig.baseUrl ? "set" : "not set",
|
|
1146
|
+
globalConfigApiToken: globalConfig.apiToken ? `set (${globalConfig.apiToken.length} chars)` : "not set",
|
|
1147
|
+
effectiveBaseUrl: baseUrl ? "set" : "not set",
|
|
1148
|
+
effectiveApiToken: apiToken ? `set (${apiToken.length} chars)` : "not set"
|
|
1149
|
+
});
|
|
1140
1150
|
if (!baseUrl) {
|
|
1141
1151
|
throw new Error(
|
|
1142
1152
|
"Skedyul client not configured: missing baseUrl. Set SKEDYUL_API_URL environment variable or call configure()."
|