@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 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
 
@@ -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);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@google-cloud/spanner",
3
3
  "description": "Cloud Spanner Client Library for Node.js",
4
- "version": "6.7.0",
4
+ "version": "6.7.1",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Google Inc.",
7
7
  "engines": {