reconnecting-eventsource 1.1.1 → 1.2.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/.eslintignore +1 -0
- package/package.json +2 -1
- package/reconnecting-eventsource.d.ts +11 -0
- package/tsconfig.json +8 -0
- package/.idea/inspectionProfiles/Project_Default.xml +0 -6
- package/.idea/misc.xml +0 -9
- package/.idea/modules.xml +0 -8
- package/.idea/reconnecting-eventsource.iml +0 -9
- package/.idea/runConfigurations.xml +0 -10
- package/.idea/vcs.xml +0 -6
- package/.idea/workspace.xml +0 -143
package/.eslintignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*.d.ts
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reconnecting-eventsource",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "wrapper library around the JavaScript EventSource API to ensure it maintains a connection to the server.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
|
+
"typings": "reconnecting-eventsource.d.ts",
|
|
6
7
|
"scripts": {
|
|
7
8
|
"clean": "rimraf lib dist",
|
|
8
9
|
"build": "npm run build:commonjs && npm run build:umd && npm run build:umd:min",
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface ReconnectableEventSourceInit extends EventSourceInit {
|
|
2
|
+
// the maximum time to wait before attempting to reconnect in ms, default `3000`
|
|
3
|
+
// note: wait time is randomised to prevent all clients from attempting to reconnect simultaneously
|
|
4
|
+
max_retry_time?: number;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export default class ReconnectingEventSource extends EventSource {
|
|
8
|
+
constructor(url: string, configuration?: ReconnectableEventSourceInit);
|
|
9
|
+
|
|
10
|
+
readonly max_retry_time: number;
|
|
11
|
+
}
|
package/tsconfig.json
ADDED
package/.idea/misc.xml
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="JavaScriptSettings">
|
|
4
|
-
<option name="languageLevel" value="ES6" />
|
|
5
|
-
</component>
|
|
6
|
-
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" project-jdk-name="11" project-jdk-type="JavaSDK">
|
|
7
|
-
<output url="file://$PROJECT_DIR$/out" />
|
|
8
|
-
</component>
|
|
9
|
-
</project>
|
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/reconnecting-eventsource.iml" filepath="$PROJECT_DIR$/.idea/reconnecting-eventsource.iml" />
|
|
6
|
-
</modules>
|
|
7
|
-
</component>
|
|
8
|
-
</project>
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="JAVA_MODULE" version="4">
|
|
3
|
-
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
|
4
|
-
<exclude-output />
|
|
5
|
-
<content url="file://$MODULE_DIR$" />
|
|
6
|
-
<orderEntry type="inheritedJdk" />
|
|
7
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
8
|
-
</component>
|
|
9
|
-
</module>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="RunConfigurationProducerService">
|
|
4
|
-
<option name="ignoredProducers">
|
|
5
|
-
<set>
|
|
6
|
-
<option value="com.android.tools.idea.compose.preview.runconfiguration.ComposePreviewRunConfigurationProducer" />
|
|
7
|
-
</set>
|
|
8
|
-
</option>
|
|
9
|
-
</component>
|
|
10
|
-
</project>
|
package/.idea/vcs.xml
DELETED
package/.idea/workspace.xml
DELETED
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="BranchesTreeState">
|
|
4
|
-
<expand>
|
|
5
|
-
<path>
|
|
6
|
-
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
7
|
-
<item name="LOCAL_ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
8
|
-
</path>
|
|
9
|
-
<path>
|
|
10
|
-
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
11
|
-
<item name="REMOTE_ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
12
|
-
</path>
|
|
13
|
-
<path>
|
|
14
|
-
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
15
|
-
<item name="REMOTE_ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
16
|
-
<item name="GROUP_NODE:origin" type="e8cecc67:BranchNodeDescriptor" />
|
|
17
|
-
</path>
|
|
18
|
-
<path>
|
|
19
|
-
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
20
|
-
<item name="REMOTE_ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
21
|
-
<item name="GROUP_NODE:origin" type="e8cecc67:BranchNodeDescriptor" />
|
|
22
|
-
<item name="GROUP_NODE:dependabot" type="e8cecc67:BranchNodeDescriptor" />
|
|
23
|
-
</path>
|
|
24
|
-
<path>
|
|
25
|
-
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
26
|
-
<item name="REMOTE_ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
27
|
-
<item name="GROUP_NODE:origin" type="e8cecc67:BranchNodeDescriptor" />
|
|
28
|
-
<item name="GROUP_NODE:dependabot" type="e8cecc67:BranchNodeDescriptor" />
|
|
29
|
-
<item name="GROUP_NODE:npm_and_yarn" type="e8cecc67:BranchNodeDescriptor" />
|
|
30
|
-
</path>
|
|
31
|
-
<path>
|
|
32
|
-
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
33
|
-
<item name="REMOTE_ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
34
|
-
<item name="GROUP_NODE:origin" type="e8cecc67:BranchNodeDescriptor" />
|
|
35
|
-
<item name="GROUP_NODE:issues" type="e8cecc67:BranchNodeDescriptor" />
|
|
36
|
-
</path>
|
|
37
|
-
</expand>
|
|
38
|
-
<select>
|
|
39
|
-
<path>
|
|
40
|
-
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
41
|
-
<item name="LOCAL_ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
|
42
|
-
</path>
|
|
43
|
-
</select>
|
|
44
|
-
</component>
|
|
45
|
-
<component name="ChangeListManager">
|
|
46
|
-
<list default="true" id="9dd74ecc-5157-4bb4-be66-b63e83f952c5" name="Default Changelist" comment="">
|
|
47
|
-
<change beforePath="$PROJECT_DIR$/package-lock.json" beforeDir="false" afterPath="$PROJECT_DIR$/package-lock.json" afterDir="false" />
|
|
48
|
-
</list>
|
|
49
|
-
<option name="SHOW_DIALOG" value="false" />
|
|
50
|
-
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
51
|
-
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
52
|
-
<option name="LAST_RESOLUTION" value="IGNORE" />
|
|
53
|
-
</component>
|
|
54
|
-
<component name="ComposerSettings">
|
|
55
|
-
<execution />
|
|
56
|
-
</component>
|
|
57
|
-
<component name="Git.Settings">
|
|
58
|
-
<option name="PUSH_TAGS">
|
|
59
|
-
<GitPushTagMode>
|
|
60
|
-
<option name="argument" value="--tags" />
|
|
61
|
-
<option name="title" value="All" />
|
|
62
|
-
</GitPushTagMode>
|
|
63
|
-
</option>
|
|
64
|
-
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
|
65
|
-
</component>
|
|
66
|
-
<component name="JupyterTrust" id="e919d481-206a-41e2-a411-70e0f757e9c6" />
|
|
67
|
-
<component name="MacroExpansionManager">
|
|
68
|
-
<option name="directoryName" value="u6l57kow" />
|
|
69
|
-
</component>
|
|
70
|
-
<component name="ProjectId" id="1eag660Bk1GjdHWRy3WJEMB2BZt" />
|
|
71
|
-
<component name="ProjectViewState">
|
|
72
|
-
<option name="hideEmptyMiddlePackages" value="true" />
|
|
73
|
-
<option name="showLibraryContents" value="true" />
|
|
74
|
-
</component>
|
|
75
|
-
<component name="PropertiesComponent">
|
|
76
|
-
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
|
|
77
|
-
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
|
|
78
|
-
<property name="WebServerToolWindowFactoryState" value="false" />
|
|
79
|
-
<property name="aspect.path.notification.shown" value="true" />
|
|
80
|
-
<property name="node.js.detected.package.eslint" value="true" />
|
|
81
|
-
<property name="node.js.detected.package.tslint" value="true" />
|
|
82
|
-
<property name="node.js.path.for.package.eslint" value="project" />
|
|
83
|
-
<property name="node.js.path.for.package.tslint" value="project" />
|
|
84
|
-
<property name="node.js.selected.package.eslint" value="(autodetect)" />
|
|
85
|
-
<property name="node.js.selected.package.tslint" value="(autodetect)" />
|
|
86
|
-
<property name="nodejs_package_manager_path" value="npm" />
|
|
87
|
-
</component>
|
|
88
|
-
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
|
|
89
|
-
<component name="SvnConfiguration">
|
|
90
|
-
<configuration />
|
|
91
|
-
</component>
|
|
92
|
-
<component name="TaskManager">
|
|
93
|
-
<task active="true" id="Default" summary="Default task">
|
|
94
|
-
<changelist id="9dd74ecc-5157-4bb4-be66-b63e83f952c5" name="Default Changelist" comment="" />
|
|
95
|
-
<created>1594564938013</created>
|
|
96
|
-
<option name="number" value="Default" />
|
|
97
|
-
<option name="presentableId" value="Default" />
|
|
98
|
-
<updated>1594564938013</updated>
|
|
99
|
-
<workItem from="1594564939373" duration="2320000" />
|
|
100
|
-
<workItem from="1594569736353" duration="593000" />
|
|
101
|
-
<workItem from="1594874635556" duration="598000" />
|
|
102
|
-
<workItem from="1601074377617" duration="1578000" />
|
|
103
|
-
<workItem from="1601183082214" duration="49000" />
|
|
104
|
-
<workItem from="1631743841912" duration="418000" />
|
|
105
|
-
</task>
|
|
106
|
-
<task id="LOCAL-00001" summary="Update dependencies">
|
|
107
|
-
<created>1601075275796</created>
|
|
108
|
-
<option name="number" value="00001" />
|
|
109
|
-
<option name="presentableId" value="LOCAL-00001" />
|
|
110
|
-
<option name="project" value="LOCAL" />
|
|
111
|
-
<updated>1601075275796</updated>
|
|
112
|
-
</task>
|
|
113
|
-
<task id="LOCAL-00002" summary="Bump 1.1.0">
|
|
114
|
-
<created>1601075352185</created>
|
|
115
|
-
<option name="number" value="00002" />
|
|
116
|
-
<option name="presentableId" value="LOCAL-00002" />
|
|
117
|
-
<option name="project" value="LOCAL" />
|
|
118
|
-
<updated>1601075352185</updated>
|
|
119
|
-
</task>
|
|
120
|
-
<option name="localTasksCounter" value="3" />
|
|
121
|
-
<servers />
|
|
122
|
-
</component>
|
|
123
|
-
<component name="TypeScriptGeneratedFilesManager">
|
|
124
|
-
<option name="version" value="3" />
|
|
125
|
-
</component>
|
|
126
|
-
<component name="Vcs.Log.Tabs.Properties">
|
|
127
|
-
<option name="TAB_STATES">
|
|
128
|
-
<map>
|
|
129
|
-
<entry key="MAIN">
|
|
130
|
-
<value>
|
|
131
|
-
<State />
|
|
132
|
-
</value>
|
|
133
|
-
</entry>
|
|
134
|
-
</map>
|
|
135
|
-
</option>
|
|
136
|
-
<option name="oldMeFiltersMigrated" value="true" />
|
|
137
|
-
</component>
|
|
138
|
-
<component name="VcsManagerConfiguration">
|
|
139
|
-
<MESSAGE value="Update dependencies" />
|
|
140
|
-
<MESSAGE value="Bump 1.1.0" />
|
|
141
|
-
<option name="LAST_COMMIT_MESSAGE" value="Bump 1.1.0" />
|
|
142
|
-
</component>
|
|
143
|
-
</project>
|