@temporalio/proto
Advanced tools
Comparing version 1.8.6 to 1.9.0-rc.0
@@ -48,6 +48,8 @@ "use strict"; | ||
function isType(value) { | ||
return isRecord(value) && value.constructor.name === 'Type'; | ||
// constructor.name may get mangled by minifiers; thanksfuly protobufjs also sets a constructor.className property | ||
return isRecord(value) && value.constructor.className === 'Type'; | ||
} | ||
function isNamespace(value) { | ||
return isRecord(value) && value.constructor.name === 'Namespace'; | ||
// constructor.name may get mangled by minifiers; thanksfuly protobufjs also sets a constructor.className property | ||
return isRecord(value) && value.constructor.className === 'Namespace'; | ||
} | ||
@@ -54,0 +56,0 @@ // Duplicate from type-helpers instead of importing in order to avoid circular dependency |
{ | ||
"name": "@temporalio/proto", | ||
"version": "1.8.6", | ||
"version": "1.9.0-rc.0", | ||
"description": "Temporal.io SDK compiled protobuf definitions", | ||
@@ -38,3 +38,3 @@ "main": "protos/index.js", | ||
}, | ||
"gitHead": "1e95cf92ec5e6efffb7aedb064ea46be05df0c14" | ||
"gitHead": "ca3e508e62de02b2c9bb40d0d889003cebba282d" | ||
} |
@@ -56,7 +56,9 @@ const ROOT_PROPS = [ | ||
function isType(value: unknown): value is Type { | ||
return isRecord(value) && value.constructor.name === 'Type'; | ||
// constructor.name may get mangled by minifiers; thanksfuly protobufjs also sets a constructor.className property | ||
return isRecord(value) && (value.constructor as any).className === 'Type'; | ||
} | ||
function isNamespace(value: unknown): value is Namespace { | ||
return isRecord(value) && value.constructor.name === 'Namespace'; | ||
// constructor.name may get mangled by minifiers; thanksfuly protobufjs also sets a constructor.className property | ||
return isRecord(value) && (value.constructor as any).className === 'Namespace'; | ||
} | ||
@@ -63,0 +65,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
3234209
52738
1