cacache 9.2.5 → 9.2.9

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/CHANGELOG.md CHANGED
@@ -2,6 +2,41 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ <a name="9.2.9"></a>
6
+ ## [9.2.9](https://github.com/zkat/cacache/compare/v9.2.8...v9.2.9) (2017-06-17)
7
+
8
+
9
+
10
+ <a name="9.2.8"></a>
11
+ ## [9.2.8](https://github.com/zkat/cacache/compare/v9.2.7...v9.2.8) (2017-06-05)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * **ssri:** bump ssri for bugfix ([c3232ea](https://github.com/zkat/cacache/commit/c3232ea))
17
+
18
+
19
+
20
+ <a name="9.2.7"></a>
21
+ ## [9.2.7](https://github.com/zkat/cacache/compare/v9.2.6...v9.2.7) (2017-06-05)
22
+
23
+
24
+ ### Bug Fixes
25
+
26
+ * **content:** make verified content completely read-only (#96) ([4131196](https://github.com/zkat/cacache/commit/4131196))
27
+
28
+
29
+
30
+ <a name="9.2.6"></a>
31
+ ## [9.2.6](https://github.com/zkat/cacache/compare/v9.2.5...v9.2.6) (2017-05-31)
32
+
33
+
34
+ ### Bug Fixes
35
+
36
+ * **node:** update ssri to prevent old node 4 crash ([5209ffe](https://github.com/zkat/cacache/commit/5209ffe))
37
+
38
+
39
+
5
40
  <a name="9.2.5"></a>
6
41
  ## [9.2.5](https://github.com/zkat/cacache/compare/v9.2.4...v9.2.5) (2017-05-25)
7
42
 
@@ -2,6 +2,8 @@
2
2
 
3
3
  const fs = require('graceful-fs')
4
4
  const BB = require('bluebird')
5
+ const chmod = BB.promisify(fs.chmod)
6
+ const unlink = BB.promisify(fs.unlink)
5
7
  let move
6
8
  let pinflight
7
9
 
@@ -27,8 +29,11 @@ function moveFile (src, dest) {
27
29
  return cb(err)
28
30
  }
29
31
  }
30
- return fs.unlink(src, cb)
32
+ return cb()
31
33
  })
34
+ }).then(() => {
35
+ // content should never change for any reason, so make it read-only
36
+ return BB.join(unlink(src), process.platform !== 'win32' && chmod(dest, '0444'))
32
37
  }).catch(err => {
33
38
  if (process.platform !== 'win32') {
34
39
  throw err
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cacache",
3
- "version": "9.2.5",
3
+ "version": "9.2.9",
4
4
  "cache-version": {
5
5
  "content": "2",
6
6
  "index": "5"
@@ -62,27 +62,27 @@
62
62
  "chownr": "^1.0.1",
63
63
  "glob": "^7.1.2",
64
64
  "graceful-fs": "^4.1.11",
65
- "lru-cache": "^4.0.2",
65
+ "lru-cache": "^4.1.1",
66
66
  "mississippi": "^1.3.0",
67
67
  "mkdirp": "^0.5.1",
68
68
  "move-concurrently": "^1.0.1",
69
69
  "promise-inflight": "^1.0.1",
70
70
  "rimraf": "^2.6.1",
71
- "ssri": "^4.1.3",
71
+ "ssri": "^4.1.6",
72
72
  "unique-filename": "^1.1.0",
73
73
  "y18n": "^3.2.1"
74
74
  },
75
75
  "devDependencies": {
76
76
  "benchmark": "^2.1.4",
77
77
  "chalk": "^1.1.3",
78
- "cross-env": "^5.0.0",
79
- "nyc": "^10.3.2",
78
+ "cross-env": "^5.0.1",
79
+ "nyc": "^11.0.2",
80
80
  "require-inject": "^1.4.0",
81
- "safe-buffer": "^5.0.1",
81
+ "safe-buffer": "^5.1.0",
82
82
  "standard": "^10.0.2",
83
- "standard-version": "^4.0.0",
83
+ "standard-version": "^4.2.0",
84
84
  "tacks": "^1.2.2",
85
- "tap": "^10.3.2",
85
+ "tap": "^10.3.4",
86
86
  "weallbehave": "^1.2.0",
87
87
  "weallcontribute": "^1.0.8"
88
88
  },