Skip to content

Commit

Permalink
package-upgrades Upgrade remaining packages after last upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
silentsakky committed Dec 21, 2020
1 parent 5e36a4a commit f1892f8
Show file tree
Hide file tree
Showing 8 changed files with 1,736 additions and 3,381 deletions.
5,059 changes: 1,706 additions & 3,353 deletions package-lock.json

Large diffs are not rendered by default.

44 changes: 22 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,48 +38,48 @@
"repository": "Zimbra/zm-api-js-client",
"license": "BSD-3-Clause",
"dependencies": {
"@apollo/client": "^3.2.1",
"dataloader": "^1.4.0",
"graphql": "^15.3.0",
"graphql-tools": "^6.2.3",
"@apollo/client": "^3.3.6",
"dataloader": "^2.0.0",
"graphql": "^15.4.0",
"graphql-tools": "^7.0.2",
"lodash": "^4.17.20",
"mitt": "^2.1.0"
},
"devDependencies": {
"@babel/cli": "^7.12.1",
"@babel/core": "^7.12.3",
"@babel/cli": "^7.12.10",
"@babel/core": "^7.12.10",
"@babel/plugin-proposal-class-properties": "^7.12.1",
"@babel/preset-env": "^7.12.1",
"@babel/preset-typescript": "^7.12.1",
"@babel/register": "^7.12.1",
"@graphql-codegen/cli": "^1.18.0",
"@graphql-codegen/typescript": "^1.17.11",
"@rollup/plugin-babel": "^5.2.1",
"@rollup/plugin-commonjs": "^15.1.0",
"@rollup/plugin-node-resolve": "^9.0.0",
"@rollup/plugin-typescript": "^6.0.0",
"@babel/preset-env": "^7.12.11",
"@babel/preset-typescript": "^7.12.7",
"@babel/register": "^7.12.10",
"@graphql-codegen/cli": "^1.19.4",
"@graphql-codegen/typescript": "^1.19.0",
"@rollup/plugin-babel": "^5.2.2",
"@rollup/plugin-commonjs": "^17.0.0",
"@rollup/plugin-node-resolve": "^11.0.1",
"@rollup/plugin-typescript": "^8.1.0",
"@types/graphql": "^14.5.0",
"@types/lodash": "^4.14.162",
"@types/node": "^14.14.2",
"@types/lodash": "^4.14.165",
"@types/node": "^14.14.14",
"@types/whatwg-fetch": "^0.0.33",
"audit-ci": "^3.1.1",
"babel-plugin-lodash": "^3.3.4",
"chai": "^4.2.0",
"copyfiles": "^2.4.0",
"copyfiles": "^2.4.1",
"cross-var": "^1.1.0",
"file-matcher": "^1.3.0",
"mocha": "^8.2.0",
"mocha": "^8.2.1",
"npm-run-all": "^4.1.5",
"prettier": "^2.1.2",
"prettier": "^2.2.1",
"rimraf": "^3.0.2",
"rollup": "^2.32.1",
"rollup": "^2.35.1",
"rollup-plugin-graphql": "^0.1.0",
"rollup-plugin-local-resolve": "^1.0.7",
"tslib": "^2.0.3",
"tslint": "^5.20.1",
"tslint-config-prettier": "^1.18.0",
"tslint-plugin-prettier": "^2.3.0",
"typescript": "^4.0.3",
"typescript": "^4.1.3",
"uglifyjs": "^2.4.11"
}
}
2 changes: 1 addition & 1 deletion src/apollo/offline-queue-link/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export class OfflineQueueLink extends ApolloLink {
// Returns a Promise that resolves after all operations are processed
// regardless of success.
retry = () =>
new Promise(resolve => {
new Promise<void>(resolve => {
let outstandingReqs = this.operationQueue.length;
if (!outstandingReqs) {
return resolve();
Expand Down
2 changes: 1 addition & 1 deletion src/apollo/offline-queue-link/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { FetchResult, NextLink, Operation } from '@apollo/client';
import { Observer } from 'zen-observable-ts';
import { Observer } from '@apollo/client';

export interface OfflineQueueLinkOptions {
isOpen?: boolean;
Expand Down
4 changes: 2 additions & 2 deletions src/batch-client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1715,7 +1715,7 @@ export class ZimbraBatchClient {
});
};

private batchDataHandler = (requests: Array<RequestOptions>) =>
private batchDataHandler = (requests: ReadonlyArray<RequestOptions>) =>
batchJsonRequest({
requests,
...this.getAdditionalRequestOptions()
Expand Down Expand Up @@ -1756,7 +1756,7 @@ export class ZimbraBatchClient {
}
};

private dataHandler = (requests: Array<JsonRequestOptions>) =>
private dataHandler = (requests: ReadonlyArray<JsonRequestOptions>) =>
jsonRequest({
...requests[0],
// check if login request then don't add csrfToken
Expand Down
2 changes: 1 addition & 1 deletion src/request/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function faultError(response: ParsedResponse, faults: any) {
* Create one key per SOAP command name, with a value
* containing an array of the requests for that command.
*/
function batchBody(requests: Array<RequestOptions>) {
function batchBody(requests: ReadonlyArray<RequestOptions>) {
return reduce(
requests,
(body: { [key: string]: any }, request) => {
Expand Down
2 changes: 1 addition & 1 deletion src/request/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export interface JsonRequestOptions
RequestOptions {}

export interface BatchRequestOptions extends BaseRequestOptions {
requests: Array<RequestOptions>;
requests: ReadonlyArray<RequestOptions>;
}

export interface RequestResponse {
Expand Down
2 changes: 2 additions & 0 deletions src/schema/generated-schema-types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: string;
Expand Down

0 comments on commit f1892f8

Please sign in to comment.