@meistrari/tela-sdk-js 2.4.0 → 2.4.2
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/index.cjs +4 -3
- package/dist/index.mjs +4 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -24,7 +24,7 @@ const z__default = /*#__PURE__*/_interopDefaultCompat(z);
|
|
|
24
24
|
const z__namespace = /*#__PURE__*/_interopNamespaceCompat(z);
|
|
25
25
|
const Emittery__default = /*#__PURE__*/_interopDefaultCompat(Emittery);
|
|
26
26
|
|
|
27
|
-
const version = "2.4.
|
|
27
|
+
const version = "2.4.2";
|
|
28
28
|
|
|
29
29
|
var __defProp$7 = Object.defineProperty;
|
|
30
30
|
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
@@ -824,7 +824,8 @@ class BaseClient {
|
|
|
824
824
|
return headers;
|
|
825
825
|
}
|
|
826
826
|
getUserAgent() {
|
|
827
|
-
|
|
827
|
+
const serviceName = typeof process !== "undefined" && process?.env?.SERVICE_NAME ? `@${process.env.SERVICE_NAME}` : "";
|
|
828
|
+
return `tela-sdk-node:${version}${serviceName}`;
|
|
828
829
|
}
|
|
829
830
|
get(path, opts) {
|
|
830
831
|
return this.methodRequest("GET", path, opts);
|
|
@@ -2009,7 +2010,7 @@ class CanvasExecution extends Emittery__default {
|
|
|
2009
2010
|
const variables = {};
|
|
2010
2011
|
for (const [key, value] of Object.entries(this._variables)) {
|
|
2011
2012
|
if (isTelaFileArray(value)) {
|
|
2012
|
-
variables[key] = await this.uploadFiles(value);
|
|
2013
|
+
variables[key] = { files: await this.uploadFiles(value) };
|
|
2013
2014
|
continue;
|
|
2014
2015
|
}
|
|
2015
2016
|
if (isTelaFile(value)) {
|
package/dist/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import * as z from 'zod';
|
|
|
4
4
|
import z__default, { z as z$1, ZodError } from 'zod';
|
|
5
5
|
import Emittery from 'emittery';
|
|
6
6
|
|
|
7
|
-
const version = "2.4.
|
|
7
|
+
const version = "2.4.2";
|
|
8
8
|
|
|
9
9
|
var __defProp$7 = Object.defineProperty;
|
|
10
10
|
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
@@ -804,7 +804,8 @@ class BaseClient {
|
|
|
804
804
|
return headers;
|
|
805
805
|
}
|
|
806
806
|
getUserAgent() {
|
|
807
|
-
|
|
807
|
+
const serviceName = typeof process !== "undefined" && process?.env?.SERVICE_NAME ? `@${process.env.SERVICE_NAME}` : "";
|
|
808
|
+
return `tela-sdk-node:${version}${serviceName}`;
|
|
808
809
|
}
|
|
809
810
|
get(path, opts) {
|
|
810
811
|
return this.methodRequest("GET", path, opts);
|
|
@@ -1989,7 +1990,7 @@ class CanvasExecution extends Emittery {
|
|
|
1989
1990
|
const variables = {};
|
|
1990
1991
|
for (const [key, value] of Object.entries(this._variables)) {
|
|
1991
1992
|
if (isTelaFileArray(value)) {
|
|
1992
|
-
variables[key] = await this.uploadFiles(value);
|
|
1993
|
+
variables[key] = { files: await this.uploadFiles(value) };
|
|
1993
1994
|
continue;
|
|
1994
1995
|
}
|
|
1995
1996
|
if (isTelaFile(value)) {
|