@clairejs/client 3.1.26 → 3.2.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"Translator.d.ts","sourceRoot":"","sources":["../../src/translation/Translator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAwB,MAAM,gBAAgB,CAAC;AAE7D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAGzC,aAAK,cAAc,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;AAE7C,qBAEa,UAAW,YAAW,KAAK;IAKxB,QAAQ,CAAC,OAAO,EAAE,eAAe;IAJ7C,QAAQ,EAAE,MAAM,EAAE,CAAS;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAS;IAC7B,WAAW,EAAE,cAAc,EAAE,CAAM;gBAEd,OAAO,EAAE,eAAe;IAEvC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAU3B,IAAI,IAAI,IAAI;IAEZ,iBAAiB,CAAC,UAAU,EAAE,cAAc;IAI5C,oBAAoB,CAAC,UAAU,EAAE,cAAc;IAIzC,kBAAkB;IAOlB,kBAAkB,CAAC,IAAI,EAAE,MAAM;IAQ/B,YAAY;IAOZ,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE;IAQtC,oBAAoB,CAAC,cAAc,EAAE,cAAc;CAsDtD"}
1
+ {"version":3,"file":"Translator.d.ts","sourceRoot":"","sources":["../../src/translation/Translator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAc,MAAM,gBAAgB,CAAC;AAE5D,oBAAY,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AACvD,oBAAY,mBAAmB,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,iBAAiB,CAAA;CAAE,CAAC,CAAC;AAC1E,oBAAY,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAIrD,qBACa,UAAU;IAKP,QAAQ,CAAC,MAAM,EAAE,cAAc;IAJ3C,OAAO,CAAC,oBAAoB,CAAC,CAAsC;IACnE,OAAO,CAAC,YAAY,CAAqD;IACzE,OAAO,CAAC,mBAAmB,CAAsC;gBAE5C,MAAM,EAAE,cAAc;IAE3C,eAAe,CAAC,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC;IAQnE,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAqCjD,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,eAAe;IAetE,SAAS,CAAC,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,eAAe;CAwBnE"}
package/package.json CHANGED
@@ -1,32 +1,32 @@
1
- {
2
- "name": "@clairejs/client",
3
- "version": "3.1.26",
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",
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.34"
17
- },
18
- "devDependencies": {
19
- "@types/mocha": "^8.2.2",
20
- "@types/ws": "^8.5.3",
21
- "mocha": "^10.0.0",
22
- "terser-webpack-plugin": "^4.2.3",
23
- "ts-loader": "^8.4.0",
24
- "ts-node": "^10.8.1",
25
- "tslib": "^2.1.0",
26
- "typescript": "^4.4.4",
27
- "webpack": "^5.73.0",
28
- "webpack-cli": "^4.10.0",
29
- "webpack-node-externals": "^2.5.2",
30
- "ws": "^8.8.0"
31
- }
32
- }
1
+ {
2
+ "name": "@clairejs/client",
3
+ "version": "3.2.1",
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",
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.34"
17
+ },
18
+ "devDependencies": {
19
+ "@types/mocha": "^8.2.2",
20
+ "@types/ws": "^8.5.3",
21
+ "mocha": "^10.0.0",
22
+ "terser-webpack-plugin": "^4.2.3",
23
+ "ts-loader": "^8.4.0",
24
+ "ts-node": "^10.8.1",
25
+ "tslib": "^2.1.0",
26
+ "typescript": "^4.4.4",
27
+ "webpack": "^5.73.0",
28
+ "webpack-cli": "^4.10.0",
29
+ "webpack-node-externals": "^2.5.2",
30
+ "ws": "^8.8.0"
31
+ }
32
+ }
@@ -1,10 +1,10 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "compilerOptions": {
4
- "rootDir": "./src",
5
- "outDir": "./dist"
6
- // "noUnusedParameters": true,
7
- // "noUnusedLocals": true,
8
- },
9
- "exclude": ["./test/", "./node_modules/"]
10
- }
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "rootDir": "./src",
5
+ "outDir": "./dist"
6
+ // "noUnusedParameters": true,
7
+ // "noUnusedLocals": true,
8
+ },
9
+ "exclude": ["./test/", "./node_modules/"]
10
+ }
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,7 +0,0 @@
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
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/translation/types.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,CAAC;AAEpD,oBAAY,kBAAkB,CAAC,CAAC,IAAI;KAC/B,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,GAAG,QAAQ;CAChE,CAAC"}