docker-delta 2.2.12 → 3.0.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/.versionbot/CHANGELOG.yml +12 -1
- package/CHANGELOG.md +5 -0
- package/Dockerfile.test +0 -1
- package/lib/btrfs.js +8 -12
- package/lib/docker-delta.js +306 -255
- package/lib/rsync.js +69 -54
- package/lib/utils.js +50 -55
- package/package.json +7 -11
- package/test/docker-delta.spec.js +88 -0
- package/test.sh +1 -1
- package/lib/btrfs.coffee +0 -11
- package/lib/docker-delta.coffee +0 -261
- package/lib/rsync.coffee +0 -56
- package/lib/utils.coffee +0 -43
- package/test/docker-delta.spec.coffee +0 -55
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
- commits:
|
|
2
|
+
- subject: Convert to Javascript
|
|
3
|
+
hash: 9600706c47334a800636a97dc5e367e57f46d637
|
|
4
|
+
body: ""
|
|
5
|
+
footer:
|
|
6
|
+
Change-type: major
|
|
7
|
+
change-type: major
|
|
8
|
+
author: Akis Kesoglou
|
|
9
|
+
version: 3.0.0
|
|
10
|
+
title: ""
|
|
11
|
+
date: 2023-06-06T16:35:43.491Z
|
|
1
12
|
- commits:
|
|
2
13
|
- subject: Use Flowzone
|
|
3
14
|
hash: 304293989d99a867a67a7167300ee36e318dbb03
|
|
@@ -8,7 +19,7 @@
|
|
|
8
19
|
author: Akis Kesoglou
|
|
9
20
|
version: 2.2.12
|
|
10
21
|
title: ""
|
|
11
|
-
date: 2023-06-
|
|
22
|
+
date: 2023-06-06T15:03:34.741Z
|
|
12
23
|
- commits:
|
|
13
24
|
- subject: Add .versionbot/CHANGELOG.yml for nested changelogs
|
|
14
25
|
hash: b0f552f9a21d350cb9fdca77d4f7c309f88bf68b
|
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file
|
|
|
4
4
|
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
|
|
5
5
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
|
6
6
|
|
|
7
|
+
# v3.0.0
|
|
8
|
+
## (2023-06-06)
|
|
9
|
+
|
|
10
|
+
* Convert to Javascript [Akis Kesoglou]
|
|
11
|
+
|
|
7
12
|
# v2.2.12
|
|
8
13
|
## (2023-06-06)
|
|
9
14
|
|
package/Dockerfile.test
CHANGED
package/lib/btrfs.js
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
(function() {
|
|
3
|
-
var spawn;
|
|
1
|
+
'use strict';
|
|
4
2
|
|
|
5
|
-
|
|
3
|
+
const { spawn } = require('./utils');
|
|
6
4
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
exports.deleteSubvolAsync = function (subvol) {
|
|
6
|
+
return spawn('btrfs', ['subvolume', 'delete', subvol]).waitAsync();
|
|
7
|
+
};
|
|
10
8
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}).call(this);
|
|
9
|
+
exports.snapshotSubvolAsync = function (src, dest) {
|
|
10
|
+
return spawn('btrfs', ['subvolume', 'snapshot', src, dest]).waitAsync();
|
|
11
|
+
};
|
package/lib/docker-delta.js
CHANGED
|
@@ -1,255 +1,306 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// FIXME: For some reason lint complains each of the following lines shadow a variable.
|
|
4
|
+
// tslint:disable:no-shadowed-variable
|
|
5
|
+
const path = require('path');
|
|
6
|
+
const Bluebird = require('bluebird');
|
|
7
|
+
const stream = require('readable-stream');
|
|
8
|
+
const TypedError = require('typed-error');
|
|
9
|
+
const rsync = require('./rsync');
|
|
10
|
+
const btrfs = require('./btrfs');
|
|
11
|
+
const { spawn } = require('./utils');
|
|
12
|
+
const Docker = require('docker-toolbelt');
|
|
13
|
+
|
|
14
|
+
const docker = new Docker();
|
|
15
|
+
|
|
16
|
+
const DELTA_OUT_OF_SYNC_CODES = [19, 23, 24];
|
|
17
|
+
|
|
18
|
+
const RSYNC_EXIT_TIMEOUT = 10 * 60 * 1000;
|
|
19
|
+
|
|
20
|
+
class OutOfSyncError extends TypedError {
|
|
21
|
+
// noop
|
|
22
|
+
}
|
|
23
|
+
// tslint:enable:no-shadowed-variable
|
|
24
|
+
|
|
25
|
+
exports.createDelta = function (srcImage, destImage, v2, opts) {
|
|
26
|
+
if (v2 == null) {
|
|
27
|
+
v2 = true;
|
|
28
|
+
}
|
|
29
|
+
if (opts == null) {
|
|
30
|
+
opts = {};
|
|
31
|
+
}
|
|
32
|
+
var { log, ioTimeout } = opts;
|
|
33
|
+
if (log == null) {
|
|
34
|
+
log = function () {
|
|
35
|
+
// noop
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
if (ioTimeout == null) {
|
|
39
|
+
ioTimeout = 0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const deltaStream = new stream.PassThrough();
|
|
43
|
+
const config = docker.getImage(destImage).inspect().get('Config');
|
|
44
|
+
const rootDirFunc = docker.imageRootDirMounted.bind(docker);
|
|
45
|
+
const rootDirDisposers = [srcImage, destImage].map(rootDirFunc);
|
|
46
|
+
|
|
47
|
+
Bluebird.using(rootDirDisposers, function (rootDirs) {
|
|
48
|
+
const [srcDir, destDir] = rootDirs.map(function (rootDir) {
|
|
49
|
+
return path.join(rootDir, path.sep);
|
|
50
|
+
});
|
|
51
|
+
const rsyncPromise = rsync.createRsyncStream(
|
|
52
|
+
srcDir,
|
|
53
|
+
destDir,
|
|
54
|
+
ioTimeout,
|
|
55
|
+
log,
|
|
56
|
+
);
|
|
57
|
+
return Bluebird.join(
|
|
58
|
+
config,
|
|
59
|
+
rsyncPromise,
|
|
60
|
+
function (dockerConfig, rsyncResult) {
|
|
61
|
+
const [rsyncExit, rsyncStream] = rsyncResult;
|
|
62
|
+
if (v2) {
|
|
63
|
+
const metadata = {
|
|
64
|
+
version: 2,
|
|
65
|
+
dockerConfig,
|
|
66
|
+
};
|
|
67
|
+
deltaStream.write(JSON.stringify(metadata));
|
|
68
|
+
deltaStream.write(new Buffer([0x00]));
|
|
69
|
+
}
|
|
70
|
+
return new Bluebird(function (resolve, reject) {
|
|
71
|
+
return rsyncStream
|
|
72
|
+
.on('error', reject)
|
|
73
|
+
.on('close', resolve)
|
|
74
|
+
.pipe(deltaStream);
|
|
75
|
+
}).finally(function () {
|
|
76
|
+
return rsyncExit.waitAsync();
|
|
77
|
+
});
|
|
78
|
+
},
|
|
79
|
+
);
|
|
80
|
+
})
|
|
81
|
+
.catch(function (e) {
|
|
82
|
+
deltaStream.emit('error', e);
|
|
83
|
+
})
|
|
84
|
+
.finally(function () {
|
|
85
|
+
log('rsync exited');
|
|
86
|
+
deltaStream.emit('close');
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
return deltaStream;
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
function bufIndexOfByte(buf, byte) {
|
|
93
|
+
for (var i = 0, len = buf.length; i < len; i++) {
|
|
94
|
+
if (buf[i] === byte) {
|
|
95
|
+
return i;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
return -1;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function parseDeltaStream(input) {
|
|
102
|
+
return new Bluebird(function (resolve, reject) {
|
|
103
|
+
var buf = new Buffer(0);
|
|
104
|
+
const parser = function () {
|
|
105
|
+
const chunks = [buf];
|
|
106
|
+
|
|
107
|
+
while (true) {
|
|
108
|
+
const chunk = input.read();
|
|
109
|
+
if (chunk != null) {
|
|
110
|
+
chunks.push(chunk);
|
|
111
|
+
} else {
|
|
112
|
+
break;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
buf = Buffer.concat(chunks);
|
|
117
|
+
|
|
118
|
+
const sep = bufIndexOfByte(buf, 0x00);
|
|
119
|
+
if (sep !== -1) {
|
|
120
|
+
input.removeListener('readable', parser);
|
|
121
|
+
input.unshift(buf.slice(sep + 1));
|
|
122
|
+
|
|
123
|
+
try {
|
|
124
|
+
const metadata = JSON.parse(buf.slice(0, sep));
|
|
125
|
+
if (metadata.version === 2) {
|
|
126
|
+
return resolve(metadata);
|
|
127
|
+
} else {
|
|
128
|
+
return reject(new Error('Uknown version: ' + metadata.version));
|
|
129
|
+
}
|
|
130
|
+
} catch (error) {
|
|
131
|
+
return reject(error);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
return input.on('readable', parser);
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
function nullDisposer() {
|
|
141
|
+
return Bluebird.resolve(null);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
function hardlinkCopy(srcRoot, dstRoot, linkDests) {
|
|
145
|
+
const rsyncArgs = ['--archive', '--delete'];
|
|
146
|
+
|
|
147
|
+
for (var j = 0, len = linkDests.length; j < len; j++) {
|
|
148
|
+
const dest = linkDests[j];
|
|
149
|
+
rsyncArgs.push('--link-dest', dest);
|
|
150
|
+
}
|
|
151
|
+
rsyncArgs.push(srcRoot, dstRoot);
|
|
152
|
+
|
|
153
|
+
return spawn('rsync', rsyncArgs).waitAsync();
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
function applyBatch(rsyncProcess, batch, timeout, log) {
|
|
157
|
+
var p = new Bluebird(function (resolve, reject) {
|
|
158
|
+
return batch
|
|
159
|
+
.on('error', reject)
|
|
160
|
+
.on('finish', function () {
|
|
161
|
+
rsyncProcess.stdin.end();
|
|
162
|
+
return resolve();
|
|
163
|
+
})
|
|
164
|
+
.pipe(rsyncProcess.stdin)
|
|
165
|
+
.on('error', reject)
|
|
166
|
+
.on('finish', resolve);
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
if (timeout !== 0) {
|
|
170
|
+
p = p.timeout(timeout);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
return p
|
|
174
|
+
.then(function () {
|
|
175
|
+
log('Batch input stream ended; waiting for rsync...');
|
|
176
|
+
return rsyncProcess
|
|
177
|
+
.waitAsync()
|
|
178
|
+
.timeout(RSYNC_EXIT_TIMEOUT)
|
|
179
|
+
.tap(function () {
|
|
180
|
+
return log('rsync exited cleanly');
|
|
181
|
+
})
|
|
182
|
+
.tapCatch(function (err) {
|
|
183
|
+
return log('Error waiting for rsync to exit: ' + err);
|
|
184
|
+
});
|
|
185
|
+
})
|
|
186
|
+
.catch(function (err) {
|
|
187
|
+
log('Killing rsync with force due to error: ' + err);
|
|
188
|
+
rsyncProcess.kill('SIGUSR1');
|
|
189
|
+
log('Waiting for rsync to exit...');
|
|
190
|
+
return rsyncProcess.waitAsync().throw(err);
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
exports.applyDelta = function (srcImage, opts) {
|
|
195
|
+
if (opts == null) {
|
|
196
|
+
opts = {};
|
|
197
|
+
}
|
|
198
|
+
var { log, timeout } = opts;
|
|
199
|
+
if (log == null) {
|
|
200
|
+
log = function () {
|
|
201
|
+
// noop
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
if (timeout == null) {
|
|
205
|
+
timeout = 0;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
const deltaStream = new stream.PassThrough();
|
|
209
|
+
const rootDirFunc =
|
|
210
|
+
srcImage != null ? docker.imageRootDirMounted.bind(docker) : nullDisposer;
|
|
211
|
+
|
|
212
|
+
const dstIdPromise = parseDeltaStream(deltaStream)
|
|
213
|
+
.get('dockerConfig')
|
|
214
|
+
.tap(function () {
|
|
215
|
+
return log('Extracted image config');
|
|
216
|
+
})
|
|
217
|
+
.bind(docker)
|
|
218
|
+
.then(docker.createEmptyImage)
|
|
219
|
+
.tap(function (id) {
|
|
220
|
+
return log('Created empty image ' + id);
|
|
221
|
+
});
|
|
222
|
+
|
|
223
|
+
Bluebird.using(rootDirFunc(srcImage), function (srcRoot) {
|
|
224
|
+
if (srcRoot != null) {
|
|
225
|
+
srcRoot = path.join(srcRoot, '/');
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
return Bluebird.join(
|
|
229
|
+
docker.info().get('Driver'),
|
|
230
|
+
dstIdPromise,
|
|
231
|
+
dstIdPromise.then(docker.imageRootDir),
|
|
232
|
+
function (dockerDriver, dstId, dstRoot) {
|
|
233
|
+
dstRoot = path.join(dstRoot, '/');
|
|
234
|
+
return Bluebird.try(function () {
|
|
235
|
+
switch (dockerDriver) {
|
|
236
|
+
case 'btrfs':
|
|
237
|
+
if (srcRoot != null) {
|
|
238
|
+
return btrfs.deleteSubvolAsync(dstRoot).then(function () {
|
|
239
|
+
return btrfs.snapshotSubvolAsync(srcRoot, dstRoot);
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
break;
|
|
243
|
+
case 'overlay':
|
|
244
|
+
if (srcRoot != null) {
|
|
245
|
+
return hardlinkCopy(srcRoot, dstRoot, [srcRoot]);
|
|
246
|
+
}
|
|
247
|
+
break;
|
|
248
|
+
case 'aufs':
|
|
249
|
+
case 'overlay2':
|
|
250
|
+
if (srcRoot != null) {
|
|
251
|
+
return docker.diffPaths(srcImage).then(function (diffPaths) {
|
|
252
|
+
return hardlinkCopy(srcRoot, dstRoot, diffPaths);
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
break;
|
|
256
|
+
default:
|
|
257
|
+
throw new Error('Unsupported driver ' + dockerDriver);
|
|
258
|
+
}
|
|
259
|
+
})
|
|
260
|
+
.then(function () {
|
|
261
|
+
log(
|
|
262
|
+
"Hard-linked files from '" + srcRoot + "' to '" + dstRoot + "'",
|
|
263
|
+
);
|
|
264
|
+
const rsyncArgs = [
|
|
265
|
+
'--archive',
|
|
266
|
+
'--delete',
|
|
267
|
+
'--read-batch',
|
|
268
|
+
'-',
|
|
269
|
+
dstRoot,
|
|
270
|
+
];
|
|
271
|
+
log('Spawning rsync with arguments ' + rsyncArgs.join(' '));
|
|
272
|
+
const ps = spawn('rsync', rsyncArgs, {
|
|
273
|
+
stdio: ['pipe', 'ignore', 'ignore'],
|
|
274
|
+
});
|
|
275
|
+
return applyBatch(ps, deltaStream, timeout, log).tap(function () {
|
|
276
|
+
return log('rsync exited successfully');
|
|
277
|
+
});
|
|
278
|
+
})
|
|
279
|
+
.then(function () {
|
|
280
|
+
log("fsync'ing...");
|
|
281
|
+
return spawn('sync').waitAsync();
|
|
282
|
+
})
|
|
283
|
+
.then(function () {
|
|
284
|
+
log('All done. Image ID: ' + dstId);
|
|
285
|
+
return deltaStream.emit('id', dstId);
|
|
286
|
+
});
|
|
287
|
+
},
|
|
288
|
+
);
|
|
289
|
+
}).catch(function (e) {
|
|
290
|
+
log('Error: ' + e);
|
|
291
|
+
if (e.code != null && DELTA_OUT_OF_SYNC_CODES.indexOf(e.code) >= 0) {
|
|
292
|
+
deltaStream.emit('error', new OutOfSyncError('Incompatible image'));
|
|
293
|
+
} else {
|
|
294
|
+
deltaStream.emit('error', e);
|
|
295
|
+
}
|
|
296
|
+
return dstIdPromise.then(function (dstId) {
|
|
297
|
+
return docker
|
|
298
|
+
.getImage(dstId)
|
|
299
|
+
.remove()
|
|
300
|
+
.catch(function (e2) {
|
|
301
|
+
return deltaStream.emit('error', e2);
|
|
302
|
+
});
|
|
303
|
+
});
|
|
304
|
+
});
|
|
305
|
+
return deltaStream;
|
|
306
|
+
};
|