@d19n/youfibre-odin-sdk 1.0.95 → 1.0.96
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/Makefile
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
release-beta:
|
|
4
|
+
git pull && npm i @d19n/odin-sdk-generator@latest && npm i @d19n/odin-types@latest && cd src/generators && ts-node runner.ts && cd ../.. && git add . && git commit -m "Updated SDK (beta)" && npm run release:beta
|
|
3
5
|
|
|
4
|
-
release:
|
|
5
|
-
git pull && npm i @d19n/odin-sdk-generator@latest && npm i @d19n/odin-types@latest && cd src/generators && ts-node runner.ts && cd ../.. && git add . && git commit -m "Updated SDK" && npm run release
|
|
6
|
+
release-prod:
|
|
7
|
+
git pull && npm i @d19n/odin-sdk-generator@latest && npm i @d19n/odin-types@latest && cd src/generators && ts-node runner.ts && cd ../.. && git add . && git commit -m "Updated SDK (prod)" && npm run release:prod
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d19n/youfibre-odin-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.96",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "@d19n",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -11,12 +11,13 @@
|
|
|
11
11
|
"typescript": "^5.4.5"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@d19n/odin-sdk-generator": "^3.0.
|
|
14
|
+
"@d19n/odin-sdk-generator": "^3.0.12",
|
|
15
15
|
"@d19n/odin-types": "^1.0.36",
|
|
16
16
|
"i": "^0.3.7",
|
|
17
17
|
"npm": "^10.9.1"
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
|
-
"release": "rm -rf dist && tsc && npm version
|
|
20
|
+
"release:beta": "rm -rf dist && tsc && npm version prerelease --preid=beta && git push && npm publish --tag beta",
|
|
21
|
+
"release:prod": "rm -rf dist && tsc && npm version patch && git push && npm publish --tag latest"
|
|
21
22
|
}
|
|
22
23
|
}
|
|
@@ -5,7 +5,7 @@ import {OdinClient} from "@d19n/odin-sdk-generator/dist/odin.client";
|
|
|
5
5
|
(async function generateApiSdk() {
|
|
6
6
|
|
|
7
7
|
const client = new OdinClient({
|
|
8
|
-
host: process.env.
|
|
8
|
+
host: process.env.ODIN_HOST_URL,
|
|
9
9
|
clientId: process.env.OAUTH_CLIENT_ID,
|
|
10
10
|
clientSecret: process.env.OAUTH_CLIENT_SECRET,
|
|
11
11
|
});
|