docker-storage-gc 3.5.9 → 3.5.10
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: Optimize `getMtimeFrom`
|
|
3
|
+
hash: e898db2d4abf0ef7cf30311391339fcee40b2868
|
|
4
|
+
body: ""
|
|
5
|
+
footer:
|
|
6
|
+
Change-type: patch
|
|
7
|
+
change-type: patch
|
|
8
|
+
author: Pagan Gazzard
|
|
9
|
+
version: 3.5.10
|
|
10
|
+
title: ""
|
|
11
|
+
date: 2023-11-30T21:38:22.392Z
|
|
1
12
|
- commits:
|
|
2
13
|
- subject: Fix exported typings
|
|
3
14
|
hash: f3e088e5853025e80baaf58bbdc965074020a95f
|
|
@@ -8,7 +19,7 @@
|
|
|
8
19
|
author: Pagan Gazzard
|
|
9
20
|
version: 3.5.9
|
|
10
21
|
title: ""
|
|
11
|
-
date: 2023-11-29T16:
|
|
22
|
+
date: 2023-11-29T16:51:28.257Z
|
|
12
23
|
- commits:
|
|
13
24
|
- subject: Update to eventemitter3 v5
|
|
14
25
|
hash: 6d40753d7643460e8736d8b5f0672d8dd9f84f4f
|
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.5.10
|
|
8
|
+
## (2023-11-30)
|
|
9
|
+
|
|
10
|
+
* Optimize `getMtimeFrom` [Pagan Gazzard]
|
|
11
|
+
|
|
7
12
|
# v3.5.9
|
|
8
13
|
## (2023-11-29)
|
|
9
14
|
|
|
@@ -30,10 +30,12 @@
|
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
getMtimeFrom = function(layer_mtimes, attributes) {
|
|
33
|
-
var key;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
var i, key, len;
|
|
34
|
+
for (i = 0, len = attributes.length; i < len; i++) {
|
|
35
|
+
key = attributes[i];
|
|
36
|
+
if (layer_mtimes[key] != null) {
|
|
37
|
+
return layer_mtimes[key];
|
|
38
|
+
}
|
|
37
39
|
}
|
|
38
40
|
};
|
|
39
41
|
|
|
@@ -8,9 +8,9 @@ saneRepoAttrs = (repoAttrs) ->
|
|
|
8
8
|
exports.createNode = createNode = (id) -> { id: id, size: 0, repoTags: [], repoDigests: [], mtime: null, children: {} }
|
|
9
9
|
|
|
10
10
|
getMtimeFrom = (layer_mtimes, attributes) ->
|
|
11
|
-
key
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
for key in attributes
|
|
12
|
+
if layer_mtimes[key]?
|
|
13
|
+
return layer_mtimes[key]
|
|
14
14
|
|
|
15
15
|
getMtime = (tree, layer_mtimes) ->
|
|
16
16
|
mtime = layer_mtimes[tree.id]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "docker-storage-gc",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.10",
|
|
4
4
|
"main": "build/index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -32,6 +32,6 @@
|
|
|
32
32
|
"timekeeper": "0.0.5"
|
|
33
33
|
},
|
|
34
34
|
"versionist": {
|
|
35
|
-
"publishedAt": "2023-11-
|
|
35
|
+
"publishedAt": "2023-11-30T21:38:22.515Z"
|
|
36
36
|
}
|
|
37
37
|
}
|