docker-delta 3.0.2 → 3.0.3

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.
@@ -1,3 +1,14 @@
1
+ - commits:
2
+ - subject: Fix linting by ensuring it uses typescript 5.1
3
+ hash: 018d615ca7540329e635bcc6d4d5491f7348a6ec
4
+ body: ""
5
+ footer:
6
+ Change-type: patch
7
+ change-type: patch
8
+ author: Pagan Gazzard
9
+ version: 3.0.3
10
+ title: ""
11
+ date: 2023-11-15T19:53:22.360Z
1
12
  - commits:
2
13
  - subject: Update to docker-toolbelt v5
3
14
  hash: 17a088168c63db13a9ff2a7be933ce9fc80e9d44
@@ -8,7 +19,7 @@
8
19
  author: Akis Kesoglou
9
20
  version: 3.0.2
10
21
  title: ""
11
- date: 2023-06-30T14:09:28.842Z
22
+ date: 2023-06-30T14:12:54.510Z
12
23
  - commits:
13
24
  - subject: Update docker-toolbelt to v4.1.0
14
25
  hash: 149b5dbeaea0aefbb874619a336b87a108a4a02a
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.3
8
+ ## (2023-11-15)
9
+
10
+ * Fix linting by ensuring it uses typescript 5.1 [Pagan Gazzard]
11
+
7
12
  # v3.0.2
8
13
  ## (2023-06-30)
9
14
 
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- // FIXME: For some reason lint complains each of the following lines shadow a variable.
4
- // tslint:disable:no-shadowed-variable
5
3
  const path = require('path');
6
4
  const Bluebird = require('bluebird');
7
5
  const stream = require('readable-stream');
@@ -21,7 +19,6 @@ const RSYNC_EXIT_TIMEOUT = 10 * 60 * 1000;
21
19
  class OutOfSyncError extends TypedError {
22
20
  // noop
23
21
  }
24
- // tslint:enable:no-shadowed-variable
25
22
 
26
23
  exports.createDelta = function (srcImage, destImage, v2, opts) {
27
24
  if (v2 == null) {
@@ -30,7 +27,7 @@ exports.createDelta = function (srcImage, destImage, v2, opts) {
30
27
  if (opts == null) {
31
28
  opts = {};
32
29
  }
33
- var { log, ioTimeout } = opts;
30
+ let { log, ioTimeout } = opts;
34
31
  if (log == null) {
35
32
  log = function () {
36
33
  // noop
@@ -94,7 +91,7 @@ exports.createDelta = function (srcImage, destImage, v2, opts) {
94
91
  };
95
92
 
96
93
  function bufIndexOfByte(buf, byte) {
97
- for (var i = 0, len = buf.length; i < len; i++) {
94
+ for (let i = 0, len = buf.length; i < len; i++) {
98
95
  if (buf[i] === byte) {
99
96
  return i;
100
97
  }
@@ -104,7 +101,7 @@ function bufIndexOfByte(buf, byte) {
104
101
 
105
102
  function parseDeltaStream(input) {
106
103
  return new Bluebird(function (resolve, reject) {
107
- var buf = Buffer.alloc(0);
104
+ let buf = Buffer.alloc(0);
108
105
  const parser = function () {
109
106
  const chunks = [buf];
110
107
 
@@ -144,7 +141,7 @@ function parseDeltaStream(input) {
144
141
  function hardlinkCopy(srcRoot, dstRoot, linkDests) {
145
142
  const rsyncArgs = ['--archive', '--delete'];
146
143
 
147
- for (var j = 0, len = linkDests.length; j < len; j++) {
144
+ for (let j = 0, len = linkDests.length; j < len; j++) {
148
145
  const dest = linkDests[j];
149
146
  rsyncArgs.push('--link-dest', dest);
150
147
  }
@@ -154,7 +151,7 @@ function hardlinkCopy(srcRoot, dstRoot, linkDests) {
154
151
  }
155
152
 
156
153
  function applyBatch(rsyncProcess, batch, timeout, log) {
157
- var p = new Bluebird(function (resolve, reject) {
154
+ let p = new Bluebird(function (resolve, reject) {
158
155
  return batch
159
156
  .on('error', reject)
160
157
  .on('finish', function () {
@@ -195,7 +192,7 @@ exports.applyDelta = function (srcImage, opts) {
195
192
  if (opts == null) {
196
193
  opts = {};
197
194
  }
198
- var { log, timeout } = opts;
195
+ let { log, timeout } = opts;
199
196
  if (log == null) {
200
197
  log = function () {
201
198
  // noop
package/lib/rsync.js CHANGED
@@ -40,7 +40,7 @@ exports.createRsyncStream = function (src, dest, ioTimeout, log) {
40
40
  stdio: 'ignore',
41
41
  });
42
42
  fs.open(pipePath, 'r', function (error, fd) {
43
- var stream;
43
+ let stream;
44
44
  if (error) {
45
45
  log('Failed to open pipe for reading. Killing rsync...');
46
46
  ps.kill('SIGUSR1');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docker-delta",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "description": "Generate binary filesystem diffs between docker images to speed up distribution",
5
5
  "main": "lib/docker-delta",
6
6
  "scripts": {
@@ -19,17 +19,18 @@
19
19
  "JSONStream": "^1.3.5",
20
20
  "mocha": "^3.5.3",
21
21
  "mochainon": "^2.0.0",
22
+ "typescript": "~5.1.6",
22
23
  "versionist": "^2.18.0"
23
24
  },
24
25
  "dependencies": {
25
26
  "bluebird": "^3.7.2",
26
- "docker-toolbelt": "^5.0.0",
27
+ "docker-toolbelt": "^5.0.3",
27
28
  "dockerode": "^3.3.5",
28
29
  "readable-stream": "^2.3.8",
29
30
  "tmp": "0.0.28",
30
31
  "typed-error": "^2.0.0"
31
32
  },
32
33
  "versionist": {
33
- "publishedAt": "2023-06-30T14:09:28.977Z"
34
+ "publishedAt": "2023-11-15T19:53:22.454Z"
34
35
  }
35
36
  }
@@ -31,7 +31,7 @@ function buildImg(name, dockerfile) {
31
31
  )
32
32
  .then(function (res) {
33
33
  return new Bluebird(function (resolve, reject) {
34
- var outputStream;
34
+ let outputStream;
35
35
  return (outputStream = res
36
36
  .pipe(JSONStream.parse())
37
37
  .pipe(