@blotoutio/providers-shop-gpt-sdk 0.68.2 → 0.69.0
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/index.cjs.js +5 -14
- package/index.js +5 -14
- package/index.mjs +5 -14
- package/package.json +1 -1
package/index.cjs.js
CHANGED
@@ -277,35 +277,26 @@ const canLog = () => {
|
|
277
277
|
return false;
|
278
278
|
}
|
279
279
|
};
|
280
|
+
const prefix = `[EdgeTag]`;
|
280
281
|
const logger = {
|
281
282
|
log: (...args) => {
|
282
283
|
if (canLog()) {
|
283
|
-
console.log(...args);
|
284
|
+
console.log(prefix, ...args);
|
284
285
|
}
|
285
286
|
},
|
286
287
|
error: (...args) => {
|
287
288
|
if (canLog()) {
|
288
|
-
console.error(...args);
|
289
|
+
console.error(prefix, ...args);
|
289
290
|
}
|
290
291
|
},
|
291
292
|
info: (...args) => {
|
292
293
|
if (canLog()) {
|
293
|
-
console.info(...args);
|
294
|
+
console.info(prefix, ...args);
|
294
295
|
}
|
295
296
|
},
|
296
297
|
trace: (...args) => {
|
297
298
|
if (canLog()) {
|
298
|
-
console.trace(...args);
|
299
|
-
}
|
300
|
-
},
|
301
|
-
table: (...args) => {
|
302
|
-
if (canLog()) {
|
303
|
-
console.table(...args);
|
304
|
-
}
|
305
|
-
},
|
306
|
-
dir: (...args) => {
|
307
|
-
if (canLog()) {
|
308
|
-
console.dir(...args);
|
299
|
+
console.trace(prefix, ...args);
|
309
300
|
}
|
310
301
|
},
|
311
302
|
};
|
package/index.js
CHANGED
@@ -278,35 +278,26 @@ var ProvidersShopGptSdk = (function () {
|
|
278
278
|
return false;
|
279
279
|
}
|
280
280
|
};
|
281
|
+
const prefix = `[EdgeTag]`;
|
281
282
|
const logger = {
|
282
283
|
log: (...args) => {
|
283
284
|
if (canLog()) {
|
284
|
-
console.log(...args);
|
285
|
+
console.log(prefix, ...args);
|
285
286
|
}
|
286
287
|
},
|
287
288
|
error: (...args) => {
|
288
289
|
if (canLog()) {
|
289
|
-
console.error(...args);
|
290
|
+
console.error(prefix, ...args);
|
290
291
|
}
|
291
292
|
},
|
292
293
|
info: (...args) => {
|
293
294
|
if (canLog()) {
|
294
|
-
console.info(...args);
|
295
|
+
console.info(prefix, ...args);
|
295
296
|
}
|
296
297
|
},
|
297
298
|
trace: (...args) => {
|
298
299
|
if (canLog()) {
|
299
|
-
console.trace(...args);
|
300
|
-
}
|
301
|
-
},
|
302
|
-
table: (...args) => {
|
303
|
-
if (canLog()) {
|
304
|
-
console.table(...args);
|
305
|
-
}
|
306
|
-
},
|
307
|
-
dir: (...args) => {
|
308
|
-
if (canLog()) {
|
309
|
-
console.dir(...args);
|
300
|
+
console.trace(prefix, ...args);
|
310
301
|
}
|
311
302
|
},
|
312
303
|
};
|
package/index.mjs
CHANGED
@@ -275,35 +275,26 @@ const canLog = () => {
|
|
275
275
|
return false;
|
276
276
|
}
|
277
277
|
};
|
278
|
+
const prefix = `[EdgeTag]`;
|
278
279
|
const logger = {
|
279
280
|
log: (...args) => {
|
280
281
|
if (canLog()) {
|
281
|
-
console.log(...args);
|
282
|
+
console.log(prefix, ...args);
|
282
283
|
}
|
283
284
|
},
|
284
285
|
error: (...args) => {
|
285
286
|
if (canLog()) {
|
286
|
-
console.error(...args);
|
287
|
+
console.error(prefix, ...args);
|
287
288
|
}
|
288
289
|
},
|
289
290
|
info: (...args) => {
|
290
291
|
if (canLog()) {
|
291
|
-
console.info(...args);
|
292
|
+
console.info(prefix, ...args);
|
292
293
|
}
|
293
294
|
},
|
294
295
|
trace: (...args) => {
|
295
296
|
if (canLog()) {
|
296
|
-
console.trace(...args);
|
297
|
-
}
|
298
|
-
},
|
299
|
-
table: (...args) => {
|
300
|
-
if (canLog()) {
|
301
|
-
console.table(...args);
|
302
|
-
}
|
303
|
-
},
|
304
|
-
dir: (...args) => {
|
305
|
-
if (canLog()) {
|
306
|
-
console.dir(...args);
|
297
|
+
console.trace(prefix, ...args);
|
307
298
|
}
|
308
299
|
},
|
309
300
|
};
|