@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.
@@ -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
- const dashedServiceName = settings.serviceName.split('_').join('-');
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autofleet/network",
3
- "version": "1.1.8",
3
+ "version": "1.2.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,5 +0,0 @@
1
- <component name="ProjectCodeStyleConfiguration">
2
- <state>
3
- <option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
4
- </state>
5
- </component>
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>
@@ -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
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
- </component>
6
- </project>
@@ -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>