@xmobitea/gn-typescript-client 2.1.2 → 2.1.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/dist/gn.js.client.js +40245 -60460
- package/dist/gn.js.client.min.js +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.js +50740 -28498
- package/dist/runtime/entity/models/MasterPlayerModels.d.ts +11 -11
- package/package.json +3 -1
- package/tsconfig-build.min.udm.json +0 -13
- package/tsconfig.min.udm.json +0 -9
- package/webpack.config.min.udm.js +0 -51
|
@@ -43,17 +43,6 @@ export declare namespace MasterPlayerModels {
|
|
|
43
43
|
serviceName: string;
|
|
44
44
|
serviceId: string;
|
|
45
45
|
}
|
|
46
|
-
class ExternalItem {
|
|
47
|
-
device?: Device;
|
|
48
|
-
account?: Account;
|
|
49
|
-
custom?: Custom;
|
|
50
|
-
apple?: Apple;
|
|
51
|
-
google?: Google;
|
|
52
|
-
facebook?: Facebook;
|
|
53
|
-
genericServices?: Array<GenericService>;
|
|
54
|
-
googlePlayGameService?: GooglePlayGameService;
|
|
55
|
-
gameCenter?: GameCenter;
|
|
56
|
-
}
|
|
57
46
|
class Device {
|
|
58
47
|
customDeviceId?: string;
|
|
59
48
|
androidDeviceId?: string;
|
|
@@ -94,6 +83,17 @@ export declare namespace MasterPlayerModels {
|
|
|
94
83
|
displayName: string;
|
|
95
84
|
email: string;
|
|
96
85
|
}
|
|
86
|
+
class ExternalItem {
|
|
87
|
+
device?: Device;
|
|
88
|
+
account?: Account;
|
|
89
|
+
custom?: Custom;
|
|
90
|
+
apple?: Apple;
|
|
91
|
+
google?: Google;
|
|
92
|
+
facebook?: Facebook;
|
|
93
|
+
genericServices?: Array<GenericService>;
|
|
94
|
+
googlePlayGameService?: GooglePlayGameService;
|
|
95
|
+
gameCenter?: GameCenter;
|
|
96
|
+
}
|
|
97
97
|
class AddSegmentRequestData {
|
|
98
98
|
userId?: string;
|
|
99
99
|
value: string;
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xmobitea/gn-typescript-client",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
|
+
"module": "dist/index.js",
|
|
7
8
|
"scripts": {
|
|
8
9
|
"debug": "node index.js",
|
|
9
10
|
"test": "mocha -r ts-node/register ./test/**/*.test.ts",
|
|
@@ -11,6 +12,7 @@
|
|
|
11
12
|
"buildudm": "webpack --config webpack.config.udm.js --mode production --stats-modules",
|
|
12
13
|
"buildminudm": "webpack --config webpack.config.min.udm.js --mode production --stats-modules",
|
|
13
14
|
"build": "rm -rf ./dist && npm run buildnode && npm run buildudm && npm run buildminudm",
|
|
15
|
+
"buildWithoutWebpack": "rm -rf ./dist && tsc",
|
|
14
16
|
"push": "npm run build && npm run test && npm publish && git push"
|
|
15
17
|
},
|
|
16
18
|
"author": "changx.develop@gmail.com (https://xmobitea.com)",
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./tsconfig.min.udm.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"noUnusedLocals": false,
|
|
5
|
-
"noUnusedParameters": false,
|
|
6
|
-
"rootDir": "./src",
|
|
7
|
-
"outDir": "./dist",
|
|
8
|
-
"lib": [
|
|
9
|
-
"DOM"
|
|
10
|
-
]
|
|
11
|
-
},
|
|
12
|
-
"exclude": ["./test/", "./node_modules/", "./webpack.config.udm.js", "./webpack.config.min.udm.js", "./webpack.config.js", "./dist/index.js", "./dist/gn.js.client.min.js", "./dist/gn.js.client.js", "./index.js"]
|
|
13
|
-
}
|
package/tsconfig.min.udm.json
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
const path = require("path");
|
|
2
|
-
const TerserPlugin = require("terser-webpack-plugin");
|
|
3
|
-
|
|
4
|
-
module.exports = {
|
|
5
|
-
entry: "./src/index.ts",
|
|
6
|
-
module: {
|
|
7
|
-
rules: [
|
|
8
|
-
{
|
|
9
|
-
test: /\.ts$/,
|
|
10
|
-
loader: "ts-loader",
|
|
11
|
-
options: {
|
|
12
|
-
configFile: "tsconfig-build.min.udm.json",
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
],
|
|
16
|
-
},
|
|
17
|
-
resolve: {
|
|
18
|
-
extensions: [".ts", ".tsx", ".js", ".jsx"],
|
|
19
|
-
fallback: {
|
|
20
|
-
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
output: {
|
|
24
|
-
filename: "gn.js.client.min.js",
|
|
25
|
-
path: path.resolve(__dirname, "dist"),
|
|
26
|
-
library: {
|
|
27
|
-
type: "umd",
|
|
28
|
-
name: "GN",
|
|
29
|
-
},
|
|
30
|
-
environment: {
|
|
31
|
-
arrowFunction: true,
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
optimization: {
|
|
35
|
-
minimize: true,
|
|
36
|
-
minimizer: [
|
|
37
|
-
new TerserPlugin({
|
|
38
|
-
terserOptions: {
|
|
39
|
-
compress: {
|
|
40
|
-
keep_fnames: true,
|
|
41
|
-
keep_classnames: true,
|
|
42
|
-
},
|
|
43
|
-
mangle: {
|
|
44
|
-
keep_fnames: true,
|
|
45
|
-
keep_classnames: true,
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
}),
|
|
49
|
-
],
|
|
50
|
-
},
|
|
51
|
-
};
|