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 Apr 21, 2021
1 parent 218e3b3 commit 8af401d
Show file tree
Hide file tree
Showing 8 changed files with 3,374 additions and 4,945 deletions.
8,251 changes: 3,339 additions & 4,912 deletions package-lock.json

Large diffs are not rendered by default.

54 changes: 27 additions & 27 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",
"lodash": "^4.17.20",
"@apollo/client": "^3.3.15",
"dataloader": "^2.0.0",
"graphql": "^15.5.0",
"graphql-tools": "^7.0.4",
"lodash": "^4.17.21",
"mitt": "^2.1.0"
},
"devDependencies": {
"@babel/cli": "^7.12.1",
"@babel/core": "^7.12.3",
"@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/cli": "^7.13.16",
"@babel/core": "^7.13.16",
"@babel/plugin-proposal-class-properties": "^7.13.0",
"@babel/preset-env": "^7.13.15",
"@babel/preset-typescript": "^7.13.0",
"@babel/register": "^7.13.16",
"@graphql-codegen/cli": "^1.21.4",
"@graphql-codegen/typescript": "^1.22.0",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-typescript": "^8.2.1",
"@types/graphql": "^14.5.0",
"@types/lodash": "^4.14.162",
"@types/node": "^14.14.2",
"@types/lodash": "^4.14.168",
"@types/node": "^14.14.41",
"@types/whatwg-fetch": "^0.0.33",
"audit-ci": "^3.1.1",
"audit-ci": "^3.2.0",
"babel-plugin-lodash": "^3.3.4",
"chai": "^4.2.0",
"copyfiles": "^2.4.0",
"chai": "^4.3.4",
"copyfiles": "^2.4.1",
"cross-var": "^1.1.0",
"file-matcher": "^1.3.0",
"mocha": "^8.2.0",
"mocha": "^8.3.2",
"npm-run-all": "^4.1.5",
"prettier": "^2.1.2",
"prettier": "^2.2.1",
"rimraf": "^3.0.2",
"rollup": "^2.32.1",
"rollup": "^2.45.2",
"rollup-plugin-graphql": "^0.1.0",
"rollup-plugin-local-resolve": "^1.0.7",
"tslib": "^2.0.3",
"tslib": "^2.2.0",
"tslint": "^5.20.1",
"tslint-config-prettier": "^1.18.0",
"tslint-plugin-prettier": "^2.3.0",
"typescript": "^4.0.3",
"typescript": "^4.2.4",
"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 @@ -157,7 +157,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 @@ -1795,7 +1795,7 @@ export class ZimbraBatchClient {
});
};

private batchDataHandler = (requests: Array<RequestOptions>) =>
private batchDataHandler = (requests: ReadonlyArray<RequestOptions>) =>
batchJsonRequest({
requests,
...this.getAdditionalRequestOptions()
Expand Down Expand Up @@ -1836,7 +1836,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 8af401d

Please sign in to comment.