@clairejs/client 3.0.16 → 3.0.17
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/.browserslistrc +3 -3
- package/README.md +409 -404
- package/dist/api/AbstractHttpClient.d.ts +10 -19
- package/dist/api/AbstractHttpClient.d.ts.map +1 -1
- package/dist/api/AbstractTokenManager.d.ts +5 -5
- package/dist/api/CrudApi.d.ts +15 -15
- package/dist/api/DefaultHttpClient.d.ts +8 -0
- package/dist/api/DefaultHttpClient.d.ts.map +1 -0
- package/dist/api/DefaultTokenManager.d.ts +11 -11
- package/dist/api/{AxiosApiClient.d.ts → RefreshHttpClient.d.ts} +20 -15
- package/dist/api/RefreshHttpClient.d.ts.map +1 -0
- package/dist/constants.d.ts +2 -2
- package/dist/index.d.ts +19 -18
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/routing/AbstractErrorHandler.d.ts +3 -3
- package/dist/routing/AbstractViewMiddleware.d.ts +4 -4
- package/dist/routing/ComponentInfo.d.ts +4 -4
- package/dist/routing/RouterConfig.d.ts +13 -13
- package/dist/routing/UrlInfo.d.ts +10 -10
- package/dist/socket/AbstractClientSocketManager.d.ts +6 -6
- package/dist/socket/ClientSocket.d.ts +21 -21
- package/dist/socket/DefaultClientSocketManager.d.ts +33 -33
- package/dist/socket/DefaultClientSocketManager.d.ts.map +1 -1
- package/dist/socket/IClientSocket.d.ts +9 -9
- package/dist/socket/IWebSocket.d.ts +7 -7
- package/dist/socket/SocketConfig.d.ts +7 -7
- package/dist/system/AbstractStorage.d.ts +5 -5
- package/dist/system/ClaireClient.d.ts +3 -3
- package/dist/translation/Translator.d.ts +17 -17
- package/dist/translation/types.d.ts +6 -6
- package/package.json +30 -30
- package/tsconfig-build.json +8 -8
- package/webpack.config.js +46 -46
- package/dist/api/AxiosApiClient.d.ts.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare type TranslationMap = {
|
|
2
|
-
[key: string]: any;
|
|
3
|
-
};
|
|
4
|
-
export declare type TranslationPartial<T> = {
|
|
5
|
-
[P in keyof T]?: TranslationPartial<T[P]> | string | Function;
|
|
6
|
-
};
|
|
1
|
+
export declare type TranslationMap = {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
};
|
|
4
|
+
export declare type TranslationPartial<T> = {
|
|
5
|
+
[P in keyof T]?: TranslationPartial<T[P]> | string | Function;
|
|
6
|
+
};
|
|
7
7
|
//# sourceMappingURL=types.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@clairejs/client",
|
|
3
|
-
"version": "3.0.
|
|
4
|
-
"main": "dist/index.js",
|
|
5
|
-
"types": "dist/index.d.ts",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"test": "mocha -r ts-node/register ./test/**/*.test.ts",
|
|
8
|
-
"build": "rm -rf ./dist && webpack --mode production --display-modules",
|
|
9
|
-
"push": "npm run build && npm run test && npm publish && git push"
|
|
10
|
-
},
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"axios": "^0.21.1",
|
|
13
|
-
"rxjs": "^6.6.7"
|
|
14
|
-
},
|
|
15
|
-
"peerDependencies": {
|
|
16
|
-
"@clairejs/core": "^3.
|
|
17
|
-
},
|
|
18
|
-
"devDependencies": {
|
|
19
|
-
"@types/mocha": "^8.2.2",
|
|
20
|
-
"mocha": "^8.3.2",
|
|
21
|
-
"terser-webpack-plugin": "^4.2.3",
|
|
22
|
-
"ts-loader": "^8.0.17",
|
|
23
|
-
"ts-node": "^9.1.1",
|
|
24
|
-
"tslib": "^2.1.0",
|
|
25
|
-
"typescript": "^4.4.4",
|
|
26
|
-
"webpack": "^4.46.0",
|
|
27
|
-
"webpack-cli": "^3.3.12",
|
|
28
|
-
"webpack-node-externals": "^2.5.2"
|
|
29
|
-
}
|
|
30
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@clairejs/client",
|
|
3
|
+
"version": "3.0.17",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"types": "dist/index.d.ts",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "mocha -r ts-node/register ./test/**/*.test.ts",
|
|
8
|
+
"build": "rm -rf ./dist && webpack --mode production --display-modules",
|
|
9
|
+
"push": "npm run build && npm run test && npm publish && git push"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"axios": "^0.21.1",
|
|
13
|
+
"rxjs": "^6.6.7"
|
|
14
|
+
},
|
|
15
|
+
"peerDependencies": {
|
|
16
|
+
"@clairejs/core": "^3.1.4"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@types/mocha": "^8.2.2",
|
|
20
|
+
"mocha": "^8.3.2",
|
|
21
|
+
"terser-webpack-plugin": "^4.2.3",
|
|
22
|
+
"ts-loader": "^8.0.17",
|
|
23
|
+
"ts-node": "^9.1.1",
|
|
24
|
+
"tslib": "^2.1.0",
|
|
25
|
+
"typescript": "^4.4.4",
|
|
26
|
+
"webpack": "^4.46.0",
|
|
27
|
+
"webpack-cli": "^3.3.12",
|
|
28
|
+
"webpack-node-externals": "^2.5.2"
|
|
29
|
+
}
|
|
30
|
+
}
|
package/tsconfig-build.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./tsconfig.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"rootDir": "./src",
|
|
5
|
-
"outDir": "./dist"
|
|
6
|
-
},
|
|
7
|
-
"exclude": ["./test/", "./node_modules/"]
|
|
8
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"extends": "./tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"rootDir": "./src",
|
|
5
|
+
"outDir": "./dist"
|
|
6
|
+
},
|
|
7
|
+
"exclude": ["./test/", "./node_modules/"]
|
|
8
|
+
}
|
package/webpack.config.js
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
const path = require("path");
|
|
2
|
-
const nodeExternals = require("webpack-node-externals");
|
|
3
|
-
const TerserPlugin = require("terser-webpack-plugin");
|
|
4
|
-
|
|
5
|
-
module.exports = {
|
|
6
|
-
devtool: "source-map",
|
|
7
|
-
entry: "./src/index.ts",
|
|
8
|
-
target: "node",
|
|
9
|
-
module: {
|
|
10
|
-
rules: [
|
|
11
|
-
{
|
|
12
|
-
test: /\.ts$/,
|
|
13
|
-
loader: "ts-loader",
|
|
14
|
-
options: {
|
|
15
|
-
configFile: "tsconfig-build.json",
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
],
|
|
19
|
-
},
|
|
20
|
-
resolve: {
|
|
21
|
-
extensions: [".ts", ".js"],
|
|
22
|
-
},
|
|
23
|
-
output: {
|
|
24
|
-
filename: "index.js",
|
|
25
|
-
path: path.resolve(__dirname, "dist"),
|
|
26
|
-
libraryTarget: "commonjs",
|
|
27
|
-
},
|
|
28
|
-
externals: [nodeExternals()],
|
|
29
|
-
optimization: {
|
|
30
|
-
minimize: true,
|
|
31
|
-
minimizer: [
|
|
32
|
-
new TerserPlugin({
|
|
33
|
-
terserOptions: {
|
|
34
|
-
compress: {
|
|
35
|
-
keep_fnames: true,
|
|
36
|
-
keep_classnames: true,
|
|
37
|
-
},
|
|
38
|
-
mangle: {
|
|
39
|
-
keep_fnames: true,
|
|
40
|
-
keep_classnames: true,
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
}),
|
|
44
|
-
],
|
|
45
|
-
},
|
|
46
|
-
};
|
|
1
|
+
const path = require("path");
|
|
2
|
+
const nodeExternals = require("webpack-node-externals");
|
|
3
|
+
const TerserPlugin = require("terser-webpack-plugin");
|
|
4
|
+
|
|
5
|
+
module.exports = {
|
|
6
|
+
devtool: "source-map",
|
|
7
|
+
entry: "./src/index.ts",
|
|
8
|
+
target: "node",
|
|
9
|
+
module: {
|
|
10
|
+
rules: [
|
|
11
|
+
{
|
|
12
|
+
test: /\.ts$/,
|
|
13
|
+
loader: "ts-loader",
|
|
14
|
+
options: {
|
|
15
|
+
configFile: "tsconfig-build.json",
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
},
|
|
20
|
+
resolve: {
|
|
21
|
+
extensions: [".ts", ".js"],
|
|
22
|
+
},
|
|
23
|
+
output: {
|
|
24
|
+
filename: "index.js",
|
|
25
|
+
path: path.resolve(__dirname, "dist"),
|
|
26
|
+
libraryTarget: "commonjs",
|
|
27
|
+
},
|
|
28
|
+
externals: [nodeExternals()],
|
|
29
|
+
optimization: {
|
|
30
|
+
minimize: true,
|
|
31
|
+
minimizer: [
|
|
32
|
+
new TerserPlugin({
|
|
33
|
+
terserOptions: {
|
|
34
|
+
compress: {
|
|
35
|
+
keep_fnames: true,
|
|
36
|
+
keep_classnames: true,
|
|
37
|
+
},
|
|
38
|
+
mangle: {
|
|
39
|
+
keep_fnames: true,
|
|
40
|
+
keep_classnames: true,
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
}),
|
|
44
|
+
],
|
|
45
|
+
},
|
|
46
|
+
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AxiosApiClient.d.ts","sourceRoot":"","sources":["../../src/api/AxiosApiClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,qBAAa,cAAe,SAAQ,kBAAkB;IAE9C,QAAQ,CAAC,YAAY,EAAE,MAAM;IAC7B,QAAQ,CAAC,MAAM,EAAE,cAAc;IAC/B,QAAQ,CAAC,YAAY,EAAE,oBAAoB;gBAFlC,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,cAAc,EACtB,YAAY,EAAE,oBAAoB;IAK/C,SAAS,CAAC,uBAAuB,IAAI,OAAO,CAAC,WAAW,CAAC;IAI5C,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,CAAC,CAAC;IAK9C,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,CAAC,CAAC;IAK3D,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,CAAC,CAAC;IAM1D,MAAM,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,CAAC,CAAC;CAKjE"}
|