@autofleet/network 1.1.8 → 1.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.
- package/.github/workflows/main.yml +25 -0
- package/index.js +2 -2
- package/package.json +1 -1
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/modules.xml +0 -8
- package/.idea/node-network.iml +0 -12
- package/.idea/vcs.xml +0 -6
- package/.idea/workspace.xml +0 -39
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
|
|
2
|
+
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
|
|
3
|
+
|
|
4
|
+
name: Publish Package
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
push:
|
|
8
|
+
branches: [ master ]
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
publish-npm:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v2
|
|
15
|
+
- uses: actions/setup-node@v1
|
|
16
|
+
with:
|
|
17
|
+
node-version: 12
|
|
18
|
+
registry-url: https://registry.npmjs.org/
|
|
19
|
+
- run: npm i
|
|
20
|
+
env:
|
|
21
|
+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
|
22
|
+
- run: npm publish --dry-run
|
|
23
|
+
- run: npm publish
|
|
24
|
+
env:
|
|
25
|
+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
package/index.js
CHANGED
|
@@ -34,6 +34,7 @@ const defaultSettings = {
|
|
|
34
34
|
'axios-retry': {
|
|
35
35
|
shouldResetTimeout: true,
|
|
36
36
|
},
|
|
37
|
+
keepAlive: true,
|
|
37
38
|
};
|
|
38
39
|
|
|
39
40
|
module.exports = class Network {
|
|
@@ -101,8 +102,7 @@ module.exports = class Network {
|
|
|
101
102
|
settings.baseURL = settings.serviceUrl;
|
|
102
103
|
} else if (settings.serviceName) {
|
|
103
104
|
const envServiceHostName = `${settings.serviceName}_SERVICE_HOST`;
|
|
104
|
-
|
|
105
|
-
settings.baseURL = `http://${(process.env[envServiceHostName] || dashedServiceName)}`;
|
|
105
|
+
settings.baseURL = `http://${process.env[envServiceHostName]}`;
|
|
106
106
|
if (!settings.baseURL) {
|
|
107
107
|
throw new Error(`Missing environment variable: ${envServiceHostName}`);
|
|
108
108
|
}
|
package/package.json
CHANGED
package/.idea/modules.xml
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="ProjectModuleManager">
|
|
4
|
-
<modules>
|
|
5
|
-
<module fileurl="file://$PROJECT_DIR$/.idea/node-network.iml" filepath="$PROJECT_DIR$/.idea/node-network.iml" />
|
|
6
|
-
</modules>
|
|
7
|
-
</component>
|
|
8
|
-
</project>
|
package/.idea/node-network.iml
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="WEB_MODULE" version="4">
|
|
3
|
-
<component name="NewModuleRootManager">
|
|
4
|
-
<content url="file://$MODULE_DIR$">
|
|
5
|
-
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
|
6
|
-
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
|
7
|
-
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
|
8
|
-
</content>
|
|
9
|
-
<orderEntry type="inheritedJdk" />
|
|
10
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
11
|
-
</component>
|
|
12
|
-
</module>
|
package/.idea/vcs.xml
DELETED
package/.idea/workspace.xml
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="ChangeListManager">
|
|
4
|
-
<list default="true" id="c9b06cbe-e458-4222-bee7-0a0a4a87b698" name="Default Changelist" comment="" />
|
|
5
|
-
<option name="SHOW_DIALOG" value="false" />
|
|
6
|
-
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
7
|
-
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
8
|
-
<option name="LAST_RESOLUTION" value="IGNORE" />
|
|
9
|
-
</component>
|
|
10
|
-
<component name="Git.Settings">
|
|
11
|
-
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
|
12
|
-
</component>
|
|
13
|
-
<component name="ProjectId" id="1jEMqtTkeCk8LQVT9N5AwHrKvGz" />
|
|
14
|
-
<component name="ProjectViewState">
|
|
15
|
-
<option name="hideEmptyMiddlePackages" value="true" />
|
|
16
|
-
<option name="showLibraryContents" value="true" />
|
|
17
|
-
</component>
|
|
18
|
-
<component name="PropertiesComponent">
|
|
19
|
-
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
|
|
20
|
-
<property name="WebServerToolWindowFactoryState" value="false" />
|
|
21
|
-
<property name="nodejs_package_manager_path" value="npm" />
|
|
22
|
-
<property name="vue.rearranger.settings.migration" value="true" />
|
|
23
|
-
</component>
|
|
24
|
-
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
|
|
25
|
-
<component name="TaskManager">
|
|
26
|
-
<task active="true" id="Default" summary="Default task">
|
|
27
|
-
<changelist id="c9b06cbe-e458-4222-bee7-0a0a4a87b698" name="Default Changelist" comment="" />
|
|
28
|
-
<created>1603364991643</created>
|
|
29
|
-
<option name="number" value="Default" />
|
|
30
|
-
<option name="presentableId" value="Default" />
|
|
31
|
-
<updated>1603364991643</updated>
|
|
32
|
-
<workItem from="1603364992701" duration="1057000" />
|
|
33
|
-
</task>
|
|
34
|
-
<servers />
|
|
35
|
-
</component>
|
|
36
|
-
<component name="TypeScriptGeneratedFilesManager">
|
|
37
|
-
<option name="version" value="3" />
|
|
38
|
-
</component>
|
|
39
|
-
</project>
|