Skip to content

Commit

Permalink
fix(deps): update dependency p-limit to v3 (#1210)
Browse files Browse the repository at this point in the history
  • Loading branch information
laljikanjareeya committed Jun 12, 2020
1 parent ae5232d commit 7da0379
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -65,7 +65,7 @@
"mime": "^2.2.0",
"mime-types": "^2.0.8",
"onetime": "^5.1.0",
"p-limit": "^2.2.0",
"p-limit": "^3.0.1",
"pumpify": "^2.0.0",
"readable-stream": "^3.4.0",
"snakeize": "^0.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/bucket.ts
Expand Up @@ -32,7 +32,7 @@ import * as fs from 'fs';
import * as http from 'http';
import * as mime from 'mime-types';
import * as path from 'path';
import pLimit from 'p-limit';
import pLimit = require('p-limit');
import {promisify} from 'util';

// eslint-disable-next-line @typescript-eslint/no-var-requires
Expand Down
2 changes: 1 addition & 1 deletion system-test/storage.ts
Expand Up @@ -20,7 +20,7 @@ import fetch from 'node-fetch';
import * as FormData from 'form-data';
// eslint-disable-next-line @typescript-eslint/no-var-requires
const normalizeNewline = require('normalize-newline');
import pLimit from 'p-limit';
import pLimit = require('p-limit');
import {promisify} from 'util';
import * as path from 'path';
import * as through from 'through2';
Expand Down
4 changes: 2 additions & 2 deletions test/bucket.ts
Expand Up @@ -25,7 +25,7 @@ import * as extend from 'extend';
import * as fs from 'fs';
import {describe, it, before, beforeEach, after, afterEach} from 'mocha';
import * as mime from 'mime-types';
import pLimit from 'p-limit';
import pLimit = require('p-limit');
import * as path from 'path';
import * as proxyquire from 'proxyquire';

Expand Down Expand Up @@ -182,7 +182,7 @@ describe('Bucket', () => {
before(() => {
Bucket = proxyquire('../src/bucket.js', {
fs: fakeFs,
'p-limit': {default: fakePLimit},
'p-limit': fakePLimit,
'@google-cloud/promisify': fakePromisify,
'@google-cloud/paginator': fakePaginator,
'@google-cloud/common': {
Expand Down

0 comments on commit 7da0379

Please sign in to comment.