tsv2-library 1.1.0-dev-alpha.36 → 1.1.0-dev-alpha.38
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/tsv2-library.es.js +15 -3
- package/dist/tsv2-library.umd.js +1 -1
- package/package.json +1 -1
package/dist/tsv2-library.es.js
CHANGED
|
@@ -39270,10 +39270,11 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
39270
39270
|
);
|
|
39271
39271
|
const onBeforeStartScan = () => {
|
|
39272
39272
|
const isTest = window.Cypress || window.__wdio;
|
|
39273
|
+
const isDev = window.location.hostname.includes("dev");
|
|
39273
39274
|
const isStaging = window.location.hostname.includes("staging");
|
|
39274
39275
|
const isLocal = window.location.hostname.includes("localhost");
|
|
39275
39276
|
const isCompanyProdTest = companyId === "2009458985643544576";
|
|
39276
|
-
if (isTest && (isLocal || isStaging || isCompanyProdTest)) {
|
|
39277
|
+
if (isTest && (isLocal || isDev || isStaging || isCompanyProdTest)) {
|
|
39277
39278
|
startScanForTest();
|
|
39278
39279
|
} else {
|
|
39279
39280
|
startScan();
|
|
@@ -39300,7 +39301,18 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
39300
39301
|
name: "Device Test"
|
|
39301
39302
|
});
|
|
39302
39303
|
if (props.bulk) {
|
|
39303
|
-
|
|
39304
|
+
if (Array.isArray(code2)) {
|
|
39305
|
+
for (const tag2 of code2) {
|
|
39306
|
+
if (!bulkScannedCode.includes(tag2)) {
|
|
39307
|
+
emit("update:modelValue", tag2);
|
|
39308
|
+
emit("scan", tag2, serialNumber);
|
|
39309
|
+
bulkScannedCode.push(tag2);
|
|
39310
|
+
}
|
|
39311
|
+
}
|
|
39312
|
+
} else {
|
|
39313
|
+
emit("scan", code2, serialNumber);
|
|
39314
|
+
}
|
|
39315
|
+
handleScanStopped();
|
|
39304
39316
|
} else {
|
|
39305
39317
|
validatingCode.value = !!props.scanValidation;
|
|
39306
39318
|
const valid = await ((_a = props.scanValidation) == null ? void 0 : _a.call(props, scanType.value, code2, serialNumber)) ?? true;
|
|
@@ -71963,7 +71975,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
71963
71975
|
var _a;
|
|
71964
71976
|
try {
|
|
71965
71977
|
const { data: body } = await AssetsServices.postAssetList({
|
|
71966
|
-
_id: props.id,
|
|
71978
|
+
_id: JSON.stringify([props.id]),
|
|
71967
71979
|
tag: tag2
|
|
71968
71980
|
});
|
|
71969
71981
|
serialNumber.value = device2;
|