lemon-model 1.0.3 → 1.0.4

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/README.md CHANGED
@@ -28,5 +28,6 @@ See [CODE_OF_CONDUCT](CODE_OF_CONDUCT.md)
28
28
 
29
29
  | Version | Description
30
30
  |-- |--
31
+ | 1.0.4 | optimized `NextIdentity` with `referer` and `origin`.
31
32
  | 1.0.3 | optimized `NextIdentityCognito`
32
33
  | 1.0.0 | initial types out of the original `lemon-core@3.1.1`
@@ -230,11 +230,19 @@ export interface NextContext<T extends NextIdentity = NextIdentity> {
230
230
  */
231
231
  domain?: string;
232
232
  /**
233
- * cookie string of origin request
233
+ * (optional) cookie string of origin request if available.
234
234
  */
235
235
  cookie?: {
236
236
  [key: string]: string;
237
237
  };
238
+ /**
239
+ * (optional) `referer` in request headers if applicable.
240
+ */
241
+ referer?: string;
242
+ /**
243
+ * (optional) `origin` in request headers if applicable.
244
+ */
245
+ origin?: string;
238
246
  /**
239
247
  * calling depth for every handler. ( automatically increased from lambda-handler )
240
248
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lemon-model",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Common shared model definitions for Lemon Micro-Service Platform",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",