@clairejs/client 3.0.4 → 3.0.5

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
@@ -1,5 +1,10 @@
1
1
  ## Change Log
2
2
 
3
+ #### 3.0.5: update url info
4
+
5
+ - add hash
6
+ - update view middware: from is nullable
7
+
3
8
  #### 3.0.4: update translation
4
9
 
5
10
  - Translator is now in charge of mapping translation (getTranslationObject)
@@ -1,5 +1,5 @@
1
1
  import { UrlInfo } from "./UrlInfo";
2
2
  export declare abstract class AbstractViewMiddleware {
3
- abstract intercept(from: UrlInfo, to: UrlInfo): Promise<string | Partial<UrlInfo> | undefined>;
3
+ abstract intercept(from: UrlInfo | undefined, to: UrlInfo): Promise<Partial<UrlInfo> | undefined>;
4
4
  }
5
5
  //# sourceMappingURL=AbstractViewMiddleware.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AbstractViewMiddleware.d.ts","sourceRoot":"","sources":["../../src/routing/AbstractViewMiddleware.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,8BAAsB,sBAAsB;aACxB,SAAS,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC;CACxG"}
1
+ {"version":3,"file":"AbstractViewMiddleware.d.ts","sourceRoot":"","sources":["../../src/routing/AbstractViewMiddleware.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,8BAAsB,sBAAsB;aACxB,SAAS,CAAC,IAAI,EAAE,OAAO,GAAG,SAAS,EAAE,EAAE,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC;CAC3G"}
@@ -1,10 +1,11 @@
1
1
  export interface UrlInfo {
2
2
  path: string;
3
+ hash: string;
3
4
  params: {
4
- [key: string]: string;
5
+ [key: string]: string | undefined;
5
6
  };
6
7
  query: {
7
- [key: string]: any;
8
+ [key: string]: string | undefined;
8
9
  };
9
10
  }
10
11
  //# sourceMappingURL=UrlInfo.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UrlInfo.d.ts","sourceRoot":"","sources":["../../src/routing/UrlInfo.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAClC,KAAK,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CACjC"}
1
+ {"version":3,"file":"UrlInfo.d.ts","sourceRoot":"","sources":["../../src/routing/UrlInfo.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC;IAC9C,KAAK,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC;CAChD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clairejs/client",
3
- "version": "3.0.4",
3
+ "version": "3.0.5",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {