New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@google-cloud/datastore

Package Overview
Dependencies
Maintainers
5
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google-cloud/datastore - npm Package Compare versions

Comparing version 3.1.1 to 3.1.2

6

build/src/request.d.ts

@@ -761,6 +761,6 @@ /*!

client: string;
gaxOpts?: number | CallOptions | KeyProto | undefined;
gaxOpts?: number | CallOptions | KeyProto;
method: string;
prepared?: boolean;
reqOpts?: RequestOptions;
reqOpts?: Entity | RequestOptions;
}

@@ -780,4 +780,2 @@ export interface RequestOptions {

}
export interface RequestResponse extends google.datastore.v1.ICommitResponse {
}
export interface RunQueryStreamOptions {

@@ -784,0 +782,0 @@ gaxOptions?: CallOptions;

@@ -199,3 +199,3 @@ "use strict";

get(keys, optionsOrCallback, cb) {
const options = typeof optionsOrCallback === 'object' && optionsOrCallback !== null ?
const options = typeof optionsOrCallback === 'object' && optionsOrCallback ?
optionsOrCallback :

@@ -266,3 +266,2 @@ {};

const makeRequest = (query) => {
// tslint:disable-next-line no-any
const reqOpts = {

@@ -294,3 +293,2 @@ query: entity_1.entity.queryToQueryProto(query),

}
// tslint:disable-next-line no-any
const info = {

@@ -302,3 +300,2 @@ moreResults: resp.batch.moreResults,

}
// tslint:disable-next-line no-any
let entities = [];

@@ -401,4 +398,3 @@ if (resp.batch.entityResults) {

}
arrify(resp.mutationResults)
.forEach((result, index) => {
arrify(resp.mutationResults).forEach((result, index) => {
if (!result.key) {

@@ -405,0 +401,0 @@ return;

@@ -112,3 +112,4 @@ // Copyright 2019 Google LLC

/**
* The response for Datastore.RunQuery.
* The response for
* Datastore.RunQuery.
*

@@ -134,3 +135,4 @@ * @property {Object} batch

/**
* The request for Datastore.BeginTransaction.
* The request for
* Datastore.BeginTransaction.
*

@@ -154,3 +156,4 @@ * @property {string} projectId

/**
* The response for Datastore.BeginTransaction.
* The response for
* Datastore.BeginTransaction.
*

@@ -187,4 +190,5 @@ * @property {string} transaction

/**
* The response for Datastore.Rollback.
* (an empty message).
* The response for
* Datastore.Rollback. (an empty
* message).
* @typedef RollbackResponse

@@ -253,3 +257,4 @@ * @memberof google.datastore.v1

* Transactional: The mutations are either all applied, or none are applied.
* Learn about transactions [here](https://cloud.google.com/datastore/docs/concepts/transactions).
* Learn about transactions
* [here](https://cloud.google.com/datastore/docs/concepts/transactions).
*/

@@ -287,3 +292,4 @@ TRANSACTIONAL: 1,

/**
* The request for Datastore.AllocateIds.
* The request for
* Datastore.AllocateIds.
*

@@ -308,3 +314,4 @@ * @property {string} projectId

/**
* The response for Datastore.AllocateIds.
* The response for
* Datastore.AllocateIds.
*

@@ -326,3 +333,4 @@ * @property {Object[]} keys

/**
* The request for Datastore.ReserveIds.
* The request for
* Datastore.ReserveIds.
*

@@ -350,3 +358,4 @@ * @property {string} projectId

/**
* The response for Datastore.ReserveIds.
* The response for
* Datastore.ReserveIds.
* @typedef ReserveIdsResponse

@@ -477,4 +486,6 @@ * @memberof google.datastore.v1

* Transactions can be created explicitly with calls to
* Datastore.BeginTransaction or implicitly by setting
* ReadOptions.new_transaction in read requests.
* Datastore.BeginTransaction
* or implicitly by setting
* ReadOptions.new_transaction
* in read requests.
*

@@ -481,0 +492,0 @@ * @property {Object} readWrite

@@ -37,3 +37,4 @@ // Copyright 2019 Google LLC

* not match the context project ID ) are discouraged.
* Reads and writes of foreign partition IDs may fail if the project is not in an active state.
* Reads and writes of foreign partition IDs may fail if the project is not in
* an active state.
*

@@ -176,4 +177,4 @@ * @property {string} projectId

* A UTF-8 encoded string value.
* When `exclude_from_indexes` is false (it is indexed) , may have at most 1500 bytes.
* Otherwise, may be set to at least 1,000,000 bytes.
* When `exclude_from_indexes` is false (it is indexed) , may have at most
* 1500 bytes. Otherwise, may be set to at least 1,000,000 bytes.
*

@@ -180,0 +181,0 @@ * @property {string} blobValue

@@ -30,8 +30,8 @@ // Copyright 2019 Google LLC

*
* This field is set for `FULL` entity
* results.
* This field is set for
* `FULL` entity results.
*
* For missing entities in `LookupResponse`, this
* is the version of the snapshot that was used to look up the entity, and it
* is always set except for eventually consistent reads.
* For missing entities in
* `LookupResponse`, this is the version of the snapshot that was used to look
* up the entity, and it is always set except for eventually consistent reads.
*

@@ -117,3 +117,4 @@ * @property {string} cursor

* returned in query result batches and
* [can only be used to continue the same query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).
* [can only be used to continue the same
* query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).
*

@@ -123,3 +124,4 @@ * @property {string} endCursor

* returned in query result batches and
* [can only be used to limit the same query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).
* [can only be used to limit the same
* query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).
*

@@ -369,3 +371,4 @@ * @property {number} offset

/**
* A [GQL query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
* A [GQL
* query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
*

@@ -372,0 +375,0 @@ * @property {string} queryString

@@ -7,2 +7,21 @@ # Changelog

## v3.1.2
03-06-2019 12:24 PST
### Bug fixes
- fix: make an explicit dependency on long ([#352](https://github.com/googleapis/nodejs-datastore/pull/352))
- fix: include types in package ([#351](https://github.com/googleapis/nodejs-datastore/pull/351))
- fix: add missing package, and add install test ([#346](https://github.com/googleapis/nodejs-datastore/pull/346))
### Documentation
- docs(samples): Update datastore_transaction_retry sample to use function arguments rather than closed variables. ([#339](https://github.com/googleapis/nodejs-datastore/pull/339))
### Internal / Testing Changes
- refactor(ts): enable noImplicitAny on test/request.ts ([#343](https://github.com/googleapis/nodejs-datastore/pull/343))
- refactor(ts): enable noImplicitAny on test/query.ts ([#342](https://github.com/googleapis/nodejs-datastore/pull/342))
- build: update release configuration
- chore: update proto docs and code style
- chore(deps): update dependency mocha to v6 ([#338](https://github.com/googleapis/nodejs-datastore/pull/338))
## v3.1.1

@@ -9,0 +28,0 @@

{
"name": "@google-cloud/datastore",
"description": "Cloud Datastore Client Library for Node.js",
"version": "3.1.1",
"version": "3.1.2",
"license": "Apache-2.0",

@@ -17,2 +17,3 @@ "author": "Google Inc.",

],
"types": "build/src/index.d.ts",
"keywords": [

@@ -44,3 +45,3 @@ "google apis client",

"proto": "npm run proto:datastore",
"proto:datastore": "mkdir -p proto && pbjs -t static-module -w commonjs -p node_modules/google-proto-files google/datastore/v1/datastore.proto | pbts -o proto/datastore.d.ts -",
"proto:datastore": "mkdir -p proto && pbjs -t static-module -w commonjs -p node_modules/google-proto-files google/datastore/v1/datastore.proto | pbts -i long -o proto/datastore.d.ts -",
"docs-test": "linkinator docs -r --skip www.googleapis.com",

@@ -52,2 +53,3 @@ "predocs-test": "npm run docs"

"@google-cloud/promisify": "^0.4.0",
"@types/duplexify": "^3.6.0",
"arrify": "^1.0.1",

@@ -67,9 +69,12 @@ "concat-stream": "^2.0.0",

"@types/arrify": "^1.0.4",
"@types/async": "^2.0.50",
"@types/execa": "^0.9.0",
"@types/extend": "^3.0.0",
"@types/is": "0.0.21",
"@types/mocha": "^5.2.5",
"@types/mv": "^2.1.0",
"@types/ncp": "^2.0.1",
"@types/proxyquire": "^1.3.28",
"@types/sinon": "^7.0.2",
"@types/through2": "^2.0.34",
"@types/tmp": "0.0.34",
"assert-rejects": "^1.0.0",

@@ -81,2 +86,3 @@ "codecov": "^3.0.2",

"eslint-plugin-prettier": "^3.0.0",
"execa": "^1.0.0",
"google-proto-files": "^0.18.0",

@@ -87,3 +93,6 @@ "gts": "^0.9.0",

"jsdoc-baseline": "git+https://github.com/hegemonic/jsdoc-baseline.git",
"mocha": "^5.2.0",
"linkinator": "^1.1.2",
"mocha": "^6.0.0",
"mv": "^2.1.1",
"ncp": "^2.0.0",
"nyc": "^13.0.0",

@@ -94,5 +103,5 @@ "power-assert": "^1.5.0",

"sinon": "^7.0.0",
"typescript": "~3.3.0",
"linkinator": "^1.1.2"
"tmp": "0.0.33",
"typescript": "~3.3.0"
}
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc