@webiny/app 5.25.0-beta.2 → 5.25.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/app",
3
- "version": "5.25.0-beta.2",
3
+ "version": "5.25.0-beta.3",
4
4
  "main": "index.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,11 +18,11 @@
18
18
  "@babel/runtime": "7.17.7",
19
19
  "@emotion/styled": "10.3.0",
20
20
  "@types/react": "16.14.2",
21
- "@webiny/i18n": "5.25.0-beta.2",
22
- "@webiny/i18n-react": "5.25.0-beta.2",
23
- "@webiny/plugins": "5.25.0-beta.2",
24
- "@webiny/react-router": "5.25.0-beta.2",
25
- "@webiny/ui": "5.25.0-beta.2",
21
+ "@webiny/i18n": "5.25.0-beta.3",
22
+ "@webiny/i18n-react": "5.25.0-beta.3",
23
+ "@webiny/plugins": "5.25.0-beta.3",
24
+ "@webiny/react-router": "5.25.0-beta.3",
25
+ "@webiny/ui": "5.25.0-beta.3",
26
26
  "apollo-cache": "1.3.5",
27
27
  "apollo-cache-inmemory": "1.6.6",
28
28
  "apollo-client": "2.6.10",
@@ -48,8 +48,8 @@
48
48
  "@babel/preset-react": "^7.16.0",
49
49
  "@babel/preset-typescript": "^7.16.0",
50
50
  "@types/warning": "^3.0.0",
51
- "@webiny/cli": "^5.25.0-beta.2",
52
- "@webiny/project-utils": "^5.25.0-beta.2",
51
+ "@webiny/cli": "^5.25.0-beta.3",
52
+ "@webiny/project-utils": "^5.25.0-beta.3",
53
53
  "babel-plugin-lodash": "^3.3.4",
54
54
  "rimraf": "^3.0.2",
55
55
  "typescript": "4.5.5"
@@ -69,5 +69,5 @@
69
69
  ]
70
70
  }
71
71
  },
72
- "gitHead": "ed2f22976af47aea0b6b5d638f8afdc39951b014"
72
+ "gitHead": "3364dbf65ade9f33f4decff7e45da1efd02b2af0"
73
73
  }
@@ -4,12 +4,12 @@ export interface ApolloCacheObject {
4
4
  [key: string]: any;
5
5
  }
6
6
  interface ApolloCacheObjectIdPluginCallable<T> {
7
- (data: T): any;
7
+ (data: T): string | null;
8
8
  }
9
9
  export declare class ApolloCacheObjectIdPlugin<T extends ApolloCacheObject = ApolloCacheObject> extends Plugin {
10
10
  static readonly type: string;
11
11
  private readonly _getObjectId?;
12
12
  constructor(getObjectId?: ApolloCacheObjectIdPluginCallable<T>);
13
- getObjectId(data: T): any;
13
+ getObjectId(data: T): string | null;
14
14
  }
15
15
  export {};
@@ -1 +1 @@
1
- {"version":3,"sources":["ApolloCacheObjectIdPlugin.ts"],"names":["Plugin","ApolloCacheObjectIdPlugin","getObjectId","_getObjectId","data","Error"],"mappings":";;;;;;AAAA,SAASA,MAAT,QAAuB,iBAAvB;AAYA,WAAaC,yBAAb;AAAA;;AAAA;;AAMI,qCAAmBC,WAAnB,EAAuE;AAAA;;AAAA;;AACnE;;AADmE;;AAEnE,UAAKC,YAAL,GAAoBD,WAApB;AAFmE;AAGtE;;AATL;AAAA;AAAA,WAWI,qBAAmBE,IAAnB,EAA4B;AACxB,UAAI,OAAO,KAAKD,YAAZ,KAA6B,UAAjC,EAA6C;AACzC,cAAME,KAAK,kHAAX;AAGH;;AAED,aAAO,KAAKF,YAAL,CAAkBC,IAAlB,CAAP;AACH;AAnBL;;AAAA;AAAA,EAEUJ,MAFV;;gBAAaC,yB,UAGsC,qB","sourcesContent":["import { Plugin } from \"@webiny/plugins\";\n\nexport interface ApolloCacheObject {\n __typename?: string;\n [key: string]: any;\n}\n\ninterface ApolloCacheObjectIdPluginCallable<T> {\n // TODO @ts-refactor probably a string but @pavel check it out\n (data: T): any;\n}\n\nexport class ApolloCacheObjectIdPlugin<\n T extends ApolloCacheObject = ApolloCacheObject\n> extends Plugin {\n public static override readonly type: string = \"cache-get-object-id\";\n private readonly _getObjectId?: ApolloCacheObjectIdPluginCallable<T>;\n\n public constructor(getObjectId?: ApolloCacheObjectIdPluginCallable<T>) {\n super();\n this._getObjectId = getObjectId;\n }\n\n public getObjectId(data: T) {\n if (typeof this._getObjectId !== \"function\") {\n throw Error(\n `You must provide a \"getObjectId\" callable to the plugin constructor or extend the ApolloCacheObjectIdPlugin.`\n );\n }\n\n return this._getObjectId(data);\n }\n}\n"]}
1
+ {"version":3,"sources":["ApolloCacheObjectIdPlugin.ts"],"names":["Plugin","ApolloCacheObjectIdPlugin","getObjectId","_getObjectId","data","Error"],"mappings":";;;;;;AAAA,SAASA,MAAT,QAAuB,iBAAvB;AAWA,WAAaC,yBAAb;AAAA;;AAAA;;AAMI,qCAAmBC,WAAnB,EAAuE;AAAA;;AAAA;;AACnE;;AADmE;;AAEnE,UAAKC,YAAL,GAAoBD,WAApB;AAFmE;AAGtE;;AATL;AAAA;AAAA,WAWI,qBAAmBE,IAAnB,EAA4B;AACxB,UAAI,OAAO,KAAKD,YAAZ,KAA6B,UAAjC,EAA6C;AACzC,cAAME,KAAK,kHAAX;AAGH;;AAED,aAAO,KAAKF,YAAL,CAAkBC,IAAlB,CAAP;AACH;AAnBL;;AAAA;AAAA,EAEUJ,MAFV;;gBAAaC,yB,UAGsC,qB","sourcesContent":["import { Plugin } from \"@webiny/plugins\";\n\nexport interface ApolloCacheObject {\n __typename?: string;\n [key: string]: any;\n}\n\ninterface ApolloCacheObjectIdPluginCallable<T> {\n (data: T): string | null;\n}\n\nexport class ApolloCacheObjectIdPlugin<\n T extends ApolloCacheObject = ApolloCacheObject\n> extends Plugin {\n public static override readonly type: string = \"cache-get-object-id\";\n private readonly _getObjectId?: ApolloCacheObjectIdPluginCallable<T>;\n\n public constructor(getObjectId?: ApolloCacheObjectIdPluginCallable<T>) {\n super();\n this._getObjectId = getObjectId;\n }\n\n public getObjectId(data: T) {\n if (typeof this._getObjectId !== \"function\") {\n throw Error(\n `You must provide a \"getObjectId\" callable to the plugin constructor or extend the ApolloCacheObjectIdPlugin.`\n );\n }\n\n return this._getObjectId(data);\n }\n}\n"]}