File tree Expand file tree Collapse file tree 4 files changed +6
-7
lines changed
Expand file tree Collapse file tree 4 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 5858 "@sindresorhus/is" : " ^0.15.0" ,
5959 "@types/duplexify" : " ^3.6.0" ,
6060 "@types/long" : " ^4.0.0" ,
61- "arrify" : " ^1 .0.0" ,
61+ "arrify" : " ^2 .0.0" ,
6262 "async-each" : " ^1.0.1" ,
6363 "extend" : " ^3.0.1" ,
6464 "google-auth-library" : " ^3.0.0" ,
7171 },
7272 "devDependencies" : {
7373 "@google-cloud/nodejs-repo-tools" : " ^3.0.0" ,
74- "@types/arrify" : " ^1.0.4" ,
7574 "@types/execa" : " ^0.9.0" ,
7675 "@types/extend" : " ^3.0.0" ,
7776 "@types/mocha" : " ^5.2.5" ,
Original file line number Diff line number Diff line change 1919 */
2020
2121import { promisifyAll } from '@google-cloud/promisify' ;
22- import * as arrify from 'arrify' ;
22+ import arrify = require ( 'arrify' ) ;
2323import { CallOptions } from 'google-gax' ;
2424
2525import { google } from '../proto/iam' ;
@@ -365,7 +365,7 @@ export class IAM {
365365 return ;
366366 }
367367
368- const availablePermissions = arrify ( resp ! . permissions ) ;
368+ const availablePermissions = arrify ( resp ! . permissions ! ) ;
369369 const permissionHash : IamPermissionsMap =
370370 ( permissions as string [ ] ) . reduce ( ( acc , permission ) => {
371371 acc [ permission ] = availablePermissions . indexOf ( permission ) > - 1 ;
Original file line number Diff line number Diff line change 1515 */
1616
1717import { promisifyAll } from '@google-cloud/promisify' ;
18- import * as arrify from 'arrify' ;
18+ import arrify = require ( 'arrify' ) ;
1919import { CallOptions } from 'google-gax' ;
2020import { google } from '../proto/pubsub' ;
2121
@@ -264,7 +264,7 @@ export class Publisher {
264264 gaxOpts : this . settings ! . gaxOpts ! ,
265265 } ,
266266 ( err , resp ) => {
267- const messageIds = arrify ( resp && resp . messageIds ) ;
267+ const messageIds = arrify ( resp ! && resp ! . messageIds ! ) ;
268268 each ( callbacks , ( callback : PublishCallback , next : Function ) => {
269269 const messageId = messageIds [ callbacks . indexOf ( callback ) ] ;
270270 callback ( err , messageId ) ;
Original file line number Diff line number Diff line change 1616
1717import * as pjy from '@google-cloud/projectify' ;
1818import * as promisify from '@google-cloud/promisify' ;
19- import * as arrify from 'arrify' ;
19+ import arrify = require ( 'arrify' ) ;
2020import * as assert from 'assert' ;
2121import * as gax from 'google-gax' ;
2222import { CallOptions , ServiceError } from 'grpc' ;
You can’t perform that action at this time.
0 commit comments