@nxtedition/lib 15.0.48 → 15.0.50
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/deepstream.js +2 -3
- package/package.json +1 -1
package/deepstream.js
CHANGED
|
@@ -141,6 +141,7 @@ function init(ds) {
|
|
|
141
141
|
async function* changes(
|
|
142
142
|
ds,
|
|
143
143
|
{
|
|
144
|
+
origin,
|
|
144
145
|
since = 'now',
|
|
145
146
|
live = true,
|
|
146
147
|
batched = false,
|
|
@@ -151,10 +152,8 @@ async function* changes(
|
|
|
151
152
|
retry,
|
|
152
153
|
},
|
|
153
154
|
) {
|
|
154
|
-
const url = new URL('/_record/changes',
|
|
155
|
+
const url = new URL('/_record/changes', origin)
|
|
155
156
|
|
|
156
|
-
url.protocol = url.protocol === 'ws:' ? 'http:' : 'https:'
|
|
157
|
-
url.port = '6100'
|
|
158
157
|
url.searchParams.set('since', since || '0')
|
|
159
158
|
url.searchParams.set('live', String(live))
|
|
160
159
|
url.searchParams.set('include_docs', String(includeDocs))
|