eve-esi-client-ts 1.0.22 → 1.0.24
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/.github/workflows/publish.yml +26 -8
- package/README.md +2 -2
- package/common.ts +2 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -0
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -0
- package/package.json +2 -2
|
@@ -22,10 +22,17 @@ jobs:
|
|
|
22
22
|
with:
|
|
23
23
|
fetch-depth: 0
|
|
24
24
|
|
|
25
|
+
- name: Set up Node.js (needed to read package.json and query NPM)
|
|
26
|
+
uses: actions/setup-node@v4
|
|
27
|
+
with:
|
|
28
|
+
node-version: lts/*
|
|
29
|
+
registry-url: 'https://registry.npmjs.org'
|
|
30
|
+
|
|
25
31
|
- name: Check last commit for generation
|
|
26
32
|
id: check_commit
|
|
27
33
|
run: |
|
|
28
34
|
git fetch --prune --unshallow || true
|
|
35
|
+
|
|
29
36
|
# If this run was started manually, always attempt to publish
|
|
30
37
|
if [ "$GITHUB_EVENT_NAME" = "workflow_dispatch" ]; then
|
|
31
38
|
echo "changed=true" >> $GITHUB_OUTPUT
|
|
@@ -40,8 +47,26 @@ jobs:
|
|
|
40
47
|
echo "last_msg<<EOF" >> $GITHUB_OUTPUT
|
|
41
48
|
echo "$LAST_COMMIT_MSG" >> $GITHUB_OUTPUT
|
|
42
49
|
echo "EOF" >> $GITHUB_OUTPUT
|
|
50
|
+
|
|
43
51
|
if [[ "$LAST_COMMIT_MSG" == Auto\ generate:* ]]; then
|
|
44
|
-
|
|
52
|
+
# Read package name & version
|
|
53
|
+
PACKAGE_NAME="$(node -p "require('./package.json').name")"
|
|
54
|
+
NEW_VERSION="$(node -p "require('./package.json').version")"
|
|
55
|
+
|
|
56
|
+
# Get published version from npm (fallback to 0.0.0 if not found)
|
|
57
|
+
PUBLISHED_VERSION="$(npm view "$PACKAGE_NAME" version --registry https://registry.npmjs.org 2>/dev/null || echo "0.0.0")"
|
|
58
|
+
|
|
59
|
+
echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT
|
|
60
|
+
echo "published_version=$PUBLISHED_VERSION" >> $GITHUB_OUTPUT
|
|
61
|
+
|
|
62
|
+
# Compare semver: if NEW_VERSION > PUBLISHED_VERSION then publish.
|
|
63
|
+
# Use sort -V to perform version-aware comparison.
|
|
64
|
+
greatest=$(printf "%s\n" "$PUBLISHED_VERSION" "$NEW_VERSION" | sort -V | tail -n1)
|
|
65
|
+
if [ "$greatest" = "$NEW_VERSION" ] && [ "$NEW_VERSION" != "$PUBLISHED_VERSION" ]; then
|
|
66
|
+
echo "changed=true" >> $GITHUB_OUTPUT
|
|
67
|
+
else
|
|
68
|
+
echo "changed=false" >> $GITHUB_OUTPUT
|
|
69
|
+
fi
|
|
45
70
|
else
|
|
46
71
|
echo "changed=false" >> $GITHUB_OUTPUT
|
|
47
72
|
fi
|
|
@@ -51,13 +76,6 @@ jobs:
|
|
|
51
76
|
run: |
|
|
52
77
|
echo "No generated changes to publish."
|
|
53
78
|
|
|
54
|
-
- name: Set up Node.js
|
|
55
|
-
if: steps.check_commit.outputs.changed == 'true'
|
|
56
|
-
uses: actions/setup-node@v4
|
|
57
|
-
with:
|
|
58
|
-
node-version: lts/*
|
|
59
|
-
registry-url: 'https://registry.npmjs.org'
|
|
60
|
-
|
|
61
79
|
- name: Install dependencies
|
|
62
80
|
if: steps.check_commit.outputs.changed == 'true'
|
|
63
81
|
run: |
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## eve-esi-client-ts@1.0.
|
|
1
|
+
## eve-esi-client-ts@1.0.24
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install eve-esi-client-ts@1.0.
|
|
39
|
+
npm install eve-esi-client-ts@1.0.24 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/common.ts
CHANGED
|
@@ -96,7 +96,8 @@ export const setSearchParams = function (url: URL, ...objects: any[]) {
|
|
|
96
96
|
* This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
|
|
97
97
|
* Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
|
|
98
98
|
*/
|
|
99
|
-
|
|
99
|
+
// @ts-ignore
|
|
100
|
+
export const replaceWithSerializableTypeIfNeeded = function(key: string, value: any) {
|
|
100
101
|
if (value instanceof Set) {
|
|
101
102
|
return Array.from(value);
|
|
102
103
|
} else {
|
package/dist/common.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
|
28
28
|
* This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
|
|
29
29
|
* Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
|
|
30
30
|
*/
|
|
31
|
-
export declare const replaceWithSerializableTypeIfNeeded: (key:
|
|
31
|
+
export declare const replaceWithSerializableTypeIfNeeded: (key: string, value: any) => any;
|
|
32
32
|
export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
|
|
33
33
|
export declare const toPathString: (url: URL) => string;
|
|
34
34
|
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
package/dist/common.js
CHANGED
|
@@ -105,6 +105,7 @@ exports.setSearchParams = setSearchParams;
|
|
|
105
105
|
* This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
|
|
106
106
|
* Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
|
|
107
107
|
*/
|
|
108
|
+
// @ts-ignore
|
|
108
109
|
const replaceWithSerializableTypeIfNeeded = function (key, value) {
|
|
109
110
|
if (value instanceof Set) {
|
|
110
111
|
return Array.from(value);
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
|
28
28
|
* This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
|
|
29
29
|
* Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
|
|
30
30
|
*/
|
|
31
|
-
export declare const replaceWithSerializableTypeIfNeeded: (key:
|
|
31
|
+
export declare const replaceWithSerializableTypeIfNeeded: (key: string, value: any) => any;
|
|
32
32
|
export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
|
|
33
33
|
export declare const toPathString: (url: URL) => string;
|
|
34
34
|
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
package/dist/esm/common.js
CHANGED
|
@@ -96,6 +96,7 @@ export const setSearchParams = function (url, ...objects) {
|
|
|
96
96
|
* This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
|
|
97
97
|
* Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
|
|
98
98
|
*/
|
|
99
|
+
// @ts-ignore
|
|
99
100
|
export const replaceWithSerializableTypeIfNeeded = function (key, value) {
|
|
100
101
|
if (value instanceof Set) {
|
|
101
102
|
return Array.from(value);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eve-esi-client-ts",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.24",
|
|
4
4
|
"description": "OpenAPI client for eve-esi-client-ts",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"repository": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"prepare": "npm run build"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"axios": "^1.
|
|
27
|
+
"axios": "^1.13.5"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/node": "12.11.5 - 12.20.42",
|