@google-cloud/spanner 6.7.0 → 6.7.1
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/CHANGELOG.md +8 -0
- package/build/src/codec.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
[1]: https://www.npmjs.com/package/nodejs-spanner?activeTab=versions
|
|
6
6
|
|
|
7
|
+
## [6.7.1](https://github.com/googleapis/nodejs-spanner/compare/v6.7.0...v6.7.1) (2023-01-23)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* Change of tag for fgac ([#1780](https://github.com/googleapis/nodejs-spanner/issues/1780)) ([d75b6dd](https://github.com/googleapis/nodejs-spanner/commit/d75b6dd79ffc2442cbd7a14f1ea952edc6678a64))
|
|
13
|
+
* **codec:** Use index to determine array struct member value ([#1775](https://github.com/googleapis/nodejs-spanner/issues/1775)) ([fc2b695](https://github.com/googleapis/nodejs-spanner/commit/fc2b695d9ea6b65df856b4b081a75165009413ee)), closes [#1774](https://github.com/googleapis/nodejs-spanner/issues/1774)
|
|
14
|
+
|
|
7
15
|
## [6.7.0](https://github.com/googleapis/nodejs-spanner/compare/v6.6.0...v6.7.0) (2023-01-17)
|
|
8
16
|
|
|
9
17
|
|
package/build/src/codec.js
CHANGED
|
@@ -351,7 +351,7 @@ function decode(value, type) {
|
|
|
351
351
|
case protos_1.google.spanner.v1.TypeCode.STRUCT:
|
|
352
352
|
case 'STRUCT':
|
|
353
353
|
fields = type.structType.fields.map(({ name, type }, index) => {
|
|
354
|
-
const value = decode(decoded[name] || decoded[index], type);
|
|
354
|
+
const value = decode((!Array.isArray(decoded) && decoded[name]) || decoded[index], type);
|
|
355
355
|
return { name, value };
|
|
356
356
|
});
|
|
357
357
|
decoded = Struct.fromArray(fields);
|