@temporalio/common
Advanced tools
Comparing version 1.8.3 to 1.8.4
@@ -212,4 +212,3 @@ "use strict"; | ||
if (firstType === 'object') { | ||
for (const idx in values) { | ||
const value = values[idx]; | ||
for (const [idx, value] of values.entries()) { | ||
if (!(value instanceof Date)) { | ||
@@ -224,4 +223,3 @@ throw new errors_1.ValueError(`SearchAttribute values must arrays of strings, numbers, booleans, or Dates. The value ${value} at index ${idx} is of type ${typeof value}`); | ||
} | ||
for (const idx in values) { | ||
const value = values[idx]; | ||
for (const [idx, value] of values.entries()) { | ||
if (typeof value !== firstType) { | ||
@@ -228,0 +226,0 @@ throw new errors_1.ValueError(`All SearchAttribute array values must be of the same type. The first value ${firstValue} of type ${firstType} doesn't match value ${value} of type ${typeof value} at index ${idx}`); |
{ | ||
"name": "@temporalio/common", | ||
"version": "1.8.3", | ||
"version": "1.8.4", | ||
"description": "Common library for code that's used across the Client, Worker, and/or Workflow", | ||
@@ -16,3 +16,3 @@ "main": "lib/index.js", | ||
"@opentelemetry/api": "^1.4.1", | ||
"@temporalio/proto": "1.8.3", | ||
"@temporalio/proto": "1.8.4", | ||
"long": "^5.2.0", | ||
@@ -39,3 +39,3 @@ "ms": "^3.0.0-canary.1", | ||
], | ||
"gitHead": "7d1c0ec969b897b4f32bd5a8eda9819a03bd2f83" | ||
"gitHead": "7e65cf816b1deef72973dc64ccbf2c93916a3eb1" | ||
} |
@@ -271,4 +271,3 @@ import { decode, encode } from '../encoding'; | ||
if (firstType === 'object') { | ||
for (const idx in values) { | ||
const value = values[idx]; | ||
for (const [idx, value] of values.entries()) { | ||
if (!(value instanceof Date)) { | ||
@@ -285,4 +284,3 @@ throw new ValueError( | ||
for (const idx in values) { | ||
const value = values[idx]; | ||
for (const [idx, value] of values.entries()) { | ||
if (typeof value !== firstType) { | ||
@@ -289,0 +287,0 @@ throw new ValueError( |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
381409
7421
+ Added@temporalio/proto@1.8.4(transitive)
- Removed@temporalio/proto@1.8.3(transitive)
Updated@temporalio/proto@1.8.4