@apigames/sdk-core 21.1.6 → 22.1.0

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/LICENSE CHANGED
@@ -1 +1,21 @@
1
- Copyright (c) 2021 API Games Limited. All rights reserved.
1
+ MIT License
2
+
3
+ Copyright (c) 2022 API Games Limited
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,18 +1,23 @@
1
- API Games SDK Core Package
2
- ==========================
1
+ # API Games SDK Core Package
2
+
3
+ ![](https://img.shields.io/badge/build-passing-brightgreen)
4
+ [![Codacy Badge](https://app.codacy.com/project/badge/Grade/c5081d4fa5a84849b05e1a9b54d2b93f)](https://www.codacy.com/gh/apigames-public/sdk-core/dashboard?utm_source=github.com&utm_medium=referral&utm_content=apigames-public/sdk-core&utm_campaign=Badge_Grade)
5
+ [![Codacy Badge](https://app.codacy.com/project/badge/Coverage/c5081d4fa5a84849b05e1a9b54d2b93f)](https://www.codacy.com/gh/apigames-public/sdk-core/dashboard?utm_source=github.com&utm_medium=referral&utm_content=apigames-public/sdk-core&utm_campaign=Badge_Coverage)
6
+ ![](https://img.shields.io/npm/v/@apigames/sdk-core)
7
+ ![](https://img.shields.io/badge/license-MIT-blue)
3
8
 
4
9
  This package includes the core capabilites required by SDKs built to access the API Games Platform.
5
10
 
6
- ### Download & Installation
11
+ ## Download & Installation
7
12
 
8
13
  ```shell
9
14
  $ npm i @apigames/sdk-core
10
15
  ```
11
16
 
12
- ### Authors or Acknowledgments
17
+ ## Authors or Acknowledgments
13
18
 
14
19
  * API Games Limited
15
20
 
16
- ### License
21
+ ## License
17
22
 
18
- Copyright (c) 2021 API Games Limited. All rights reserved.
23
+ This project is licensed under the MIT License
package/package.json CHANGED
@@ -1,16 +1,24 @@
1
1
  {
2
2
  "name": "@apigames/sdk-core",
3
- "author": "API Games Limited",
3
+ "author": {
4
+ "name" : "API Games Limited",
5
+ "email" : "hello@api.games",
6
+ "url" : "https://api.games"
7
+ },
4
8
  "description": "API Games SDK Core",
5
- "license": "UNLICENSED",
6
- "version": "21.1.6",
9
+ "license": "MIT",
10
+ "version": "22.1.0",
7
11
  "main": "lib/index.js",
8
12
  "types": "lib/index.d.ts",
9
13
  "scripts": {
10
- "win:build": "(if exist lib rmdir /s /q lib) && tsc && jest && jest --coverage",
11
- "unx:build": "rm -rf lib && tsc && jest && jest --coverage",
12
- "win:publish": "(if exist lib rmdir /s /q lib) && tsc && jest && jest && npm publish",
13
- "unx:publish": "rm -rf lib && tsc && jest && jest && npm publish",
14
+ "win:build": "(if exist lib rmdir /s /q lib) && tsc && jest && jest --config build.jest.config.js --coverage",
15
+ "unx:build": "rm -rf lib && tsc && jest && jest --config build.jest.config.js --coverage",
16
+ "win:publish": "(if exist lib rmdir /s /q lib) && tsc && jest && jest --config build.jest.config.js && npm publish",
17
+ "unx:publish": "rm -rf lib && tsc && jest && jest --config build.jest.config.js && npm publish",
18
+ "win:publish-beta": "(if exist lib rmdir /s /q lib) && tsc && jest && jest --config build.jest.config.js && npm publish --tag beta",
19
+ "unx:publish-beta": "rm -rf lib && tsc && jest && jest --config build.jest.config.js && npm publish --tag beta",
20
+ "win:publish-dev": "(if exist lib rmdir /s /q lib) && tsc && jest && jest --config build.jest.config.js && npm publish --tag dev",
21
+ "unx:publish-dev": "rm -rf lib && tsc && jest && jest --config build.jest.config.js && npm publish --tag dev",
14
22
  "win:upgrade-latest": "(if exist node_modules rmdir /s /q node_modules) && (if exist package-lock.json del /s /q package-lock.json) && ncu -u --target latest && npm install",
15
23
  "unx:upgrade-latest": "rm -rf node_modules && rm -f package-lock.json && ncu -u --target latest && npm install",
16
24
  "win:upgrade-minor": "(if exist node_modules rmdir /s /q node_modules) && (if exist package-lock.json del /s /q package-lock.json) && ncu -u --target minor && npm install",
@@ -19,34 +27,34 @@
19
27
  "test:watch": "jest --watch"
20
28
  },
21
29
  "dependencies": {
22
- "@apigames/json": "21.1.4",
23
- "@apigames/rest-client": "21.1.3",
30
+ "@apigames/json": "22.1.0",
31
+ "@apigames/rest-client": "22.1.0",
24
32
  "object-hash": "2.2.0"
25
33
  },
26
34
  "devDependencies": {
27
- "date-and-time": "^2.0.1",
35
+ "date-and-time": "^2.1.0",
28
36
  "@types/date-and-time": "^0.13.0",
29
- "@types/jest": "26.0.24",
30
- "@types/node": "14.18.0",
31
- "@typescript-eslint/eslint-plugin": "4.33.0",
32
- "@typescript-eslint/parser": "4.33.0",
33
- "eslint": "7.32.0",
34
- "eslint-config-airbnb": "18.2.1",
35
- "eslint-plugin-import": "2.25.3",
37
+ "@types/jest": "27.4.0",
38
+ "@types/node": "14.18.10",
39
+ "@typescript-eslint/eslint-plugin": "5.10.2",
40
+ "@typescript-eslint/parser": "5.10.2",
41
+ "eslint": "8.8.0",
42
+ "eslint-config-airbnb": "19.0.4",
43
+ "eslint-plugin-import": "2.25.4",
36
44
  "eslint-plugin-jsx-a11y": "6.5.1",
37
- "eslint-plugin-react": "7.27.1",
45
+ "eslint-plugin-react": "7.28.0",
38
46
  "eslint-plugin-react-hooks": "4.3.0",
39
- "jest": "27.0.6",
40
- "ts-jest": "27.0.4",
41
- "typescript": "4.5.2"
47
+ "jest": "27.4.7",
48
+ "ts-jest": "27.1.3",
49
+ "typescript": "4.5.5"
42
50
  },
43
51
  "eslintConfig": {},
44
52
  "repository": {
45
53
  "type": "git",
46
- "url": "git+https://github.com/apigames-private/sdk-core.git"
54
+ "url": "git+https://github.com/apigames-public/sdk-core.git"
47
55
  },
48
56
  "bugs": {
49
- "url": "https://github.com/apigames-private/sdk-core/issues"
57
+ "url": "https://github.com/apigames-public/sdk-core/issues"
50
58
  },
51
- "homepage": "https://github.com/apigames-private/sdk-core#readme"
59
+ "homepage": "https://github.com/apigames-public/sdk-core#readme"
52
60
  }
@@ -0,0 +1,7 @@
1
+ export CODACY_API_TOKEN=zLmkgxu0V5R3qEbGrbbm
2
+ export CODACY_ORGANIZATION_PROVIDER=gh
3
+ export CODACY_USERNAME=apigames-public
4
+ export CODACY_PROJECT_NAME=sdk-core
5
+
6
+ bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r coverage/clover.xml
7
+