Skip to content

Commit

Permalink
fix(deps): update dependency arrify to v2
Browse files Browse the repository at this point in the history
fix(deps): update dependency arrify to v2

This PR contains the following updates:

| Package | Type | Update | Change | References |
|---|---|---|---|---|
| arrify | dependencies | major | [`^1.0.1` -> `^2.0.0`](https://diff.intrinsic.com/arrify/1.0.1/2.0.0) | [source](https://togithub.com/sindresorhus/arrify) |

---

### Release Notes

<details>
<summary>sindresorhus/arrify</summary>

### [`v2.0.0`](https://togithub.com/sindresorhus/arrify/releases/v2.0.0)

[Compare Source](https://togithub.com/sindresorhus/arrify/compare/v1.0.1...v2.0.0)

Breaking:

-   Require Node.js 8 ([#&#8203;6](https://togithub.com/sindresorhus/arrify/issues/6))  [`8d6734f`](https://togithub.com/sindresorhus/arrify/commit/8d6734f)

Enhancements:

-   Add TypeScript definition ([#&#8203;6](https://togithub.com/sindresorhus/arrify/issues/6))  [`8d6734f`](https://togithub.com/sindresorhus/arrify/commit/8d6734f)

</details>

---

### Renovate configuration

:date: **Schedule**: "after 9am and before 3pm" (UTC).

:vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

:recycle: **Rebasing**: Whenever PR is stale, or if you modify the PR title to begin with "`rebase!`".

:no_bell: **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- renovate-rebase -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://togithub.com/marketplace/renovate). View repository job log [here](https://renovatebot.com/dashboard#googleapis/nodejs-datastore).

#380 automerged by dpebot
  • Loading branch information
renovate[bot] authored and yoshi-automation committed Apr 5, 2019
1 parent 899c135 commit 2b47d10
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 10 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"@google-cloud/projectify": "^0.3.2",
"@google-cloud/promisify": "^0.4.0",
"@types/duplexify": "^3.6.0",
"arrify": "^1.0.1",
"arrify": "^2.0.0",
"concat-stream": "^2.0.0",
"extend": "^3.0.1",
"google-auth-library": "^3.0.0",
Expand All @@ -62,7 +62,6 @@
},
"devDependencies": {
"@google-cloud/nodejs-repo-tools": "^3.0.0",
"@types/arrify": "^1.0.4",
"@types/extend": "^3.0.0",
"@types/is": "0.0.21",
"@types/mocha": "^5.2.5",
Expand Down
2 changes: 1 addition & 1 deletion src/entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import * as arrify from 'arrify';
import arrify = require('arrify');
import * as extend from 'extend';
import * as is from 'is';
import {Query, QueryProto} from './query';
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @namespace google.protobuf
*/

import * as arrify from 'arrify';
import arrify = require('arrify');
import {GoogleAuth, GoogleAuthOptions} from 'google-auth-library';
import {GrpcClient} from 'google-gax';
import {ChannelCredentials} from 'grpc';
Expand Down Expand Up @@ -642,7 +642,7 @@ class Datastore extends DatastoreRequest {
kind = namespaceOrKind;
namespace = this.namespace!;
}
return new Query(this, namespace, arrify(kind));
return new Query(this, namespace, arrify(kind) as string[]);
}

key(options: entity.KeyOptions): entity.Key;
Expand Down Expand Up @@ -700,7 +700,7 @@ class Datastore extends DatastoreRequest {
key(options: string|entity.KeyOptions|PathType[]): entity.Key {
options = is.object(options) ? options : {
namespace: this.namespace,
path: arrify(options),
path: arrify(options) as PathType[],
};
return new entity.Key(options as entity.KeyOptions);
}
Expand Down
2 changes: 1 addition & 1 deletion src/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import * as arrify from 'arrify';
import arrify = require('arrify');
import {Key} from 'readline';
import {Datastore} from '.';
import {Entity} from './entity';
Expand Down
2 changes: 1 addition & 1 deletion src/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import {replaceProjectIdToken} from '@google-cloud/projectify';
import {promisifyAll} from '@google-cloud/promisify';
import * as arrify from 'arrify';
import arrify = require('arrify');

const concat = require('concat-stream');
import * as extend from 'extend';
Expand Down
2 changes: 1 addition & 1 deletion src/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

import {promisifyAll} from '@google-cloud/promisify';
import * as arrify from 'arrify';
import arrify = require('arrify');
import {CallOptions} from 'google-gax';

import {google} from '../proto/datastore';
Expand Down
2 changes: 1 addition & 1 deletion test/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

import * as pfy from '@google-cloud/promisify';
import * as arrify from 'arrify';
import arrify = require('arrify');
import * as assert from 'assert';
import * as proxyquire from 'proxyquire';
import * as sinon from 'sinon';
Expand Down

0 comments on commit 2b47d10

Please sign in to comment.